/* ================================================================
   INFINYSTUDIO - PREMIUM VISUAL ARCHITECTURE
   Color Palette: Green (#00674f), Deep Black (#0b0b0b), Silver Gray
   ================================================================
*/

:root {
    /* Colores Principales */
    --primary-green: #00674f;
    --primary-green-rgb: 0, 103, 79;
    --dark-bg: #0b0b0b;
    --black-pure: #000000;
    --gray-light: #e0e0e0;
    --gray-text: #a0a0a0;
    --white: #ffffff;
    
    /* Tipografía */
    --font-premium: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Transiciones */
    --smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black-pure);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 30px;
}

/* --- REUSABLE PREMIUM COMPONENTS --- */
.gold-line {
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--primary-green);
    margin-bottom: 20px;
}

.premium-title {
    font-family: var(--font-premium);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--primary-green);
    margin-bottom: 10px;
}

/* ================================================================
   SECTION: GLOBAL BUTTON SYSTEM (INFINYSTUDIO)
   Focus: Clean Code, Premium Spacing & Green/Black Synergy
   ================================================================
*/

/* Contenedor de acciones */
.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

/* Base Estructural Única */
.btn-infiny-primary, 
.btn-infiny-outline {
    display: inline-block;
    padding: 16px 40px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Variación: Primario (Verde Protagónico) */
.btn-infiny-primary {
    background-color: var(--primary-green);
    color: var(--white);
    border: 1px solid var(--primary-green);
}

.btn-infiny-primary:hover {
    background-color: transparent;
    color: var(--primary-green);
    transform: translateY(-3px);
}

/* Variación: Outline (Elegancia Minimalista) */
.btn-infiny-outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-infiny-outline:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background-color: rgba(0, 103, 79, 0.05);
    transform: translateY(-3px);
}

/* Optimización para Dispositivos Móviles */
@media (max-width: 580px) {
    .hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-infiny-primary, 
    .btn-infiny-outline {
        width: 100%;
    }
}

/* ================================================================
   SECTION: HEADER & NAVIGATION SYSTEM (INFINYSTUDIO)
   Focus: Immersive Logo, High Specificity & Zero !important
   ================================================================
*/

/* --- ESTRUCTURA BASE DEL HEADER --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Padding reducido para dar máximo espacio al logo grande */
    padding: 10px 0; 
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

/* Estado al hacer Scroll (activado por JS) */
.header-active {
    padding: 8px 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 103, 79, 0.3);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- LOGO: TAMAÑO MAXIMIZADO --- */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    /* Altura imponente para visibilidad premium */
    height: 90px; 
    width: auto;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    image-rendering: -webkit-optimize-contrast;
}

/* Reducción fluida en scroll */
.header-active .logo-img {
    height: 65px;
}

.logo-text {
    font-family: var(--font-premium);
    font-size: 1.8rem;
    color: var(--white);
    letter-spacing: 2px;
    margin-left: 15px;
}

.logo-text span {
    color: var(--primary-green);
    font-weight: 300;
}

/* --- NAVEGACIÓN DESKTOP --- */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu ul li a {
    position: relative;
    text-decoration: none;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: opacity 0.3s ease, color 0.3s ease;
    opacity: 0.8;
}

/* Hover para links normales (Excluyendo el botón de reserva) */
.nav-menu ul li a:not(.btn-nav-reserve):hover {
    color: var(--primary-green);
    opacity: 1;
}

/* Subrayado animado para links normales */
.nav-menu ul li a:not(.btn-nav-reserve)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-menu ul li a:not(.btn-nav-reserve):hover::after {
    width: 100%;
}

/* --- BOTÓN RESERVA (SÓLIDO Y ESTÁTICO) --- */
/* Alta especificidad para evitar usar !important */
.nav-menu ul li a.btn-nav-reserve {
    background-color: var(--primary-green);
    color: var(--white);
    border: 1px solid var(--primary-green);
    padding: 12px 28px;
    opacity: 1;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-menu ul li a.btn-nav-reserve:hover {
    /* Mantenemos el color intacto, solo efecto de elevación */
    transform: translateY(-2px);
    background-color: var(--primary-green);
    color: var(--white);
}

/* --- MENU TOGGLE (MOBILE) --- */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 28px;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
}

/* --- RESPONSIVE OPTIMIZATION --- */

@media (max-width: 992px) {
    .logo-img { height: 70px; }
    
    .menu-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--dark-bg);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active { right: 0; }

    .nav-menu ul {
        flex-direction: column;
        gap: 40px;
    }

    .nav-menu ul li a { font-size: 1.1rem; }
    
    /* Animación de Hamburguesa a X */
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 480px) {
    .logo-img { height: 55px; }
    .logo-text { display: none; } /* Prioridad total a la imagen del logo */
}

/* ================================================================
   SECTION: HERO WITH VISUAL PROTAGONISM (INFINYSTUDIO)
   Focus: High-Definition Art Integration & Layout Balance
   ================================================================
*/

.hero-infiny {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--black-pure);
    position: relative;
    overflow: hidden;
    padding-top: 100px; /* Compensación para header fijo */
}

/* --- INTEGRACIÓN DE VIDEO BACKGROUND (OPTIMIZADO MÓVIL) --- */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Oculto por defecto en escritorio */
    display: none; 
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado premium para legibilidad */
    background: linear-gradient(
        90deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 2;
}

.hero-ambient-glow {
    position: absolute;
    top: 50%;
    left: 20%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    z-index: 3;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

/* --- CONTENIDO --- */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 5;
}

/* --- ESTILOS DE LA IMAGEN (COLUMNA DERECHA) --- */
.hero-visual-art {
    display: flex;
    justify-content: center;
    align-items: center;
}

.art-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    animation: floating 6s ease-in-out infinite;
}

.main-mandala {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 103, 110, 0.4));
    image-rendering: auto;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- ESTILOS DE TEXTO (COLUMNA IZQUIERDA) --- */
.hero-content {
    max-width: 600px;
}

.hero-main-title {
    font-family: var(--font-premium);
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin: 20px 0;
    color: var(--white);
}

.highlight-text {
    display: block;
    color: var(--primary-green);
    font-style: italic;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 300;
}

.hero-cta-group {
    display: flex;
    gap: 25px;
}

/* --- RESPONSIVO --- */
@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
        margin: 0 auto;
    }
    
    .hero-visual-art {
        order: 2;
        margin-top: 40px;
    }
    
    .art-container {
        max-width: 300px;
    }
    
    .hero-cta-group {
        justify-content: center;
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.6);
    }
}

/* --- REGLA ESPECÍFICA PARA ACTIVAR VIDEO SOLO EN MÓVIL --- */
@media (max-width: 480px) {
    .hero-video-bg {
        display: none; /* Se activa el contenedor del video */
    }
}

/* ================================================================
   SECTION: ABOUT / NOSOTROS (INFINYSTUDIO)
   Focus: Proportional Image Logic & Zero Distorsion
   ================================================================
*/

.section-about {
    padding: 120px 0;
    background-color: var(--black-pure);
    color: var(--white);
    overflow: hidden; /* Evita scrolls accidentales */
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center; /* Centra verticalmente el texto con la imagen */
    gap: 80px;
}

/* --- COMPORTAMIENTO DE IMAGEN (SIN CORTES NI DEFORMACIÓN) --- */
.single-image-container {
    width: 100%;
    /* ELIMINADO: height: 700px; - Ya no forzamos la altura */
    height: auto; /* El contenedor se adapta a la imagen */
    display: flex;
    justify-content: center; /* Centra horizontalmente si la imagen es estrecha */
    align-items: center;     /* Centra verticalmente si es necesario */
    
    /* Opcional: Un borde sutil para enmarcarla en el fondo negro */
    border: 1px solid rgba(0, 103, 79, 0.15); 
    background-color: rgba(255, 255, 255, 0.02); /* Un tono muy suave detrás */
}

.about-img {
    width: 100%;       /* Ocupa todo el ancho del contenedor */
    max-width: 100%;   /* No se estira más allá de su tamaño real */
    height: auto;      /* Mantiene la proporción original (IMPORTANTE) */
    
    /* CLAVE: Si por alguna razón forzaras altura en el padre,
       esto asegura que no se corte ni se deforme */
    object-fit: contain; 
    
    display: block;    /* Elimina espacios extra debajo de la imagen */
    filter: brightness(0.9); /* Integración suave con el fondo oscuro */
}

/* Resto del CSS del texto (se mantiene igual para consistencia) */
.about-main-title {
    font-family: var(--font-premium);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 400;
}

.highlight-green {
    color: var(--primary-green);
    font-style: italic;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-text);
    margin-bottom: 50px;
}

/* Features */
.about-features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.feature-number {
    display: block;
    color: var(--primary-green);
    font-family: var(--font-premium);
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
}

/* RESPONSIVO */
@media (max-width: 992px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .about-content { text-align: center; }
    .about-text { margin-bottom: 40px; }
    .about-features { justify-content: space-around; }
}

/* ================================================================
   SECTION: SERVICES FLEX SYSTEM (INFINYSTUDIO) - RESTORED
   Focus: 3-Column Layout, Original Proportions, Simplified Content
   ================================================================
*/

.services {
    padding: 120px 0;
    background-color: var(--black-pure);
    background-image: 
        linear-gradient(to bottom, var(--black-pure) 0%, rgba(0,0,0,0.8) 20%, rgba(0,0,0,0.8) 80%, var(--black-pure) 100%), 
        url('../img/gal.png');
    background-repeat: no-repeat;
    background-position: center center;
    
    /* --- CONFIGURACIÓN DESKTOP --- */
    background-attachment: fixed;
    background-size: cover; 
    /* Ajuste de nitidez para pantallas grandes */
    image-rendering: -webkit-optimize-contrast;
    overflow: hidden; 
}

.services-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
}

/* --- TARJETA (Restaurada al diseño original) --- */
.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Volvemos a tu diseño original: 33.333% y flex-grow: 0 para que no crezcan */
    flex: 0 1 calc(33.333% - 20px); 
    min-width: 300px; 
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 103, 79, 0.4);
}

.service-img-box {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center; 
    align-items: center;    
    background-color: rgba(255, 255, 255, 0.01);
}

.service-img {
    width: 100%;       
    max-width: 100%;   
    height: auto;      
    object-fit: contain; 
    display: block;    
    
    transition: transform 0.6s ease;
}

/* --- INFORMACIÓN --- */
.service-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.service-tag {
    color: var(--primary-green);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Elemento para palabras como "Premium" o "A Medida" */
.service-highlight {
    color: var(--white);
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.6;
}

.service-title {
    font-family: var(--font-premium);
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 15px;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 300;
    text-align: justify;
}

/* --- FOOTER (Sin Precio / Sin Tiempo) --- */
.service-footer {
    margin-top: auto; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.service-footer-label {
    color: var(--white);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.btn-service-reserve {
    background-color: var(--primary-green);
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.btn-service-reserve:hover {
    transform: translateY(-2px);
}

/* --- RESPONSIVO --- */
@media (max-width: 1100px) {
    .service-card { flex: 0 1 calc(50% - 20px); }
    
    /* Mantenemos nitidez en tablets */
    .services {
        background-size: cover;
        image-rendering: -webkit-optimize-contrast;
    }
}

@media (max-width: 768px) {
    .service-card { 
        flex: 0 1 100%; 
        min-width: 0; /* Blindaje móvil */
    }

    /* AJUSTE ANTI-PIXELADO PARA MÓVIL */
    .services {
        /* Cambiamos a 'scroll' porque 'fixed' en móvil reduce la resolución por rendimiento */
        background-attachment: scroll; 
        
        /* 'auto 100%' asegura que la imagen use su altura original de 1080px 
           sin estirarse al ancho del dispositivo, manteniendo la nitidez cristalina */
        background-size: 600px auto; 
        
        /* Centramos para que el corazón de la imagen siempre sea visible */
        background-position: center center;
        
        /* Optimizamos el renderizado para pantallas pequeñas */
        image-rendering: auto;
    }
}

/**************************************************************
 * SECCIÓN STAFF - TEASER (HEREDANDO ESTILO SERVICIOS)
 **************************************************************/

.section-staff {
    padding: 120px 0;
    background-color: var(--black-pure);
    background-image: 
        linear-gradient(to bottom, var(--black-pure) 0%, rgba(0,0,0,0.8) 20%, rgba(0,0,0,0.8) 80%, var(--black-pure) 100%), 
        url('../img/gal.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover; 
    image-rendering: -webkit-optimize-contrast;
    overflow: hidden; 
}

.staff-teaser-container {
    max-width: 1100px;
    margin: 60px auto 0;
    display: flex;
    justify-content: center;
}

.staff-teaser-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Efecto de elevación solicitado */
.staff-teaser-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 103, 79, 0.4);
}

.staff-teaser-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.01);
}

.staff-teaser-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) brightness(0.8);
    transition: transform 0.6s ease;
}

.staff-teaser-card:hover .staff-teaser-image img {
    transform: scale(1.05);
}

.staff-teaser-content {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.staff-teaser-title {
    font-family: var(--font-premium);
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 20px;
}

.staff-teaser-description {
    font-size: 0.95rem;
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 35px;
    font-weight: 300;
    text-align: justify;
}

/* BOTÓN: COLOR SÓLIDO Y ELEVACIÓN (ESTILO SERVICIOS) */
.btn-staff-reserve {
    background-color: var(--primary-green);
    color: var(--white);
    text-decoration: none;
    padding: 12px 30px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-staff-reserve:hover {
    /* No cambia el color, solo eleva */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* --- RESPONSIVO --- */
@media (max-width: 992px) {
    .staff-teaser-card {
        grid-template-columns: 1fr;
    }
    
    .staff-teaser-image {
        min-height: 300px;
    }

    .staff-teaser-content {
        padding: 40px 30px;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section-staff {
        background-attachment: scroll; 
        background-size: 600px auto; 
        background-position: center center;
        image-rendering: auto;
    }
}

/* ================================================================
   SECTION: GALLERY SLIDER (INFINYSTUDIO) - OPTIMIZED
   Focus: Touch-Friendly, Proportional Images & Horizontal Flow
   ================================================================
*/

.gallery {
    padding: 120px 0;
    background-color: var(--black-pure);
    background-image: 
        linear-gradient(to bottom, var(--black-pure) 0%, rgba(0,0,0,0.8) 20%, rgba(0,0,0,0.8) 80%, var(--black-pure) 100%), 
        url('../img/gal.png');
    background-repeat: no-repeat;
    background-position: center center;
    
    /* --- CONFIGURACIÓN DESKTOP --- */
    background-attachment: fixed;
    background-size: cover; 
    /* Ajuste de nitidez para pantallas grandes */
    image-rendering: -webkit-optimize-contrast;
    overflow: hidden; 
}

.gallery .categories-intro {
    margin-bottom: 60px;
}

.gallery-slider-wrapper {
    width: 100%;
    overflow-x: auto;
    cursor: grab;
    padding-bottom: 30px;
    scrollbar-width: none; 
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    user-select: none;
    /* Mejora el desplazamiento en iOS */
    -webkit-overflow-scrolling: touch; 
}

.gallery-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.gallery-slider-wrapper.active {
    cursor: grabbing;
}

.gallery-track {
    display: flex;
    gap: 40px;
    align-items: center;
    /* AJUSTE: Usamos un padding que no empuja el layout global */
    padding: 0 5vw; 
    width: max-content;
    box-sizing: content-box; /* Asegura que el padding se sume al track y no al viewport */
}

/* --- ITEM DE GALERÍA --- */
.gallery-item {
    flex: 0 0 auto;
    position: relative;
    /* Aseguramos que el item nunca sea más ancho que la pantalla */
    max-width: 80vw; 
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.5s ease;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    filter: blur(2px);
    opacity: 0.6;
}

.gallery-item.is-focused {
    filter: blur(0);
    opacity: 1;
    transform: translateY(-10px);
    border-color: var(--primary-green);
    z-index: 2;
}

.gallery-img {
    height: 500px;
    width: auto;
    max-width: 100%; /* Vital para que la imagen no desborde su contenedor */
    display: block;
    object-fit: contain;
    filter: grayscale(30%) brightness(0.8);
    transition: all 0.6s ease;
}

.gallery-item.is-focused .gallery-img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.02);
}

/* --- CAPTION --- */
.gallery-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--white);
    font-family: var(--font-premium);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-caption,
.gallery-item.is-focused .gallery-caption {
    opacity: 1;
}

/* --- INDICADOR DE DESPLAZAMIENTO --- */
.gallery-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    opacity: 0.5;
}

.swipe-line {
    width: 60px;
    height: 1px;
    background: var(--primary-green);
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.swipe-line::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 100%;
    background: var(--white);
    animation: swipeAnim 2s infinite linear;
}

@keyframes swipeAnim {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* --- RESPONSIVO OPTIMIZADO --- */
@media (max-width: 768px) {
    .gallery { 
        padding: 80px 0; 
        /* AJUSTE ANTI-PIXELADO: Recuperamos resolución real en móvil */
        background-attachment: scroll;
        background-size: 600px auto;
        background-position: center center;
        background-repeat: no-repeat;
        image-rendering: auto;
    }
    
    .gallery .categories-intro {
        margin-bottom: 40px;
    }

    .gallery-img {
        height: 350px; /* Reducción de altura en móvil */
    }
    
    .gallery-track {
        /* AJUSTE: Padding reducido para móvil para evitar el salto inicial */
        padding: 0 20px; 
        gap: 20px;
    }

    .gallery-item {
        max-width: 85vw; /* Permitimos un poco más de ancho relativo */
    }

    .gallery-item.is-focused {
        transform: translateY(-5px);
    }
}

/* --- NAVEGACIÓN --- */
.gallery-relative {
    position: relative;
    width: 100%;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.gallery-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.gallery-btn:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .gallery-nav {
        display: none; /* En tablets y móviles el drag/touch es prioritario */
    }
    
    /* Mantenemos nitidez en tablets antes del salto a móvil */
    .gallery {
        background-size: cover;
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ================================================================
   SECTION: LOCATION (DARK PREMIUM MODE)
   Focus: Asymmetric Layout, Natural Map & Golden Accents
   ================================================================
*/

.location {
    padding: 120px 0;
    background-color: var(--black-pure);
    background-image: 
        linear-gradient(to bottom, var(--black-pure) 0%, rgba(0,0,0,0.8) 20%, rgba(0,0,0,0.8) 80%, var(--black-pure) 100%), 
        url('../img/gal.png');
    background-repeat: no-repeat;
    background-position: center center;
    
    /* --- CONFIGURACIÓN DESKTOP --- */
    background-attachment: fixed;
    background-size: cover; 
    /* Ajuste de nitidez para pantallas grandes */
    image-rendering: -webkit-optimize-contrast;
    /* Bloqueo de seguridad */
    width: 100%;
    overflow: hidden;
}

/* Espaciado relativo para el título (coherencia con Galería) */
.location .categories-intro {
    margin-bottom: 60px;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; 
    gap: 60px;
    align-items: center;
    /* AJUSTE: Asegura que el grid no se expanda más allá del contenedor */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* --- LADO DE INFORMACIÓN --- */
.location-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-item i {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-top: 5px;
}

.info-item h3 {
    color: var(--white);
    font-family: var(--font-premium);
    font-size: 1.2rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.info-item p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Botón de ubicación personalizado */
.btn-location {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-green); 
    border: 1px solid var(--primary-green);
    color: var(--white); 
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 20px;
}

.btn-location:hover {
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* --- LADO DEL MAPA --- */
.location-map {
    position: relative;
    height: 500px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* AJUSTE: Forzamos a que el contenedor del mapa respete el ancho */
    width: 100%;
    max-width: 100%;
}

/* Selección optimizada para el mapa de Waze */
.location .location-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    /* AJUSTE: Evita que el iframe intente ser más grande que su padre */
    max-width: 100%;
}

.map-container {
    height: 100%;
    width: 100%;
    max-width: 100%;
}

/* Mapa con color natural y sin filtros */
.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: none; 
    opacity: 1;    
    display: block;
}

/* --- RESPONSIVO --- */
@media (max-width: 992px) {
    .location {
        /* AJUSTE ANTI-PIXELADO: Mantenemos la nitidez en tablets y móviles */
        background-attachment: scroll;
        background-size: 600px auto;
        background-position: center center;
        background-repeat: no-repeat;
        image-rendering: auto;
    }

    .location .categories-intro {
        margin-bottom: 40px;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px; /* Reducimos el gap en móvil para mayor seguridad */
    }

    .location-map {
        height: 400px;
    }
}

/* ================================================================
   SECTION: MAIN FOOTER (3 COLUMNS PREMIUM) - OPTIMIZED
   Focus: Brand Identity, Social Presence & Direct Contact
   ================================================================
*/

.main-footer {
    background-color: var(--black-pure);
    padding: 100px 0 40px; 
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Blindaje de seguridad contra scroll horizontal */
    overflow: hidden; 
    position: relative;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr; 
    gap: 80px;
    margin-bottom: 80px;
    width: 100%;
}

/* --- COLUMNA 1: LOGO --- */
.footer-logo-link {
    display: inline-block;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.footer-logo-link:hover {
    transform: scale(1.02);
}

.footer-logo-img {
    height: 85px; 
    width: auto;
    display: block;
    object-fit: contain;
    max-width: 100%; /* Blindaje para que el logo no desborde */
}

.brand-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    max-width: 320px;
}

/* --- ESTILO GENERAL TÍTULOS --- */
.footer-column h3 {
    font-family: var(--font-premium);
    font-size: 1.1rem;
    margin-bottom: 35px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    position: relative;
}

/* --- COLUMNA 2: REDES --- */
.footer-social .social-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-social .social-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.footer-social .social-links a i {
    color: var(--primary-green);
    font-size: 1.2rem;
    width: 25px;
    flex-shrink: 0; /* Evita deformación de iconos */
}

.footer-social .social-links a:hover {
    color: var(--white);
    transform: translateX(8px);
}

/* --- COLUMNA 3: CONTACTO --- */
.footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-contact ul li {
    margin-bottom: 22px;
}

.footer-contact ul li a {
    display: flex;
    gap: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.4;
    text-decoration: none;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.footer-contact ul li a i {
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-top: 3px; 
    flex-shrink: 0; /* Blindaje para iconos de contacto */
}

.footer-contact ul li a:hover {
    color: var(--white);
}

/* --- FOOTER BOTTOM --- */
.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    flex-wrap: wrap; /* Permite que fluya en móvil */
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.3);
    margin-left: 25px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-green);
}

/* --- RESPONSIVO OPTIMIZADO --- */
@media (max-width: 992px) {
    .main-footer { padding: 80px 0 40px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .footer-logo-img {
        margin: 0 auto 30px;
        height: 75px; 
    }

    .brand-text {
        margin: 0 auto;
        max-width: 100%;
    }

    .footer-social .social-links a,
    .footer-contact ul li a {
        justify-content: center;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal a {
        margin: 0 12px;
    }
}

@media (max-width: 480px) {
    .footer-grid { gap: 40px; }
    .footer-column h3 { margin-bottom: 25px; }
}

/* ================================================================
   WIDGET: WHATSAPP FLOATING BUTTON (PULSE EFFECT)
   ================================================================
*/

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    /* AJUSTE: Evita que el hijo (el pulso) afecte el flujo externo */
    pointer-events: auto;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
}

/* Efecto de Pulso */
.pulse-ring {
    position: absolute;
    /* AJUSTE: Aseguramos que el centro sea exacto */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    /* AJUSTE: 'will-change' ayuda al navegador a optimizar la animación sin mover el layout */
    will-change: transform, opacity;
    animation: pulse-animation 2s infinite;
    z-index: -1;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        /* AJUSTE: Reducimos ligeramente el escala a 1.5 para dar más margen de seguridad */
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        /* AJUSTE: Aumentamos un poco el margen derecho para que el pulso 1.5x no toque el borde */
        right: 25px; 
        font-size: 25px;
    }
}

/**************************************************************
 * SECCIÓN FAQ - DISEÑO PREMIUM INFINY (UNIFICADO)
 **************************************************************/

.section-faq {
    padding: 120px 0;
    background-color: var(--black-pure);
    background-image: 
        linear-gradient(to bottom, var(--black-pure) 0%, rgba(0,0,0,0.8) 20%, rgba(0,0,0,0.8) 80%, var(--black-pure) 100%), 
        url('../img/gal.png');
    background-repeat: no-repeat;
    background-position: center center;
    
    /* --- CONFIGURACIÓN DESKTOP (Sincronizada con Servicios) --- */
    background-attachment: fixed;
    background-size: cover; 
    image-rendering: -webkit-optimize-contrast;
    overflow: hidden; 
}

.faq-wrapper {
    max-width: 900px;
    margin: 50px auto 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    padding: 20px;
}

.faq-item {
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    color: var(--primary-green);
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question i {
    font-size: 0.8rem;
    transition: transform 0.4s ease;
    color: var(--primary-green);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Ajustado para contenido extenso */
    opacity: 1;
}

.faq-content {
    padding: 0 20px 25px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* --- AJUSTE MÓVIL (Heredado de Servicios) --- */
@media (max-width: 768px) {
    .section-faq {
        background-attachment: scroll; 
        background-size: 600px auto; 
        background-position: center center;
        image-rendering: auto;
    }
    
    .faq-wrapper {
        margin: 30px 15px 0;
        padding: 10px;
    }

    .faq-question {
        font-size: 1rem;
        padding: 20px 15px;
    }
}

/* --- SELECTOR DE IDIOMA (Mantenido) --- */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 15px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--white);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    opacity: 0.6;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-flag {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn:hover, .lang-btn.active {
    opacity: 1;
    color: var(--primary-green);
}

.lang-btn:hover .lang-flag, .lang-btn.active .lang-flag {
    filter: grayscale(0%);
    border-color: var(--primary-green);
}

@media (max-width: 768px) {
    .lang-selector {
        margin: 20px 0;
        justify-content: center;
        width: 100%;
    }
    .lang-btn {
        font-size: 1.1rem;
        padding: 10px;
        gap: 12px;
    }
    .lang-flag {
        width: 22px;
        height: 22px;
    }
}

/**************************************************************
 * MODAL PROMOCIONAL - INFINY STUDIO (COMPACTO)
 **************************************************************/

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    width: 85%;
    max-width: 400px;
    height: 500px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--black-pure);
}

.modal-img-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7);
}

.modal-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 100%;
    text-align: center;
}

/* --- CAMBIO: EFECTO SOLO PARA EL TEXTO (NO CUBRE EL BOTÓN) --- */
.modal-body {
    /* Gradiente tipo "cinta": transparente -> oscuro -> transparente */
    background: linear-gradient(
        to bottom, 
        transparent 0%, 
        rgba(0,0,0,0.8) 20%, 
        rgba(0,0,0,0.8) 80%, 
        transparent 100%
    );
    padding: 20px 10px;
    margin-bottom: 15px; /* Espacio para que el botón quede fuera del fondo oscuro */
}

.promo-title {
    font-family: var(--font-premium);
    font-size: 3rem;
    color: var(--primary-green);
    margin: 5px 0;
    line-height: 1;
}

/* --- ESTILO ACTUALIZADO PARA TEXTO AMPLIADO --- */
.promo-text {
    color: var(--white);
    font-size: 0.95rem;
    line-height: 1.6;
    letter-spacing: 1px;
    text-transform: none; 
    margin-bottom: 0; /* Margen manejado por el contenedor padre */
    opacity: 0.9;
    padding: 0 10px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(0,0,0,0.8);
}

/* BOTÓN: COLOR SÓLIDO Y ELEVACIÓN */
.btn-promo {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    font-family: var(--font-premium);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-promo:hover {
    background-color: var(--primary-green);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Ajuste móvil */
@media (max-width: 480px) {
    .modal-container {
        width: 85%;
        height: 440px; 
        max-width: 320px;
    }
    
    .promo-title {
        font-size: 2.5rem;
    }

    .promo-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}