/* ==================================================================== */
/* 1. 🎨 VARIABLES GLOBALES Y PALETA */
/* ==================================================================== */
:root {
    --intro-duration: 250vh; 
    --primary-brand-color: #B5734C; /* Color de acento: Crema/Marrón */
    --primary-glow-color: rgba(181, 115, 76, 0.7);
    --secondary-brand-color: #363636; 
    --background-dark: #1A1A1A; 
    --background-light: #F8F8F8; 
    --text-dark: #000000; 
    --text-light: #FFFFFF; 
    --header-bg: rgba(26, 26, 26, 0.4); 
    --font-serif: 'Cormorant Garamond', serif; 
    --font-sans: 'Inter', sans-serif;
    
    /* Variables de Animación Añadidas */
    --transition-speed: 0.6s;
    --timing-ease: cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Springy */
    --delay: 0s; /* Usado por JS para escalonamiento */
}


/* ==================================================================== */
/* 2. 🧱 BASE Y RESET */
/* ==================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans); 
    line-height: 1.6;
    background-color: var(--background-dark); 
    color: var(--text-light); 
    overflow-x: hidden; 
    scroll-behavior: smooth; 
}

h1, h2, h3 {
    font-family: var(--font-serif); 
    color: var(--text-light); 
    text-transform: none; 
    letter-spacing: 0.5px; 
    font-weight: 600;
}

/* ==================================================================== */
/* 3. 🛠️ ELEMENTOS DE UTILIDAD Y TIPOGRAFÍA DE ACENTO */
/* ==================================================================== */

.container {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 35px;
}

.text-center {
    text-align: center;
}

.logo {
    font-family: var(--font-serif); 
}

.pre-title {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--primary-brand-color); 
    letter-spacing: 4px; 
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 500;
}

.dot-accent {
    color: var(--primary-brand-color); 
}


/* ==================================================================== */
/* 4. 🧭 COMPONENTES ESTRUCTURALES */
/* ==================================================================== */

/* --- Header --- */
.main-header {
    background: var(--header-bg); 
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.9); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
}

.main-header .logo {
    font-size: 2.3rem; 
    font-weight: 700;
    color: var(--text-light); 
    letter-spacing: 1px;
}

.main-header nav ul {
    list-style: none;
    display: flex;
}

.main-header nav ul li {
    margin-left: 40px;
}

.main-header nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500; 
    font-size: 0.95rem; 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.main-header nav ul li a:hover {
    color: var(--primary-brand-color); 
    border-bottom: 2px solid var(--primary-brand-color);
}

/* Botón CTA en el NAV (Desktop) */
.main-header nav ul li a.cta-nav {
    background-color: var(--primary-brand-color); 
    color: var(--text-dark); 
    border: none; 
    
    /* Asegurar que se muestre como un botón sólido y cubra el fondo */
    display: block; 
    width: calc(100% - 40px);
    text-align: center;
    padding: 15px 20px; 
    margin: 15px 20px; 
    
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); 
    
    /* Asegurar que se superponga al texto de fondo */
    position: relative; 
    z-index: 10;
}

.main-header nav ul li a.cta-nav:hover {
    background-color: var(--primary-brand-color); 
    color: var(--text-dark); 
    box-shadow: 0 0 20px var(--primary-glow-color); 
}

/* Botón de Hamburguesa (Solo visible en móvil) */
.menu-toggle {
    display: none; 
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    z-index: 1001;
    background: none; 
    border: none;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--background-dark);
    color: #999; 
    padding: 40px 0;
    text-align: center;
    font-size: 0.95rem;
    border-top: 5px solid var(--primary-brand-color); 
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 35px;
}

.main-footer .social-links a {
    color: var(--primary-brand-color); 
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.2rem; 
}

.main-footer .social-links a:hover {
    color: var(--text-light); 
    text-shadow: 0 0 10px var(--primary-glow-color); 
}

/* --- Separadores Skewed --- */
.divider {
    width: 100%;
    height: 10vh; 
    position: relative;
    z-index: 10;
}

.skew-top {
    background-color: var(--background-dark); 
    transform: skewY(2deg); 
    margin-top: -5vh; 
}

.skew-bottom {
    background-color: var(--background-dark); 
    transform: skewY(-2deg); 
    margin-bottom: -5vh; 
}


/* ==================================================================== */
/* 5. 🏗️ SECCIONES DE CONTENIDO */
/* ==================================================================== */

/* --- Sección Intro (SCROLL ANIMATION) --- */
.intro-section {
    height: var(--intro-duration); 
    position: relative;
    background-color: var(--background-dark); 
    background-image: url('Imagenes/Fondo.jpg'); 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat;
    background-attachment: scroll; 
}
@media (min-width: 1200px) {
    .intro-section {
        /* Carga la versión de alta resolución para PC */
        background-image: url('Imagenes/Fondo.jpg');
    }
}

/* ➡️ Para pantallas de alta densidad de píxeles (Retina, HiDPI) - Mejora la nitidez */
@media 
(-webkit-min-device-pixel-ratio: 2), 
(min-resolution: 192dpi) {
    .intro-section {
        /* Se puede usar la misma imagen "Fondo-grande.jpg" para Retina */
        background-image: url('Imagenes/Fondo.jpg');
    }
}

.intro-section::before {
    content: none; 
}

.sticky-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: none; 
    z-index: 2; 
}

/* OCULTAR COMPLETAMENTE LA IMAGEN DEL PRODUCTO */
#productImage {
    display: none; 
}

.text-group {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: none;
    z-index: 50; 
}

.text-overlay {
    position: absolute;
    max-width: 90%; 
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out; 
    transform: perspective(1000px) translateZ(50px);
}

.text-overlay.active {
    opacity: 1;
    transform: perspective(1000px) translateZ(0);
}

.text-overlay h1 {
    font-size: 9rem; 
    font-weight: 700;
    color: var(--primary-brand-color); 
    line-height: 0.9;
    letter-spacing: -4px; 
    text-shadow: 0 0 20px var(--primary-glow-color);
}

.text-overlay h2 {
    font-size: 5rem; 
    font-weight: 600;
    color: var(--text-light); 
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.text-overlay .subtitle-intro, 
.text-overlay .detail-text {
    font-family: var(--font-sans); 
    font-size: 1.6rem; 
    font-weight: 300;
    color: var(--text-light); 
    margin-top: 15px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

/* --- Sección Bento Box: Experiencia Aura --- */
.bento-section {
    padding: 100px 0;
    background-color: var(--background-dark); 
}

.bento-section header h2 {
    color: var(--text-light); 
    margin-bottom: 10px;
    font-size: 3rem; 
    letter-spacing: 0.5px;
}

.bento-section header p {
    color: #A0A0A0; 
    font-size: 1.1rem;
    margin-bottom: 70px;
}

.bento-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    margin-top: 40px;
}

.bento-box {
    background-color: #222222; 
    border-radius: 18px; 
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8); 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    min-height: 200px; 
    color: var(--text-light);
    border: 1px solid rgba(181, 115, 76, 0.3); 
    overflow: hidden;
}

.bento-box:hover {
    transform: translateY(-10px); 
    box-shadow: 0 20px 50px var(--primary-glow-color);
}

.large-focus {
    grid-column: span 2; 
    
    /* 1. Imagen de Fondo y Propiedades */
    background-image: url('Imagenes/Intro.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    
    /* A) Para que la imagen se vea COMPLETA y se ajuste al contenedor: */
    background-size:80%; 
    
    /* Propiedades de Texto y Contenedor */
    color: var(--text-light); 
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    min-height: 450px; 
    
    /* B) ¡CAMBIO CLAVE! Aumentamos el padding para crear un "marco" y 
       hacer la imagen de fondo más pequeña respecto al contenedor. */
    padding: 100px; /* <--- VALOR AUMENTADO */
    
    /* Estilos de Layout */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    
    box-shadow: none; 
    border: 1px solid rgba(181, 115, 76, 0.2);
    overflow: hidden; 
    position: relative;
}

.large-focus > * {
    z-index: 10; 
    position: relative;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.large-focus:hover > *,
.large-focus:focus > * {
/* Oculta completamente el texto */
    opacity: 0;
    /* Efecto sutil de desplazamiento hacia arriba o abajo */
    transform: translateY(10px);
}

.large-cta {
    grid-column: 2 / span 2; 
    background-color: var(--primary-brand-color); 
    color: var(--text-dark); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 30px;
}

.bento-box .bento-link {
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    width: fit-content;
    text-decoration: none;
    cursor: pointer;

    background-color: var(--primary-brand-color); 
    color: var(--text-dark); 
    border: 2px solid var(--primary-brand-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); 

    padding: 10px 25px;
    font-family: var(--font-sans); 
    font-weight: 700; 
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 5px; 
    margin-top: 15px; 
    transition: all 0.3s ease;
}

.bento-box .bento-link:hover {
    color: var(--text-dark); 
    border-color: var(--primary-brand-color); 
    transform: scale(1.02); 
    box-shadow: 0 6px 20px var(--primary-glow-color); 
}

/* --- Sección Detalles (Fondo Claro) --- */
.content-detail {
    min-height: 80vh; 
    background-color: var(--background-light); 
    padding: 120px 0;
    color: var(--text-dark); 
}

.content-detail h2 {
    color: var(--text-dark);
    font-size: 3rem; 
    margin-bottom: 20px;
    font-weight: 700;
}

.feature-card h3 {
    color: var(--text-dark); 
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 70px 0;
}

.feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    border-top: 5px solid var(--primary-brand-color); 
}

.feature-card:hover { 
    box-shadow: 0 10px 30px rgba(181, 115, 76, 0.4); 
    transform: translateY(-8px); 
}

/* --- SECCIÓN DE RESEÑAS (reviews-section) --- */
.reviews-section {
    padding: 100px 0;
    background-color: var(--background-dark); 
    text-align: center;
    color: var(--text-light);
}

.reviews-section h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.subtitle-reviews {
    font-size: 1.1rem;
    color: #A0A0A0; 
    margin-bottom: 50px;
}

/* --- Estilos del CARRUSEL --- */
.reviews-section .container {
    position: relative; 
    overflow: hidden; 
    padding-top: 20px;
    padding-bottom: 40px;
    transition: box-shadow 0.5s ease-out;
}
.reviews-section .container:hover {
    box-shadow: 0 0 40px var(--primary-glow-color); /* Suaviza el brillo alrededor del carrusel */
}

.carousel-item {
    flex: 0 0 calc(33.333% - 20px); 
    max-width: calc(33.333% - 20px);
    scroll-snap-align: start; 
}


.carousel-container {
    display: flex;
    overflow-x: scroll;
    -ms-overflow-style: none; 
    scrollbar-width: none; 
    
    flex-wrap: nowrap; 
    gap: 30px;
    padding-bottom: 20px; 
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: -20px;
}

.carousel-container::-webkit-scrollbar {
    display: none; 
}

/* --- Estilos de las Tarjetas (Ajustados para ser más pequeños y SIN HOVER) --- */
.review-card {
    flex-shrink: 0; 
    
    /* Ancho fijo más pequeño */
    width: 220px; 
    
    background-color: #222222; 
    padding: 25px; 
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Eliminamos la transición de transform para el hover */
    border: 1px solid rgba(181, 115, 76, 0.3); 
}
.review-card:hover {
    
    box-shadow: 0 0 20px var(--primary-glow-color); /* Brillo con el color de acento */
}


.review-card h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.4rem; 
    margin-top: 5px; 
    margin-bottom: 10px; 
    color: var(--primary-brand-color); 
}

.review-card p {
    font-size: 0.95rem; 
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 15px;
}

.reviewer-info {
    font-style: italic;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #333;
    padding-top: 8px;
    margin-top: 10px;
}

/* -------------------------------------- */
/* ESTILOS DE NAVEGACIÓN (BOTONES DE FLECHA) */
/* -------------------------------------- */

.carousel-navigation {
    position: absolute;
    top: 50%; 
    width: calc(100% - 70px); 
    max-width: 1200px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    pointer-events: none; 
}

.nav-btn {
    position: absolute;
    top: 0;
    background: rgba(26, 26, 26, 0.7); 
    color: var(--text-light);
    border: 1px solid var(--primary-brand-color);
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
    pointer-events: auto; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.nav-btn:hover {
    background: var(--primary-brand-color);
    color: var(--text-dark);
}

.prev-btn {
    left: -40px; 
}

.next-btn {
    right: -40px; 
}


/* --- Sección Guía de Tallas (Size Guide) --- */
.size-guide-section {
    background-color: var(--background-light); 
    color: var(--text-dark); 
    padding: 120px 0;
    text-align: center;
}
.size-guide-section h2, 
.size-guide-section h3 {
    color: var(--text-dark);
}

/* --- Tabla de Tallas --- */
.size-table-container {
    max-width: 800px;
    margin: 40px auto;
    background-color: #fff; 
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(181, 115, 76, 0.3);
    overflow: hidden; 
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.size-table th, 
.size-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: var(--text-dark);
    font-weight: 400;
}

.size-table thead {
    background-color: var(--primary-brand-color); 
    color: var(--text-dark); 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.size-table tbody tr td:first-child {
    font-weight: 600;
    color: var(--primary-brand-color); 
}

/* --- Final CTA Section --- */
.cta-final-section {
    background-color: var(--background-dark); 
    padding: 150px 0;
    text-align: center;
    color: var(--text-light);
}

.cta-final-section h2 {
    font-size: 6.5rem; 
    color: var(--primary-brand-color); 
    margin-bottom: 25px;
    letter-spacing: -2px;
}


/* ==================================================================== */
/* 6. 🔘 ESTILOS DE BOTONES CTA MODERNOS */
/* ==================================================================== */

.cta-button {
    display: block; 
    width: fit-content;
    padding: 15px 45px;
    text-decoration: none;
    font-family: var(--font-sans); 
    font-weight: 600;
    border-radius: 5px; 
    transition: all 0.3s ease;
    letter-spacing: 1.5px;
    font-size: 1.1rem;
    margin-top: 40px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* ESTILO CTA-SCROLL */
.cta-scroll {
    display: inline-block;
    padding: 15px 30px; 
    text-decoration: none;
    font-family: var(--font-sans); 
    font-weight: 600;
    border-radius: 5px; 
    transition: all 0.3s ease;
    letter-spacing: 1.5px;
    font-size: 1rem;
    margin-top: 30px; 
    text-transform: uppercase;
    
    background-color: var(--primary-brand-color); 
    color: var(--text-light); 
    border: 2px solid var(--primary-brand-color);
    box-shadow: 0 0 15px var(--primary-glow-color);
    pointer-events: all;
}

.cta-scroll:hover {
    background-color: var(--primary-brand-color); 
    border-color: var(--primary-brand-color);
    transform: scale(1.05); 
    box-shadow: 0 0 25px var(--primary-glow-color);
}


/* ESTILO PRIMARY (Ajustado para el botón final "COMPRAR LA COLECCIÓN") */
.cta-button.primary {
    background-color: var(--primary-brand-color); 
    color: var(--text-dark); 
    border: none; 
    padding: 18px 50px; 
    font-size: 1.3rem; 
    font-weight: 700; 
    border-radius: 8px; 
    
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.7); 
}

.cta-button.primary:hover {
    background-color: #C6855B; 
    color: var(--text-dark); 
    transform: translateY(-2px); 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9), 0 0 15px var(--primary-glow-color); 
}

/* ESTILO INVERSO (Para Primary en fondo Primary, ej: .large-cta) */
.large-cta .cta-button.primary {
    background-color: var(--text-light); 
    color: var(--primary-brand-color); 
    border: 2px solid var(--text-light);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.5);
}

.large-cta .cta-button.primary:hover {
    background-color: var(--text-light); 
    color: var(--primary-brand-color); 
    border-color: var(--text-light);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.7);
    transform: scale(1.01);
}

/* ESTILO SECUNDARIO */
.cta-button.secondary {
    background-color: var(--primary-brand-color); 
    color: var(--text-dark); 
    border: 2px solid var(--primary-brand-color); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); 
}

.cta-button.secondary:hover {
    background-color: var(--primary-brand-color); 
    color: var(--text-dark); 
    border-color: var(--primary-brand-color); 
    transform: scale(1.01);
    box-shadow: 0 6px 20px var(--primary-glow-color); 
}


.cta-button.centered {
    margin-left: auto;
    margin-right: auto;
}

.cta-button.large {
    font-size: 1.5rem;
    padding: 20px 60px;
}


/* --- Animaciones --- */
.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-15px);}
    60% {transform: translateY(-7px);}
}


/* ==================================================================== */
/* 8. 💡 CLASES DE INTERACCIÓN Y ANIMACIÓN DE ENTRADA (Controlado por JS) */
/* ==================================================================== */

/* -------------------------------------- */
/* 8.1 FADE UP / ANIMACIÓN ESCALONADA */
/* -------------------------------------- */

/* Estado inicial (invisible y desplazado) */
.pre-fade-up,
.stagger-item, 
.bento-box, 
.feature-card {
    opacity: 0;
    transform: translateY(40px);
    /* Aplicar la transición con el delay establecido por JS */
    transition: opacity var(--transition-speed) var(--timing-ease) var(--delay), 
                transform var(--transition-speed) var(--timing-ease) var(--delay),
                box-shadow 0.4s ease; /* Mantener la transición de sombra */
}

/* Estado activo (en vista) */
.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------- */
/* 8.2 REVELACIÓN DE TEXTO (Línea por Línea) */
/* -------------------------------------- */

.reveal-text-title {
    overflow: hidden; /* Oculta las líneas que están fuera de lugar */
}

.reveal-line {
    overflow: hidden;
    display: block; 
}

.reveal-line span {
    display: block;
    transform: translateY(100%); /* Texto oculto debajo */
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1); /* Ease Out Expo */
}

.reveal-line.is-revealed span {
    transform: translateY(0); /* Texto revelado */
    /* El transition-delay se gestionará con JS para el escalonamiento */
}

/* -------------------------------------- */
/* 8.3 CURSOR PERSONALIZADO */
/* -------------------------------------- */

/* El cursor personalizado es un DIV fijo con estilos */
#custom-cursor {
    position: fixed;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--primary-brand-color);
    pointer-events: none; /* Crucial para permitir clics en elementos subyacentes */
    z-index: 9999;
    mix-blend-mode: exclusion; /* Un efecto que hace que el cursor sea visible sobre cualquier color */
    transform: translate3d(-50%, -50%, 0); /* Centra el cursor en su posición */
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    opacity: 0.8;
}

#custom-cursor.is-active {
    width: 50px;
    height: 50px;
    opacity: 0.5;
    background-color: var(--text-light); /* Cambia de color cuando está activo (hover) */
}

/* Ocultar cursor nativo en elementos clave */
a, button, .menu-toggle, .review-card, .bento-box {
    cursor: none; 
}


/* ==================================================================== */
/* 9. 📱 RESPONSIVE (MEDIA QUERIES) */
/* ==================================================================== */

/* ------------------------------------------------ */
/* Pantallas medianas (Tablets/Desktops pequeños) */
/* ------------------------------------------------ */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
    
    /* Intro */
    .text-overlay h1 {
        font-size: 6rem; 
    }
    
    /* Layout Bento */
    .bento-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
 
    .large-cta {
        grid-column: span 2; 
    }
    .large-focus {
        /* Permite que la imagen se ajuste más cuando hay menos espacio horizontal */
        background-size: 95%; 
        padding: 60px;
    }
    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    /* Carrusel de Reseñas (Tablet: 2 por vista) */
    .carousel-item {
        flex: 0 0 calc(50% - 15px); 
        max-width: calc(50% - 15px);
    }
    /* Asegurar que la tarjeta mantenga el tamaño pequeño en tablet */
    .review-card {
        width: 250px; /* Un poco más ancho en tablet */
    }

    .prev-btn {
        left: -15px;
    }
    .next-btn {
        right: -15px;
    }
}


/* ------------------------------------------------ */
/* Pantallas pequeñas (Móviles) - CORRECCIÓN DEL MENÚ */
/* ------------------------------------------------ */
@media (max-width: 768px) {
    .large-focus {
        /* A) AJUSTES PARA MÓVIL: */
        min-height: 300px; /* Altura más adecuada para móvil */
        
        /* Ocupa el ancho completo */
        grid-column: span 1; 
        
        /* Reducir el padding drásticamente para que el contenido se ajuste */
        padding: 20px; 
        
        /* HACER QUE LA IMAGEN DE FONDO CUBRA TODO EL ESPACIO */
        background-size: cover; /* CLAVE: Usa 'cover' para que la imagen ocupe todo el contenedor. */
        background-position: center top; /* CLAVE: Enfocar la parte superior de los trajes */
    }
    /* Añadir capa oscura en móvil para mejor contraste del texto en large-focus */
    .large-focus::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5); /* Oscurecimiento ligero para mejor contraste */
        z-index: 5;
        border-radius: 18px; /* Coincide con el radio de la caja */
    }
    .large-focus > * {
        z-index: 10; 
        position: relative; 
    }
    /* TEXTO: Reducir tamaño de fuente para móviles */
    .large-focus h2 {
        font-size: 1.5rem; 
    }
    .large-focus p {
        font-size: 1rem; 
    }
    
    /* Header & Navegación Móvil */
    .main-header {
        z-index: 1000;
        padding: 15px 30px; 
        width: 100%; 
    }
    
    
    .menu-toggle {
        display: block; 
        z-index: 1001; 
    }
    
    .main-header nav {
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background: rgba(26, 26, 26, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
        
        /* 1. CLAVE: INICIALMENTE OCULTA, SIN ALTURA FIJA */
        height: 0; 
        overflow: hidden;
        transition: height 0.4s ease-in-out; 
        z-index: 999; 
    }
    
    /* ✅ ALTURA AUMENTADA */
    .main-header nav.is-open {
        height: auto; 
        /* 3. CLAVE: Limitar la altura al viewport y permitir el scroll interno */
        max-height: calc(100vh - 80px); /* 100vh menos la altura del header (aprox 80px) */
        overflow-y: auto; /* Permite el scroll si el menú es más grande que la pantalla */
    }
    
    .main-header nav ul {
        flex-direction: column; 
        padding: 10px 0;
        margin: 0; 
    }
    
    .main-header nav ul li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-header nav ul li a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        border-bottom: none;
    }
    
    /* ✅ ESTILO DEL BOTÓN CTA DENTRO DEL MENÚ DESPLEGADO (Móvil) */
    .main-header nav ul li a.cta-nav {
        /* PROPIEDADES CRÍTICAS PARA EL BOTÓN */
        background-color: var(--primary-brand-color); 
        color: var(--text-dark); 
        border: none; 
        
        /* Asegurar que se muestre como un botón sólido y cubra el fondo */
        display: block; 
        width: calc(100% - 40px);
        text-align: center;
        padding: 15px 20px; 
        margin: 15px 20px; 
        
        border-radius: 5px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); 
        
        /* Asegurar que se superponga al texto de fondo */
        position: relative; 
        z-index: 10; 
    }
    
    /* ❌ Eliminar el borde inferior del LI que contiene el botón */
    .main-header nav ul li:last-child {
        border-bottom: none;
    }
    
    /* Intro */
    .text-overlay h1 {
        font-size: 3.5rem; 
        letter-spacing: -1px;
    }
    .text-overlay h2 {
        font-size: 2.5rem;
    }
    .text-overlay .subtitle-intro, 
    .text-overlay .detail-text {
        font-size: 1.2rem;
    }
    
    /* CTA Final */
    .cta-final-section h2 {
        font-size: 3rem;
        letter-spacing: 0;
    }
    
    /* Carrusel de Reseñas (Móvil: 1 por vista) */
    .carousel-item {
        flex: 0 0 calc(100% - 30px); 
        max-width: calc(100% - 30px);
    }
    .carousel-navigation, .nav-btn {
        display: none;
    }
    .reviews-section .container {
        padding: 0 15px; 
    }
    
    /* Layout Bento & Features (Apilado vertical) */
    .bento-grid-layout,
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .bento-box, .large-focus, .large-cta {
        grid-column: span 1 !important; 
        min-height: auto;
    }
    
    /* Separadores (Anulación de Skewing) */
    .skew-top, .skew-bottom {
        transform: skewY(0deg); 
        height: 5vh; 
        margin: 0; 
    }
    .content-detail {
        padding: 60px 0;
    }

    /* Botones CTA (Ancho Completo) */
    .cta-button {
        width: 100%;
        padding: 15px 20px;
        font-size: 1.1rem; 
    }
    .cta-scroll {
        width: fit-content; 
    }

    /* Responsive para el botón .bento-link */
    .bento-box .bento-link {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    /* Footer */
    .main-footer .container {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Tabla de Tallas (Permite scroll) */
    .size-table-container {
        overflow-x: auto; 
    }
    .size-table {
        min-width: 500px;
    }
    .size-table th, 
    .size-table td {
        padding: 10px;
        font-size: 0.85rem;
    }
}



/* ------------------------------------------------ */
/* Móviles muy pequeños */
/* ------------------------------------------------ */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    /* Intro - Tipografía */
    .text-overlay h1 {
        font-size: 2rem; 
        line-height: 1.1;
    }
    .text-overlay h2 {
        font-size: 1.5rem; 
    }
    .text-overlay .subtitle-intro, 
    .text-overlay .detail-text {
        font-size: 0.9rem;
    }
    /* CTA Final */
    .cta-final-section h2 {
        font-size: 2rem;
    }
}