/* ============================================
   RESET Y CONFIGURACIÓN BASE - ESTILO RETRO
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0a0a12;
    --color-bg-dark: #050508;
    --color-bg-light: #0f0f1a;
    --color-text: #c0c0ff;
    --color-text-secondary: #8080c0;
    --color-accent: #5865F2;
    --color-accent-glow: rgba(88, 101, 242, 0.4);
    --color-border: rgba(88, 101, 242, 0.15);
    --color-particle: rgba(88, 101, 242, 0.08);
    --color-christmas: #ff3366;
    --color-christmas-glow: rgba(255, 51, 102, 0.3);
    --font-retro: 'Press Start 2P', cursive, monospace;
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 10px var(--color-accent-glow);
    --shadow-christmas: 0 0 15px var(--color-christmas-glow);
}

body {
    font-family: var(--font-retro);
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* ============================================
   FONDO Y EFECTOS RETRO
   ============================================ */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* Grid retro pixelado */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(88, 101, 242, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 101, 242, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
    opacity: 0.2;
}

/* Scanline effect mejorado */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(88, 101, 242, 0.3),
        rgba(255, 51, 102, 0.3),
        rgba(88, 101, 242, 0.3),
        transparent
    );
    animation: scanline 10s linear infinite;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.5);
}

/* ============================================
   LAYOUT PRINCIPAL RETRO
   ============================================ */
.container {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 2rem;
    margin: 1rem 0;
}

/* ============================================
   SECCIÓN IZQUIERDA - LOGO RETRO
   ============================================ */
.left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}



.logo {
    font-size: 2rem;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    text-shadow: 
        2px 2px 0 #000,
        3px 3px 0 var(--color-accent-glow);
    position: relative;
    padding: 0.5rem;
}


.domain {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    background: rgba(15, 15, 25, 0.5);
    display: inline-block;
    text-shadow: 1px 1px 0 #000;
}

/* ============================================
   SECCIÓN DERECHA - CONTENIDO RETRO
   ============================================ */
.right-section {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
}

/* ============================================
   MENSAJE PRINCIPAL - ESTILO RETRO
   ============================================ */

/* Esquinas tipo terminal */
.corner-decoration {
    position: absolute;
    width: 12px;
    height: 12px;
}

.corner-top-left {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--color-accent);
    border-left: 2px solid var(--color-accent);
}

.corner-bottom-right {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid var(--color-accent);
    border-right: 2px solid var(--color-accent);
}

.message {
    position: relative;
    z-index: 2;
}

.message-line {
    display: block;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    color: var(--color-text);
    text-shadow: 1px 1px 0 #000;
    padding: 0.3rem 0;
}

.line-1 {
    color: var(--color-text);
    font-size: 1rem;
}

.line-2 {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

/* ============================================
   DISCORD SECTION - ESTILO RETRO
   ============================================ */

.discord-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.discord-label {
    font-size: 0.8rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-shadow: 1px 1px 0 #000;
}

.discord-label i {
    color: var(--color-accent);
    font-size: 1rem;
    text-shadow: 0 0 5px var(--color-accent-glow);
}

.discord-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--color-accent), #4752c4);
    color: white;
    text-decoration: none;
    border: none;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(88, 101, 242, 0.3);
    width: fit-content;
    font-family: var(--font-retro);
    text-shadow: 1px 1px 0 #000;
    position: relative;
    overflow: hidden;
}

.discord-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.discord-button:hover::before {
    left: 100%;
}

.discord-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(88, 101, 242, 0.4);
    background: linear-gradient(45deg, #4752c4, var(--color-accent));
}

.discord-button i {
    font-size: 1rem;
}

/* ============================================
   FOOTER - ESTILO RETRO
   ============================================ */
.footer {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
    position: relative;
    width: 100%;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        var(--color-border),
        var(--color-accent),
        var(--color-border),
        transparent
    );
}

.copyright {
    font-size: 0.5rem;
    color: var(--color-text-secondary);
    opacity: 0.6;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 #000;
}

.made-with-love {
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-shadow: 1px 1px 0 #000;
}

.creator-name {
    color: var(--color-accent);
    position: relative;
    padding: 0 0.2rem;
    cursor: pointer;
}

.creator-name:hover {
    color: var(--color-christmas);
    text-shadow: var(--shadow-christmas);
}

.heart {
    color: var(--color-christmas);
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
    text-shadow: var(--shadow-christmas);
}

/* ============================================
   ANIMACIONES RETRO
   ============================================ */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes snowFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes glow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* ============================================
   EFECTOS ESPECIALES NAVIDEÑOS
   ============================================ */
.christmas-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    z-index: 2;
    pointer-events: none;
}

.light {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: glow 1.5s infinite;
}

/* ============================================
   RESPONSIVE DESIGN RETRO
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .main-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .left-section, .right-section {
        width: 100%;
        padding: 0.5rem;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .domain {
        font-size: 0.7rem;
    }
    
    .message-line {
        font-size: 0.8rem;
    }
    
    .line-1 {
        font-size: 0.9rem;
    }
    
    .line-2 {
        font-size: 0.75rem;
    }
    
    .discord-button {
        width: 100%;
        justify-content: center;
    }
    
    .discord-label {
        justify-content: center;
        text-align: center;
    }
}

@media (min-width: 1200px) {
    .logo {
        font-size: 2.2rem;
    }
    
    .message-line {
        font-size: 1rem;
    }
    
    .line-1 {
        font-size: 1.1rem;
    }
    
    .line-2 {
        font-size: 0.95rem;
    }
}

/* ============================================
   EFECTOS DE TEXTO RETRO MEJORADOS
   ============================================ */
.message-line {
    position: relative;
}


/* ============================================
   EFECTOS DE CARGANDO
   ============================================ */
.loading-dots::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ============================================
   BORDES PIXELADOS
   ============================================ */
.pixel-border {
    border-style: solid;
    border-width: 2px;
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M0,0 L12,0 L12,12 L0,12 Z' fill='none' stroke='%235865F2' stroke-width='2'/%3E%3C/svg%3E") 2 stretch;
}