/* ============================================
   CORTIJO MIRACIELO - ESTILOS PRINCIPALES
   ============================================ */

/* --- CSS Variables --- */
:root {
    --color-primary: #C8A96E;
    --color-primary-light: #D4BC8A;
    --color-primary-dark: #9A7C46;
    --color-secondary: #E8E4DC;
    --color-secondary-light: #FFFFFF;

    /* Crepúsculo en la Sierra - Luxury Dark basado en logo-final.png */
    --color-bg-cream: #131b2e;      /* Azul Noche Slate suave - Crea un ritmo de profundidad de lujo */
    --color-bg-white: #0B1120;      /* Midnight Blue exacto del logo */
    --color-bg-dark: #060913;       /* Sombra profunda refinada */
    --color-bg-darker: #02040a;     /* Casi negro de obsidiana */

    --color-text: #E8E4DC;          /* Blanco crema suave */
    --color-text-light: #8E9BB0;    /* Gris azulado suave */
    --color-text-white: #FFFFFF;    
    --color-text-cream: #E8E4DC;
    --color-border: rgba(200, 169, 110, 0.2); /* Dorado del logo con transparencia */
    --color-whatsapp: #25D366;

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --container-max: 1200px;
    --container-wide: 1400px;
    --section-padding: 100px;
    --border-radius: 16px;
    --border-radius-sm: 8px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --shadow-xl: 0 16px 60px rgba(0,0,0,0.24);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg-cream);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.3;
}

button, input, select, textarea {
    font-family: var(--font-body);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Sections --- */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-cream { background: var(--color-bg-cream); }
.section-white { background: var(--color-bg-white); }
.section-dark { background: var(--color-bg-dark); }

.section-center { text-align: center; margin-bottom: 60px; }

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-label-light { color: var(--color-secondary); }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.location-map iframe {
    filter: grayscale(1) invert(0.9) hue-rotate(180deg) brightness(0.9) contrast(1.1);
    transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-map:hover iframe {
    filter: grayscale(0) invert(0) hue-rotate(0deg) brightness(1) contrast(1);
}

.reveal-cinematic {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}

.section-title-light { color: var(--color-text-white); }

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.8);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

.btn-hero-primary {
    background: #C8A96E; /* Logo gold */
    color: #0B1120; /* Logo deep blue */
    border-color: #C8A96E;
    font-weight: 700;
}

.btn-hero-primary:hover {
    background: #D8B97E;
    border-color: #D8B97E;
    color: #0B1120;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(200, 169, 110, 0.3);
}

.btn-hero-outline {
    background: rgba(11, 17, 32, 0.5); /* Deep blue translucent */
    color: #C8A96E; /* Logo gold */
    border-color: #C8A96E;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-hero-outline:hover {
    background: rgba(11, 17, 32, 0.8);
    color: #C8A96E;
    border-color: #C8A96E;
    transform: translateY(-2px);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

/* --- Custom Scrollbar & Selection --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 5px;
    border: 2px solid var(--color-bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary-light);
}

::selection {
    background: var(--color-primary);
    color: var(--color-text-white);
}

.navbar.scrolled {
    background: rgba(13, 20, 28, 0.6); /* var(--color-bg-cream) con transparencia */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Destello dorado sutil que viaja por el filo inferior al hacer scroll (recibido desde el logo) */
.navbar.scrolled::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent 0%, var(--color-primary) 50%, #fff 52%, var(--color-primary) 54%, transparent 100%);
    background-size: 200% 100%;
    animation: borderLightSweep 3s ease-in-out infinite; /* Bucle infinito: permanece con destellos continuos mientras no esté en el hero */
    z-index: 10;
}

@keyframes borderLightSweep {
    0% {
        background-position: -150% 0;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        background-position: 150% 0;
        opacity: 0;
    }
}

/* --- FAQ Styles --- */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-bg-white);
    border-radius: var(--border-radius-sm);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 600;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fcfcfc;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: #4A5568; /* Darker grey-blue for better contrast on white */
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--color-secondary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* --- Mobile Action Bar --- */
.mobile-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 20, 28, 0.9); /* var(--color-bg-cream) */
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    z-index: 1500;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .mobile-action-bar { display: flex; }
    body { padding-bottom: 70px; } /* Space for action bar */
}

.mobile-action-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: var(--color-secondary);
    color: var(--color-bg-dark);
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}


.nav-container {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Vineta de cabecera: visible solo mientras el hero tiene el foco (navbar sin
   .scrolled). Al hacer scroll se oculta y deja paso al logo.
   Va EN FLUJO (no absoluta) para reservar su ancho y que el menu nunca se
   solape con ella en ningun navegador (Edge/Chrome rinden el glifo ✦ distinto). */
.nav-badge {
    display: inline-block;
    padding: 5px 16px;
    border: 1px solid rgba(200, 169, 110, 0.5);
    border-radius: 30px;
    font-size: 0.62rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-secondary);
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    white-space: nowrap;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Al hacer scroll la vineta se desvanece pero MANTIENE su espacio (opacity/
   visibility), de modo que el menu no se desplaza ni se solapa. */
.navbar.scrolled .nav-badge {
    opacity: 0;
    visibility: hidden;
}

/* En desktop el logo se posiciona absoluto (no reserva espacio) y aparece sobre
   el hueco de la vineta al hacer scroll. La vineta reserva el ancho en el flujo. */
@media (min-width: 1025px) {
    .nav-logo {
        position: absolute;
        left: 24px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* En movil/tablet no mostramos la vineta (no hay sitio junto al menu). */
@media (max-width: 1024px) {
    .nav-badge { display: none; }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.navbar.scrolled .nav-logo { 
    color: #FFFFFF !important;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.nav-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

@media (min-width: 769px) {
    .nav-menu {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-cream);
    opacity: 0.8;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar.scrolled .nav-link { color: var(--color-text-white); opacity: 0.7; }
 .nav-link:hover { opacity: 1; background: rgba(200, 169, 110, 0.15); animation: menuGlowShimmer 1.5s ease-in-out infinite; }
 .navbar.scrolled .nav-link:hover { opacity: 1; background: rgba(255,255,255,0.05); animation: menuGlowShimmer 1.5s ease-in-out infinite; }
 .nav-link.active { opacity: 1 !important; font-weight: 600; animation: menuGlowShimmer 2.0s ease-in-out infinite; }

@keyframes menuGlowShimmer {
    0%, 100% {
        color: #dfba73; /* Dorado amarillento elegante */
        text-shadow: 0 0 4px rgba(200, 169, 110, 0.4);
    }
    50% {
        color: #ffdf9e; /* Amarillo brillante y destellante */
        text-shadow: 0 0 12px rgba(255, 223, 0, 0.8), 0 0 4px rgba(255, 223, 0, 0.4);
    }
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--color-text-white);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar.scrolled .nav-toggle span { background: var(--color-text-white); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    /* Pantalla completa: con object-position:center bottom se muestra la casa
       completa abajo y se recorta el cielo sobrante arriba (mas casa, menos cielo). */
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Encuadre: se recorta un poco la parte inferior (primer plano de cesped) y
       se gana cielo arriba, para centrar mejor el logo/textos. La casa y el
       porche siguen completos. */
    object-position: center 72%;
    transform-origin: center bottom;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(13, 20, 28, 0.4) 0%,
        rgba(13, 20, 28, 0.2) 40%,
        rgba(10, 17, 24, 0.55) 100%
    );
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    /* Banda segura: desde debajo de la barra de menus (top) hasta justo encima
       de la casa (bottom). El bloque (logo -> subtitulo -> cifras) se centra
       dentro de esta banda de cielo, sin solaparse nunca con el menu ni la casa. */
    top: 84px;
    bottom: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    z-index: 1;
    text-align: center;
    color: var(--color-text-white);
    padding: 0 24px;
    max-width: 1200px;
}

.hero-subtitle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    font-family: var(--font-body);
    text-transform: uppercase;
    color: var(--color-secondary);
    opacity: 0;
    margin-bottom: 8px; /* Reducido drásticamente de 25px */
    padding: 6px 24px;
    border: 1px solid rgba(200, 169, 110, 0.4);
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
}

.badge-est {
    font-size: 0.52rem;
    letter-spacing: 2.5px;
    opacity: 0.85;
    font-weight: 600;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    min-height: 1.2em;
    color: #E8E4DC !important;
    text-shadow: 
        0 2px 10px rgba(0,0,0,0.5),
        0 0 20px rgba(255, 255, 255, 0.2);
    letter-spacing: -1px;
}

.typewriter-img-wrapper {
    display: inline-block;
    position: relative;
    overflow: visible; /* Cambiado a visible para evitar recortes del resplandor */
    white-space: normal;
    border-right: none; /* Quitada la barra intermitente */
    animation: none; /* Quitada la animación de cursor */
    vertical-align: middle;
    width: auto; /* Ancho automático desde el inicio, sin efecto typewriter */
    max-width: 100%;
    padding-right: 0;
}

.hero-main-logo {
    height: clamp(90px, 12vw, 190px); /* Aumentado de 72px-150px a 90px-190px */
    width: auto;
    object-fit: contain;
    display: block;
    max-width: none;
    opacity: 1 !important; 
    filter: drop-shadow(0px 0px 4px rgba(200, 169, 110, 0.15)); /* Brillo sutil dorado */
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); /* Sin filter ni opacity para evitar conflictos con GSAP */
}

.hero-main-logo-base {
    opacity: 0;
}

.hero-logo-word {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
}

.hero-logo-word-cortijo {
    clip-path: polygon(0 0, 53% 0, 53% 100%, 0 100%);
}

.hero-logo-word-miracielo {
    clip-path: polygon(44% 0, 100% 0, 100% 100%, 44% 100%);
}

.hero-main-logo-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: none;
}

.logo-impact-point {
    position: absolute;
    top: 52%;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.logo-impact-cortijo {
    left: 28%;
}

.logo-impact-miracielo {
    left: 74%;
}

.hero-main-logo:hover {
    opacity: 1;
    filter: drop-shadow(0 0 35px rgba(200, 169, 110, 0.4)); /* El brillo aumenta al acercar el ratón */
    transform: scale(1.02);
}

@keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--color-secondary); }
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(0.82rem, 1.55vw, 1.04rem);
    font-weight: 500;
    color: var(--color-secondary) !important;
    margin-top: -18px !important;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(20px);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    position: relative;
    display: inline-block;
    min-height: 1.4em;
}

.hero-tagline-text {
    position: relative;
    z-index: 2;
    white-space: pre;
}

.hero-tagline-char {
    display: inline-block;
    opacity: 0;
    white-space: pre;
}

.hero-tagline-trail-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-tagline-trail-char {
    position: absolute;
    top: 0;
    color: rgba(255, 233, 177, 0.72);
    white-space: pre;
    text-shadow: 0 0 8px rgba(255, 223, 148, 0.38);
    will-change: transform, opacity;
}

.hero-tagline-meteor {
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(255, 248, 220, 1) 0%, rgba(255, 225, 152, 0.9) 48%, rgba(255, 225, 152, 0) 78%);
    box-shadow: 0 0 10px rgba(255, 233, 170, 0.8), 0 0 18px rgba(255, 221, 150, 0.45);
    z-index: 3;
    pointer-events: none;
}

.hero-tagline-meteor::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    width: 64px;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(255, 231, 176, 0) 0%, rgba(255, 231, 176, 0.28) 55%, rgba(255, 244, 208, 0.7) 100%);
    border-radius: 999px;
    filter: blur(0.35px);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255,255,255,0.7);
    animation: bounce 2s infinite;
    transition: var(--transition);
}

.scroll-indicator:hover { color: var(--color-secondary); }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   SPLIT LAYOUT (Historia)
   ============================================ */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-text .section-title { margin-bottom: 24px; }

.lead-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 20px;
}

.split-text p {
    color: var(--color-text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.gallery-stack {
    position: relative;
    height: 500px;
}

.gallery-img {
    position: absolute;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 3/2;
    height: auto;
    transition: var(--transition-slow);
}

.gallery-img-1 {
    width: 75%;
    top: 0;
    left: 0;
    z-index: 1;
}

.gallery-img-2 {
    width: 55%;
    bottom: 0;
    right: 0;
    z-index: 2;
    border: 4px solid var(--color-bg-cream);
}

.gallery-img-3 {
    width: 45%;
    top: 50%;
    left: 60%;
    z-index: 3;
    border: 4px solid var(--color-bg-cream);
}

.gallery-img:hover {
    transform: scale(1.03);
    z-index: 10;
}

/* ============================================
   MASONRY GALLERY
   ============================================ */
.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.masonry-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.masonry-item img,
.masonry-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.masonry-item:hover img,
.masonry-item:hover video {
    transform: scale(1.15);
}

.masonry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.masonry-item:hover .masonry-overlay { opacity: 1; }

.masonry-overlay span {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: white;
    font-weight: 600;
}

.masonry-tall { grid-row: span 2; aspect-ratio: auto; }
.masonry-wide { grid-column: span 2; }

/* ============================================
   GALLERY FILTERS
   ============================================ */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 10px 25px;
    border: 1px solid var(--color-secondary);
    background: transparent;
    color: var(--color-text-white);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    border-radius: 30px;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--color-secondary);
    color: var(--color-bg-dark);
}

/* ============================================
   EXPERIENCES GRID
   ============================================ */
.exp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.exp-card {
    background: var(--color-bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.exp-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.exp-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.exp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.exp-card:hover .exp-card-img img {
    transform: scale(1.08);
}

.exp-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45,80,22,0.3), rgba(0,0,0,0.2));
}

.exp-card-content {
    padding: 24px;
}

.exp-icon {
    width: 50px;
    height: 50px;
    background: var(--color-bg-cream);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.exp-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.exp-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ============================================
   FEATURES GRID (Servicios)
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-item {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--border-radius);
    background: var(--color-bg-cream);
    border: 1px solid transparent; /* Evita saltos de maquetación en hover */
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(200, 169, 110, 0.15); /* Resplandor dorado de lujo */
    border-color: rgba(200, 169, 110, 0.4); /* Fino borde dorado de enfoque */
    background: var(--color-bg-white);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--color-primary-light);
}

.feature-item h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 20, 28, 0.85) 0%, rgba(17, 26, 36, 0.7) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.15rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* ============================================
   INSTAGRAM GRID
   ============================================ */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 8px;
}

.insta-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.insta-item:hover img {
    transform: scale(1.1);
}

.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 80, 22, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
}

.insta-item:hover .insta-overlay { opacity: 1; }

/* ============================================
   BOOKING / RESERVAS
   ============================================ */
.booking-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.booking-widget,
.booking-contact {
    background: var(--color-bg-cream);
    border-radius: var(--border-radius);
    padding: 40px;
}

.booking-widget h3,
.booking-contact h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.btn-booking {
    width: 100%;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .contact-options { grid-template-columns: 1fr; }
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: var(--border-radius);
    background: var(--color-bg-white);
    transition: var(--transition);
    border: 2px solid transparent;
}

.contact-option:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-whatsapp .contact-icon { background: var(--color-whatsapp); color: white; }
.contact-phone .contact-icon { background: #E8F4FD; color: #1A73E8; }
.contact-email .contact-icon { background: #FFF3E0; color: #E65100; }

.contact-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
}

.contact-text span {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ============================================
   ESCAPADA RURAL WIDGETS
   ============================================ */
.escapada-widget-container {
    /* Panel integrado con el color oscuro de la web. Los widgets internos son
       iframes de Escapada Rural (otro dominio): conservan su fondo blanco y se
       presentan como tarjetas limpias dentro del panel (su interior no se puede
       recolorear sin romper su funcionalidad/vinculacion de datos). */
    background: rgba(13, 20, 28, 0.35);
    border: 1px solid rgba(200, 169, 110, 0.3);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-top: 30px;
    width: 100%;
    overflow: visible;
}

/* Las ventanas (iframes) de Escapada Rural quedan como tarjetas blancas limpias */
.escapada-calendar-item,
.escapada-rates-item {
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    padding: 8px;
}

.escapada-title {
    color: var(--color-primary);
    margin-bottom: 25px;
    font-family: var(--font-display);
    text-align: center;
    font-size: 1.5rem;
}

.escapada-flex-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}

.escapada-calendar-item {
    background: #FFFFFF;
    width: 240px;
    flex-shrink: 0;
    margin: 0 auto;
}

.escapada-rates-item {
    background: #FFFFFF;
    flex: 1;
    min-width: 280px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

.escapada-rates-scroll {
    min-width: 572px;
}

.escapada-source {
    font: normal 10px arial;
    color: #353535;
    text-align: right;
    margin-top: 8px;
}

.escapada-source a {
    text-decoration: none;
    color: #353535;
}

/* ============================================
   FORMULARIO SOLICITUD DE RESERVA
   ============================================ */
.escapada-form-container {
    text-align: center;
    background: linear-gradient(145deg, rgba(13, 20, 28, 0.6) 0%, rgba(20, 30, 42, 0.5) 100%);
    border: 1px solid rgba(200, 169, 110, 0.4);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(200, 169, 110, 0.1);
}

.escapada-form-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(200, 169, 110, 0.2);
}

.escapada-form-title::before,
.escapada-form-title::after {
    content: ' ✦ ';
    font-size: 0.7em;
    opacity: 0.7;
    color: var(--color-secondary);
}

.escapada-form-desc {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--color-secondary);
    opacity: 0.82;
    line-height: 1.65;
    max-width: 500px;
    margin: 0 auto 28px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.escapada-form-frame {
    max-width: 565px;
    width: 100%;
    min-height: 500px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: var(--border-radius-sm);
    overflow: visible;
    border: 1px solid rgba(200, 169, 110, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(200, 169, 110, 0.12);
}

.escapada-form-frame .escapada-source {
    padding-right: 12px;
    margin-top: 5px;
    background: transparent;
}

/* El iframe del formulario ya usa los colores de la web gracias al
   generador de Escapada Rural. Solo ajustamos el contenedor. */
.escapada-form-frame {
    background: #0D1420;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(200, 169, 110, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(200, 169, 110, 0.1);
}

.escapada-form-frame iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    border: none;
}

.escapada-source-light a {
    color: #E8E4DC !important;
    font: normal 10px arial;
    text-decoration: none;
}

/* ============================================
   ZEN MODE BUTTON
   ============================================ */
.zen-mode-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(13, 20, 28, 0.7); /* var(--color-bg-cream) */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    /* Add initial glow effect like the logo */
    box-shadow: var(--shadow-md), 0 0 15px rgba(200, 169, 110, 0.2);
}

.zen-mode-btn:hover {
    background: rgba(13, 20, 28, 0.9);
    transform: scale(1.1);
    /* Enhanced glow on hover like the logo */
    box-shadow: var(--shadow-lg), 0 0 25px rgba(200, 169, 110, 0.5), 0 0 50px rgba(200, 169, 110, 0.3);
}

.zen-tooltip {
    position: absolute;
    left: 60px;
    background: rgba(11, 17, 32, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle glow effect like the logo */
    box-shadow: 0 0 8px rgba(200, 169, 110, 0.15);
}

.zen-mode-btn:hover .zen-tooltip {
    opacity: 1;
    left: 65px;
    /* Enhanced glow on hover like the logo */
    box-shadow: 0 0 15px rgba(200, 169, 110, 0.3), 0 0 30px rgba(200, 169, 110, 0.15);
}

/* ============================================
   DESKTOP STICKY BAR
   ============================================ */
.desktop-sticky-bar {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(13, 20, 28, 0.65); /* Increased transparency */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(200, 169, 110, 0.15); /* Reduced border opacity */
    border-radius: 50px;
    padding: 10px 24px;
    z-index: 998;
    transition: bottom 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); /* Reduced shadow */
    display: flex;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: bottom 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease, visibility 0.3s ease;
}

.desktop-sticky-bar.visible {
    bottom: 20px;
    opacity: 1;
    visibility: visible;
}

.desktop-sticky-bar.visible {
    bottom: 20px;
}

.sticky-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.sticky-bar-content p {
    color: var(--color-text-cream);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    margin: 0;
}

.sticky-bar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.desktop-sticky-bar .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
}
.location-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.location-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    padding: 36px;
}

.location-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-text-white);
    margin-bottom: 16px;
}

.location-address {
    color: var(--color-text-cream);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.location-coords {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(200, 169, 110, 0.15);
    border-radius: 20px;
    color: var(--color-secondary);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.location-directions h4 {
    font-family: var(--font-display);
    color: var(--color-text-white);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.location-directions p {
    color: var(--color-text-cream);
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.location-directions strong {
    color: var(--color-secondary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-bg-darker);
    color: var(--color-text-cream);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand img {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: white;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-cream);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: white;
    margin-bottom: 20px;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-secondary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.footer-legal a:hover { color: var(--color-secondary); }

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 64px;
    height: 64px;
    background: var(--color-whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 900;
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 12px rgba(37, 211, 102, 0.1); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 104px;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 900;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-light);
    transform: translateY(-3px);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    transform: scale(0.9);
    transition: var(--transition-slow);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 8px 16px;
    transition: var(--transition);
}

.lightbox-close:hover { color: var(--color-secondary); }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.25);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-40 { margin-top: 40px; }

/* ============================================
   CURSOR CUSTOM
   ============================================ */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--color-secondary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(200, 169, 110, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.cursor-dot.visible,
.cursor-ring.visible {
    opacity: 1;
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: var(--color-secondary);
}

body:hover .cursor-dot,
body:hover .cursor-ring {
    opacity: 1;
}

@media (hover: none) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================
   PARTICLES CANVAS
   ============================================ */
.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

/* ============================================
   HERO ENHANCED
   ============================================ */
.hero {
    overflow: hidden;
}

.hero-img-ken {
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-1%, -1%); }
}

.hero-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 2;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.hero-sky-intro {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}

.hero-shooting-star {
    position: absolute;
    width: 6px;
    height: 6px;
    z-index: 3;
    border-radius: 50%;
    opacity: 0;
    background: radial-gradient(circle, rgba(255, 252, 236, 0.92) 0%, rgba(255, 238, 185, 0.8) 32%, rgba(255, 210, 132, 0.44) 54%, rgba(255, 210, 132, 0) 80%);
    box-shadow: 0 0 7px rgba(255, 236, 183, 0.56), 0 0 14px rgba(255, 223, 157, 0.3);
    will-change: transform, opacity, filter;
}

.hero-shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    width: 142px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 227, 145, 0) 0%, rgba(255, 227, 145, 0.05) 48%, rgba(255, 238, 188, 0.34) 100%);
    transform-origin: right center;
    clip-path: polygon(0 48%, 100% 0, 100% 100%);
    filter: blur(0.2px);
}

.hero-shooting-star-2::before {
    width: 174px;
}

.hero-shooting-star::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 241, 194, 0.28) 0%, rgba(255, 220, 145, 0.08) 45%, rgba(255, 220, 145, 0) 74%);
    filter: blur(0.3px);
}

.meteor-trail-particle {
    position: absolute;
    width: 22px;
    height: 1.8px;
    border-radius: 999px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transform-origin: right center;
    background: linear-gradient(90deg, rgba(255, 231, 176, 0) 0%, rgba(255, 231, 176, 0.28) 56%, rgba(255, 244, 211, 0.56) 100%);
    filter: blur(0.2px);
    will-change: transform, opacity;
}

.hero-shooting-star.is-flying {
    animation: meteorHeadFlicker 0.45s linear infinite alternate;
}

.hero-shooting-star.is-flying::before {
    animation: meteorTrailPulse 0.55s ease-in-out infinite alternate;
}

@keyframes meteorHeadFlicker {
    0% {
        filter: brightness(0.99) saturate(0.99);
    }
    100% {
        filter: brightness(1.04) saturate(1.01);
    }
}

@keyframes meteorTrailPulse {
    0% {
        opacity: 0.78;
        transform: translateY(-50%) scaleX(0.97);
    }
    100% {
        opacity: 0.86;
        transform: translateY(-50%) scaleX(1);
    }
}

.hero-shooting-star-1 {
    top: 17%;
    left: 7%;
}

.hero-shooting-star-2 {
    top: 11%;
    right: 10%;
}

.hero-star-burst {
    position: absolute;
    left: 0;
    top: 0;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    background: radial-gradient(circle, rgba(255, 247, 220, 0.38) 0%, rgba(255, 230, 165, 0.16) 24%, rgba(255, 230, 165, 0.04) 42%, rgba(255, 230, 165, 0) 62%);
    filter: blur(0.8px);
    will-change: transform, opacity;
}

.hero-star-burst::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 1px;
    transform: translate(-50%, -50%);
    background: linear-gradient(90deg, rgba(255, 235, 182, 0) 0%, rgba(255, 235, 182, 0.28) 50%, rgba(255, 235, 182, 0) 100%);
    opacity: 0.8;
}

.hero-star-burst::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 232, 173, 0.24);
    opacity: 0.7;
}

.hero-badge {
    display: inline-block;
    padding: 5px 16px;
    border: 1px solid rgba(200, 169, 110, 0.5);
    border-radius: 30px;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(20px);
    backdrop-filter: blur(4px);
    background: rgba(0,0,0,0.15);
}

.hero-content {
    z-index: 5;
}

.hero-logo-wrapper {
    position: relative;
    opacity: 0;
    transform: translateY(24px) scale(0.9);
    will-change: transform, opacity, filter;
    margin-bottom: -8px;
}

.hero-logo-wrapper::before,
.hero-logo-wrapper::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%) scale(0.65);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.hero-logo-wrapper::before {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 233, 176, 0.48) 0%, rgba(255, 222, 146, 0.2) 34%, rgba(255, 222, 146, 0.03) 60%, rgba(255, 222, 146, 0) 78%);
    filter: blur(1.8px);
}

.hero-logo-wrapper::after {
    width: 520px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 236, 182, 0) 0%, rgba(255, 236, 182, 0.58) 50%, rgba(255, 236, 182, 0) 100%);
    filter: blur(1.2px);
}

.hero-logo-wrapper.logo-radiant::before {
    animation: logoRadiantHalo 1.18s ease-out forwards;
}

.hero-logo-wrapper.logo-radiant::after {
    animation: logoRadiantBeam 1.18s ease-out forwards;
}

@keyframes logoRadiantHalo {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.6);
    }
    22% {
        opacity: 0.95;
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.38);
    }
}

@keyframes logoRadiantBeam {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scaleX(0.35) scaleY(0.82);
    }
    25% {
        opacity: 0.88;
        transform: translate(-50%, -50%) scaleX(1.02) scaleY(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scaleX(1.55) scaleY(0.76);
    }
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 10px; /* Reduced margin to sit closer to subtitle */
    opacity: 0;
    transform: translateY(20px);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary); /* Gold/Primary color */
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-stat-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-cream);
    font-weight: 600;
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(200, 169, 110, 0.3);
}

/* Glow button effect */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: glowPulse 3s ease-in-out infinite;
}

.btn-glow:hover::before {
    opacity: 1;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* ============================================
   CUSTOM SECTION BACKGROUNDS (CREPÚSCULO SIERRA)
   ============================================ */
#historia, #galeria, #experiencias, #servicios, #fotos,
#video, #instagram, #reservas, #ubicacion {
    background: linear-gradient(180deg, var(--color-bg-white) 0%, var(--color-bg-cream) 100%);
}

/* Remove old dividers for these sections to ensure smooth transition */
#historia::before, #galeria::before, #experiencias::before,
#servicios::before, #reservas::before, #ubicacion::before {
    display: none !important;
}

/* ============================================
   PARALLAX ENHANCED
   ============================================ */
.parallax-section {
    overflow: hidden;
}

.parallax-bg {
    will-change: transform;
}

/* Section dividers with gradient */
.section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 2;
    pointer-events: none;
}

.section-cream::before {
    background: linear-gradient(to bottom, var(--color-bg-white), transparent);
}

.section-white::before {
    background: linear-gradient(to bottom, var(--color-bg-cream), transparent);
}

/* ============================================
   3D TILT CARDS (Experiencias)
   ============================================ */
.exp-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.1s ease, box-shadow 0.3s ease;
}

.exp-card-img {
    position: relative;
    overflow: hidden;
}

.exp-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200,169,110,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.exp-card:hover .exp-card-img::after {
    opacity: 1;
}

/* ============================================
   MASONRY GALLERY ENHANCED
   ============================================ */
.masonry-item {
    transform-style: preserve-3d;
    perspective: 800px;
}

.masonry-item img {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), filter 0.6s ease;
}

.masonry-item:hover img {
    transform: scale(1.08) translateZ(20px);
    filter: brightness(1.05) contrast(1.02);
}

.masonry-overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.1) 40%,
        transparent 100%
    );
    backdrop-filter: blur(0px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.masonry-item:hover .masonry-overlay {
    backdrop-filter: blur(2px);
}

/* ============================================
   SECTION TRANSITIONS (cinematic)
   ============================================ */
.section-dark {
    position: relative;
}

.section-dark::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--color-bg-dark), transparent);
    pointer-events: none;
}

/* ============================================
   VIDEO SHOWCASE
   ============================================ */
.video-showcase {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.video-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 16/9;
}

.video-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.video-placeholder:hover .video-thumb {
    transform: scale(1.05);
    filter: brightness(0.8);
}

/* Video Overlay and Play Button */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-link:hover .video-play-overlay {
    opacity: 1;
}

.video-link {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Enhanced video styling for autoplay videos */
.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-link:hover .gallery-video {
    transform: scale(1.1);
}

/* Masonry gallery video styling */
.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.masonry-item .video-link {
    display: block;
    position: relative;
}

.masonry-item .video-link .gallery-video {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.masonry-item .video-link:hover .gallery-video {
    transform: scale(1.05);
}

.masonry-item .video-link:hover .video-play-overlay {
    opacity: 1;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(13, 20, 28, 0.4); /* var(--color-bg-cream) */
    border: none;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.video-play-btn:hover {
    background: rgba(45, 80, 22, 0.6);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn svg circle {
    transition: stroke 0.3s ease;
}

.video-play-btn:hover svg circle {
    stroke: var(--color-secondary);
}

.video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.video-embed {
    position: absolute;
    inset: 0;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
}

.video-details h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-text-white);
    margin-bottom: 16px;
}

.video-details p {
    color: var(--color-text-cream);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.video-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.video-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-cream);
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.06);
}

.video-feature:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(200, 169, 110, 0.2);
}

.video-feature-icon {
    font-size: 1.2rem;
}

/* ============================================
   INSTAGRAM ENHANCED
   ============================================ */
.insta-item img {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), filter 0.5s ease;
}

.insta-item:hover img {
    transform: scale(1.12) rotate(1deg);
    filter: brightness(1.1);
}

.insta-overlay {
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.5), rgba(200, 169, 110, 0.4));
}

/* ============================================
   FEATURES ENHANCED (hover magnetic)
   ============================================ */
.feature-item {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease, background 0.4s ease;
    border: 1px solid transparent;
}

.feature-item:hover {
    border-color: rgba(200, 169, 110, 0.2);
}

.feature-icon svg {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-item:hover .feature-icon svg {
    transform: scale(1.15) rotate(-5deg);
}

/* ============================================
   CONTACT OPTIONS ENHANCED
   ============================================ */
.contact-option {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.contact-option:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(200, 169, 110, 0.3);
}

.contact-whatsapp:hover {
    border-color: rgba(37, 211, 102, 0.3);
}

.contact-phone:hover {
    border-color: rgba(26, 115, 232, 0.3);
}

.contact-email:hover {
    border-color: rgba(230, 81, 0, 0.3);
}

/* ============================================
   FOOTER ENHANCED
   ============================================ */
.footer-social a {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), background 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-4px) scale(1.1);
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    z-index: 1001;
    transition: width 0.1s linear;
    width: 0%;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--color-bg-dark);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: clamp(160px, 25vw, 260px); /* Tamaño responsivo y elegante, mucho más grande y visible */
    height: auto;
    object-fit: contain;
    animation: loadingPulse 2.2s ease-in-out infinite; /* Pulsación más lenta y distinguida */
    margin-bottom: 30px;
    opacity: 1 !important; /* Mantiene su color original sólido al 100%, nunca se oscurece */
}

.loading-bar {
    width: 200px; /* Increased from 120px */
    height: 3px; /* Slightly thicker */
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-top: 20px;
    overflow: hidden;
}

.loading-bar-inner {
    width: 0%;
    height: 100%;
    background: var(--color-secondary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

@keyframes loadingPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0px 0px 3px rgba(200, 169, 110, 0.15));
    }
    50% {
        transform: scale(1.02); /* Sutil pulsación de escala */
        filter: drop-shadow(0px 0px 18px rgba(200, 169, 110, 0.45)) drop-shadow(0px 0px 6px rgba(255, 223, 0, 0.2));
    }
}

/* ============================================
   PHOTO STRIP IMERSIVO
   ============================================ */
.photo-strip {
    background: var(--color-bg-dark);
    padding: 60px 0;
    overflow: hidden;
}

.photo-strip-inner {
    display: flex;
    gap: 16px;
    padding: 0 24px;
    max-width: var(--container-wide);
    margin: 0 auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.photo-strip-inner::-webkit-scrollbar {
    display: none;
}

.photo-strip-item {
    position: relative;
    flex: 0 0 340px;
    border-radius: var(--border-radius);
    overflow: hidden;
    scroll-snap-align: center;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.photo-strip-item:hover {
    transform: scale(1.03);
}

.photo-strip-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), filter 0.6s ease;
}

.photo-strip-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.photo-strip-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: white;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ============================================
   PHOTO STRIP RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .photo-strip-item {
        flex: 0 0 280px;
    }
    .photo-strip-item img {
        height: 200px;
    }
    .photo-strip {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .photo-strip-item {
        flex: 0 0 85vw;
    }
    .photo-strip-item img {
        height: 180px;
    }
}

/* Spinner de Carga Dorado para el Formulario */
.gold-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(200, 169, 110, 0.2);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    animation: goldSpin 1s linear infinite;
    box-shadow: 0 0 15px rgba(200, 169, 110, 0.15);
}

@keyframes goldSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Círculo de Checkmark de Éxito en Formulario */
.success-checkmark-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(200, 169, 110, 0.1);
    border: 2px solid rgba(200, 169, 110, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(200, 169, 110, 0.15);
    margin: 0 auto;
}

/* Micro-interacciones Táctiles y Hover Elásticos en Botones */
.whatsapp-float:active,
.mobile-action-btn:active,
.btn:active,
.cinematic-item:active,
.exp-card:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s ease !important;
}

/* ============================================
   SHOWCASE CINEMATOGRÁFICO DE VÍDEOS (DRONE)
   ============================================ */
.cinematic-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .cinematic-showcase {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.cinematic-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(200, 169, 110, 0.2);
    aspect-ratio: 16 / 9;
    background: #000;
}

.cinematic-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.cinematic-item:hover .cinematic-video {
    transform: scale(1.04);
}

.cinematic-play-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
    z-index: 2;
}

.cinematic-item:hover .cinematic-play-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0.3) 100%);
}

.play-btn-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(200, 169, 110, 0.9);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 20px rgba(200, 169, 110, 0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, box-shadow 0.3s ease;
}

.cinematic-item:hover .play-btn-circle {
    transform: scale(1.15);
    background: #dfba73;
    box-shadow: 0 0 30px rgba(255, 223, 0, 0.7);
}

.play-btn-circle svg {
    margin-left: 2px; /* Alineación óptica del triángulo play */
}

.cinematic-caption {
    margin-top: 16px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease, transform 0.3s ease;
}

.cinematic-item:hover .cinematic-caption {
    color: #ffdf9e;
    transform: translateY(-2px);
}

/* Ajuste del elemento video del Lightbox */
.lightbox-video {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.8);
    outline: none;
    border: 1px solid rgba(200,169,110,0.3);
    z-index: 10010;
}

/* Capa Cinematográfica de Alta Calidad (Viñeta de cine) */
.lightbox-cinematic-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none; /* No obstruye clics en el reproductor de vídeo */
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7) 100%);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.85);
    z-index: 10012; /* Justo por encima del vídeo pero debajo de subtítulos y controles */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.lightbox-cinematic-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Botón de control de Voz en Lightbox */
.lightbox-voice-toggle {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(200, 169, 110, 0.4);
    border-radius: 30px;
    color: var(--color-secondary);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    z-index: 10020;
}

.lightbox-voice-toggle:hover {
    background: rgba(200, 169, 110, 0.2);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Contenedor de Subtítulos Elegantes del Lightbox */
.lightbox-caption-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 100%);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 14px 24px;
    border: 1px solid rgba(200, 169, 110, 0.2);
    text-align: center;
    pointer-events: none; /* No estorba clicks del reproductor */
    z-index: 10015;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox-caption-container.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-caption-text {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 1.8vw, 1.25rem);
    font-weight: 400;
    color: #fff;
    margin: 0;
    line-height: 1.6;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .lightbox-voice-toggle {
        top: 20px;
        left: 20px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .lightbox-caption-container {
        bottom: 20px;
        width: 90%;
        padding: 10px 16px;
    }
}
