/* Importamos una fuente estilo "Poster" de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bowlby+One&family=Libre+Franklin:wght@500&family=Montserrat:wght@400;600&family=Space+Mono:wght@400;700&display=swap');
/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* IMÁGENES RESPONSIVAS */
img {
  width: 100%;
  height: auto;
  display: block;
}

/* BODY */
body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #000000;
  color: #000;
  
  /* NUEVO: Espacio abajo solo en móvil para que el header no tape el footer */
  padding-bottom: 80px; 
}

/* --- HEADER PEGAJOSO (MÓVIL: ABAJO) --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; 
    
    /* POSICIÓN MÓVIL: PEGADO AL SUELO */
    position: fixed; 
    bottom: 0;      /* <--- La clave: Abajo */
    top: auto;      /* <--- Anulamos arriba */
    left: 0;
    width: 100%;
    z-index: 1000;
    
    /* FONDO MÓVIL: Negro sólido para que se vean los iconos sobre el contenido blanco */
    background-color: #000; 
    
    /* SOMBRA HACIA ARRIBA (Porque está en el suelo) */
    box-shadow: 0 -4px 10px rgba(0,0,0,0.5); 
    
    transition: background-color 0.3s ease, padding 0.3s ease;
}

/* CLASE SCROLLED (En móvil no hará mucha diferencia visual porque ya es negro, pero mantiene la lógica) */
.main-header.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 10px 20px;
}

/* Logo */
.logo-img {
   width: 140px; /* Un poco más pequeño en móvil */
    display: block;
    position: relative; /* Relative en móvil para que fluya bien */
}

/* Ocultar menú de escritorio en móvil */
.desktop-nav { display: none; }

/* Contenedor de iconos derecha */
.icon-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 0; /* Sin margen en móvil */
}

.cart-icon, .burger-btn {
    color: white;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

/* --- MENÚ MÓVIL DESPLEGABLE (HACIA ARRIBA) --- */
.mobile-menu-overlay {
    display: none; 
    position: fixed; /* Fixed para que flote */
    
    /* NACE DESDE EL HEADER HACIA ARRIBA */
    bottom: 55px; /* Altura aprox del header */
    top: auto;    /* Anulamos top */
    left: 0;
    width: 100%;
    
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
    z-index: 999;
    border-top: 2px solid #FFCA28; /* Decoración superior */
}

.mobile-menu-overlay.active { display: flex; }

.mobile-menu-overlay a {
    color:  #ffca28;
    text-decoration: none;
    padding: 15px;
    font-size: 1.2rem;
    border-bottom: 1px solid #333;
}



/* HERO */
/* =========================================
   HERO SECTION (ESTILO MANIFIESTO REMIX)
   ========================================= */

.hero-section {
    /* 1. FONDO Y POSICIONAMIENTO BASE */
    background-image: url('assets/images/fondo-hero.webp'); /* Asegúrate de que la ruta sea correcta */
    background-size: cover;
    background-position: center bottom;
    background-color: #000;
    position: relative;
    width: 100%;
    overflow: hidden;

    /* 2. FLEXBOX MÓVIL (Columna Vertical) */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrado horizontal */
    
    /* MÓVIL: Padding solo arriba para bajar el contenido del header */
    padding-top: 50px; 
    padding-bottom: 0; 
}

/* --- 1. CONTENIDO DE TEXTO (Móvil: Arriba) --- */
.hero-content {
    order: 1; /* Primero en el móvil */
    width: 100%;
    max-width: 1200px; /* Tope de ancho */
    padding: 0 20px 10px 20px; 
    
    /* Alineación Móvil */
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    z-index: 2;
}

/* Tipografía Hero (Manteniendo tus clases) */
.retro-title {
    font-family: 'Bowlby One', sans-serif;
    font-size: 2.5rem; /* Tamaño móvil */
    line-height: 1;
    color: #9bbfd4; /* Cyan */
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 4px 4px 0px #000;
}

.retro-subtitle {
    font-family: 'Space Mono', monospace;
    color: #ffca28; /* Amarillo */
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0px #000;
}

.btn-explore {
    /* Estilo botón del manifiesto */
    display: inline-block;
    background-color: #FFCA28;
    color: #000;
    font-family: 'Bowlby One', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-decoration: none;
    border: 3px solid #000;
    padding: 15px 30px;
    box-shadow: 6px 6px 0px #000;
    transition: all 0.2s ease;
}

.btn-explore:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px #00CFFF;
}

/* --- 2. IMAGEN DEL MODELO (Móvil: Abajo) --- */
.hero-model {
    order: 2; /* Segundo en el móvil */
    
    /* Tamaño móvil */
    width: 90%; 
    max-width: 400px;
    height: auto;
    display: block;
    
    /* Alineación al piso */
    align-self: center;
    margin-top: auto; /* Empuja hacia abajo si hay espacio extra */
    
    filter: drop-shadow(0px -5px 10px rgba(0,0,0,0.5));
}


/* --- VERSIÓN ESCRITORIO (INVERTIDA) --- */
@media (min-width: 900px) {
    
    .hero-section {
        flex-direction: row; /* Lado a lado */
        align-items: flex-end; /* Todo alineado al piso (bottom) */
        justify-content: center;
        gap: 50px;
        min-height: 100vh; /* Altura completa de pantalla */
        padding-top: 0; /* Reseteamos padding */
        
    }

    /* TEXTO: A la IZQUIERDA (order 1) */
    .hero-content {
        order: 1; 
        width: 45%; /* Mitad izquierda */
        align-items: flex-start; /* Alineado a la izquierda */
        text-align: left;
        margin-left: 20%;
        
        /* Lo subimos un poco para que quede centrado visualmente respecto a la pantalla */
      padding-bottom: 40vh; 
        margin-top: 0;
    }

    .retro-title {
        font-size: 4.5rem; /* Título gigante PC */
    }
    
    .retro-subtitle {
        font-size: 1.8rem;
    }

    /* MODELO: A la DERECHA (order 2) */
    .hero-model {
        order: 2; 
        width: 45%; /* Mitad derecha */
        max-width: 650px; /* Más grande en PC */
        align-self: flex-end; /* Pegado al piso */
    }
}



/* --- ESTILOS DE PRODUCTOS (RETRO VIBE) --- */

/* --- 1. SECCIÓN DEL TÍTULO (Nuevo ID #titleprod) --- */
#titleprod {
    text-align: center; /* ¡ESTO ES LO QUE LO CENTRA! */
    padding-top: 50px;  /* Espacio arriba para separarlo del Hero */
    padding-bottom: 10px; /* Espacio antes de las tarjetas */
    background-color: #000;
     text-shadow: 4px 4px 0px #FF0040; /* Sombra Roja */
    
}

/* El estilo del H2 se mantiene igual */
.section-title {
    font-family: 'Bowlby One', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    color:  #ffca28;
     text-shadow: 4px 4px 0px #FF0040; /* Sombra Roja */
 
    
    display: inline-block; 
  
    padding-bottom: 5px;
    
}


/* --- 2. SECCIÓN DEL CATÁLOGO (#catalogo) --- */
#catalogo {
    padding: 80px 20px 80px 20px; /* Arriba, Derecha, Abajo, Izquierda */
    background-color: #000;
    display: flex;
      flex-wrap: wrap; /* Si no caben en la pantalla, bajan */
    justify-content: center; /* Alineados al centro */
    background-size: cover;
}

/* EL CONTENEDOR FLEX (Hace que se pongan en fila) */
.products-grid {
    display: flex;
    flex-wrap: wrap; /* Si no caben en la pantalla, bajan */
    justify-content: center; /* Alineados al centro */
    gap: 80px; /* Espacio entre tarjeta y tarjeta */
}


/* --- 3. LAS TARJETAS (Más pequeñas) --- */
.product-card {
    /* TAMAÑO FIJO: Esto las hace más pequeñas y uniformes */
    width: 280px; 
    
    border: 3px solid #000;
    padding: 20px;
    background: #999999;
    text-align: center;
    box-shadow: 8px 8px 0px #000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 10px; /* Solo por seguridad */
}

/* Hover: Se levanta un poco */
.product-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px #00CFFF; 
}

/* Imágenes dentro de la tarjeta */
.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(4px 4px 0px rgba(0,0,0,0.1));
}

/* Títulos de productos */
.product-card h3 {
    font-family: 'Bowlby One', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    color: #000;
}

/* Precios */
.price {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    font-weight: bold;
    background-color: #ffca28;
    color: #000;
    border: 2px solid #000;
    padding: 4px 10px;
    display: inline-block;
    transform: rotate(-2deg);
    margin-bottom: 15px;
}

/* Botones */
.btn-secondary {
    display: inline-block;
    padding: 10px 40px;
    background-color: #ffca28; /* Amarillo mostaza de tu diseño */
    color: black;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    border: 2px solid black; /* Borde negro retro */
    box-shadow: 4px 4px 0px black; /* Sombra sólida retro */
    transition: transform 0.2s;
    cursor: pointer;
    
}

.btn-secondary:hover {
    background-color: #4db0dd;
    color: rgb(0, 0, 0);
}

.btn-secondary:active {
    transform: translate(2px, 2px); /* Efecto de presionar */
    box-shadow: 2px 2px 0px black;
}





/* GALERÍA BENTO */

/* 1. CONFIGURACIÓN BASE (MÓVIL) */
.bento {
    max-width: 100%;
    align-items: center;
    background-color: #ffffff;
}
.bento-grid {
    padding: 40px 20px;
    background-color: #fff; 
    display: grid; 
    
    /* MÓVIL: 2 Columnas iguales */
    grid-template-columns: 1fr 1fr; 
    
    /* MÓVIL: Altura automática */
    grid-template-rows: auto auto auto; 
    
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;

    /* EL MAPA MÓVIL: */
    grid-template-areas: 
        "caja1 caja2"
        "caja3 caja3"
        "caja4 caja4";
}

/* 2. ESTILO DE LAS CAJAS */
.bento-item {
    border: 3px solid #000;
    box-shadow: 6px 6px 0px #000;
    
    /* Importante para posicionar la imagen */
    display: block;
    position: relative;
    overflow: hidden; 
    
    /* Altura mínima base */
    min-height: 200px; 
    background-color: #000; /* Fondo negro por si la imagen no cubre todo */
    
    /* Tipografía */
    font-family: 'Bowlby One', sans-serif;
    color: white;
    font-size: 1.5rem; 
    text-shadow: 3px 3px 0px #000;
    transition: transform 0.2s;
}

/* LA MAGIA DE LAS IMÁGENES (MÓVIL) */
.bento-item img {
    width: 100%;
    height: 100%;
    
    /* MÓVIL: 'contain' muestra la imagen COMPLETA sin recortar nada */
    object-fit: contain; 
    
    /* Aseguramos que esté centrada */
    position: absolute;
    top: 0;
    left: 0;
}

/* Hover Effect */
.bento-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px #00CFFF;
}

/* ASIGNAMOS LAS ÁREAS */
/* NOTA: Ya no ponemos background-image aquí, la imagen debe estar en tu HTML */
.box-1 { grid-area: caja1; background-color: #ffca28; } /* Amarillo de fondo */
.box-2 { grid-area: caja2; background-color: #00CFFF; } /* Cyan de fondo */
.box-3 { grid-area: caja3; background-color: #ff0040; } /* Rojo de fondo */
.box-4 { grid-area: caja4; background-color: #000;    } /* Negro de fondo */


/* --- AJUSTE ESPECÍFICO PARA LIFESTYLE (CAJA 4 EN MÓVIL) --- */
.box-4 { 
    /* Le damos altura para que la foto vertical quepa bien */
    min-height: 500px; 
}


/* --- 3. VERSIÓN ESCRITORIO (PC) --- */
@media (min-width: 900px) {
    .bento-grid {
        /* 3 Columnas */
        grid-template-columns: 1fr 1fr 1.5fr; 
        grid-template-rows: 250px 250px;      
        
        /* Mapa Desktop */
        grid-template-areas: 
            "caja1 caja2 caja4"
            "caja3 caja3 caja4";
            
        gap: 20px;
    }
    
    .bento-item {
        font-size: 2.5rem; 
    }

    /* CAMBIO CLAVE PARA PC: */
    /* Aquí sí queremos que recorte para llenar el cuadro perfecto */
    .bento-item img {
        object-fit: cover; 
    }
}




/* BENEFICIOS */
/* --- SECCIÓN DE BENEFICIOS --- */
.benefits-section {
    background-color: #999999; 
    padding: 50px 20px;
    border-top: 3px solid #000;
    border-bottom: 3px solid #000;
}

/* CONTENEDOR FLEX (Aquí estaba el fallo) */
.benefits-container {
    max-width: 1000px;
    
    /* ESTA ES LA LÍNEA MÁGICA QUE FALTABA: */
    margin: 0 auto; /* Centra la caja invisible en medio de la pantalla */
    
    width: 100%; /* Asegura que ocupe el espacio disponible */
    display: flex;
    flex-direction: column; /* Móvil: Columna */
    gap: 40px; 
    align-items: center;
}

/* CADA ÍTEM INDIVIDUAL */
.benefit-item {
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-align: center;
    width: 100%;
}

.benefit-icon {
    width: 80px; /* Ajuste un tamaño estándar */
    height: auto;
    margin-bottom: 15px;
    transition: transform 0.2s ease;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(-5deg); 
}

.benefit-item h3 {
    font-family: 'Bowlby One', sans-serif;
    font-size: 1.1rem;
    line-height: 1.2;
    color: #000;
    text-transform: uppercase;
    margin: 0;
}

/* --- VERSIÓN ESCRITORIO (Lado a lado) --- */
@media (min-width: 768px) {
    .benefits-container {
        flex-direction: row; /* Fila horizontal */
        
        /* USAMOS CENTER + GAP PARA MAYOR CONTROL */
        justify-content: center; 
        gap: 80px; /* Espacio generoso entre cada uno */
        
        align-items: flex-start; /* Alineados arriba */
    }
    
    .benefit-item {
        max-width: 250px; 
    }
}

/* =========================================
   ESTILOS FUNK ARCADE (DEFINITIVO)
   ========================================= */

.arcade-section {
    background-color: #000;
    padding: 60px 20px;
    text-align: center;
    border-top: 5px solid #00CFFF;
    color: white;
}

.arcade-title {
    font-family: 'Bowlby One', sans-serif;
    color: #FFCA28;
    font-size: 2.5rem;
    text-shadow: 4px 4px 0px #FF0040;
    margin-bottom: 10px;
}

/* --- INSTRUCCIONES --- */
.game-instructions {
    margin-bottom: 20px;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: #ccc;
}
.game-goal { color: #FF0040; font-weight: bold; margin-bottom: 5px; }
.highlight { color: #00CFFF; font-weight: bold; }
.key-badge { border: 1px solid #fff; border-radius: 4px; padding: 1px 5px; background: #333; font-size: 0.8rem; }

/* Lógica de visibilidad PC vs Móvil */
.inst-desktop { display: none; }
.inst-mobile { display: block; }

@media (min-width: 900px) {
    .inst-desktop { display: block; }
    .inst-mobile { display: none; }
    .mobile-controls { display: none !important; } /* Ocultar controles táctiles en PC */
    .pc-start-btn { display: inline-block !important; }
}

/* --- CANVAS & GAME OVER --- */
canvas {
    background-color: #111;
    border: 4px solid #00CFFF;
    box-shadow: 0 0 20px rgba(0, 207, 255, 0.4);
    max-width: 100%;
}
/* --- BOTÓN MUTE --- */
.mute-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5); /* Semitransparente */
    border: 1px solid #fff;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 15; /* Por encima del canvas */
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.mute-btn:hover {
    background: #FFCA28; /* Amarillo al pasar el mouse */
    color: #000;
    border-color: #000;
}
#gameOverScreen {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    flex-direction: column; justify-content: center; align-items: center;
    z-index: 20;
}

.go-title { color: #FF0040; font-family: 'Bowlby One'; font-size: 2.5rem; margin: 0; text-shadow: 2px 2px 0px #fff; }
.go-score { color: #fff; font-family: 'Space Mono'; font-size: 1.2rem; margin: 5px 0; }
.go-phrase { font-family: 'Bowlby One'; text-transform: uppercase; font-size: 1.2rem; margin: 5px 0 20px 0; }
.go-buttons { 
    display: flex; 
    
    /* ESTA ES LA CLAVE: Cambia la dirección de fila a columna */
    flex-direction: column; 
    
    gap: 15px; 
    justify-content: center;
    align-items: center; /* Esto asegura que queden centrados */
}

/* --- CONTROLES MÓVILES --- */
.mobile-controls {
    display: flex; flex-direction: column; align-items: center; margin-top: 20px; gap: 10px;
}
.row-controls { display: flex; gap: 15px; align-items: center; }

.control-btn {
    background: #333; border: 2px solid #fff; color: #fff;
    font-size: 1.5rem; width: 60px; height: 60px;
    border-radius: 50%; cursor: pointer; touch-action: manipulation;
}
.control-btn:active { background: #555; transform: scale(0.95); }

/* Botones especiales */
.extra-controls { display: none; /* Ocultos por defecto (solo Snake) */ }
.square-btn { border-radius: 10px; width: 50px; height: 50px; font-size: 1.2rem; }
.select-btn { padding: 15px; font-size: 0.9rem; min-width: 80px; }
.small-btn { padding: 10px 20px; font-size: 0.9rem; }
.pc-start-btn { margin-top: 20px; display: none; } /* Oculto en móvil */

/* Ajuste de texto abajo del canvas */
.arcade-subtitle { font-family: 'Space Mono', monospace; color: #fff; margin-top: 10px; }


/* FOOTER */
.footer {
  padding: 1.5rem;
}

.footer nav {
  display: flex;
  gap: 1rem;
}

.footer a {
  text-decoration: none;
  color: #000;
  font-size: 0.9rem;
}

/* DESKTOP (SE AGREGA DESPUÉS) */
@media (min-width: 900px) {
  .products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}
/* --- VERSIÓN ESCRITORIO (RESET TOTAL: TODO ARRIBA) --- */
@media (min-width: 900px) {

    /* 1. Quitamos el espacio extra del body */
    body { padding-bottom: 0; }

    /* 2. HEADER VUELVE ARRIBA */
    .main-header {
        top: 0;          /* <--- Vuelve al techo */
        bottom: auto;    /* <--- Soltamos el suelo */
        padding: 15px 40px;
        
        /* Estado inicial transparente (como querías) */
        background-color: transparent; 
        box-shadow: none; 
    }
    
    /* Cuando bajes el scroll en PC, se pondrá negro gracias al JS */
    .main-header.scrolled {
        background-color: rgba(0, 0, 0, 0.95);
        box-shadow: 0 4px 10px rgba(0,0,0,0.5); /* Sombra hacia abajo normal */
    }

    .logo-img { width: 180px; position: absolute; } /* Logo grande */

    /* Resto de tu código desktop (nav, ocultar burger, etc) */
    .desktop-nav { display: flex; gap: 25px; }
    .desktop-nav a {
        color:  #ffca28;
        text-decoration: none;
        font-weight: 500;
        font-size: 1rem;
        text-transform: uppercase;
        transition: color 0.3s;
    }
    .desktop-nav a:hover { color: #fff; }
    .burger-btn { display: none; }
    .mobile-menu-overlay { display: none !important; }
}

/* =========================================
   SECCIÓN MANIFIESTO (LIMPIA Y SIN BORDES)
   ========================================= */
.manifesto-remix {
    background-image: url('assets/images/fondo-mani.webp'); 
    background-size: cover;
    background-position: center;
    background-color: #000;
    position: relative;
    width: 100%; /* Asegura ancho total */
    
    /* MÓVIL: Padding solo arriba. Abajo es 0. */
    padding-top: 60px; 
    padding-bottom: 0; 
}

.remix-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* --- 1. CONTENIDO (Texto) --- */
.remix-content {
    order: 1; 
    width: 100%;
    padding: 0 20px 40px 20px; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;  
    z-index: 2;
}

.mini-logo {
    width: 0px;
    margin-bottom: 20px;
    display: block;
    
}

.remix-content h2 {
    font-family: 'Bowlby One', sans-serif;
    font-size: 2rem;
    line-height: 1.2;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-shadow: 4px 4px 0px #000;
}

.remix-content .highlight { color: #00CFFF; }

.btn-hero {
    display: inline-block;
    background-color: #FFCA28;
    color: #000;
    font-family: 'Bowlby One', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-decoration: none;
    border: 3px solid #000;
    padding: 15px 30px;
    box-shadow: 6px 6px 0px #000;
    transition: all 0.2s ease;
}

/* --- 2. IMAGEN (Modelo) --- */
.remix-visual {
    order: 2; 
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Pegado al piso */
    line-height: 0; /* Elimina espacio fantasma debajo de la imagen */
}

.remix-visual img {
    width: 85%;
    max-width: 380px;
    height: auto;
    display: block; 
    filter: drop-shadow(0px -5px 10px rgba(0,0,0,0.5));
}

/* --- VERSIÓN ESCRITORIO --- */
@media (min-width: 900px) {
    .manifesto-remix {
        padding: 80px 40px 0 40px; 
    }

    .remix-container {
        flex-direction: row; 
        align-items: flex-end; 
        justify-content: space-between;
        min-height: 600px; /* CAMBIO CLAVE: min-height en vez de height 100vh */
    }

    .remix-visual {
        order: 1; 
        width: 38%;
        justify-content: flex-start;
    }
    
    .remix-visual img { width: 100%; max-width: 500px; }

    .remix-content {
        order: 2; 
        width: 50%;
        align-items: flex-end; 
        text-align: right;
        padding-bottom: 100px;
    }
    
    .remix-content h2 { font-size: 3.5rem; 
    margin-top: -80%;}
    
    
    
}


/* =========================================
   FOOTER (LIMPIO Y FULL WIDTH)
   ========================================= */
.site-footer {
    width: 100%; /* Asegura ancho total */
    background-color: #000;
    color: #fff;
    border-top: 5px solid #FFCA28;
    font-family: 'Space Mono', monospace;
    overflow: hidden; 
}

.footer-marquee {
    background-color: #FFCA28;
    color: #000;
    padding: 8px 0;
    border-bottom: 3px solid #000;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    font-family: 'Bowlby One', sans-serif;
    font-size: 1rem;
    animation: scroll-left 15s linear infinite; 
    padding-left: 100%;
}

@keyframes scroll-left {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

.footer-container {
    padding: 40px 20px;
    display: flex;
    flex-direction: column; 
    gap: 40px; 
    text-align: center; 
    align-items: center; 
}

.footer-col { width: 100%; max-width: 350px; }

.footer-col h3 {
    font-family: 'Bowlby One', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #FFCA28;
    text-transform: uppercase;
}

.footer-logo { width: 120px; margin-bottom: 15px; display: inline-block; }

.social-links { display: flex; justify-content: center; gap: 15px; margin-top: 15px; }
.social-btn {
    display: flex; justify-content: center; align-items: center;
    width: 45px; height: 45px;
    border: 2px solid #fff; color: #fff;
    text-decoration: none; font-weight: bold;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: #ccc; text-decoration: none; font-size: 1rem; display: block; padding: 5px; }

.footer-form { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.footer-form input { padding: 15px; border: 2px solid #fff; background: transparent; color: #fff; text-align: center; }
.footer-form button { padding: 15px; background-color: #FFCA28; border: none; color: #000; font-weight: 900; text-transform: uppercase; }

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #333;
    font-size: 0.75rem;
    color: #666;
    background: #000;
}

/* FOOTER DESKTOP */
@media (min-width: 900px) {
    .footer-container {
        flex-direction: row; 
        justify-content: space-between; 
        align-items: flex-start; 
        text-align: left; 
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .footer-col { width: auto; max-width: none; flex: 1; }
    .social-links { justify-content: flex-start; }
    .footer-links a { display: inline-block; padding: 0; }
    .footer-form input { text-align: left; }
}



.tienda {
display: flex;
    justify-content: center; /* ¡ESTO CENTRA LOS BOTONES! */
    flex-wrap: wrap; 
}
/* --- FILTROS DE TIENDA --- */
.filter-menu {
    display: flex;
    justify-content: center; /* ¡ESTO CENTRA LOS BOTONES! */
    flex-wrap: wrap; 
    gap: 15px;
    margin-bottom: 40px;
    margin-top: 40px;
    padding: 0 20px;
    width: 100%; /* Asegura que ocupe todo el ancho para poder centrar */
}

.filter-btn {
    background: transpa#ffffff;
    border: 2px solid #000;
    padding: 10px 20px;
    font-family: 'Bowlby One', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    
    /* Sombrita dura retro */
    box-shadow: 4px 4px 0px #ccc; 
}

/* Efecto al pasar el mouse */
.filter-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #00CFFF; /* Sombra Cyan */
    background-color: #000;
    color: #fff;
}

/* Botón ACTIVO (El seleccionado) */
.filter-btn.active {
    background-color: #FFCA28; /* Amarillo */
    box-shadow: 4px 4px 0px #000;
    transform: translate(0, 0); /* Se ve presionado */
}

/* --- ESPACIADO DE LA TIENDA --- */
.products-grid {
    display: grid;
    /* Ajustamos a 280px para que quepa mejor en celulares pequeños */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    
    /* MÁRGENES AUTOMÁTICOS (Centra el bloque en la página) */
    margin: 60px auto 100px auto;
    
    /* ALINEACIÓN DE COLUMNAS (Centra las tarjetas dentro del bloque) */
    justify-content: center; /* <--- ¡ESTA ES LA CLAVE QUE FALTABA! */
    justify-items: center;   /* Asegura que la tarjeta esté centrada en su celda */
}


/* --- ESTILOS PÁGINA CARRITO --- */
.cart-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #000;
    margin-bottom: 15px;
    padding: 10px;
    box-shadow: 4px 4px 0 #ddd;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #000;
    margin-right: 15px;
}

.item-info {
    flex-grow: 1;
}

.item-info h4 {
    font-family: 'Bowlby One', sans-serif;
    margin: 0;
    font-size: 1.1rem;
}

.item-info p {
    font-family: 'Space Mono', monospace;
    margin: 5px 0 0;
    color: #666;
}

.btn-remove {
    background: #FF0040;
    color: white;
    border: 2px solid #000;
    font-family: 'Space Mono', monospace;
    cursor: pointer;
    padding: 5px 10px;
    font-weight: bold;
}
/* --- ESTADO AGOTADO (SOLD OUT) --- */
.product-card.agotado {
    opacity: 0.6; /* Se ve medio transparente */
    pointer-events: none; /* No se le puede dar click a nada */
    position: relative;
}

/* El sello rojo de AGOTADO encima de la foto */
.product-card.agotado::after {
    content: "SOLD OUT";
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    
    font-family: 'Bowlby One', sans-serif;
    font-size: 2rem;
    color: #FF0040;
    border: 4px solid #FF0040;
    padding: 10px 20px;
    background: rgba(0,0,0,0.8);
    z-index: 10;
}

/* Cambiar el botón para que se vea desactivado */
.product-card.agotado .add-btn {
    background-color: #555;
    color: #999;
    border-color: #555;
    box-shadow: none;
    cursor: not-allowed;
}

/* MENSAJE DE CARRITO VACÍO */
.empty-msg {
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    color: #888;
    padding: 40px;
}

/* 1. EL CONTENEDOR (Para alinearlos juntos) */
/* =========================================
   INTERACCIÓN DE TARJETAS (CORREGIDO)
   ========================================= */

/* 1. EL CONTENEDOR DE BOTONES (Oculto por defecto) */
.action-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    width: 100%;
    
    /* ESTADO INICIAL: OCULTO Y SIN OCUPAR ESPACIO VISUAL EXTRA */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px); /* Un poquito más abajo */
    transition: all 0.3s ease;
    height: 0; /* Para que la tarjeta se vea compacta */
    overflow: hidden;
}

/* 2. COMPORTAMIENTO EN COMPUTADORA (Hover) */
@media (hover: hover) {
    .product-card:hover {
        transform: translate(-4px, -4px);
        box-shadow: 12px 12px 0px #00CFFF;
        z-index: 10; /* Que se ponga encima de las otras */
    }

    /* Cuando paso el mouse, muestro los botones */
    .product-card:hover .action-row {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        height: auto; /* Recupera su altura natural */
        margin-top: 15px;
        overflow: visible;
    }
}

/* 3. COMPORTAMIENTO EN MÓVIL (Clase .active) */
.product-card.active {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px #00CFFF;
    z-index: 10;
}

/* Cuando tiene la clase .active (por JS), muestro los botones */
.product-card.active .action-row {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    height: auto;
    margin-top: 15px;
    overflow: visible;
}

/* 2. ESTILO DEL SELECTOR (La caja de la izquierda) */
.retro-select {
    appearance: none; /* Quita el estilo feo por defecto */
    -webkit-appearance: none;
    
    background-color: #fff; /* Blanco para diferenciarlo del botón */
    border: 2px solid #000;
    
    font-family: 'Space Mono', monospace; /* Fuente técnica */
    font-weight: bold;
    font-size: 0.9rem;
    color: #000;
    
    width: 80px; /* Ancho fijo */
    height: 45px; /* Altura para igualar al botón */
    text-align: center;
    border-radius: 0; /* Bordes cuadrados */
    cursor: pointer;
    
    /* Sombra dura (estilo Funk It) */
    box-shadow: 4px 4px 0px #000;
    transition: all 0.2s ease;
    
    /* Flechita personalizada (triángulo negro) */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 10px;
    padding-right: 15px; /* Espacio para no tapar la flecha */
}

/* Efecto al tocar el selector */
.retro-select:focus, .retro-select:hover {
    outline: none;
    background-color: #FFCA28; /* Se pone amarillo al elegir */
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #00CFFF; /* Sombra Cyan */
}

/* Etiqueta de Talla en el Carrito */
.size-display {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px !important;
}

.size-badge {
    display: inline-block;
    color: #000;
    background-color: #FFCA28; /* Amarillo Funk It */
    padding: 2px 8px;
    font-weight: bold;
    border: 2px solid #000;
    margin-left: 5px;
    box-shadow: 2px 2px 0px #000; /* Sombrita pequeña */
}

/* =========================================
   ESTILOS GUÍA DE TALLAS (MODAL)
   ========================================= */

/* El botón en la tienda */
.size-guide-trigger {
    text-align: right;
    max-width: 1200px;
    margin: 0 auto 20px auto; /* Separado de la grilla */
    padding: 0 20px;
}

.btn-text-icon {
    background: none;
    border: none;
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    color: #FFCA28; /* O blanco si tu fondo es oscuro */
    transition: color 0.2s;
     text-shadow: 2px 2px 0px #FF0040;
     font-size: 1.1rem;    /* Un poco más grande */
     font-weight: 900;     /* Mucho más "gordo" (negrita extra) */
    letter-spacing: 1px;  /* Separa las letras para leer mejor */

}

.btn-text-icon:hover {
    color: #FF0040; /* Magenta al pasar el mouse */
}

/* El fondo oscuro (Overlay) */
.modal-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8); /* Fondo negro semitransparente */
    backdrop-filter: blur(5px); /* Efecto borroso moderno */
    justify-content: center;
    align-items: center;
}

/* La caja del contenido */
.modal-content {
    background-color: #fff;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 4px solid #000;
    box-shadow: 10px 10px 0px #FFCA28; /* Sombra sólida amarilla */
    text-align: center;
    animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Botón cerrar (X) */
.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #000;
}

.close-modal:hover { color: #FF0040; }

.retro-title-small {
    font-family: 'Bowlby One', sans-serif;
    font-size: 2rem;
    margin: 0 0 10px 0;
    color: #000;
}

.modal-subtitle {
    font-family: 'Space Mono', monospace;
    color: #666;
    margin-bottom: 20px;
}

/* TABLA RETRO */
.retro-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Space Mono', monospace;
    border: 2px solid #000;
}

.retro-table th, .retro-table td {
    border: 1px solid #000;
    padding: 10px;
    text-align: center;
}

.retro-table th {
    background-color: #000;
    color: #FFCA28; /* Letras amarillas en fondo negro */
    font-weight: bold;
}

.retro-table tr:nth-child(even) {
    background-color: #f2f2f2; /* Rayas estilo cebra */
}

.modal-footer {
    margin-top: 20px;
    font-size: 0.8rem;
    font-family: 'Space Mono', monospace;
    color: #FF0040;
}

/* =========================================
   BOTÓN VACIAR CARRITO (ESTILO FUNK IT)
   ========================================= */
.btn-danger {
    background-color: #000; /* Fondo Negro Rudo */
    color: #FF0040; /* Texto Rojo Magenta Neón */
    font-family: 'Bowlby One', sans-serif;
    font-size: 1.1rem; /* Un pelín más grande */
    text-transform: uppercase;
    border: 3px solid #FF0040; /* Borde Rojo */
    padding: 12px 25px;
    cursor: pointer;
    
    /* Sombra sólida roja para que resalte del fondo */
    box-shadow: 5px 5px 0px #FF0040; 
    
    transition: all 0.2s ease;
    letter-spacing: 1px; /* Un poco de aire entre letras */
}

/* AL PASAR EL MOUSE (HOVER) */
.btn-danger:hover {
    background-color: #FF0040; /* ¡PUM! Se invierte a rojo */
    color: #000; /* Texto negro */
    border-color: #000; /* Borde negro */
    
    transform: translate(-3px, -3px);
    /* La sombra se vuelve negra y más profunda */
    box-shadow: 8px 8px 0px #000; 
}

/* AL HACER CLIC (ACTIVE) */
.btn-danger:active {
    transform: translate(3px, 3px); /* Efecto de presionar botón arcade */
    box-shadow: 2px 2px 0px #000;
}
/* =========================================
   FIX: JUEGO COMPLETO EN PANTALLA (MÓVIL)
   ========================================= */

@media (max-width: 768px) {

    /* 1. CONTENEDOR PRINCIPAL: Que ocupe la pantalla pero sin scroll */
    .arcade-section {
        padding: 10px 0; /* Quitamos relleno extra */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: auto; /* Dejar que se ajuste */
    }

    .arcade-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 2. EL CANVAS (PANTALLA DE JUEGO): Lo hacemos flexible */
    canvas#gameCanvas {
        width: auto !important; /* Que el ancho se ajuste solo */
        max-width: 95%;         /* Que no se salga por los lados */
        
        height: auto !important; /* Mantiene la proporción */
        max-height: 50vh;        /* ¡CLAVE! Nunca más alto que la mitad de la pantalla */
        
        object-fit: contain;
        border: 2px solid #00CFFF;
        box-shadow: 0 0 10px rgba(0, 207, 255, 0.2); /* Sombra más suave para ganar espacio */
    }

    /* 3. LOS CONTROLES (FLECHAS): Más pequeños y compactos */
    .mobile-controls-container {
        margin-top: 10px;      /* Menos separación con el juego */
        gap: 5px;              /* Botones más juntos */
        transform: scale(0.8); /* Truco rápido: Los hacemos un 20% más chicos de golpe */
    }

    /* Si usas clases específicas para los botones, ajústalas aquí */
    .control-btn {
        width: 50px;       /* Antes eran de 60px o más */
        height: 50px;
        font-size: 1.2rem; /* Flechas más chicas */
    }
    
    /* El botón central (Pause/Start) */
    .btn-hero {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    /* 4. TEXTOS: Reducir tamaño para ganar espacio */
    .arcade-title {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }
    
    .game-instructions {
        font-size: 0.75rem; /* Letra pequeñita */
        margin-bottom: 5px;
    }
}

/* =========================================
   SECCIÓN tienda 
   ========================================= */
.tienda-remix {
    background-image: url('assets/images/fondo-tienda.webp'); 
    background-size: cover;
    background-position: center;
    background-color: #000;
    position: relative;
    width: 100%; /* Asegura ancho total */
    
    /* MÓVIL: Padding solo arriba. Abajo es 0. */
    padding-top: 60px; 
    padding-bottom: 0; 
    
}

.tienda-container {
    max-width: 1200px;
    margin-left: 0;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
}

/* --- 1. CONTENIDO (Texto) --- */
.tienda-content {
    order: 1; 
    width: 100%;
    padding: 0 20px 40px 20px; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;  
    z-index: 2;
}


.tienda-content h2 {
    font-family: 'Bowlby One', sans-serif;
    font-size: 2rem;
    line-height: 1.2;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-shadow: 4px 4px 0px #000;
}

.tienda-content h3{
    font-family: 'Space Mono', monospace;
    color: #FFCA28; /* Amarillo */
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0px #000;
}


.tienda-content .highlight { color: #00CFFF; }

.btn-hero {
    display: inline-block;
    background-color: #FFCA28;
    color: #000;
    font-family: 'Bowlby One', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-decoration: none;
    border: 3px solid #000;
    padding: 15px 30px;
    box-shadow: 6px 6px 0px #000;
    transition: all 0.2s ease;
}

/* --- 2. IMAGEN (Modelo) --- */
.tienda-visual {
    order: 2; 
    width: 100%;
    display: flex;
    justify-content: left;
    align-items: flex-end; /* Pegado al piso */
    line-height: 0; /* Elimina espacio fantasma debajo de la imagen */
}

.tienda-visual img {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: block; 
    filter: drop-shadow(0px -5px 10px rgba(0,0,0,0.5));
   
}

/* --- VERSIÓN ESCRITORIO --- */
@media (min-width: 900px) {
    .tienda-remix {
        padding: 80px 0px 0 0px; 
    }

    .tienda-container {
        flex-direction: row; 
        align-items: flex-end; 
        justify-content: space-between;
        min-height: 600px; /* CAMBIO CLAVE: min-height en vez de height 100vh */
    }

    .tienda-visual {
        order: 1; 
        width: 50%;
        
        justify-content: flex-start;
    }

    .tienda-visual img { width: 100%; max-width: 500px; }

    .tienda-content {
        order: 2; 
        width: 50%;
        align-items: flex-end; 
        text-align: right;
        padding-bottom: 100px;
    }

    .tienda-content h2 { font-size: 3rem; 
    margin-top: -80%;
    }
    

}
    
    
/* =========================================
   SECCIÓN CARRITO (HERO) - FIXED
   ========================================= */

.carrito-remix {
    background-image: url('assets/images/fondo-cart.webp'); 
    background-size: cover;
    background-position: center;
    background-color: #000;
    position: relative;
    width: 100%;
    
    /* MÓVIL: Le damos espacio arriba para el header */
    padding-top: 30px; 
    padding-bottom: 0; /* Sin espacio abajo para que el modelo toque el borde */
    overflow: hidden; /* Evita scroll lateral si la imagen es muy grande */
}

.carrito-container {
    max-width: 1200px;
    margin: 0 auto; /* Centrado automático */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra todo en el eje vertical */
}

/* --- 1. CONTENIDO (Texto) --- */
.carrito-content {
    order: 1; /* Texto primero en móvil */
    width: 100%;
    padding: 0 20px 20px 20px; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;  
    z-index: 2;
}

.carrito-content h2 {
    font-family: 'Bowlby One', sans-serif;
    font-size: 2.5rem; /* Ajustado para móvil */
    line-height: 1.2;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 4px 4px 0px #000;
}

.carrito-content h3 {
    font-family: 'Space Mono', monospace;
    color: #FFCA28; /* Amarillo Funk It */
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0px;
    text-shadow: 2px 2px 0px #000;
}

/* --- 2. IMAGEN (Modelo) --- */
.carrito-visual {
    order: 2; /* Imagen segunda en móvil */
    width: 100%;
    display: flex;
    justify-content: center; /* Centrado en móvil */
    align-items: flex-end; 
    
}

.carrito-visual img {
    width: 70%; /* En móvil que se vea grande */
    max-width: 400px;
    height: auto;
    display: block; 
    
  
}


/* --- VERSIÓN ESCRITORIO (PC) --- */
@media (min-width: 900px) {
    
    .carrito-remix {
        padding-top: 0;
        /* Usamos altura de pantalla completa o mínima alta */
        min-height: 90vh; 
        display: flex;
        align-items: flex-end; /* Alinea todo el contenedor al fondo */
        justify-content: center;
    }

    .carrito-container {
        flex-direction: row; /* Lado a lado */
        align-items: flex-end; /* ¡CLAVE! Alinea los pies del modelo y el texto abajo */
        justify-content: center;
        width: 100%;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* IMAGEN A LA IZQUIERDA */
    .carrito-visual {
        order: 1; 
        width: 45%; 
        justify-content: flex-start; /* Pega la imagen hacia el centro */
        margin-right: 20px;
        margin-top: 0;
        margin-bottom: 0; /* Reset */
    }

    .carrito-visual img { 
        width: auto; 
        max-width: 100%; 
        height: 100vh; /* Altura controlada para que no sea gigante */
        object-fit: contain;
        object-position: bottom; /* Se asegura que empiece desde abajo */
    }

    /* TEXTO A LA DERECHA */
    .carrito-content {
        order: 2; 
        width: 45%;
        align-items: flex-start; /* Alinea el bloque de texto a la izquierda (pegado a la foto) */
        text-align: left; /* Texto alineado a la izquierda */
        
        /* Esto sube el texto para que no quede en el piso piso, sino a media altura */
        padding-bottom: 10vh; 
        padding-left: 0;
    }

    .carrito-content h2 { 
        font-size: 4rem; /* Título grande */
        margin-top: 0; /* Quitamos el margen negativo problemático */
        margin-bottom: 10px;
        line-height: 1.2;
    }
    
    .carrito-content h3 {
        font-size: 1.5rem;
    }
}
/* =========================================
   SECCIÓN MANIFIESTO (ESTILO BRUTALISTA)
   ========================================= */

.manifesto-section {
    background-color: #000;
    color: #fff;
    padding: 80px 20px;
    border-top: 4px solid #FFCA28; /* Línea amarilla arriba */
    border-bottom: 4px solid #00CFFF; /* Línea cyan abajo */
    position: relative;
    overflow: hidden;
}

.manifesto-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- 1. TÍTULO CON EFECTO GLITCH --- */
.manifesto-header {
    text-align: left;
    border-left: 5px solid #FFCA28;
    padding-left: 20px;
}

.glitch-title {
    font-family: 'Bowlby One', sans-serif;
    font-size: 3rem;
    line-height: 1;
    color: #fff;
    position: relative;
    text-transform: uppercase;
    margin: 0;
}

/* El efecto de sombra desplazada (Cyan y Magenta) */
.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.glitch-title::before {
    left: 2px;
    text-shadow: -2px 0 #FF0040; /* Rojo/Magenta */
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch-title::after {
    left: -2px;
    text-shadow: -2px 0 #00CFFF; /* Cyan */
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

.separator-line {
    width: 100px;
    height: 5px;
    background-color: #fff;
    margin: 20px 0;
}

.manifesto-tagline {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    color: #ccc;
    font-weight: bold;
    letter-spacing: 1px;
}

/* --- 2. CUERPO DEL TEXTO --- */
.manifesto-body {
    font-family: 'Space Mono', monospace; /* Estilo terminal */
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
}

.manifesto-lead {
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.4;
}

.highlight-cyan { color: #00CFFF; text-shadow: 1px 1px 0 #fff; }
.highlight-yellow { color: #FFCA28; text-shadow: 1px 1px 0 #fff; }

/* La caja destacada (tipo cita) */
.manifesto-box {
    background-color: #111;
    border: 2px solid #00CFFF;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 6px 6px 0px #00CFFF; /* Sombra dura Cyan */
    transform: rotate(-1deg); /* Ligera rotación rebelde */
    transition: transform 0.3s ease;
}

.manifesto-box:hover {
    transform: rotate(0deg) scale(1.02);
}

.manifesto-box h3 {
    font-family: 'Bowlby One', sans-serif;
    color: #fff;
    margin-top: 0;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.final-statement {
    font-family: 'Bowlby One', sans-serif;
    font-size: 2rem;
    text-align: right;
    margin-top: 40px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #fff;
}

.highlight-text {
    color: #FFCA28;
    text-decoration: underline;
    text-decoration-thickness: 4px;
}

/* --- ANIMACIÓN GLITCH --- */
@keyframes glitch-anim {
    0% { clip: rect(12px, 9999px, 5px, 0); }
    20% { clip: rect(98px, 9999px, 86px, 0); }
    40% { clip: rect(33px, 9999px, 15px, 0); }
    60% { clip: rect(6px, 9999px, 89px, 0); }
    80% { clip: rect(54px, 9999px, 100px, 0); }
    100% { clip: rect(22px, 9999px, 45px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(22px, 9999px, 3px, 0); }
    40% { clip: rect(89px, 9999px, 66px, 0); }
    60% { clip: rect(10px, 9999px, 32px, 0); }
    80% { clip: rect(44px, 9999px, 77px, 0); }
    100% { clip: rect(3px, 9999px, 99px, 0); }
}

/* --- VERSIÓN ESCRITORIO --- */
@media (min-width: 900px) {
    .manifesto-container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 80px;
    }

    .manifesto-header {
        width: 40%;
        position: sticky; /* El título se queda fijo mientras scrolleas el texto */
        top: 100px; 
    }

    .glitch-title { font-size: 5rem; }

    .manifesto-body {
        width: 55%;
        font-size: 1.1rem;
    }
    
    .final-statement { font-size: 3rem; }
}

/* --- ESTILO PARA LA FRASE "NO ES PARA TODOS" --- */
.manifesto-exclusive {
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 4px solid #FF0040; /* Línea roja/magenta agresiva */
    padding-left: 20px;
    background: linear-gradient(90deg, rgba(255,0,64,0.1) 0%, rgba(0,0,0,0) 100%);
}

.exclusive-text {
    font-family: 'Bowlby One', sans-serif;
    font-size: 1.8rem;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.exclusive-subtext {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: #ccc;
    font-style: italic;
}

/* Ajuste para escritorio */
@media (min-width: 900px) {
    .exclusive-text {
        font-size: 2.2rem;
    }
}

/* =========================================
   PÁGINA LEGALES / INFO CENTER
   ========================================= */

.legal-page {
    background-color: #000;
    color: #fff;
    /* Ajuste para el menú fijo arriba */
    scroll-behavior: smooth;
}

/* 1. HEADER TIPOGRÁFICO */
.legal-header {
    padding: 120px 20px 40px 20px;
    text-align: center;
    background-image: radial-gradient(circle at center, #222 0%, #000 70%);
}

.legal-header h1 {
    font-family: 'Bowlby One', sans-serif;
    font-size: 3.5rem;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
    /* Efecto de texto hueco opcional */
    -webkit-text-stroke: 2px #fff; 
    color: transparent; 
}

.legal-subtitle {
    font-family: 'Space Mono', monospace;
    color: #FFCA28;
    margin-top: 10px;
    letter-spacing: 2px;
}

/* 2. BARRA DE NAVEGACIÓN PEGAJOSA (STICKY) */
.legal-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px;
    background: #111;
    position:relative;
    top: 80px; /* Ajusta según la altura de tu Header principal */
    z-index: 90;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.legal-tab {
    font-family: 'Space Mono', monospace;
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid #fff;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.legal-tab:hover {
    background: #fff;
    color: #000;
}

/* 3. ESTRUCTURA DE SECCIONES */
.legal-container {
    max-width: 800px; /* Más angosto para leer mejor */
    margin: 0 auto;
    padding: 40px 20px;
}

.legal-section {
    margin-bottom: 80px; /* Buen espacio entre temas */
    scroll-margin-top: 150px; /* Para que el sticky header no tape el título al hacer clic */
}

.section-title-box {
    border-bottom: 4px solid #fff;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.section-title-box h2 {
    font-family: 'Bowlby One', sans-serif;
    font-size: 2rem;
    margin: 0;
    text-transform: uppercase;
}

/* Colores de bordes */
.cyan-border { border-color: #00CFFF; color: #00CFFF; }
.yellow-border { border-color: #FFCA28; color: #FFCA28; }
.magenta-border { border-color: #FF0040; color: #FF0040; }
.white-border { border-color: #fff; color: #fff; }

/* 4. CONTENIDO DE TEXTO */
.legal-content p, .legal-content li {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
}

.legal-content strong { color: #fff; }

/* Caja de Alerta */
.alert-box {
    background: #222;
    border-left: 4px solid #FFCA28;
    padding: 15px;
    color: #ddd;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
}

/* Lista Retro */
.retro-list {
    list-style: none;
    padding: 0;
}
.retro-list li::before {
    content: ">> ";
    color: #FF0040;
    font-weight: bold;
}

/* 5. ACORDEÓN (FAQ) */
.faq-item {
    background: #111;
    margin-bottom: 10px;
    border: 1px solid #333;
}

.faq-item summary {
    padding: 15px;
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* Quita el triángulo por defecto */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Flechita personalizada */
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: #FFCA28;
}

.faq-item[open] summary::after {
    content: '-';
    color: #FF0040;
}

.faq-answer {
    padding: 0 15px 15px 15px;
    color: #ccc;
    border-top: 1px dashed #333;
}

/* 6. CAJA TERMINAL (Términos) */
.terminal-box {
    background: #000;
    border: 2px solid #333;
    padding: 20px;
    height: 300px; /* Altura fija */
    overflow-y: auto; /* Scroll interno */
    font-family: 'Courier New', Courier, monospace;
}

.code-text {
    color: #00ff00; /* Verde matrix */
    font-size: 0.9rem;
}