/* public/assets/css/style.css */

/* ==========================================================================
   VARIABLES ROOT Y RESET (MANUAL DE IDENTIDAD OKRAM)
   ========================================================================== */
:root {
    /* Paleta Oficial */
    --brand-dark: #004944;   /* Verde oscuro principal */
    --brand-medium: #1A916F; /* Verde esmeralda */
    --brand-light: #86D296;  /* Verde menta */
    --brand-accent: #B8D176; /* Verde lima/amarillento */
    --brand-cream: #E6D5A7;  /* Crema */

    /* Variables de UI */
    --bg-color: #f7f9f8;     /* Blanco roto muy elegante */
    --text-main: #333333;
    --header-height: 85px;
    
    /* Tipografías */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Agregado del móvil para evitar scroll horizontal accidental */
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--brand-dark);
    font-weight: 600;
}

/* Visualmente oculto pero accesible para lectores de pantalla y buscadores
   (no usar display:none / visibility:hidden, eso sí lo ocultaría de ambos). */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   PÁGINAS DE ERROR (404 / 403) — standalone, sin el recorrido/JS pesado.
   ========================================================================== */
.error-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-dark);
    padding: 24px;
    text-align: center;
}

.error-page-content {
    max-width: 480px;
}

.error-page-logo {
    height: 48px;
    margin-bottom: 40px;
}

.error-page-code {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--brand-accent);
    line-height: 1;
    margin-bottom: 16px;
}

.error-page-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 16px;
}

.error-page-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    margin-bottom: 32px;
}

.error-page-btn {
    display: inline-block;
    background: var(--brand-accent);
    color: var(--brand-dark);
    font-weight: 600;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.error-page-btn:hover {
    opacity: 0.85;
}

/* ==========================================================================
   THANK YOU PAGE (/gracias) — standalone, mismo sistema visual que
   .error-page pero con su propio nombre de clase (no es una página de error).
   ========================================================================== */
.gracias-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-dark);
    padding: 24px;
    text-align: center;
}

.gracias-page-content {
    max-width: 480px;
}

.gracias-page-logo {
    height: 48px;
    margin-bottom: 40px;
}

.gracias-page-icon {
    width: 72px;
    height: 72px;
    line-height: 72px;
    border-radius: 50%;
    background: var(--brand-accent);
    color: var(--brand-dark);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 24px;
}

.gracias-page-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 16px;
}

.gracias-page-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    margin-bottom: 32px;
}

.gracias-page-btn {
    display: inline-block;
    background: var(--brand-accent);
    color: var(--brand-dark);
    font-weight: 600;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.gracias-page-btn:hover {
    opacity: 0.85;
}

/* ==========================================================================
   HEADER FLOTANTE (ANCHO DE 800PX Y SCROLLSPY)
   ========================================================================== */
.floating-header {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translate(-50%, -30px);
    opacity: 0;
    visibility: hidden;
    width: 95%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, visibility 0.4s ease;
}

.floating-header.is-scrolled {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

.header-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px; 
    padding: 10px 40px;
    background: rgba(0, 73, 68, 0.40);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px; 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    flex: 1; 
    min-width: 30px; 
}

.header-left { justify-content: flex-start; }
.header-right { justify-content: flex-end; }

.header-center {
    flex: 0 1 auto;
    text-align: center;
    white-space: nowrap;
}

.logo-text { font-size: 1.3rem; }

.active-section-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    transition: opacity 0.3s ease; 
    opacity: 1;
}

.active-section-text.fade-out { opacity: 0; }

.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px; 
    z-index: 1001;
    flex-shrink: 0;
}

.menu-toggle .bar {
    width: 25px; 
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   MENÚ PANTALLA COMPLETA (GRID EDITORIAL Y FOOTER)
   ========================================================================== */
.full-nav {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background-color: rgba(6, 18, 15, 0.96); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    opacity: 0; 
    pointer-events: none; 
    transition: opacity 0.5s ease; 
    z-index: 998; 
}

.full-nav.active { 
    opacity: 1; 
    pointer-events: all; 
}

.nav-content-wrapper {
    width: 90%;
    max-width: 1100px;
    margin-top: -50px; 
}

.nav-list { 
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 60px 40px; 
    list-style: none; 
    padding: 0; 
    margin: 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    text-align: left;
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.nav-list a { 
    color: #fff; 
    font-family: 'Playfair Display', serif; 
    font-size: 3.2rem; 
    text-decoration: none; 
    line-height: 1.1;
    margin-bottom: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
    transform-origin: left center;
}

.nav-desc {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.15); 
    padding-top: 12px;
}

.nav-list a:hover { 
    color: var(--brand-accent); 
    transform: translateX(8px); 
}

.full-nav.active .nav-item:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.10s; }
.full-nav.active .nav-item:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.full-nav.active .nav-item:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.20s; }
.full-nav.active .nav-item:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.full-nav.active .nav-item:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.30s; }
.full-nav.active .nav-item:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.full-nav.active .nav-item:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.40s; }

.nav-footer {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.nav-address, .nav-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.nav-address strong {
    color: #fff;
    font-weight: 500;
}

/* ==========================================================================
   TARJETA PREMIUM Y COMPONENTES GLOBALES
   ========================================================================== */
.section-3d {
    background-color: #e9eceb; 
    position: relative;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 4px; 
    box-shadow: 0 20px 40px rgba(0, 73, 68, 0.08); 
    padding: 40px;
    max-width: 420px;
    width: 100%;
    margin: 40px auto; 
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--brand-accent);
    padding-bottom: 15px;
}

.card-header h3 {
    font-size: 2rem;
    color: var(--brand-dark);
    margin: 0;
}

.badge {
    background-color: var(--brand-dark);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.7rem;
    padding: 6px 14px;
    border-radius: 0; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
    font-weight: 300;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 35px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--brand-dark);
}

.spec-item .icon {
    font-size: 1.2rem;
    color: var(--brand-medium); 
}

.btn-outline {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 1px solid var(--brand-dark);
    color: var(--brand-dark);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-outline:hover {
    background: var(--brand-dark);
    color: #fff;
    border-color: var(--brand-dark);
}

/* --- BOTÓN WHATSAPP --- */
/* OCULTO A PROPÓSITO (escritorio Y móvil) hasta nuevo aviso: aún no hay número de
   WhatsApp definitivo. Quitar esta regla display:none para reactivarlo. */
.whatsapp-btn { display: none !important; }

.whatsapp-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: var(--brand-medium);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(26, 145, 111, 0.4);
    z-index: 999;
    opacity: 1;
    transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.4s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.08);
    background-color: var(--brand-dark);
}

/* ==========================================================================
   FOOTER TIPO REFERENCIA
   ========================================================================== */
.footer {
    background-color: var(--bg-color); 
    color: var(--brand-dark);
    border-top: 1px solid rgba(0, 73, 68, 0.2); 
    font-family: var(--font-body);
    position: relative;
    z-index: 10;
}

.footer-top { border-bottom: 1px solid rgba(0, 73, 68, 0.2); }

.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr;
}

.footer-col {
    padding: 60px 40px;
    border-right: 1px solid rgba(0, 73, 68, 0.2); 
}

.footer-col:last-child { border-right: none; }

/* Columna Branding (logo + "Un proyecto de LERWEN") centrada en escritorio y móvil */
.footer-col:first-child { text-align: center; }

.footer-heading {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 30px;
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Columna Branding: "un proyecto de" + logo de LERWEN (enlazado) */
.footer-proyecto-de {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin: 0 0 12px;
}
.footer-lerwen-link {
    display: inline-block;
    line-height: 0;
}
.logo-lerwen {
    height: 104px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.logo-separator {
    color: rgba(0, 73, 68, 0.3);
    font-size: 1.5rem;
    font-weight: 300;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 15px; }
.footer-links a {
    color: var(--brand-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--brand-medium); }

.footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 5px;
}

.footer-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-footer {
    padding: 6px 20px;
    border: 1px solid var(--brand-dark);
    border-radius: 20px; 
    color: var(--brand-dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.btn-footer:hover {
    background-color: var(--brand-dark);
    color: #fff;
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(0, 73, 68, 0.7);
}

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(0, 73, 68, 0.7); text-decoration: none; }
.footer-bottom-links a:hover { text-decoration: underline; }

/* ==========================================================================
   >>> MEDIA QUERIES BASE (HEADER, FOOTER) <<<
   ========================================================================== */

/* --- TABLETAS (max-width: 992px) --- */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col { border-bottom: 1px solid rgba(0, 73, 68, 0.2); }
    .footer-col:nth-child(2),
    .footer-col:nth-child(4) { border-right: none; }
}

/* --- MÓVILES (max-width: 768px) --- */
@media (max-width: 768px) {
    /* HEADER FLOTANTE */
    .floating-header { top: 15px; }
    .header-pill { max-width: 90%; padding: 12px 25px; }
    .active-section-text { display: none !important; }
    .logo-text { font-size: 1.1rem; letter-spacing: 2px !important; height: 42px !important; }
    .header-center { display: flex; align-items: center; justify-content: center; }

    /* MENÚ PANTALLA COMPLETA */
    .nav-content-wrapper { margin-top: 0; height: 75vh; overflow-y: auto; }
    .nav-list { display: flex; flex-direction: column; align-items: center; gap: 30px; padding-bottom: 20px; }
    .nav-item { text-align: center; transform: translateY(15px); }
    .nav-list a { font-size: 2.2rem; margin-bottom: 5px; display: block; }
    .nav-desc { font-size: 0.85rem; padding-top: 5px; border-top: none; }

    /* FOOTER MENÚ */
    .nav-footer { flex-direction: column; text-align: center; gap: 15px; bottom: 20px; padding-top: 15px; width: 85%; }
    .nav-address { font-size: 0.75rem; line-height: 1.5; }
    .nav-copyright { font-size: 0.75rem; }

    /* TARJETA PREMIUM */
    section h2 { font-size: 2.2rem; }
    .glass-card { padding: 30px; margin: 20px; }
    
    /* ANIMACIÓN MENÚ HAMBURGUESA */
    .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); }

    /* FOOTER PRINCIPAL (Corrección de sintaxis aplicada) */
    .footer-grid { grid-template-columns: 1fr; }
    .footer-col { 
        border-right: none; 
        border-bottom: 1px solid rgba(0, 73, 68, 0.15); 
        padding: 40px 20px; 
        display: flex;
        flex-direction: column;
        align-items: center; 
        text-align: center; 
    }
    .footer-col:last-child { border-bottom: none; }
    .footer-logos { justify-content: center; }
    .footer-links-grid { gap: 20px 40px; }
    .footer-actions { justify-content: center; width: 100%; }
    
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; padding: 30px 20px; }
    .footer-bottom-links { justify-content: center; flex-wrap: wrap; }
}


/* Okram Section Website */


/* --- SECCION 1 - HERO (FORMATO ORIGINAL 16:9 SIN RECORTE) --- */

.section-video {
    position: relative;
    width: 100%;
    /* Magia moderna: Fuerza a la sección a mantener la proporción exacta del video */
    aspect-ratio: 16 / 9; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: calc(var(--header-height) * -1); 
    padding-top: var(--header-height);
}

/* Configuración del Video de Fondo Limpia */
#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Como el contenedor ya es 16:9, encaja perfecto sin recortar */
    z-index: -2;
}

/* Capa Oscura (Overlay) con el verde oficial OKRAM */
.section-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 73, 68, 0.15); /* Verde oscuro con 45% de transparencia */
    z-index: -1;
}

/* Contenedor del Texto */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    animation: fadeInDown 1.5s ease; 
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-content p {
    font-family: var(--font-heading); 
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Animación CSS nativa muy ligera */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   >>> RESPONSIVE HERO (TABLETAS Y MÓVILES) <<<
   ========================================================================== */

/* --- TABLETAS Y MÓVILES JUNTOS (Pantallas de 992px o menos) --- */
@media (max-width: 992px) {
    .section-video {
        aspect-ratio: 1 / 1; /* 👈 Forzamos el formato cuadrado 1x1 */
        height: auto; 
        padding-top: 0;
        margin-top: 0;
    }
}

/* --- SOLO MÓVILES (Pantallas de 768px o menos) --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem; /* Ajustamos el tamaño del título para móvil */
        letter-spacing: 2px;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   SECCIÓN 2 - Texto ELEGANTE
   ========================================================================== */
.section-texto-elegante {
    background-color: var(--bg-color); /* Blanco roto del manual OKRAM */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 150px 20px; /* Mucho espacio arriba y abajo = Lujo */
    min-height: 50vh;
}

.texto-container {
    max-width: 800px;
    text-align: center;
}

.texto-container .overline {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--brand-medium); /* El verde esmeralda OKRAM */
    margin-bottom: 30px;
}

.texto-container h2 {
    font-family: var(--font-heading); /* Fuente serif elegante */
    font-size: 2.2rem;
    color: var(--brand-dark);
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 30px;
}

.texto-container p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

.texto-container .texto-lista {
    list-style: none;
    max-width: 640px;
    margin: 0 auto;
    padding: 0;
    text-align: left;
}

.texto-container .texto-lista li {
    position: relative;
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--brand-dark);
    line-height: 1.6;
    font-weight: 300;
    padding-left: 28px;
    margin-bottom: 18px;
}

.texto-container .texto-lista li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-medium); /* verde esmeralda OKRAM */
}

@media (max-width: 768px) {
    .section-texto-elegante { padding: 100px 20px; }
    .texto-container h2 { font-size: 1.5rem; }
    .texto-container .texto-lista li { font-size: 1.05rem; }
}


/* ==========================================================================
   >>> INICIO DE LA TRANSICIÓN MAESTRA (SECCIONES 3 Y 4 UNIDAS) <<<
   ========================================================================== */

/* --- 1. EL CONTENEDOR MAESTRO (EL SÁNDWICH DE CAPAS) --- */
#master-transition-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--brand-dark);
}

/* CAPA 1: Al fondo del todo (El lienzo del edificio 3D) */
.edificio-canvas-global {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* CAPA 2: En el medio (Tapando el edificio inicialmente) */
#galeria-pin-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* CAPA 3: Hasta adelante (Invisibles hasta que les toque entrar) */
.section-modelos-gsap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    background: transparent !important;
}

/* Reactivamos los clics solo para las tarjetas cuando aparezcan */
.model-scroll-card {
    pointer-events: auto;
}

/* ==========================================================================
   --- SECCIÓN 3: GALERÍA ACORDEÓN (ESTILO AXIS HAUS / OKRAM) ---
   ========================================================================== */
.section-galeria {
    background-color: var(--brand-dark);
    width: 100%;
    height: 100%;
    padding: 120px 20px;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.galeria-header {
    text-align: center;
    margin-bottom: 70px;
}

.galeria-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: #ffffff;
    letter-spacing: 4px;
    font-weight: 200;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.galeria-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}

/* El Contenedor Flex de la Galería (Acordeón) */
.galeria-accordion {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    height: 60vh;
    margin: 0 auto;
    gap: 15px; 
    position: relative; 
}

/* Cada Panel Individual */
.panel {
    background-color: #141414;
    background-size: cover;
    background-position: center;
    height: 100%;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    flex: 1; 
    position: relative; 
    overflow: hidden;
    filter: grayscale(100%); 
    transition: flex 0.9s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
}

/* Estados de expansión */
.panel.active,
.galeria-accordion:hover .panel:hover {
    flex: 5 !important; 
    filter: grayscale(0%);
}

/* Overlay protector Oscuro */
.panel-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0; 
    transition: opacity 0.6s ease;
}

.panel.active .panel-overlay,
.galeria-accordion:hover .panel:hover .panel-overlay {
    opacity: 1;
}

/* Contenido interno */
.panel-inner {
    position: relative;
    z-index: 2; 
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    padding: 40px; 
}

.panel-main-content {
    opacity: 0; 
    pointer-events: none;
    transform: translateY(20px); 
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.panel.active .panel-main-content, 
.galeria-accordion:hover .panel:hover .panel-main-content {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
    transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s; 
}

.panel-main-content h3 {
    font-family: 'Playfair Display', serif; 
    font-size: 2.8rem; 
    color: #ffffff; 
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.panel-main-content p {
    font-family: var(--font-body);
    font-size: 1.15rem; 
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* ESTILOS ESPECÍFICOS: PANEL CENTRAL */
#panel-center {
    background-color: #141414; 
    background-position: center;
    background-size: cover; 
    flex: 3 !important; 
    pointer-events: none !important; 
    cursor: default;
}

#panel-center::before,
.card-image::before {
    content: none !important;
    display: none !important;
}

.central-panel-inner {
    justify-content: flex-start;
}

.content-expanded {
    background-color: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

/* ==========================================================================
   ADAPTACIÓN PARA MÓVILES (SCROLL HORIZONTAL GSAP)
   ========================================================================== */
@media (max-width: 991px) {
    .section-galeria {
        padding: 0;
        height: 100vh;
        justify-content: flex-start;
    }

    .galeria-header {
        position: absolute;
        top: 10%;
        left: 0;
        width: 100%;
        z-index: 10;
        margin-bottom: 0;
    }

    .galeria-title {
        font-size: 2rem;
    }

    .galeria-accordion {
        width: 500vw;
        height: 100vh;
        gap: 0;
    }

    .panel {
        flex: 0 0 100vw !important;
        border-radius: 0;
        filter: grayscale(0%);
    }

    .panel-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    }

    .panel-main-content {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
        text-align: center;
        padding-bottom: 40px;
    }

    .panel-main-content h3 {
        font-size: 2rem;
    }

    #panel-center {
        pointer-events: auto !important;
    }
    
    .content-expanded {
        opacity: 1;
    }
}

/* ==========================================================================
   --- SECCIÓN 4: MODELOS - TARJETAS INMERSIVAS GLASSMORPHISM ---
   ========================================================================== */
.container-gsap {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: center;
}

/* Capa de foto nítida por parada del recorrido: encima del video (z 0/1), debajo de
   las tarjetas (z 3/4). Aparece con fade al detenerse en una tarjeta. */
#recorrido-foto {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
}
#recorrido-foto.is-visible { opacity: 1; }

/* Aviso de scroll al detenerse en Edificio/Modelos/Amenidades — SOLO móvil (ver @media
   más abajo); controlado por JS (main.js) según el paso actual del recorrido. */
.edificio-scroll-hint {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    line-height: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: none;
}
@media (max-width: 991px) {
    .edificio-scroll-hint { display: block; }
    .edificio-scroll-hint.is-visible {
        opacity: 0.55;
        animation: edificioScrollHint 2.2s infinite ease-in-out;
    }
    @keyframes edificioScrollHint {
        0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.55; }
        50% { transform: translateX(-50%) translateY(-8px); opacity: 1; }
    }
}

/* Tracker de progreso del recorrido (2026-07-27) — portado de /torre (torre.css), mismo
   diseño ya aprobado: 5 puntos fijos, clicables (saltan de fase vía window.masterGoToPhase,
   ya existente en animacion-maestra.js), solo el punto activo muestra su nombre. main.js
   le agrega/quita .is-active/.is-done según el paso actual (mismo agrupamiento de 5 fases
   que ya usa changeHeaderText). z-index 900: por debajo de .floating-header (1000, no hay
   colisión real porque el tracker vive a la izquierda y el header está centrado) pero por
   encima del resto del contenido del recorrido (.modelos-nav-panel usa 5). */
.recorrido-tracker {
    position: fixed;
    top: 50%;
    left: 25px;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
}
.recorrido-tracker-line {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 0;
}
.recorrido-tracker-item {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.recorrido-tracker-dot {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.recorrido-tracker-item:hover .recorrido-tracker-dot {
    transform: scale(1.15);
    border-color: #fff;
}
.recorrido-tracker-item.is-done .recorrido-tracker-dot {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
}
.recorrido-tracker-item.is-active .recorrido-tracker-dot {
    width: 16px;
    height: 16px;
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}
.recorrido-tracker-label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    white-space: nowrap;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.3s ease, opacity 0.25s ease;
}
.recorrido-tracker-item.is-active .recorrido-tracker-label {
    max-width: 160px;
    opacity: 1;
}

/* Móvil/tablet: riel vertical -> barra horizontal (mismo motivo que en /torre: a los
   lados sobra espacio en escritorio, pero en móvil las tarjetas del recorrido ocupan casi
   todo el ancho). Debajo del header flotante (que en móvil vive en top:15px). */
@media (max-width: 991px) {
    .recorrido-tracker {
        top: 78px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        align-items: flex-start;
        gap: 18px;
    }
    .recorrido-tracker-line {
        top: 6px;
        bottom: auto;
        left: 6px;
        right: 6px;
        width: auto;
        height: 2px;
    }
    .recorrido-tracker-item { flex-direction: column; gap: 6px; }
    .recorrido-tracker-label {
        text-align: center;
        font-size: 0.62rem;
    }
}
@media (max-width: 480px) {
    .recorrido-tracker { top: 64px; gap: 12px; }
    .recorrido-tracker-dot { width: 10px; height: 10px; }
    .recorrido-tracker-item.is-active .recorrido-tracker-dot { width: 12px; height: 12px; }
    .recorrido-tracker-label { font-size: 0.56rem; }
}

/* Aceleración por GPU para el scrubbing de los videos del recorrido (menos repaint/jank). */
#edificio-canvas,
#amenidades-canvas {
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.cards-stack-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.model-scroll-card {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10%;
    width: calc(100% - 10%);
    opacity: 0;
    visibility: hidden;
}

/* Escritorio: al llegar a "Modelo D" el edificio ya no se mueve por tarjeta — el panel
   de navegación (main.js) alterna cuál tarjeta se ve con esta clase, sin usar GSAP. */
@media (min-width: 992px) {
    .model-scroll-card {
        transition: opacity 0.35s ease;
    }
    .model-scroll-card.is-shown {
        opacity: 1;
        visibility: visible;
    }
}

.tight-card {
    border-radius: 20px;
    padding: 38px;
    position: relative;
    width: 900px;
    max-width: 95%; 
    flex-shrink: 0; 
    display: grid;
    grid-template-columns: 1.2fr 1fr; 
    gap: 40px; 
    align-items: center; 
    background: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.card-left { display: flex; flex-direction: column; }
.card-right { position: relative; display: flex; justify-content: center; align-items: center; }

/* Panel de navegación de Modelos — solo escritorio (oculto en móvil, ver
   @media max-width:991px). Salta directo a cualquier modelo sin scroll. */
.modelos-nav-panel {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 5;
    /* #modelos-departamentos (el contenedor de esta sección) tiene pointer-events:none
       inline — .container-gsap lo revierte a "auto" para las tarjetas, pero este panel
       es HERMANO de .container-gsap, no hijo, así que necesita su propio override. */
    pointer-events: auto;
}

.modelos-nav-btn {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--brand-dark);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    padding: 12px 20px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}

.modelos-nav-btn:hover { background: #ffffff; }

.modelos-nav-btn.is-active {
    background: var(--brand-dark);
    color: #ffffff;
    border-color: var(--brand-dark);
}

/* Candado bloqueado: mismo "sacudido" que ya usa el candado de contraseña. */
.modelos-nav-panel.gate-shake { animation: gateShake 0.4s ease; }

/* Insinúa que el render se puede hacer zoom (el cursor "zoom-in" que ya pone el JS solo se
   ve pasando el mouse; esto lo deja claro también en touch). pointer-events:none para que
   el clic siempre caiga en la imagen de abajo, que ya tiene su propio listener de zoom. */
.zoom-hint {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(11, 43, 38, 0.65);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.model-name {
    font-family: 'Playfair Display', serif;
    font-size: 3.3rem;
    color: var(--brand-dark);
    line-height: 1;
    margin-bottom: 5px;
}

.model-m2 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: #475569;
    font-weight: 300;
    display: block;
    margin-bottom: 16px;
}

.img-planta-compacta,
.img-render-compacta {
    width: 100%;
    max-height: 370px;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.2));
}

.amenities-grid-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 22px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: #334155;
    font-weight: 500; 
}

.amenity-item i { 
    color: var(--brand-dark); 
    font-size: 1.25rem; 
    width: 25px; 
}

.view-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    gap: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: 15px;
    padding-top: 20px; 
    margin-bottom: 25px;
    min-height: 80px;
}

.view-tag { flex: 1; }

.view-tag .overline {
    font-size: 0.85rem; 
    letter-spacing: 2.5px;
    color: var(--brand-dark);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.view-tag p { 
    color: #334155; 
    font-size: 1.15rem; 
    font-weight: 500;
}

.mini-map-container {
    position: relative;
    width: 130px; 
    height: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-base, .map-overlay {
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.map-base { position: relative; z-index: 1; opacity: 0.8; }
.map-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; 
    animation: mapPulse 3s ease-in-out infinite; 
    z-index: 2;
}

@keyframes mapPulse {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.card-footer-compact {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    margin-top: 25px;
}

.btn-cotizar {
    border: 1px solid var(--brand-dark);
    padding: 14px 35px; 
    font-size: 1.05rem; 
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase; 
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap; 
    text-align: center;
    border-radius: 4px; 
}

.btn-cotizar:hover { 
    background: var(--brand-dark); 
    color: #fff; 
}

/* ==========================================================================
   >>> RESPONSIVE: SECCIÓN 3 Y 4 (MÓVILES Y TABLETAS) <<<
   ========================================================================== */
@media (max-width: 992px) {
    .section-galeria {
        padding: 0 !important; 
        width: 100vw !important;
        height: 100vh !important; 
        overflow: hidden !important; 
        position: relative !important;
        display: block !important;
    }

    .galeria-header {
        position: absolute !important; 
        top: 50px !important; 
        left: 0 !important;
        width: 100vw !important;
        z-index: 10 !important;
        text-align: center !important;
        margin: 0 !important; 
    }

    .galeria-accordion {
        display: flex !important;
        flex-direction: row !important;
        width: 500vw !important; 
        height: 100vh !important;
        flex-wrap: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
        overflow: visible !important; 
        scroll-snap-type: none !important; 
    }

    .panel {
        width: 100vw !important;
        height: 100vh !important; 
        flex: 0 0 100vw !important; 
        max-width: 100vw !important;
        position: relative !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        filter: none !important; 
    }

    .panel:nth-child(1) { order: 1 !important; }
    .panel:nth-child(2) { order: 2 !important; }
    .panel:nth-child(4) { order: 3 !important; }
    .panel:nth-child(5) { order: 4 !important; }
    #panel-center { order: 5 !important; }

    /* La tarjeta EDIFICIO debe ser un panel completo más del carrusel.
       Anulamos su flex:3 de escritorio para que mida 100vw como las demás. */
    #panel-center {
        flex: 0 0 100vw !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    /* Experiencia 100% scroll: las tarjetas no responden a clic/hover */
    .section-galeria .galeria-accordion,
    .section-galeria .panel {
        pointer-events: none !important;
        cursor: default !important;
    }

    /* Anulamos la expansión por hover/active en móvil (rompía los anchos) */
    .section-galeria .panel.active,
    .section-galeria .galeria-accordion:hover .panel:hover {
        flex: 0 0 100vw !important;
        filter: none !important;
    }

    .panel-inner {
        padding: 40px 20px !important;
        justify-content: flex-end !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .panel-overlay {
        opacity: 1 !important;
        background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, transparent 100%) !important;
        width: 100% !important;
        height: 100% !important;
    }

    .panel-main-content {
        opacity: 1 !important;
        pointer-events: auto !important;
        margin: 0 !important;
        transform: none !important;
    }

    /* La tarjeta EDIFICIO (#panel-center) se muestra limpia (solo imagen),
       igual que en escritorio: ocultamos el texto "DESCUBRE EL INTERIOR". */
    #panel-center .content-original,
    #panel-center .content-expanded {
        display: none !important;
    }

    .panel-main-content h3 { font-size: 2.5rem !important; margin-bottom: 10px !important; }
    .panel-main-content p { font-size: 1.1rem !important; line-height: 1.5 !important; }

    .container-gsap {
        height: auto; 
        padding: 50px 0;
    }
    
    .cards-stack-wrapper {
        display: flex;
        flex-direction: column;
        gap: 40px; 
    }
    
    .model-scroll-card {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        transform: none;
        opacity: 1 !important; 
        visibility: visible !important;
    }
    
    /* Tarjeta de modelo: 2 columnas (texto | plano), como pruebamovil */
    .tight-card {
        width: 95%;
        padding: 15px;
        gap: 10px;
        grid-template-columns: 1.2fr 1fr;
    }

    /* Amenidades del modelo en UNA sola columna (como pruebamovil) */
    .amenities-grid-compact {
        grid-template-columns: 1fr;
        gap: 6px;
    }


    /* Mini-mapa (greenmap) más pequeño, como en pruebamovil */
    .mini-map-container { width: 60px; }

    /* Bloque de vista/nivel con los colores y tamaños de pruebamovil */
    .view-wrapper { min-height: 0; gap: 10px; padding-top: 8px; margin-top: 8px; margin-bottom: 10px; }
    .view-tag .overline { font-size: 0.65rem; letter-spacing: 1px; color: #64748b; margin-bottom: 2px; }
    .view-tag p { color: #0f172a; font-size: 0.85rem; font-weight: 700; }

    /* Texto del modelo igual que pruebamovil */
    .model-m2 { color: #475569; font-weight: 500; }
    .amenity-item { color: #334155; font-weight: 600; }
    .amenity-item i { color: var(--brand-dark); }

    /* Botón "Cotiza tu Depa": verde sólido y compacto, como pruebamovil */
    .card-footer-compact { margin-top: 10px; }
    .btn-cotizar {
        background: var(--brand-dark);
        color: #fff;
        border: 1px solid var(--brand-dark);
        padding: 8px 15px;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
    .btn-cotizar:hover { background: transparent; color: var(--brand-dark); }

    /* Panel de navegación de Modelos: pendiente el diseño móvil, se queda oculto
       por ahora (el recorrido en móvil sigue igual que siempre, sin el panel). */
    .modelos-nav-panel { display: none; }
}

@media (max-width: 768px) {
    .panel-main-content h3 { font-size: 1.8rem !important; }
    .panel-main-content p { font-size: 0.95rem !important; max-width: 100% !important; }
    
    .tight-card {
        padding: 20px;
    }
}

/*==========================================================================
   SECCIÓN 5.6 - AMENIDADES (TARJETAS GLASSMORPHISM CON GALERÍA)
   ========================================================================== */
.section-amenidades {
    padding: 100px 0;
    background-color: transparent; 
}

.amenity-glass-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    padding: 50px;
    border-radius: 20px;
    width: 900px;
    max-width: 90%;
    margin-left: 10%; 
    background: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.amenity-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.amenity-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--brand-dark); 
    margin-bottom: 5px;
    line-height: 1;
}

.amenity-level {
    font-family: var(--font-body);
    font-size: 1.8rem;
    color: #475569;
    font-weight: 300;
    margin-bottom: 35px;
    display: block;
}

.amenity-description {
    font-size: 1.2rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 40px;
}

.amenity-checklist {
    list-style: none;
    padding: 0;
    margin: 0; 
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.amenity-checklist li {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: #334155;
    line-height: 1.4;
    display: flex; 
    align-items: flex-start;
    gap: 15px;
    font-weight: 500;
}

.amenity-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0; 
    margin-top: 2px; 
}

.amenity-checklist strong {
    color: var(--brand-dark);
    font-weight: 700;
}

.amenity-gallery {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; 
    align-items: stretch;
    overflow: hidden; 
}

.gallery-track {
    display: flex;
    gap: 15px;
    overflow-x: auto; 
    scroll-snap-type: x mandatory;
    padding-bottom: 10px; 
    width: 100%;
    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-img {
    flex: 0 0 100%;
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px; 
    scroll-snap-align: center; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    cursor: zoom-in; 
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.carousel-btn {
    background: rgba(11, 43, 38, 0.8);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: var(--brand-dark);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(11, 43, 38, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--brand-dark);
    width: 20px; 
    border-radius: 10px;
}

.lightbox-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999; 
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1); 
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 45px;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--brand-accent);
}

@media (max-width: 992px) {
    /* Tarjeta de amenidad: 2 columnas (checklist | galería), como pruebamovil */
    .amenity-glass-card {
        grid-template-columns: 1.2fr 1fr;
        width: 95%;
        margin-left: auto;
        margin-right: auto;
        padding: 15px;
        gap: 10px;
    }

    .amenity-title {
        font-size: 1.6rem;
    }

    /* Descripción (Pet Zone) compacta, como pruebamovil */
    .amenity-description {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .model-scroll-card { 
        position: absolute; 
        top: 50%; 
        transform: translateY(-50%); 
        width: 100%; 
        display: flex; 
        justify-content: center; 
        visibility: hidden; 
        z-index: 10; 
    }
    
    .amenity-anim-card {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        margin: 0 auto;
        visibility: hidden;
        z-index: 10;
    }
    
    .tight-card, .amenity-glass-card {
        border-radius: 15px;
        padding: 20px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        width: 95%;
        max-width: 450px;
        margin: 0 auto;
    }

    .model-name, .amenity-title { font-size: 2.5rem; }
    .model-m2, .amenity-level { font-size: 1.2rem; }

    /* Tarjetas de modelo Y amenidad: 2 columnas y tamaños como pruebamovil.
       (Va después de las reglas de tamaño para que estos overrides ganen.) */
    .tight-card, .amenity-glass-card {
        grid-template-columns: 1.2fr 1fr;
        padding: 15px;
        gap: 10px;
    }
    .model-name { font-size: 1.6rem; }
    .model-m2 { font-size: 0.9rem; margin-bottom: 10px; }
    .amenity-title { font-size: 1.6rem; }
    .amenity-level { font-size: 0.9rem; margin-bottom: 10px; }
    
    .amenities-grid-compact, .amenity-checklist { gap: 6px; }
    .amenity-item, .amenity-checklist li { font-size: 0.75rem; gap: 8px; }
    .amenity-icon { width: 16px; height: 16px; }
    
    .img-render-compacta, .gallery-img { height: 180px; }
    
    .carousel-controls { gap: 15px; margin-top: 10px; }
    .carousel-btn { width: 28px; height: 28px; font-size: 0.8rem; }
    .carousel-dots { gap: 6px; }
    .dot { width: 6px; height: 6px; }
    .dot.active { width: 16px; }
}

/* ==========================================================================
   SECCIÓN 6 - ESTADÍSTICAS (VALOR AGREGADO - OVERLAY)
   ========================================================================== */
.section-stats {
    background-color: rgba(6, 18, 15, 0.90);
    color: #fff;
    padding: 120px 20px;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

/* ===== Cierre del edificio: Interiorismo <-> Estadísticas (botón compartido) ===== */
.closing-stack {
    position: relative;
    width: 100%;
    height: 62vh;
    margin-bottom: 40px;
}
.closing-pane {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.closing-stats { opacity: 0; visibility: hidden; }   /* arranca oculta; GSAP cruza Interiorismo -> Stats */
.closing-interiorismo { opacity: 1; }

/* Encabezado Interiorismo */
.interiorismo-header { text-align: center; margin-bottom: 40px; }
.interiorismo-header .overline {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: var(--brand-accent);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 600;
}
.interiorismo-header h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: #fff;
    font-weight: 400;
    letter-spacing: 2px;
}

/* Carrusel (tira horizontal en bucle continuo) */
.interiorismo-carousel {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.interiorismo-track {
    display: flex;
    width: max-content;
    animation: interiorismo-scroll 90s linear infinite;
}
.interiorismo-carousel:hover .interiorismo-track { animation-play-state: paused; }
.interiorismo-item {
    flex: 0 0 auto;
    margin-right: 20px;
    display: flex;
    flex-direction: column;
}
.interiorismo-photo {
    height: 320px;
    width: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.interiorismo-photo:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}
.interiorismo-caption {
    margin-top: 8px;
    text-align: right;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}
@keyframes interiorismo-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Flechas del lightbox */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand-cream);
    border: none;
    color: var(--brand-dark);
    font-size: 2.2rem;
    line-height: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 2;
}
.lightbox-arrow:hover { background: #f0e6c8; }
.lightbox-prev { left: 10%; }
.lightbox-next { right: 10%; }

/* Lightbox más grande SOLO para amenidades (fuerza el ancho aunque la imagen sea de 900px) */
.lightbox-overlay.is-amenity .lightbox-img {
    width: min(92vw, 1500px);
    height: auto;
    max-width: none;
    max-height: 92vh;
}
.lightbox-overlay.is-amenity .lightbox-prev { left: 3%; }
.lightbox-overlay.is-amenity .lightbox-next { right: 3%; }

/* ----- Interiorismo + lightbox en MÓVIL / TABLET ----- */
@media (max-width: 991px) {
    .closing-stack { height: 72vh; margin-bottom: 18px; }
    .interiorismo-header { margin-bottom: 18px; }
    .interiorismo-header h2 { font-size: 1.9rem; }
    .interiorismo-header .overline { font-size: 0.7rem; margin-bottom: 8px; }
    .interiorismo-item { margin-right: 14px; }
    .interiorismo-photo { height: 190px; border-radius: 6px; }
    .interiorismo-caption { font-size: 0.75rem; margin-top: 6px; }

    /* stats un poco más compactas dentro del cierre */
    .closing-stats .stats-header { margin-bottom: 18px; }
    .closing-stats .stats-grid { gap: 14px; margin-bottom: 18px; }
    .closing-stats .stat-item { width: 105px; height: 105px; }

    /* flechas del lightbox en móvil (más chicas y cerca de los bordes de la foto) */
    .lightbox-arrow { width: 44px; height: 44px; font-size: 1.7rem; }
    .lightbox-prev { left: 8%; }
    .lightbox-next { right: 8%; }
}

.stat-circle-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg); 
    opacity: 0.7;
}

.stat-circle-svg circle {
    fill: none;
    stroke: var(--brand-accent);
    stroke-width: 1.5px;
    stroke-dasharray: 434; 
    stroke-dashoffset: 434; 
}

.stats-header {
    margin-bottom: 80px;
}

.stats-header .overline {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: var(--brand-accent);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.stats-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #fff;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.stats-header p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.stat-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
}

.stat-content {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

.stat-number {
    font-family: var(--font-body);
    font-size: 7.5rem;
    font-weight: 200;
    color: #fff;
    line-height: 1;
}

.stat-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: left;
    max-width: 120px;
    line-height: 1.4;
}

/* Disclaimer "imágenes ilustrativas": debajo del botón Cotiza (modelos) y de la lista (amenidades) */
.card-footer-compact::after,
.amenity-info::after {
    content: "Imágenes ilustrativas. El proyecto puede variar en la versión final.";
    display: block;
    width: 100%;
    margin-top: 12px;
    color: rgba(0, 0, 0, 0.45);
    font-family: var(--font-body);
    font-size: 0.58rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stats-action {
    margin-top: 40px;
}

.stats-action .btn-outline,
.btn-outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    cursor: pointer;
    max-width: 250px;
    margin: 0 auto;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

.stats-action .btn-outline:hover,
.btn-outline:hover {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    color: var(--brand-dark);
}

@media (max-width: 768px) {
    .section-stats {
        padding: 100px 20px 25px;
        justify-content: flex-start; /* contenido bajo el header, fluye hacia abajo */
    }

    .stats-header {
        margin-bottom: 25px;
    }

    .stats-header h2 {
        font-family: 'Playfair Display', serif;
        font-size: 1.5rem;
        letter-spacing: 1px;
        line-height: 1.2;
    }

    .stats-header .overline { font-size: 0.7rem; margin-bottom: 8px; }

    .stats-header p {
        font-size: 0.85rem;
        line-height: 1.5;
        max-width: 600px;
        margin: 0 auto;
    }

    /* Estadísticas en LISTA VERTICAL (una debajo de otra), como pruebamovil */
    .stats-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 30px;
    }

    .stat-item {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .stat-circle-svg {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: rotate(-90deg);
        z-index: 1;
    }

    .stat-circle-svg circle { 
        stroke-dasharray: 496; 
        stroke-dashoffset: 496; 
    }

    .stat-content { 
        position: relative;
        gap: 10px; 
        flex-direction: row; 
        justify-content: center;
        margin-top: 0;
    }

    .stat-number {
        font-size: 3rem;
        font-weight: 300;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

    .stat-text { 
        font-size: 0.65rem; 
        letter-spacing: 2px; 
        line-height: 1.3; 
        text-align: left;
    }
    
    .btn-outline {
        font-size: 0.68rem;
        padding: 8px 20px;
        letter-spacing: 1px;
        max-width: 220px;
        white-space: nowrap; /* una sola línea: más compacto */
    }
    .stats-action { margin-top: 20px; }
}

/* ==========================================================================
   GALERÍA MÓVIL: CARRUSEL HORIZONTAL DEDICADO (estilo pruebamovil)
   En escritorio se oculta; en móvil reemplaza al acordeón.
   ========================================================================== */
.scroll-horizontal-section { display: none; }

@media (max-width: 991px) {
    /* En móvil usamos el carrusel dedicado y ocultamos el acordeón de escritorio */
    #galeria-pin-wrapper { display: none !important; }

    /* El carrusel se superpone al canvas dentro de #master-transition-wrapper (z-2). */
    .scroll-horizontal-section {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background-color: #000;
        z-index: 2;
    }
    .scroll-horizontal-section .scroll-header {
        position: absolute; top: 100px; left: 0; width: 100%;
        z-index: 10; text-align: center; color: #fff;
    }
    .scroll-horizontal-section .scroll-header h2 { font-size: 1.7rem; font-weight: 700; letter-spacing: 4px; color: #ffffff; }
    .scroll-horizontal-section .scroll-header p { font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; margin-top: 5px; color: rgba(255,255,255,0.9); }
    .scroll-horizontal-section .scroll-container { display: flex; flex-direction: column; width: 100vw; height: max-content; }
    .scroll-horizontal-section .scroll-panel {
        width: 100vw; height: 100svh; flex-shrink: 0;
        background-size: cover; background-position: center; position: relative;
    }

    /* Aviso sutil: invita a deslizar hacia arriba para avanzar de tarjeta. */
    .scroll-horizontal-section .scroll-swipe-hint {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%) translateY(0);
        z-index: 10;
        color: rgba(255, 255, 255, 0.75);
        font-size: 1.6rem;
        line-height: 1;
        pointer-events: none;
        animation: scrollSwipeHint 2.2s infinite ease-in-out;
    }

    @keyframes scrollSwipeHint {
        0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.55; }
        50% { transform: translateX(-50%) translateY(-8px); opacity: 1; }
    }
    .scroll-horizontal-section .panel-overlay {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
        opacity: 1;
    }
    .scroll-horizontal-section .panel-content {
        position: absolute; bottom: 60px; left: 20px; right: 20px; z-index: 2;
    }
    .scroll-horizontal-section .panel-content h3 {
        font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 10px; color: #fff;
    }
    .scroll-horizontal-section .panel-content p { font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,0.9); }
}
/* ==========================================================================
   SECCIÓN 7 - UBICACIÓN INTERACTIVA Y PREMIUM
   ========================================================================== */

/* --- TEXTOS GENERALES Y EDITORIALES --- */
.ubicacion-editorial {
    width: 50%; 
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.section-editorial-h3 {
    font-family: 'Playfair Display', 'Didot', 'Times New Roman', serif;
    font-size: 3.2rem;
    font-weight: 300; 
    letter-spacing: 2px; 
    line-height: 1.1;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Sombra para legibilidad sobre el mapa */
}

/* ==========================================================================
   NUEVO MAPA INMERSIVO A PANTALLA COMPLETA
   ========================================================================== */

/* Forzamos que la sección rompa el contenedor y mida toda la pantalla sin bordes */
.section-mapa-inmersivo {
    position: relative;
    width: 100vw;
    height: 100vh;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 !important;
    margin: 0 !important;
    background-color: #000; /* Fondo negro de seguridad */
    overflow: hidden;
}

/* Textos flotantes sobre el mapa interactivo */
.mapa-ui-overlay {
    position: absolute;
    top: 100px;
    left: 5%;
    z-index: 10;
    pointer-events: none; /* Permite hacer clic a través de los textos */
}

.mapa-instruccion {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #d1d5d4;
    margin-top: 10px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

/* El contenedor del mapa anclado a los 4 extremos */
.map-viewport,
.map-container,
#interactive-map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.map-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.map-layer.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.map-layer .map-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Rellena el 100% del espacio sin deformar ni hacer zoom */
    object-position: center;
}


/* ==========================================================================
   BARRA DE NAVEGACIÓN FLOTANTE (ESTILO PÍLDORA EXPANDIBLE)
   ========================================================================== */

/* Área invisible para detectar el mouse en el fondo de la pantalla */
.map-nav-hover-area {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px; 
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 40px;
}

/* ESTADO INICIAL: Píldora delgada y redondeada */
.map-bottom-nav {
    display: flex;
    gap: 8px; /* Separación mínima inicial */
    padding: 8px 15px; 
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Círculos diminutos iniciales */
.map-nav-thumb {
    background: none;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 50px; 
    overflow: hidden;
    width: 40px;  
    height: 40px; 
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* El texto inicia invisible */
.thumb-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 5px 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-size: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* Borde sutil para indicar cuál está activa en estado diminuto */
.map-nav-thumb.active {
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* (Animación de hover eliminada: en escritorio la barra de mapas queda expandida de forma fija; ver bloque ESCRITORIO más abajo.) */


/* ==========================================================================
   DISEÑO DE LOS PANELES Y TEXTOS DORADOS
   ========================================================================== */
.punto-content h4 {
    font-family: 'Playfair Display', 'Didot', 'Times New Roman', serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: #E6D5A7; /* Dorado / Crema Elegante */
    letter-spacing: 1px;
}

.punto-content ul {
    list-style: none;
    padding-left: 0;
    color: #d1d5d4; 
    font-size: 1rem;
    font-family: 'Montserrat', 'Helvetica Neue', sans-serif; 
    font-weight: 300;
}

.punto-content li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.punto-content li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #9ba8a5; 
}

/* ==========================================================================
   ANIMACIONES MINIMALISTAS
   ========================================================================== */
.reveal-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.5s; }

/* ==========================================================================
   RESPONSIVE PARA PANTALLAS MÁS PEQUEÑAS
   ========================================================================== */
@media (max-width: 1024px) {
    .ubicacion-content-wrapper {
        margin-left: auto; 
        margin-right: auto;
    }
    .ubicacion-editorial {
        width: 100%; 
    }
}

@media (max-width: 768px) {
    .section-editorial-h3 {
        font-size: 2.5rem;
    }
    /* En móvil, la barra de navegación siempre se mantiene expandida y scrolleable */
    .map-nav-hover-area { 
        height: auto; 
        padding-bottom: 20px;
    }
    .map-bottom-nav {
        gap: 15px;
        padding: 15px;
        border-radius: 25px;
        width: 90%;
        overflow-x: auto;
        justify-content: flex-start;
    }
    .map-nav-thumb { 
        flex-shrink: 0; 
        width: 110px; 
        height: 70px; 
        border-radius: 12px;
    }
    .thumb-label {
        opacity: 1;
        visibility: visible;
    }
}





/* ==========================================================================
   SECCIÓN 7 - UBICACIÓN INTERACTIVA INMERSIVA (MAPA Y PINES)
   ========================================================================== */
.section-mapa-inmersivo {
    position: relative;
    width: 100vw;
    height: 100vh;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 !important;
    margin: 0 !important;
    background-color: #0b2b26;
    overflow: hidden;
    color: #ffffff;
    /* El scroll-snap (evita saltarse la sección de un jalón) vive SOLO en móvil, ver
       @media (max-width: 991px) más abajo — ahí el "rebote" es físico (nativo del
       scroll táctil) y se ve bien. En escritorio ese rebote no existe de forma nativa,
       así que ahí usamos una animación GSAP en su lugar (ver mapa.js) en vez de
       scroll-snap, para poder controlar la curva del rebote nosotros mismos. */
}

/* --- Interfaz flotante y Degradado protector --- */
.mapa-ui-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    padding-top: 15vh; 
    padding-left: 10%; 
    z-index: 20; 
    pointer-events: none; 
    background: none; /* sin degradado de pantalla completa: el título/subtítulo resaltan con text-shadow y no se tapan los pines */
}

.section-editorial-h3 {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    font-weight: 500;
    letter-spacing: 2px; 
    line-height: 1.1; 
    margin: 0; 
    text-transform: uppercase;
    text-shadow: 0 4px 8px rgba(0,0,0,1), 0 8px 40px rgba(0,0,0,1), 0 0 90px rgba(0,0,0,0.95);
}

.mapa-instruccion {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #E6D5A7;
    margin-top: 15px;
    letter-spacing: 1px;
    text-shadow: 0 2px 6px rgba(0,0,0,1), 0 4px 16px rgba(0,0,0,1), 0 8px 44px rgba(0,0,0,1), 0 0 84px rgba(0,0,0,0.95);
}

/* --- Contenedor del Mapa --- */
.map-viewport { 
    width: 100%; 
    height: 100%; 
    position: absolute; 
    top: 0; 
    left: 0; 
    overflow: hidden; 
}

.map-container { 
    position: absolute; 
    width: 120vw; 
    height: 120vh; 
    top: -10vh; 
    left: -10vw; 
    transform-origin: center center; 
    will-change: transform; 
}

.map-layer { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.8s ease-in-out; 
    z-index: 1; 
}

.map-layer.active { 
    opacity: 1; 
    visibility: visible; 
    z-index: 2; 
}

.map-image { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    pointer-events: none; 
}

/* --- Capa oscura sobre la foto de fondo: resalta pines y título. Va ENCIMA de la
   imagen pero DEBAJO de los pines (z-index 10) y del pin dorado (z-index 12). --- */
.map-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    z-index: 1;
    pointer-events: none;
}

/* --- Pines Animados --- */
.map-point-wrapper {
    position: absolute;
    z-index: 10;
    transform: translate(-50%, -50%);
}

.map-pin {
    position: relative;
    width: 50px;
    height: 50px;
    background: #1A916F;
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); 
    transition: all 0.3s ease; 
}

.map-pin:hover { 
    transform: scale(1.1); 
    background: #A3B18A; 
}

.pin-icon { 
    font-size: 1.2rem; 
    position: relative; 
    z-index: 2; 
    color: #fff;
}

.pin-pulse { 
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0; 
    border-radius: 50%; 
    border: 1px solid #A3B18A; 
    animation: pulseAnim 2s infinite; 
}

@keyframes pulseAnim {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ==========================================================================
   MARCADOR DESTACADO: UBICACIÓN DE OKRAM (gota dorada premium + etiqueta)
   ========================================================================== */
.okram-wrapper { z-index: 12; }

/* Gota dorada (pin) que apunta hacia abajo */
.map-pin-okram {
    width: 78px;
    height: 78px;
    background: linear-gradient(150deg, #F4E3B0 0%, #DDBB74 55%, #C9A24B 100%);
    border: 2px solid #FFFFFF;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 12px 26px rgba(0,0,0,0.4), 0 0 18px rgba(217, 184, 113, 0.55);
    animation: okramGlow 2.6s ease-in-out infinite;
}

.map-pin-okram:hover {
    transform: rotate(-45deg) scale(1.08);
    background: linear-gradient(150deg, #FAEDC4 0%, #E6C684 55%, #D4AE5C 100%);
}

/* "O" verde oscuro, contra-rotada para quedar derecha */
.okram-mark {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    color: var(--brand-dark);
    transform: rotate(45deg);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* Variante con el logo del header dentro de la gota */
.okram-logo {
    width: 50px;
    height: auto;
    object-fit: contain;
    text-shadow: none;
}

/* Glow dorado que late suave (la gota está rotada; animamos el resplandor) */
@keyframes okramGlow {
    0%, 100% { box-shadow: 0 12px 26px rgba(0,0,0,0.4), 0 0 16px rgba(217, 184, 113, 0.5); }
    50%      { box-shadow: 0 12px 26px rgba(0,0,0,0.4), 0 0 32px rgba(217, 184, 113, 0.95); }
}

/* Etiqueta fija "OKRAM" debajo de la gota */
.okram-label {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 73, 68, 0.88);
    color: var(--brand-cream);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 4px 13px;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid rgba(230, 213, 167, 0.55);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    pointer-events: none;
}

/* --- Panel Lateral (Escritorio: Entra por la derecha) --- */
.side-panel { 
    position: absolute; 
    top: 0; 
    right: 0; 
    width: 35%; 
    min-width: 350px; 
    max-width: 500px; 
    height: 100%; 
    background-color: #F8F5F0; 
    z-index: 50; 
    transform: translateX(100%); /* Oculto a la derecha */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column; 
}

.side-panel.is-active {
    transform: translateX(0); /* Se desliza hacia la izquierda */
    box-shadow: -15px 0 40px rgba(0,0,0,0.15); /* Sombra solo con el panel abierto (evita la franja oscura en el borde derecho) */
}

.btn-close-panel { 
    position: absolute; 
    top: 30px; 
    right: 30px; 
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.2);
    background: transparent;
    font-size: 1.2rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.btn-close-panel:hover { 
    background: #0b2b26; 
    color: #fff; 
}

.panel-content {
    padding: 100px 40px 40px 40px;
    overflow-y: auto;
    color: #333;
}

/* Foto del panel (Escritorio): formato horizontal recortado. En móvil/tablet ≤991px se sobrescribe a 150px. */
.side-panel .panel-img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin: 20px 0 25px 0;
}

/* Iconos inline de las tarjetas de ubicación (caminata en el tiempo, estrella en el rating) */
.cat-icon, .rating-icon {
    height: 1.05em;
    width: auto;
    vertical-align: -0.18em;
    margin-right: 7px;
}

/* Botón "Cómo llegar" dentro de cada panel de ubicación (estilo contorno tipo "Cotiza tu Depa") */
.btn-como-llegar {
    display: inline-block;
    margin-top: 15px;
    padding: 14px 35px;
    background: transparent;
    color: var(--brand-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 0.3px;
    text-decoration: none;
    border: 1px solid var(--brand-dark);
    border-radius: 6px;
    transition: all 0.3s ease;
}
.btn-como-llegar:hover {
    background: var(--brand-dark);
    color: #fff;
}

/* Icono (SVG) dentro del pin del mapa: blanco y centrado, en lugar del número */
.pin-icon-img {
    position: relative;
    z-index: 2;
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* fuerza el icono a blanco sobre el pin */
    pointer-events: none;
}

/* ==========================================================================
   CANDADO DE ACCESO (pantalla de contraseña antes del sitio)
   ========================================================================== */
html:not(.gate-passed) { overflow: hidden; }
html.gate-passed #okram-gate { display: none !important; }
/* Recarga (misma sesión): saltamos la contraseña y vamos al preloader, sin que la
   pantalla de contraseña parpadee antes. */
html.gate-reload [data-screen="password"] { display: none !important; }

#okram-gate {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 1;
    transition: opacity 0.7s ease;
}
#okram-gate.gate-out { opacity: 0; }

.gate-inner {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.gate-logo { width: 320px; max-width: 78%; height: auto; margin-bottom: 36px; }
.gate-text {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}
.gate-form { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 320px; }
.gate-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 2px;
    outline: none;
    transition: border-color 0.3s ease;
}
.gate-input::placeholder { color: rgba(255, 255, 255, 0.4); letter-spacing: 1px; }
.gate-input:focus { border-color: #fff; }
.gate-btn {
    width: 100%;
    padding: 15px 35px;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.gate-btn:hover { background: #fff; color: var(--brand-dark); }
.gate-error {
    color: #e7a6a6;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.95rem;
    margin-top: 16px;
    min-height: 1em;
}
.gate-shake { animation: gateShake 0.4s ease; }
@keyframes gateShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* --- Preloader (pantalla 2 del candado) --- */
.gate-screen[hidden] { display: none !important; }

.gate-logo-pulse { width: 200px; max-width: 60%; margin-bottom: 18px; animation: gatePulse 2s ease-in-out infinite; }
@keyframes gatePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

.gate-phrase {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #fff;
    font-size: 1.7rem;
    line-height: 1.4;
    max-width: 560px;
    min-height: 2.4em;
    margin: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gate-phrase.is-visible { opacity: 1; }

.gate-ring {
    position: relative;
    width: clamp(300px, 46vw, 540px);
    height: clamp(300px, 46vw, 540px);
    max-width: 86vmin;
    max-height: 86vmin;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0 28px;
}
.gate-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* arranca arriba y se llena en sentido horario */
}
.gate-ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 1.2px;
}
.gate-ring-fill {
    fill: none;
    stroke: #fff;
    stroke-width: 1.5px;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.35s ease;
}
.gate-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%); /* compensa la métrica de la fuente para centrar óptico */
    z-index: 1;
    font-family: var(--font-heading);
    color: #fff;
    font-size: clamp(60px, 10vw, 160px);
    font-weight: 400;
    line-height: 1;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1; /* números uniformes (sin colas), como la referencia */
}

/* Signo "%" del preloader: pequeño tipo superíndice. width:0 evita que empuje
   el layout, así el número grande sigue ópticamente centrado en el aro. */
.gate-percent-sign {
    display: inline-block;
    width: 0;
    font-size: 0.34em;
    font-weight: 300;
    opacity: 0.85;
    transform: translateY(-1.4em);
}

.panel-category {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
    color: #A3B18A;
    text-transform: uppercase; 
    font-weight: 600;
}

.side-panel h4 { 
    font-family: 'Playfair Display', serif; 
    font-size: 2rem; 
    color: #0b2b26; 
    margin-top: 10px; 
    margin-bottom: 25px; 
}

.side-panel p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

/* --- Barra de Navegación Inferior (Píldora Expandible) --- */
.map-nav-hover-area { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 150px; 
    z-index: 20; 
    display: flex; 
    justify-content: center; 
    align-items: flex-end; 
    padding-bottom: 40px; 
}

.map-bottom-nav { 
    display: flex; 
    gap: 8px; 
    padding: 8px 15px; 
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    border-radius: 50px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); 
    transition: all 0.4s ease; 
}

.map-nav-thumb { 
    background: none; 
    border: 2px solid transparent; 
    padding: 0; 
    cursor: pointer; 
    border-radius: 50px; 
    overflow: hidden; 
    width: 40px; 
    height: 40px; 
    position: relative; 
    transition: all 0.4s ease; 
}

.map-nav-thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease; 
}

.thumb-label { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    padding: 5px 0; 
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); 
    color: white; 
    font-size: 0.75rem; 
    text-align: center; 
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.3s ease; 
}

.map-nav-thumb.active { border: 2px solid rgba(255, 255, 255, 0.8); }

/* ESCRITORIO: barra de mapas siempre expandida y visible (sin animación al acercar el mouse).
   Las reglas de móvil/tablet (@media max-width:768px) vienen después y siguen mandando en esas vistas. */
.map-bottom-nav {
    gap: 12px;
    padding: 12px;
    border-radius: 22px;
}
.map-nav-thumb {
    width: 105px;
    height: 65px;
    border-radius: 12px;
}
.thumb-label {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   >>> RESPONSIVE: MÓVILES (PANEL INFERIOR Y BARRA SCROLLEABLE) <<<
   ========================================================================== */
@media (max-width: 768px) {
    /* Oculto por defecto en móvil: el título flotante ("MÁXIMA CONECTIVIDAD") es
       fijo sin importar la zona activa, y en Zona RIU (y otras) termina estorbando
       encima de los pines del mapa. Aparece brevemente al cambiar de zona (ver
       mapa.js, clase .mapa-ui-flash) y luego se desvanece solo. */
    .section-editorial-h3 { font-size: 2.5rem; }
    .mapa-ui-overlay {
        opacity: 0;
        transition: opacity 0.5s ease;
    }
    .mapa-ui-overlay.mapa-ui-flash {
        opacity: 1;
    }

    /* Usamos dvh (dynamic viewport height): se recalcula cuando la barra del
       navegador aparece/desaparece en el scroll, a diferencia de vh que se queda
       "congelada" y desalinea el bottom-sheet de abajo respecto a la pantalla real. */
    .section-mapa-inmersivo { height: 100dvh; }

    /* 1. Panel: Entra de abajo hacia arriba (Bottom Sheet) */
    .side-panel {
        top: auto; /* Quitamos el anclaje superior */
        bottom: 0; /* Lo pegamos abajo */
        right: 0;
        width: 100%; /* Ocupa todo el ancho */
        height: auto; /* Se adapta al contenido real de cada tarjeta */
        min-height: 30dvh;
        max-height: 85dvh;
        min-width: 100%;
        border-radius: 30px 30px 0 0; /* Bordes redondeados tipo app arriba */
        transform: translateY(100%); /* Oculto hacia ABAJO */
        box-shadow: 0 -10px 40px rgba(0,0,0,0.2); /* Sombra hacia arriba */
    }

    .side-panel.is-active {
        transform: translateY(0); /* Se desliza hacia ARRIBA */
    }

    .panel-content { padding: 60px 20px 20px 20px; } /* Ajuste de padding para móvil */

    /* 2. Barra de navegación inferior siempre abierta y scrolleable */
    .map-nav-hover-area { 
        height: auto; 
        padding-bottom: 20px; 
    }
    
    .map-bottom-nav {
        gap: 12px;
        padding: 12px;
        border-radius: 20px;
        width: 95%; /* Casi todo el ancho */
        overflow-x: auto; /* Permite deslizar con el dedo */
        justify-content: flex-start;
        scrollbar-width: none; /* Oculta la barra de scroll en Firefox */
    }
    
    .map-bottom-nav::-webkit-scrollbar { 
        display: none; /* Oculta la barra de scroll en Chrome/Safari */
    }

    .map-nav-thumb { 
        flex-shrink: 0; /* Evita que las fotos se aplasten */
        width: 110px; 
        height: 70px; 
        border-radius: 12px; 
    }
    
    /* Textos siempre visibles en el celular */
    .thumb-label {
        opacity: 1;
        visibility: visible;
    }
}

/* ==========================================================================
   SECCIÓN 8 - CONTACTO E INVERSIÓN (FORMULARIO WIZARD PREMIUM)
   ========================================================================== */
.section-contacto {
    /* Combinamos un degradado oscuro del 95% a 40% de opacidad sobre tu imagen */
    background-image: linear-gradient(rgba(13, 13, 13, 0.95), rgba(13, 13, 13, 0.40)), url('../img/cta-okram.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Efecto parallax premium */
    color: #fff;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    min-height: 800px;
}

/* Líneas verticales técnicas de fondo */
.contacto-grid-lines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; justify-content: space-between;
    padding: 0 40px; pointer-events: none; z-index: 1;
}
.contacto-grid-lines span {
    width: 1px; height: 100%;
    background-color: rgba(255, 255, 255, 0.04);
}

.contacto-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 100px;
    position: relative;
    z-index: 2;
    max-width: 1300px; 
    margin: 0 auto;
    width: 100%;
}

/* --- Columna Izquierda: Editorial --- */
.contacto-editorial {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
}

.contacto-email-tag {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7); 
}

.editorial-brand-title {
    font-family: var(--font-heading); 
    font-size: 3.5rem;
    font-weight: 200;
    letter-spacing: 6px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff; 
}

.editorial-brand-sub {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8); 
    max-width: 320px;
    line-height: 1.6;
}

.editorial-footer {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6); 
}

/* --- Columna Derecha: Formulario Premium (Wizard) --- */
.contacto-formulario-wrapper {
    min-height: 800px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

.form-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 1px;
    color: #fff; 
}

.step-subtitle {
    font-family: var(--font-body);
    color: var(--brand-accent, #B8D176);
    font-size: 1.3rem; 
    font-weight: 400;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

/* Sección formulario: títulos centrados en móvil/tablet (mejor balance visual) */
@media (max-width: 991px) {
    .contacto-editorial { text-align: center; }
    .editorial-brand-sub { margin-left: auto; margin-right: auto; }
    .editorial-footer { align-items: center; }
    .form-title { text-align: center; }
    .step-subtitle { text-align: center; }
    .contacto-formulario-wrapper .wizard-progress { justify-content: center; } /* indicadores 1·2·3 centrados (especificidad para ganar a la regla base) */
}

.okram-premium-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full-width { width: 100%; }

.form-group label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #fff; 
    font-weight: 400;
    margin-bottom: 6px;
}

/* Inputs y Selects Translúcidos */
.okram-premium-form input[type="text"],
.okram-premium-form input[type="email"],
.okram-premium-form input[type="tel"],
.okram-premium-form select {
    background-color: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 300;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 100%;
    outline: none;
}

.okram-premium-form select option {
    background-color: #141414; 
    color: #fff;
}

.okram-premium-form input:focus,
.okram-premium-form select:focus {
    border-color: var(--brand-accent, #B8D176); 
    background-color: rgba(255, 255, 255, 0.08);
}

/* --- Checkboxes de Modelos (Tarjetas personalizadas) --- */
.modelos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.modelo-checkbox {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-body);
    font-size: 1rem; 
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 20px; 
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.modelo-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px; height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    background: transparent;
    display: grid; place-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modelo-checkbox input[type="checkbox"]::before {
    content: "✓";
    font-size: 0.9rem;
    color: #06120f; 
    font-weight: bold;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.modelo-checkbox:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.3);
}

.modelo-checkbox:has(input:checkbox:checked) {
    background: rgba(184, 209, 118, 0.08);
    border-color: var(--brand-accent, #B8D176);
    color: #fff;
}

.modelo-checkbox input[type="checkbox"]:checked {
    background: var(--brand-accent, #B8D176);
    border-color: var(--brand-accent, #B8D176);
}

.modelo-checkbox input[type="checkbox"]:checked::before { transform: scale(1); }

/* --- Indicadores de Progreso (1, 2, 3) --- */
.wizard-progress {
    display: flex; justify-content: flex-start; gap: 20px; margin-bottom: 35px;
}

.step-indicator {
    width: 40px; height: 40px; border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.4);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-body); font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
}

.step-indicator.active {
    background-color: transparent;
    color: var(--brand-accent, #B8D176);
    border-color: var(--brand-accent, #B8D176);
    box-shadow: 0 0 15px rgba(184, 209, 118, 0.2);
}

/* --- Caja de Resumen Final --- */
.resumen-caja {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 25px; margin-bottom: 25px;
}
.resumen-caja ul {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px 25px;
}
.resumen-caja li {
    font-family: var(--font-body); font-size: 1.05rem; color: #fff;
    display: flex; flex-direction: column;
}
.resumen-caja li.full-width-li {
    grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px; margin-top: 5px;
}
.resumen-caja li span.res-label {
    color: var(--brand-accent, #B8D176); font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; font-weight: 500;
}

/* Checkbox Términos */
.form-group-checkbox { margin-top: 15px; }
.checkbox-container { display: flex; align-items: flex-start; gap: 15px; cursor: pointer; position: relative; user-select: none; }
.checkbox-container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark {
    width: 18px; height: 18px; background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 3px; flex-shrink: 0; margin-top: 2px; position: relative; transition: all 0.2s ease;
}
.checkbox-container input:checked ~ .checkmark { background-color: var(--brand-accent, #B8D176); border-color: var(--brand-accent, #B8D176); }
.checkmark::after {
    content: ""; position: absolute; display: none; left: 5px; top: 2px; width: 5px; height: 9px;
    border: solid #0c332e; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.checkbox-container input:checked ~ .checkmark::after { display: block; }
.checkbox-text { font-family: var(--font-body); font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); line-height: 1.6; font-weight: 300; }

/* --- Botones --- */
.form-submit-container { display: flex; justify-content: flex-end; margin-top: 20px; }
.split-buttons { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.right-align { display: flex; justify-content: flex-end; margin-top: 30px; }

.btn-okram-submit, .btn-wizard-back {
    background: transparent;
    padding: 12px 40px; font-family: var(--font-body); font-size: 0.85rem;
    letter-spacing: 2px; text-transform: uppercase; border-radius: 6px;
    cursor: pointer; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.btn-okram-submit { border: 1px solid #fff; color: #fff; }
.btn-okram-submit:hover { background: #fff; color: #0d0d0d; box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

.btn-wizard-back { border: 1px solid rgba(255, 255, 255, 0.4); color: rgba(255, 255, 255, 0.8); }
.btn-wizard-back:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: #fff; transform: translateY(-2px); }

/* --- Lógica del Wizard (Animaciones) --- */
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeInStep 0.4s ease forwards; }
.wizard-step.fading-out { display: block; animation: fadeOutStep 0.3s ease forwards; }

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOutStep {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-15px); }
}

/* --- Mensaje de Éxito --- */
.wizard-success-message {
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    flex: 1; min-height: 500px; padding: 20px; animation: fadeInStep 0.8s ease forwards;
}
.success-icon {
    width: 120px; height: 120px; background-color: rgba(184, 209, 118, 0.1);
    border: 2px solid var(--brand-accent, #B8D176); color: var(--brand-accent, #B8D176);
    font-size: 4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-bottom: 35px; box-shadow: 0 0 40px rgba(184, 209, 118, 0.2);
}
.success-title { font-family: var(--font-heading); font-size: 3rem; font-weight: 300; color: #fff; margin-bottom: 20px; letter-spacing: 2px; }
.success-text { font-family: var(--font-body); font-size: 1.15rem; color: rgba(255, 255, 255, 0.8); max-width: 550px; line-height: 1.8; font-weight: 300; }

/* ==========================================================================
   >>> RESPONSIVE: CONTACTO <<<
   ========================================================================== */
@media (max-width: 992px) {
    .contacto-main-grid { grid-template-columns: 1fr; gap: 60px; }
    .contacto-editorial { min-height: auto; gap: 40px; }
    .contacto-grid-lines { padding: 0 20px; }
}

@media (max-width: 768px) {
    .modelos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .form-row-dual { grid-template-columns: 1fr; gap: 25px; }
    .resumen-caja ul { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .modelos-grid { grid-template-columns: 1fr; }
}



/* El indicador de swipe es SOLO móvil: oculto por defecto (escritorio). */
.swipe-indicator { display: none; }

/* ==========================================================================
   >>> AJUSTES MAESTROS RESPONSIVOS (MÓVILES Y TABLETS) <<<
   ========================================================================== */
@media (max-width: 991px) {
    /* Botón de WhatsApp: oculto en Ubicación/Interiorismo/Valor Agregado (ahí ya hay
       botones propios y el flotante estorba encima). Ver main.js (setWhatsappHidden). */
    body.wa-btn-hidden .whatsapp-btn { opacity: 0; pointer-events: none; }

    /* Botón "Solicitar Informes" (Interiorismo/Valor Agregado): oculto en móvil/tablet
       a pedido de Kevin (estorba ahí) — NO se borra del HTML/JS, sigue existiendo en
       escritorio. */
    .stats-action { display: none; }

    /* --- Ajustes Generales y Secciones de Texto --- */
    .section-video { aspect-ratio: 1 / 1; height: auto; }
    .section-texto-elegante { padding: 50px 20px; }
    .section-texto-elegante h2 { font-size: 1.4rem; }
    .section-texto-elegante p { font-size: 0.95rem; }

    /* --- Scroll Horizontal --- */
    .scroll-horizontal-section { display: block; position: relative; width: 100vw; height: 100%; overflow: hidden; background-color: #000; }
    .scroll-header { position: absolute; top: 50px; left: 0; width: 100%; z-index: 10; text-align: center; color: #fff; }
    .scroll-header h2 { font-size: 1.2rem; letter-spacing: 4px; }
    .scroll-header p { font-size: 0.8rem; letter-spacing: 2px; margin-top: 5px; color: rgba(255,255,255,0.7); }
    .scroll-container { display: flex; width: 500vw; height: max-content; }
    .scroll-panel { width: 100vw; height: 100svh; flex-shrink: 0; background-size: cover; background-position: center; position: relative; }
    /* Degradado a negro SÓLIDO (opacity:1, no 0.95) desde el borde inferior hasta 18% de
       alto: crea una "zona de seguridad" que se funde con el margen negro de
       .scroll-horizontal-section que pueda quedar debajo (100svh no siempre llena la
       pantalla real) — así el margen se ve como parte del diseño, no como un corte. */
    .panel-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 18%, rgba(0,0,0,0.2) 60%, transparent 100%); }
    .scroll-horizontal-section .panel-content { position: absolute; bottom: 60px; left: 20px; right: 20px; z-index: 2; }
    .scroll-horizontal-section .panel-content h3 { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 10px; }
    .scroll-horizontal-section .panel-content p { font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,0.9); }

    /* --- Tarjetas y Estadísticas --- */
    .tight-card, .amenity-glass-card { grid-template-columns: 1.2fr 1fr; padding: 15px; margin: 0 auto; width: 95%; gap: 10px;}
    .model-name, .amenity-title { font-size: 1.6rem; }
    .model-m2, .amenity-level { font-size: 0.9rem; margin-bottom: 10px; }
    .amenity-description { font-size: 0.85rem; margin-bottom: 15px;}
    .view-wrapper { padding-top: 5px; margin-top: 5px; margin-bottom: 5px; }

    .stats-grid { gap: 20px; flex-direction: column; align-items: center; margin-bottom: 30px;}
    .stat-item { transform: scale(0.95); } 
    .stats-header h2 { font-size: 1.6rem; }
    .stats-header p { font-size: 0.9rem; padding: 0 10px; }

    /* --- Ajustes Específicos del Mapa (Refuerzos) --- */
    /* dvh en vez de vh: se recalcula cuando la barra del navegador aparece/desaparece,
       así el bottom-sheet de abajo (.side-panel) no se desalinea de la pantalla real. */
    .section-mapa-inmersivo { height: 100dvh !important; }
    /* Scroll-snap SOLO en móvil: aquí el "rebote" al llegar es físico (nativo del scroll
       táctil) y se ve bien. En escritorio esa física no existe, así que ahí usamos una
       animación GSAP en su lugar (ver mapa.js) en vez de scroll-snap. "proximity" (no
       "mandatory") para que el snap solo actúe cerca de esta sección, sin jalar el
       scroll desde partes lejanas de la página. */
    html { scroll-snap-type: y proximity; }
    .section-mapa-inmersivo { scroll-snap-align: start; scroll-snap-stop: always; }
    .map-viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .map-viewport::-webkit-scrollbar { display: none; }
    /* El mapa mide 250vw para deslizar en horizontal. Usamos el ID #interactive-map
       para vencer la regla base #interactive-map { width:100% } (que es de ID). */
    #interactive-map { width: 250vw; height: 100%; top: 0; left: 0; right: auto; bottom: auto; }

    .swipe-indicator {
        display: block;
        position: absolute;
        bottom: 150px; /* arriba de las miniaturas del menú (que llevan etiqueta) */
        left: 50%;
        transform: translateX(-50%);
        color: #fff;
        background: rgba(11, 43, 38, 0.75);
        padding: 6px 18px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        font-family: 'Montserrat', sans-serif;
        font-size: 0.8rem;
        font-weight: 500;
        letter-spacing: 1px;
        white-space: nowrap;
        z-index: 15; 
        animation: swipeAnim 2.5s infinite ease-in-out;
        pointer-events: none;
    }

    @keyframes swipeAnim {
        0%, 100% { transform: translateX(-50%); }
        25% { transform: translateX(-55%); } 
        75% { transform: translateX(-45%); } 
    }

    /* Side-panel como hoja inferior (bottom-sheet), OCULTO por defecto — como pruebamovil */
    .side-panel {
        top: auto !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
        width: 100% !important; min-width: 100% !important;
        height: auto !important;         /* Se adapta al contenido real de cada tarjeta */
        min-height: 30dvh !important;    /* Evita que las tarjetas cortas (ej. Torre Okram) se vean minúsculas */
        max-height: 85dvh !important;    /* Tope para que las tarjetas largas no tapen toda la pantalla */
        display: block !important;
        overflow-y: auto !important;     /* Si el contenido es largo, hace scroll dentro del panel */
        border-radius: 25px 25px 0 0 !important;
        background-color: #F8F5F0 !important;
        transform: translateY(100%) !important;
        box-shadow: 0 -15px 40px rgba(0,0,0,0.4) !important;
        visibility: hidden !important; opacity: 0 !important; pointer-events: none !important;
        z-index: 9999 !important;
    }
    .side-panel.is-active {
        transform: translateY(0) !important;
        visibility: visible !important; opacity: 1 !important; pointer-events: auto !important;
    }
    .side-panel .panel-content { padding: 40px 25px 30px 25px !important; }
    .side-panel h4 { font-size: 1.8rem !important; margin-bottom: 5px !important; line-height: 1.1 !important; color: var(--brand-dark) !important; }
    .side-panel .panel-content p { color: #334155 !important; font-size: 1.05rem !important; line-height: 1.6 !important; margin-bottom: 15px !important; }
    .side-panel .panel-content p strong { color: var(--brand-dark) !important; }
    /* Foto del panel (no tenía estilo): la encajamos dentro de la hoja inferior */
    .side-panel .panel-img {
        display: block !important;
        width: 100% !important;
        height: 150px !important;
        object-fit: cover !important;
        border-radius: 12px !important;
        margin: 0 0 15px 0 !important;
    }
    .side-panel .panel-content ul { margin: 0 0 0 18px !important; padding: 0 !important; font-size: 0.9rem !important; color: #475569 !important; }
    .btn-close-panel {
        position: absolute !important; top: 20px !important; right: 20px !important;
        width: 35px !important; height: 35px !important;
        border-radius: 50% !important; border: 1px solid rgba(0,0,0,0.15) !important;
        background: transparent !important; color: #555 !important;
        font-size: 1.2rem !important; font-weight: 300 !important;
        display: flex !important; align-items: center !important; justify-content: center !important;
        z-index: 10000 !important;
    }

    /* --- Salvavidas para iOS en el Formulario --- */
    .section-contacto {
        background-attachment: scroll !important; /* Salva a los iPhone del colapso del parallax */
        padding: 60px 15px;
        min-height: auto;
    }
}

/* Celulares angostos (no tablets): a 250vw, la caja del mapa (250vw de ancho x
   100dvh de alto, casi cuadrada en un teléfono) obligaba a recortar demasiado
   la foto para llenarla sin deformarla — se perdían edificios/pines que sí se
   veían en tablet. Se ensancha más aquí para que la proporción se parezca más
   a la de la foto original y se recorte menos (a cambio de deslizar un poco
   más para recorrer toda la zona). */
@media (max-width: 600px) {
    #interactive-map { width: 350vw; }
}
