/***********************************************************
 * IMPORTACIÓN DE FUENTES Y COMPATIBILIDAD                 *
 ***********************************************************/

/* Importación de Montserrat para párrafos y subtítulos */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&display=swap');

@font-face {
    font-family: 'BeautySalon';
    /* Se mantiene tu ruta exacta */
    src: url('../font/BeautySalon-Script.woff2') format('woff2'),
         url('../font/BeautySalon-Script.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/***********************************************************
 * ESTILOS GLOBALES - CORPO PERFETTO | ESTÉTICA AVANZADA   *
 ***********************************************************/

:root {
    /* Paleta de Colores */
    --soft-green: #e9edde;      /* Verde suave base */
    --accent-green: #7d8e6c;    /* Verde oliva para detalles */
    --luxury-gold: #c5a059;     /* Oro para líneas y acentos */
    --deep-text: #2c3327;       /* Texto oscuro suave */
    --white: #ffffff;
    --pr: #92db89;
    --black-ebony: radial-gradient(circle at center, #29361e 0%, #0d0f0b 100%);     /* Fondo profundo para secciones dark */
    
    /* Tipografías */
    --font-main: 'BeautySalon', cursive; 
    --font-sec: 'Montserrat', sans-serif; 
    
    /* Espaciados */
    --section-padding: 120px 0;
}


/***********************************************************
 * REGLAS BASE Y RESET                                     *
 ***********************************************************/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sec);
    background-color: var(--soft-green); 
    color: var(--deep-text);
    overflow-x: hidden;
    line-height: 1.8; 
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

/***********************************************************
 * ESTRUCTURA DE SECCIONES (SISTEMA DE DISEÑO)             *
 ***********************************************************/
section {
    padding: var(--section-padding);
    width: 100%;
    position: relative;
    overflow: hidden; 
}

/* Contenedor Universal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px; 
}

/* Variantes de Color de Sección */
.section-light {
    background-color: var(--soft-green);
    color: var(--deep-text);
}

.section-dark {
    background-color: var(--black-ebony);
    /* Establecemos blanco como color base de texto para secciones oscuras */
    color: var(--white); 
}

/***********************************************************
 * COMPONENTES EDITORIALES REUTILIZABLES                   *
 ***********************************************************/

/* Introducción de categoría: Contenedor para línea + título */
.categories-intro {
    display: flex;
    flex-direction: column;
    max-width: 900px;
}

/* Título Premium Global */
.premium-title {
    font-family: var(--font-main);
    font-size: clamp(3rem, 8vw, 4.5rem); 
    font-weight: 400;
    line-height: 1.1;
    transition: color 0.4s ease;
}

/* La línea dorada global */
.gold-line {
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--luxury-gold);
}

/* --- ADAPTACIÓN DE COLORES SEGÚN FONDO (REFUERZO DE ESPECIFICIDAD) --- */

/* Forzamos el color usando la ruta completa para ganar a cualquier otra regla */
section.section-dark .categories-intro .premium-title {
    color: var(--white);
}

section.section-light .categories-intro .premium-title {
    color: var(--deep-text);
}

/* Subtítulos o párrafos elegantes */
.text-p {
    font-family: var(--font-sec);
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 750px;
}

/* Los párrafos en sección oscura mantienen el verde suave para elegancia */
.section-dark .text-p {
    color: var(--soft-green);
    opacity: 0.9;
}

/***********************************************************
 * HEADER & NAVEGACIÓN - CORPO PERFETTO                   *
 ***********************************************************/
.main-header {
    height: 100px; 
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: transparent;
    backdrop-filter: blur(0px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.header-scrolled {
    height: 80px; 
    background-color: rgba(13, 15, 11, 0.9); 
    backdrop-filter: blur(15px); 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo con acabado natural (Sin Neón) */
.main-logo {
    font-family: var(--font-main);
    font-size: 2.8rem;
    font-weight: 400;
    white-space: nowrap;
    color: var(--luxury-gold); 
    cursor: pointer;
    text-shadow: none; 
    animation: none;
    
    /* Ajustes necesarios para la etiqueta <a> */
    text-decoration: none; 
    display: inline-block;
    transition: opacity 0.3s ease;
}

.main-logo span { 
    color: var(--luxury-gold); 
    margin-left: 5px; 
}

/* Efecto sutil al pasar el mouse sin romper la elegancia */
.main-logo:hover {
    opacity: 0.8;
    color: var(--luxury-gold); /* Evita que cambie a azul en algunos navegadores */
}

/* --- BOTÓN HAMBURGUESA --- */
.menu-toggle {
    display: none; 
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 30px;
    height: 2px;
    background-color: var(--white);
    transition: all 0.4s ease;
}

.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); }

.nav-right {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 3px;
    font-weight: 500;
    transition: 0.4s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 1px; bottom: -5px; left: 0;
    background-color: var(--luxury-gold);
    transition: 0.4s;
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--luxury-gold); }

.btn-cta {
    background-color: var(--accent-green);
    color: var(--white);
    padding: 11px 26px;
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.4s;
}

.btn-cta:hover { background-color: var(--luxury-gold); }

/***********************************************************
 * RESPONSIVE DESIGN (MEDIA QUERIES) - OPTIMIZADO APPLE    *
 ***********************************************************/

@media (max-width: 1024px) {
    .nav-right { gap: 20px; }
    .main-logo { font-size: 2.4rem; }
}

@media (max-width: 768px) {
    .main-header { 
        height: 80px; 
        /* Evita que el contenido se desplace al abrir el menú en móviles */
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
    }

    .menu-toggle { 
        display: flex; 
        /* Blindaje para iOS: evita estilos de botón nativos */
        -webkit-appearance: none;
        appearance: none;
        background: transparent;
        border: none;
        cursor: pointer;
        outline: none;
        /* Elimina el recuadro azul/gris al tocar en móviles */
        -webkit-tap-highlight-color: transparent;
    }

    .nav-right {
        position: fixed;
        right: -100%; 
        top: 0;
        width: 75%; /* Ajustado para mejor ergonomía */
        height: 100vh;
        background-color: rgba(13, 15, 11, 0.98); 
        /* Blindaje Apple para Blur */
        -webkit-backdrop-filter: blur(20px); 
        backdrop-filter: blur(20px); 
        
        flex-direction: column;
        justify-content: center;
        align-items: center; /* Asegura centrado total */
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1001;
    }

    .nav-right.active {
        right: 0;
    }

    .nav-link {
        display: block; 
        font-size: 1.3rem; /* Ligeramente más grande para facilitar el toque */
        margin: 20px 0;
        color: var(--white);
        text-decoration: none;
        /* Blindaje Apple: evita cambios de color automáticos en enlaces */
        -webkit-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
        transition: color 0.3s ease;
    }

    /* Forzamos que el diseño aprobado se mantenga en Safari */
    .nav-link:active, .nav-link:focus {
        color: var(--luxury-gold); /* Mantiene tu paleta de colores */
    }

    .main-logo { 
        font-size: 1.8rem; /* Ajustado para evitar desbordes en pantallas de 320px */
        /* Asegura que el logo no sea clickeable con recuadro azul */
        -webkit-tap-highlight-color: transparent;
    }
}


/***********************************************************
 * SECCIÓN HERO - CINEMATOGRÁFICA CON VIDEO (DYNAMICS)     *
 ***********************************************************/
.hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding-top: 110px; 
    padding-bottom: 60px;
    background-color: #0d0f0b; /* Color de respaldo mientras carga el video */
}

/* --- VIDEO BACKGROUND ESTRUCTURA --- */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Asegura que cubra todo el espacio sin deformarse */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente oscuro para garantizar legibilidad del texto dorado/blanco */
    background: linear-gradient(
        to bottom, 
        rgba(13, 15, 11, 0.7) 0%, 
        rgba(13, 15, 11, 0.4) 50%, 
        rgba(13, 15, 11, 0.8) 100%
    );
    z-index: -1;
}

/* Forzamos que el contenido interno sea un flex centrado sobre el video */
.hero .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 2; /* Por encima del overlay */
}

/* --- ESTADOS INICIALES REFINADOS --- */
.hero-logo-wrapper, 
.hero .gold-line, 
.hero-main-title, 
.hero-subtitle {
    opacity: 0;
    filter: blur(20px);
    transition: all 1.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity, filter;
}

.hero-logo-wrapper {
    margin-bottom: 50px;
    position: relative;
    transform: scale(0.85) translateY(60px);
    display: flex;
    justify-content: center;
}

.hero .gold-line {
    display: block;
    width: 0; 
    height: 1px;
    background: var(--luxury-gold);
    margin: 0 auto 30px;
    transform: translateY(40px);
}

.hero-main-title {
    font-family: var(--font-main);
    font-size: 5.5rem;
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.1;
    color: var(--luxury-gold); 
    transform: translateY(50px);
    text-align: center;
    width: 100%;
    /* Sutil sombra para separar el texto del video en partes claras */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-family: var(--font-sec);
    text-transform: uppercase;
    letter-spacing: 9px;
    font-size: 0.85rem;
    color: var(--soft-green); 
    font-weight: 300;
    max-width: 750px;
    margin: 0 auto;
    transform: translateY(30px);
    text-align: center;
}

/* --- CLASE ACTIVA (EFECTO SEDA) --- */
.hero-visible .hero-logo-wrapper {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px) drop-shadow(0 15px 35px rgba(197, 160, 89, 0.15));
}

.hero-visible .gold-line {
    opacity: 1;
    width: 100px;
    transform: translateY(0);
    filter: blur(0px);
}

.hero-visible .hero-main-title,
.hero-visible .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
}

.hero-visible .hero-subtitle {
    opacity: 0.9; /* Aumentamos un poco la opacidad sobre video */
}

.hero-big-logo {
    max-width: 220px;
    height: auto;
    transition: transform 0.6s ease;
}

.hero-big-logo:hover {
    transform: scale(1.03) rotate(1deg);
}

/***********************************************************

 * RESPONSIVE HERO (OPTIMIZADO PC, TABLET, MÓVIL)          *

 ***********************************************************/

@media (max-width: 1024px) {

    .hero-main-title { font-size: 4.5rem; }

    .hero-video {

        /* En tablets ajustamos para asegurar que el centro del video mande */

        width: 100%;

    }

}



@media (max-width: 768px) {

    .hero-main-title { font-size: 3rem; padding: 0 15px; }

    .hero-big-logo { max-width: 160px; }

    .hero-subtitle {

        letter-spacing: 4px;

        font-size: 0.75rem;

        padding: 0 20px;

        line-height: 1.5;

    }

    .hero-logo-wrapper { margin-bottom: 30px; }

}



/* Optimización específica para IPhones y pantallas pequeñas */

@media (max-width: 480px) {

    .hero-main-title { font-size: 2.5rem; }

    .hero-video {

        /* Fuerza al video a comportarse bien en pantallas muy estrechas */

        object-fit: cover;

    }

}


/***********************************************************
 * SECCIÓN NOSOTROS - ATMÓSFERA PREMIUM                   *
 ***********************************************************/

.about {
    padding: var(--section-padding);
    width: 100%;
    position: relative;
    /* Aplicamos tu gradiente radial de marca */
    background: radial-gradient(circle at center, #29361e 0%, #0d0f0b 100%);
    z-index: 2; 
    display: block;
    overflow: hidden;
}

/* Detalle de luz ambiental en esquina */
.about::before {
    content: '';
    position: absolute;
    width: 800px; /* Un poco más amplio para suavizar el destello */
    height: 800px;
    /* Usamos un tono derivado de tu verde claro para el resplandor */
    background: radial-gradient(circle, rgba(163, 180, 146, 0.08) 0%, rgba(0,0,0,0) 70%);
    top: -20%;
    right: -10%;
    z-index: -1;
    filter: blur(40px); /* Suavizado extra para un efecto cinematográfico */
}

.grid-about {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; 
    gap: 100px;
    align-items: center;
}

/* Contenedor de intro: Alineación a la izquierda */
.about .categories-intro {
    margin-bottom: 35px;
    align-items: flex-start; 
    text-align: left;
}

.about .gold-line { 
    margin: 0 0 25px 0; 
    width: 60px;
    height: 1px;
    background: var(--luxury-gold);
    display: block;
}

/* Título: Totalmente limpio de color para heredar del sistema global section-dark */
.about .premium-title {
    font-size: 4rem;
    text-align: left;
    margin-bottom: 0;
    line-height: 1.2;
    text-shadow: none; 
}

.text-p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    /* Mantenemos el color específico para párrafos de esta sección */
    color: var(--soft-green); 
    font-weight: 300; 
    opacity: 0.9;
    text-align: justify;
    line-height: 1.9;
    letter-spacing: 0.3px;
}

.text-p strong {
    color: var(--luxury-gold);
    font-weight: 400;
}

/***********************************************************
 * MARCO DE IMAGEN PRESTIGIO                               *
 ***********************************************************/
.img-frame {
    position: relative;
    padding: 20px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Detalles de esquinas doradas */
.img-frame::before, .img-frame::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 1px solid var(--luxury-gold);
    transition: 0.5s;
}

.img-frame::before { top: -5px; right: -5px; border-bottom: none; border-left: none; }
.img-frame::after { bottom: -5px; left: -5px; border-top: none; border-right: none; }

.img-frame img {
    width: 100%;
    display: block;
    filter: brightness(0.9);
    transition: 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.img-frame:hover {
    border-color: var(--luxury-gold);
    transform: translateY(-5px);
}

.img-frame:hover img {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.img-frame:hover::before { top: -10px; right: -10px; }
.img-frame:hover::after { bottom: -10px; left: -10px; }

/***********************************************************
 * RESPONSIVE MEJORADO - OPTIMIZADO PARA IOS               *
 ***********************************************************/
@media (max-width: 1024px) {
    .grid-about {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about .premium-title { 
        font-size: 3.2rem; 
        /* Blindaje: suavizado de fuentes para pantallas Retina */
        -webkit-font-smoothing: antialiased;
    }
}

@media (max-width: 768px) {
    .about .premium-title { 
        font-size: 2.8rem; 
        /* Evita que Safari ajuste el tamaño del texto automáticamente */
        -webkit-text-size-adjust: 100%;
    }
    
    .about {
        padding: 80px 0;
        /* Blindaje: asegura que el fondo negro cubra todo el viewport en iOS */
        background-color: #000; /* Forzamos el color base según instrucciones */
        -webkit-overflow-scrolling: touch;
    }
}

/***********************************************************
 * SERVICIOS - CONCEPTO VANGUARDIA (MODERN ORGANIC)        *
 ***********************************************************/

.services-vanguard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 80px;
}

/* REDISEÑO DE TARJETA: Enfoque Premium Minimalista */
.vanguard-card {
    position: relative;
    height: 550px; 
    background-color: #0d0f0b; 
    padding: 0;
    /* Cambio: Bordes uniformes y elegantes en lugar de asimétricos */
    border-radius: 20px; 
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
    /* Profundidad sutil */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Efecto de borde de luz superior (Bisel de lujo) */
.vanguard-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.25), transparent 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
}

.vanguard-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.vanguard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: filter 0.6s ease;
}

.vanguard-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2;
    padding: 40px; 
    background: linear-gradient(
        to top, 
        rgba(13, 15, 11, 0.98) 0%, 
        rgba(13, 15, 11, 0.7) 50%, 
        rgba(13, 15, 11, 0) 100%
    );
    transform: translateY(115px); 
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.vanguard-index {
    display: block;
    font-family: var(--font-sec);
    color: var(--luxury-gold);
    font-size: 0.7rem;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.vanguard-title {
    font-family: var(--font-sec);
    color: var(--white);
    font-size: 1.2rem; 
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 500;
}

.vanguard-reveal-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.vanguard-text {
    font-family: var(--font-sec);
    color: var(--soft-green);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.8;
}

/* --- BOTÓN --- */
.vanguard-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-sec);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 4px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    padding: 10px 0;
}

.vanguard-btn .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--luxury-gold);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.vanguard-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 1px;
    background-color: var(--luxury-gold);
    transition: width 0.4s ease;
}

/* --- INTERACCIONES --- */

.vanguard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.vanguard-card:hover .vanguard-img {
    transform: scale(1.1);
}

.vanguard-card:hover .vanguard-overlay {
    transform: translateY(0);
}

.vanguard-card:hover .vanguard-reveal-content {
    opacity: 1;
    transform: translateY(0);
}

.vanguard-btn:hover {
    color: var(--luxury-gold);
}

.vanguard-btn:hover .arrow {
    background-color: var(--luxury-gold);
    color: #0d0f0b;
    transform: rotate(-45deg);
}

.vanguard-btn:hover::after {
    width: 100%;
}

/***********************************************************
 * RESPONSIVE - DISEÑO EDITORIAL (OPTIMIZADO FLUIDEZ)      *
 ***********************************************************/

@media (max-width: 1024px) {
    .services-vanguard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .vanguard-card { 
        height: 500px;
        width: 100%; 
        /* Blindaje: Evita parpadeos al animar la tarjeta */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .vanguard-img img {
        filter: brightness(0.9);
        /* Blindaje: Renderizado suave de imagen */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .vanguard-overlay {
        transform: translateY(0);
        background: linear-gradient(
            to top, 
            rgba(13, 15, 11, 0.8) 0%, 
            rgba(13, 15, 11, 0.3) 40%, 
            transparent 100%
        );
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .vanguard-reveal-content { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@media (max-width: 768px) {
    .services-vanguard-grid { 
        grid-template-columns: 1fr; 
        gap: 30px; 
        padding: 0 10px;
        width: 100%;
    }

    .vanguard-card { 
        height: 520px; 
        border-radius: 20px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        /* Blindaje: Activa aceleración GPU para scroll fluido */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .vanguard-img img {
        filter: brightness(1) saturate(1); 
    }

    .vanguard-overlay {
        transform: translateY(0);
        padding: 30px;
        background: linear-gradient(
            to top, 
            rgba(0, 0, 0, 0.85) 0%,      
            rgba(0, 0, 0, 0.4) 30%,      
            rgba(0, 0, 0, 0.1) 60%,      
            transparent 100%             
        );
        
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        
        -webkit-mask-image: linear-gradient(to top, black 70%, transparent 100%);
        mask-image: linear-gradient(to top, black 70%, transparent 100%);
        
        /* Blindaje: Previene saltos visuales en el filtro de desenfoque */
        will-change: backdrop-filter;
    }

    .vanguard-reveal-content {
        opacity: 1;
        transform: translateY(0);
    }

    .vanguard-title {
        text-shadow: 0 2px 10px rgba(0,0,0,0.8);
        font-size: 1.25rem;
        /* Blindaje: Nitidez de texto en Safari */
        -webkit-font-smoothing: antialiased;
    }

    .vanguard-text {
        color: var(--white); 
        text-shadow: 0 1px 5px rgba(0,0,0,0.5);
        opacity: 1;
        font-size: 0.8rem;
    }
}


/***********************************************************
 * SECCIÓN FAQ - ACORDEONES SEDOSOS (AJUSTE DE FLUIDEZ)    *
 ***********************************************************/

.faq {
    padding: 120px 0;
    background-color: var(--soft-green); /* Mantenemos consistencia */
}

.faq-wrapper {
    max-width: 850px;
    margin: 60px auto 0;
}

.faq-item {
    border-bottom: 1px solid rgba(197, 160, 89, 0.2); 
    padding: 10px 0;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-sec);
    font-size: 1.4rem;
    color: var(--deep-text);
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.faq-question:hover {
    color: var(--luxury-gold);
}

/* Icono Personalizado */
.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--luxury-gold);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-icon::before {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
}

.faq-icon::after {
    width: 1px;
    height: 100%;
    left: 50%;
    top: 0;
}

/* --- ESTADO ABIERTO --- */
.faq-item.active .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-item.active .faq-question {
    color: var(--luxury-gold);
}

/* Lógica de apertura suave ajustada */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    /* Suavizamos la curva de tiempo para evitar el salto */
    transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Aumentado para evitar cortes en textos largos */
    opacity: 1;
    padding-bottom: 30px;
}

/* Ajuste de aparición del texto */
.faq-answer p {
    font-family: var(--font-sec);
    line-height: 1.8;
    color: var(--deep-text);
    opacity: 0.8;
    max-width: 750px;
    /* El toque: el texto sube ligeramente al cerrar y baja al abrir */
    transform: translateY(-10px);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer p {
    transform: translateY(0);
}

/***********************************************************
 * RESPONSIVE FAQ (OPTIMIZADO PARA FLUIDEZ Y APPLE)        *
 ***********************************************************/

/* Pantallas Grandes */
@media (min-width: 1440px) {
    .faq-wrapper { max-width: 950px; }
    .faq-question { 
        font-size: 1.5rem; 
        /* Blindaje: Suavizado tipográfico */
        -webkit-font-smoothing: antialiased;
    }
}

/* Tablets Landscape */
@media (max-width: 1024px) {
    .faq { padding: 100px 0; }
    .faq-wrapper { max-width: 90%; }
}

/* Tablets Verticales y Móviles */
@media (max-width: 768px) {
    .faq { padding: 80px 0; }
    .faq-question { 
        font-size: 1.15rem; 
        padding: 20px 0;
        /* Blindaje: Evita el cuadro gris al tocar en iPhone */
        -webkit-tap-highlight-color: transparent;
        /* Blindaje: Evita ajustes de texto automáticos */
        -webkit-text-size-adjust: 100%;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .faq-question { 
        font-size: 1.05rem;
        line-height: 1.4;
    }
    .faq-icon { 
        width: 16px; 
        height: 16px; 
    }
    .faq-answer p { 
        font-size: 0.95rem; 
        /* Blindaje: Optimiza el renderizado durante la animación de apertura */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/***********************************************************
 * SECCIÓN UBICACIÓN - DISEÑO MODERNO & NATURAL            *
 ***********************************************************/

.location {
    padding: 140px 0;
    background: var(--black-ebony); 
    color: var(--white);
    overflow: hidden;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: center;
}

/* --- DETALLES DE TEXTO --- */
.location-info .premium-title {
    color: var(--white);
    margin-bottom: 50px;
}

.italic-gold {
    font-style: italic;
    color: var(--luxury-gold);
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 50px;
}

.detail-item {
    border-left: 1px solid rgba(197, 160, 89, 0.4);
    padding-left: 25px;
}

.detail-label {
    display: block;
    font-family: var(--font-sec);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--luxury-gold);
    margin-bottom: 10px;
}

.detail-text {
    font-family: var(--font-sec);
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Nota de Cita Previa con estilo Premium */
.appointment-note {
    display: block;
    margin-top: 12px;
    color: var(--luxury-gold);
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 1.5px;
    font-weight: 500;
    opacity: 0.9;
    /* Un pequeño detalle: un guion antes del texto */
    display: flex;
    align-items: center;
    gap: 10px;
}

.appointment-note::before {
    content: '';
    width: 15px;
    height: 1px;
    background-color: var(--luxury-gold);
    display: inline-block;
}

/* --- CONTENEDOR DEL MAPA (DISEÑO MODERNO) --- */
.map-container {
    position: relative;
    height: 650px;
    padding: 20px; /* Espacio para el efecto de marco */
}

/* Marco decorativo que flota detrás del mapa */
.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 80%;
    border: 1px solid var(--luxury-gold);
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
    transition: all 0.8s ease;
}

.map-frame {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    border-radius: 40px 4px 40px 4px; /* Corte moderno asimétrico */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(197, 160, 89, 0.1); /* Glow dorado sutil */
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    filter: saturate(1.2); /* Colores más vivos y naturales */
}

/* Interacción Modernista */
.map-container:hover .map-frame {
    transform: translateY(-15px) scale(1.02);
}

.map-container:hover::before {
    transform: translate(-20px, 20px);
    opacity: 0.6;
}

/***********************************************************
 * RESPONSIVE UBICACIÓN (OPTIMIZADO PC, TABLET, MÓVIL)     *
 ***********************************************************/

@media (max-width: 1024px) {
    .location-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .map-container {
        height: 500px;
    }
    .map-container::before {
        display: none; /* Simplificamos en tablets */
    }
}

@media (max-width: 768px) {
    .location {
        padding: 80px 0;
    }

    /* Blindaje: Evita que Safari resalte datos de contacto o use estilos nativos */
    .location address, 
    .location p, 
    .location a {
        text-decoration: none;
        color: inherit;
        -webkit-tap-highlight-color: transparent;
    }

    .map-frame {
        border-radius: 20px 4px 20px 4px; /* Redondeado más pequeño en móvil */
        /* Blindaje: Asegura el recorte del border-radius en Safari */
        -webkit-mask-image: -webkit-radial-gradient(white, black);
    }

    .map-container {
        height: 400px;
        padding: 0;
        /* Blindaje: Fluidez de scroll táctil en iOS */
        -webkit-overflow-scrolling: touch;
    }
}

/***********************************************************
 * FOOTER - ELEGANCIA DARK (FONT AWESOME)                  *
 ***********************************************************/

.footer {
    padding: 100px 0 40px;
    background: var(--black-ebony);
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* --- BRANDING --- */
.footer-logo {
    font-size: 2.8rem;
    letter-spacing: 4px;
    color: var(--luxury-gold);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 25px;
    text-transform: none;
    font-family: var(--font-main);
}

.footer-logo .gold-text {
    color: var(--luxury-gold);
}

.footer-tagline {
    font-family: var(--font-sec);
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    max-width: 350px;
}

/* --- REDES Y LINKS --- */
.footer-title {
    font-family: var(--font-sec);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--luxury-gold);
    margin-bottom: 30px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 20px;
}

/* Ajuste: Heredar estilos para enlaces sociales, tel y mail */
.footer-links a,
.footer-info-item p a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-sec);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s ease;
}

/* Iconos Font Awesome */
.footer-links a i, 
.footer-info-item i {
    width: 20px;
    color: var(--luxury-gold);
    font-size: 1.2rem;
    text-align: center;
}

.footer-links a:hover,
.footer-info-item p a:hover {
    color: var(--luxury-gold);
    transform: translateX(5px);
}

/* --- CONTACTO --- */
.footer-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-info-item p {
    font-family: var(--font-sec);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* --- BOTTOM --- */
.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

/***********************************************************
 * RESPONSIVE FOOTER (OPTIMIZADO PARA IOS & ANDROID)       *
 ***********************************************************/

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .branding-col { 
        grid-column: span 2; 
        margin-bottom: 40px; 
    }
    .footer-grid {
        -webkit-font-smoothing: antialiased;
    }
}

@media (max-width: 768px) {
    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    .branding-col { grid-column: span 1; }
    
    .footer-links a, 
    .footer-info-item,
    .footer-info-item p a { 
        justify-content: center; 
        text-decoration: none;
        color: inherit;
        -webkit-tap-highlight-color: transparent;
    }

    .footer-grid {
        -webkit-text-size-adjust: 100%;
    }
}

/***********************************************************
 * BOTÓN FLOTANTE WHATSAPP - VERDE OFICIAL                 *
 ***********************************************************/

.whatsapp-floating {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #25d366; /* Verde oficial WhatsApp */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
}

.whatsapp-floating i {
    color: var(--white);
    font-size: 32px;
    position: relative;
    z-index: 2;
}

/* Hover: Un verde un poco más oscuro para dar profundidad */
.whatsapp-floating:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #128c7e; 
}

/* --- ANIMACIÓN DE PULSO VERDE --- */

.pulse-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #25d366; /* Onda verde */
    border-radius: 50%;
    opacity: 0.6;
    z-index: 1;
    animation: whatsappPulse 2.5s infinite;
}

.pulse-wave.wave-2 {
    animation-delay: 0.8s;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/***********************************************************
 * RESPONSIVE                                              *
 ***********************************************************/

@media (max-width: 768px) {
    .whatsapp-floating {
        bottom: 25px;
        right: 25px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-floating i {
        font-size: 28px;
    }
}