/* ============================================================
   MARINA GOLD · STYLESHEET PRINCIPAL
   Paleta: oro sobrio + neutros + tipografía Fraunces/Inter
   Estructura tipo Apple/inmobiliaria premium
============================================================ */

/* ============================================================
   1. TOKENS (variables CSS)
============================================================ */
:root {
    /* Color */
    --c-black: #0A0A0A;
    --c-ink: #1A1A1A;
    --c-graphite: #3A3A3A;
    --c-gray-700: #4F4F4F;
    --c-gray-500: #7A7A7A;
    --c-gray-300: #C8C8C8;
    --c-gray-200: #E5E5E5;
    --c-gray-100: #F2F2F2;
    --c-canvas: #FAFAFA;
    --c-white: #FFFFFF;
    --c-gold: #C5A572;
    --c-gold-soft: #D9C193;
    --c-gold-deep: #9F8550;

    /* Status (verde / amarillo / rojo / gris) */
    --st-available: #2BA15A;
    --st-available-bg: rgba(43, 161, 90, 0.12);
    --st-reserved: #E6A521;
    --st-reserved-bg: rgba(230, 165, 33, 0.15);
    --st-sold: #C5283D;
    --st-sold-bg: rgba(197, 40, 61, 0.13);
    --st-blocked: #8E8E8E;
    --st-blocked-bg: rgba(142, 142, 142, 0.18);

    /* Typography */
    --font-display: 'Fraunces', 'Georgia', serif;
    --font-body: 'Inter', 'Helvetica Neue', system-ui, -apple-system, sans-serif;

    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.375rem;
    --fs-xl: 2rem;
    --fs-2xl: 3rem;
    --fs-3xl: 4.5rem;
    --fs-4xl: 6rem;

    /* Spacing */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 3rem;
    --space-6: 4.5rem;
    --space-7: 6rem;
    --space-8: 8rem;

    /* Layout */
    --container-max: 1320px;
    --container-pad: clamp(1.25rem, 4vw, 3rem);
    --nav-height: 92px;

    /* Misc */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.10);
    --shadow-lg: 0 30px 70px rgba(0,0,0,0.18);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   1.5. SCROLL PROGRESS BAR + STICKY CTA + COUNTERS
============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--c-gold);
    z-index: 9999;
    pointer-events: none;
    transition: width 0.05s linear;
    box-shadow: 0 0 8px rgba(197, 165, 114, 0.5);
}

/* Sticky CTA · solo móvil, aparece tras pasar el 30% del scroll */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translate(-50%, 80px);
    z-index: 1700;
    background: var(--c-ink);
    color: var(--c-white);
    border: 1px solid var(--c-gold);
    padding: 0.8rem 1.2rem 0.8rem 0.8rem;
    border-radius: 100px;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
                opacity 0.4s ease,
                background 0.3s, color 0.3s;
    max-width: calc(100vw - 2rem);
    white-space: nowrap;
}
.sticky-cta.show {
    transform: translate(-50%, 0);
    opacity: 1;
}
.sticky-cta:hover { background: var(--c-gold); color: var(--c-ink); }
.sticky-cta-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--c-gold);
    color: var(--c-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
    transition: background 0.3s, color 0.3s;
}
.sticky-cta:hover .sticky-cta-icon {
    background: var(--c-ink);
    color: var(--c-gold);
}
.sticky-cta-arrow { font-size: 0.7rem; opacity: 0.7; }
@media (max-width: 900px) {
    .sticky-cta {
        display: inline-flex;
        bottom: calc(1rem + env(safe-area-inset-bottom, 0));
        padding: 0.75rem 1.1rem 0.75rem 0.7rem;
        font-size: 0.75rem;
        min-height: 48px; /* tap target */
    }
}
@media (max-width: 560px) {
    .sticky-cta {
        font-size: 0.72rem;
        max-width: calc(100vw - 7rem); /* deja espacio a brochure-fab izq y chatbot dcha */
    }
    .sticky-cta-icon { width: 28px; height: 28px; }
}

/* Parallax sutil sobre imágenes con la clase .parallax */
.parallax {
    will-change: transform;
    transition: transform 0.05s linear;
}

/* ============================================================
   2. RESET + BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
    /* La nav es position:fixed — sin esto, al navegar por anclas (#building, #contact…)
       el título de la sección queda cortado debajo de la barra. */
    scroll-padding-top: var(--nav-height, 92px);
    /* Sin scrollbar-gutter: junto con overflow-x: clip en html, el navegador reservaba el
       hueco de la barra además de dibujarla, y quedaba una franja blanca de ~15px a la derecha. */
    background: var(--c-canvas);
    /* Bloqueo absoluto de overflow horizontal */
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
}
body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--c-ink);
    background: var(--c-canvas);
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
    position: relative;
}
body.no-scroll { overflow: hidden; }
img, picture, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--c-gold); color: var(--c-black); }

/* ============================================================
   3. TIPOGRAFÍA Y UTILIDADES
============================================================ */
.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--c-gold-deep);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: var(--space-2);
}
.eyebrow--light { color: var(--c-gold-soft); }

.display {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    color: inherit;
}
.display em { font-style: italic; color: var(--c-gold-deep); font-weight: 400; }

.lead {
    font-size: var(--fs-md);
    color: var(--c-gray-700);
    max-width: 60ch;
    line-height: 1.6;
}

.section-head {
    margin-bottom: var(--space-6);
}
.section-head--center { text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.section-head--light { color: var(--c-white); }
.section-head--light .lead { color: rgba(255,255,255,0.7); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--c-gold-deep);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: gap var(--transition-fast), color var(--transition-fast);
}
.link-arrow:hover { gap: 1rem; color: var(--c-ink); }
.link-arrow i { font-size: 0.9em; transition: transform var(--transition-fast); }

/* ============================================================
   4. BOTONES
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.95rem 1.7rem;
    border-radius: var(--radius-pill);
    transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
}
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    font-size: 0.7rem;
    margin-left: -0.4rem;
}

.btn--primary {
    background: var(--c-ink);
    color: var(--c-white);
}
.btn--primary:hover {
    background: var(--c-gold-deep);
    color: var(--c-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--gold {
    background: var(--c-gold);
    color: var(--c-ink);
}
.btn--gold:hover { background: var(--c-gold-deep); color: var(--c-white); }

.btn--ghost {
    background: transparent;
    color: var(--c-white);
    border: 1px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover { background: var(--c-white); color: var(--c-ink); border-color: var(--c-white); }
.btn--ghost.btn--light { color: var(--c-ink); border-color: rgba(0,0,0,0.2); }
.btn--ghost.btn--light:hover { background: var(--c-ink); color: var(--c-white); }

.btn--full { width: 100%; }

/* ============================================================
   5. NAV + DRAWER
============================================================ */
/* ───────────────────────────────────────────────────────────
   NAV · minimalista estilo "viejita"
   3 columnas: logo · botón Contacto centro · hamburguesa
   Toda la navegación principal vive en el drawer lateral
   ─────────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background var(--transition-base),
                backdrop-filter var(--transition-base),
                border-color var(--transition-base),
                box-shadow var(--transition-base);
}
body.scrolled .nav {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
}

.nav-col { flex: 1; display: flex; align-items: center; }
.nav-col--brand  { justify-content: flex-start; }
.nav-col--cta    { justify-content: center; }
.nav-col--burger { justify-content: flex-end; }

.nav-brand { display: flex; align-items: center; }
.nav-logo {
    height: 60px;
    width: auto;
    /* En el hero el logo grande hace de marca, así que el del navbar está oculto */
    opacity: 0;
    transform: scale(0.7);
    filter: brightness(0) invert(1);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2,0.7,0.2,1), height var(--transition-fast), filter var(--transition-fast);
}
/* Al scroll (navbar blanco frosted): logo NEGRO original, ya visible */
body.scrolled .nav-logo {
    filter: none;
    height: 56px;
    opacity: 1;
    transform: scale(1);
}

/* CTA Contacto · pill negro estilo "high-ticket" como en la viejita */
.nav-cta {
    background: var(--c-ink);
    color: var(--c-white);
    border: 1px solid var(--c-ink);
    padding: 0.7rem 1.3rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.nav-cta:hover {
    background: var(--c-white);
    color: var(--c-ink);
    border-color: var(--c-white);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Hamburguesa · SIEMPRE visible (no solo móvil) */
.nav-burger {
    display: flex;
    width: 28px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}
.nav-burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--c-white);
    border-radius: 1px;
    transition: transform var(--transition-fast), opacity var(--transition-fast), background var(--transition-fast);
}
body.scrolled .nav-burger span { background: var(--c-ink); }
.nav-burger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Oculto: ya no se usan estos (todo va al drawer) */
.nav-links { display: none; }
.lang-pill { display: none; }

/* ───────────────────────────────────────────────────────────
   DRAWER · menú lateral editorial luxury
   ─────────────────────────────────────────────────────────── */

/* Backdrop oscuro detrás del drawer */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    height: 100dvh; /* dvh: el pie del drawer no queda tapado por la barra del navegador móvil */
    width: min(420px, 92vw);
    background: #0a0a0a;
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: right 0.55s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
    color: var(--c-white);
    overflow-y: auto;
}
.drawer.open { right: 0; }

/* Header del drawer · logo + cerrar */
.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}
.drawer-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 2rem;
    width: 50px;
    height: 1px;
    background: var(--c-gold);
}
.drawer-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1); /* blanco */
}
.drawer-close {
    width: 36px;
    height: 36px;
    position: relative;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}
.drawer-close:hover {
    border-color: var(--c-gold);
    background: rgba(197, 165, 114, 0.1);
    transform: rotate(90deg);
}
.drawer-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 1.5px;
    background: var(--c-white);
    transform-origin: center;
}
.drawer-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.drawer-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

/* Navegación · links editorial con números */
.drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 2rem 2rem 1.5rem;
    flex-grow: 1;
}
.drawer-section-label {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    margin-bottom: 1.2rem;
}
.drawer-nav a {
    display: flex;
    align-items: baseline;
    gap: 1.1rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color var(--transition-fast), padding-left var(--transition-fast), border-color var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
}
.drawer-nav a:last-of-type { border-bottom: none; }
.drawer-nav a:hover {
    color: var(--c-gold);
    padding-left: 8px;
    border-bottom-color: rgba(197, 165, 114, 0.3);
}
.drawer-num {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--c-gold);
    letter-spacing: 0.05em;
    min-width: 22px;
    opacity: 0.7;
    font-feature-settings: 'tnum';
}
.drawer-nav a:hover .drawer-num { opacity: 1; }
.drawer-controls {
    padding: 1.5rem 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Locale selector */
.drawer-locale {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.2rem;
}
.locale-btn {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 0.95rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
    text-align: left;
    font-family: var(--font-body);
}
.locale-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}
.locale-btn.active {
    background: rgba(197, 165, 114, 0.12);
    border-color: var(--c-gold);
    color: var(--c-white);
}
.locale-flag {
    width: 38px;
    height: 26px;
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: block;
}
.locale-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
    flex: 1;
}
.locale-lang {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-white);
}
.locale-currency {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
}
.locale-btn.active .locale-currency { color: var(--c-gold-soft); }
.drawer-brochure {
    margin-top: 0.8rem;
    padding: 0.95rem 1.2rem;
    background: transparent;
    color: var(--c-white);
    border: 1px solid var(--c-gold);
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.4s cubic-bezier(0.22,1,0.36,1);
}
.drawer-brochure::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c-gold);
    transform: translateX(-101%);
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
    z-index: -1;
}
.drawer-brochure:hover { color: var(--c-ink); }
.drawer-brochure:hover::before { transform: translateX(0); }

/* Footer del drawer · contacto rápido */
.drawer-foot {
    padding: 1.2rem 2rem 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.drawer-foot-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 44px;
    padding-block: 0.5rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition-fast);
}
.drawer-foot-item:hover { color: var(--c-gold); }
.drawer-foot-item i {
    width: 16px;
    text-align: center;
    color: var(--c-gold);
    font-size: 0.85rem;
}

/* Segmented control reutilizable */
.seg-control {
    display: inline-flex;
    background: var(--c-gray-100);
    border-radius: var(--radius-pill);
    padding: 4px;
}
.seg-control--sm { padding: 3px; }
.seg-btn {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--c-gray-500);
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-pill);
    transition: background var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
}
.seg-control--sm .seg-btn { padding: 0.3rem 0.7rem; font-size: var(--fs-xs); }
.seg-btn:hover { color: var(--c-ink); }
.seg-btn.active {
    background: var(--c-white);
    color: var(--c-ink);
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   6. HERO
============================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 720px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: var(--c-white);
    background: var(--c-ink);
}
/* Dos imágenes que se alternan con crossfade + Ken Burns sutil.
   La opacidad la controla JS via --hero-op-1/2 (asi los puntitos
   pueden saltar a cualquier foto); el zoom es un loop continuo
   independiente, no atado a que capa este visible. */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-size: 110% 110%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: opacity 1.1s ease;
    animation: heroKenBurns 22s ease-in-out infinite alternate;
}
.hero {
    --hero-img-1: url('MARINA GOLD DISEÑO/Hero/hero-16-vista-logo.webp');
    --hero-img-2: none; /* la segunda foto la pone el JS: no se descarga antes de tiempo */
    --hero-op-1: 1;
    --hero-op-2: 0;
}
.hero::before {
    background-image: var(--hero-img-1);
    opacity: var(--hero-op-1);
}
.hero::after {
    background-image: var(--hero-img-2);
    opacity: var(--hero-op-2);
    animation-delay: -11s; /* desfasa el zoom para que no "respiren" igual */
}
@keyframes heroKenBurns {
    0%   { transform: scale(1); }
    100% { transform: scale(1.06); }
}
.hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Diagonal invertida (35°) → oscuro en ABAJO-izquierda,
       transparente hacia ARRIBA-derecha. Deja el cielo limpio.
       + Franja horizontal a la izquierda (donde vive el logo/texto)
       para que el bloque siempre tenga contraste, sin importar que
       tan clara sea la foto de fondo en ese punto de la rotacion. */
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.42) 0%,
            rgba(0, 0, 0, 0.26) 20%,
            rgba(0, 0, 0, 0.08) 34%,
            rgba(0, 0, 0, 0) 44%
        ),
        linear-gradient(
            35deg,
            rgba(0, 0, 0, 0.80) 0%,
            rgba(0, 0, 0, 0.62) 30%,
            rgba(0, 0, 0, 0.34) 60%,
            rgba(0, 0, 0, 0.10) 85%,
            rgba(0, 0, 0, 0) 100%
        );
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--nav-height) var(--container-pad) clamp(3rem, 8vh, 5rem);
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    min-height: 100%;
}

.hero-block {
    max-width: 720px;
    /* Sube ligeramente y se corre a la izquierda */
    transform: translate(-4.5rem, -3vh);
}

/* MARK · etiqueta editorial superior */
.hero-mark {
    display: inline-flex;
    align-items: center;
    gap: 1.1rem;
    margin-top: 1.6rem;
    margin-bottom: 2.4rem;
    opacity: 0;
    animation: heroIn 1.2s ease-out 0.3s forwards;
}
.hero-mark-line {
    width: 46px;
    height: 1px;
    background: var(--c-gold);
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(197, 165, 114, 0.6);
}
.hero-mark-text {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: #F5D896;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.95),
        0 2px 14px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 0, 0, 0.6);
}

/* TÍTULO · Playfair Display, alto contraste, estilo luxury real estate
   ───────────────────────────────────────────────────────────────────
   Para cambiar de fuente, modifica solo la propiedad font-family:
     · 'Playfair Display' → serif clásica de lujo (Vogue-style)        ← actual
     · 'Cormorant Garamond' → serif refinada y delgada
     · 'DM Serif Display' → serif modern de alto contraste
     · 'Italiana' → serif estilizada italiana, muy delgada
     · var(--font-display) → vuelve a Fraunces (original)
*/
.hero-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    margin: 0 0 2rem 0;
    color: var(--c-white);
}
.hero-title-line {
    display: block;
    font-size: clamp(4rem, 11vw, 8.5rem);
    text-shadow: 0 6px 40px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
    opacity: 0;
    animation: heroInTitle 1.4s ease-out forwards;
}
.hero-title-line:nth-child(1) { animation-delay: 0.5s; }
.hero-title-line:nth-child(2) { animation-delay: 0.75s; }
.hero-title-gold {
    color: var(--c-gold);
    font-weight: 500;
    text-shadow: 0 6px 40px rgba(0,0,0,0.5);
}

/* Logo grande del hero · sustituye al texto MARINA GOLD */
.hero-title--logo { margin-top: -3rem; margin-bottom: 0.4rem; }
.hero-logo {
    display: block;
    width: clamp(250px, 34vw, 485px);
    height: auto;
    /* LOGOAMARILLO forzado a blanco puro con CSS para el hero */
    filter: brightness(0) invert(1) drop-shadow(0 8px 40px rgba(0,0,0,0.55)) drop-shadow(0 2px 10px rgba(0,0,0,0.35));
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    animation: heroLogoIn 1.4s cubic-bezier(0.2,0.7,0.2,1) 0.45s forwards;
    transition: transform 0.6s cubic-bezier(0.2,0.7,0.2,1), opacity 0.45s ease;
    transform-origin: left center;
    will-change: transform, opacity;
}
@keyframes heroLogoIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
}
/* Al scrollear, el logo "viaja" al navbar: encoge y se desvanece */
body.scrolled .hero-logo {
    opacity: 0;
    transform: translateY(-180px) scale(0.18);
}

/* Línea divisora dorada */
.hero-divider {
    display: block;
    width: 64px;
    height: 1px;
    background: linear-gradient(90deg, var(--c-gold) 0%, transparent 100%);
    margin: 0 0 0.7rem 0;
    opacity: 0;
    animation: heroIn 1s ease-out 1s forwards;
}

.hero-sub {
    font-family: var(--font-body);
    font-size: clamp(0.98rem, 1.2vw, 1.1rem);
    max-width: 460px;
    color: rgba(255,255,255,0.88);
    font-weight: 300;
    line-height: 1.65;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 14px rgba(0,0,0,0.55);
    opacity: 0;
    animation: heroIn 1s ease-out 1.15s forwards;
}

/* BOTÓN EDITORIAL · estilo hotel boutique */
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.4rem 1rem 2rem;
    background: transparent;
    color: var(--c-white);
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    opacity: 0;
    animation: heroIn 1s ease-out 1.3s forwards;
}
.btn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c-gold);
    transform: translateX(-101%);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}
.btn-hero:hover {
    color: var(--c-ink);
    border-color: var(--c-gold);
}
.btn-hero:hover::before { transform: translateX(0); }
.btn-hero-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    transition: background 0.4s, color 0.4s, transform 0.4s;
}
.btn-hero:hover .btn-hero-arrow {
    background: var(--c-ink);
    color: var(--c-gold);
    transform: translateX(4px);
}

/* HERO DOTS · indicador + control de la rotacion de fotos */
.hero-dots {
    position: absolute;
    bottom: clamp(1.4rem, 4vh, 2.2rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 90vw;
    padding: 0.4rem;
}
.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid rgba(0,0,0,0.35);
    border-radius: 50%;
    background: rgba(255,255,255,0.65);
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}
.hero-dot:hover { background: rgba(255,255,255,0.95); }
.hero-dot.is-active {
    background: var(--c-gold);
    border-color: var(--c-gold-deep);
    transform: scale(1.35);
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* Para .hero-title-line que tiene su propio transform inicial */
.hero-title-line { animation-name: heroInTitle; }
@keyframes heroInTitle {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   8. BUILDING · sección "El proyecto"
   Split foto/texto arriba + 6 razones de inversión integradas abajo
============================================================ */
.building {
    background: var(--c-canvas);
    padding: 0;
    position: relative;
}
/* Variante sin imagen · texto centrado tipo editorial */
.building.building--text {
    padding: clamp(3.5rem, 8vh, 5.5rem) var(--container-pad);
}
.building.building--text .building-info {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    padding: 0;
    align-items: center;
}
.building.building--text .building-divider {
    margin-left: auto;
    margin-right: auto;
}
.building.building--text .facts {
    justify-items: center;
    text-align: center;
}
.building-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 465px;
}
.building-figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    min-height: 100%;
}
.building-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.building-info {
    padding: clamp(2rem, 6vh, 4.5rem) clamp(2rem, 5vw, 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 640px;
}
.building-info .display {
    margin: 0.5rem 0 0;
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
.building-divider {
    display: block;
    width: 70px;
    height: 2px;
    background: var(--c-gold);
    margin: 1.5rem 0 2rem;
}
.building-info .lead { margin-bottom: 1.4rem; color: var(--c-gray-700); }
/* Stats unificados del edificio · 6 cifras clave en grid compacto */
.building-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem 1.1rem;
    margin: 0 0 0.9rem;
    padding: 1.1rem 0 1.1rem;
    border-top: 1px solid var(--c-gray-300);
    border-bottom: 1px solid var(--c-gray-300);
}
.building-stats > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    text-align: left;
}
.building-stats dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    line-height: 1;
    color: var(--c-gold-deep);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.building-stats dt {
    font-size: 0.65rem;
    color: var(--c-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}
.building-stats-foot {
    margin: 0 0 1.8rem;
    font-size: 0.8rem;
    color: var(--c-gray-500);
    line-height: 1.5;
    font-style: italic;
}
.building-info .building-claim {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    color: var(--c-gold-deep);
    line-height: 1.3;
    margin-bottom: 2rem;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 1.2rem;
}
.facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 1.5rem;
    margin-bottom: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--c-gray-300);
}
.facts > div { display: flex; flex-direction: column; gap: 0.3rem; }
.facts dt {
    font-size: var(--fs-xs);
    color: var(--c-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.facts dd {
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--c-ink);
    margin: 0;
}

/* Bloque "6 razones" integrado dentro de la sección El proyecto */
.building-reasons {
    max-width: var(--container-max);
    margin: var(--space-7) auto 0;
    padding: 0 var(--container-pad);
}
.building-reasons-head {
    text-align: center;
    margin-bottom: var(--space-5);
}
.building-reasons-head .display {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    margin-top: 0.4rem;
    color: var(--c-ink);
    text-transform: none;
}

.building-cta-bottom {
    display: inline-flex;
    margin: var(--space-5) auto 0;
    width: fit-content;
    padding: 0 var(--container-pad);
}
.building > .building-cta-bottom {
    display: flex;
    justify-content: center;
}

/* ============================================================
   9. AVAILABILITY · BUILDING EXPLORER 3D (sección estrella)
============================================================ */
.availability {
    padding: var(--space-7) var(--container-pad);
    background: linear-gradient(180deg, #0a0a0a 0%, #131313 100%);
    color: var(--c-white);
}
.availability > .section-head { max-width: var(--container-max); margin: 0 auto var(--space-5); }

/* Availability · catálogo de tipologías (24 cards reales) */

/* Hero del edificio · foto frontal + zonas interactivas */
.av-hero {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto var(--space-5);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
    background: #0c0c0c;
    isolation: isolate;
}
.av-hero-img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
}

/* Viñeta sutil para legibilidad de etiquetas */
.av-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.20) 0%, transparent 25%, transparent 75%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
}

/* Capa interactiva (sólo visible cuando anchor=frontal) */
.av-hero-interactive {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.av-hero[data-anchor="frontal"] .av-hero-interactive {
    opacity: 1;
    pointer-events: auto;
}

/* Zonas clickeables (calibradas a PERSPECTIVA 1) */
.av-zone {
    position: absolute;
    border: none;
    background: rgba(197,165,114,0);
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.4s ease;
    border-radius: 6px;
    outline: none;
}
.av-zone:hover,
.av-zone.is-hover,
.av-zone:focus-visible {
    background: rgba(197,165,114,0.38);
    box-shadow:
        inset 0 0 0 3px var(--c-gold),
        inset 0 0 0 5px rgba(10,10,10,0.55),
        0 0 30px rgba(197,165,114,0.7),
        0 0 0 1px rgba(10,10,10,0.4);
    backdrop-filter: saturate(0.85) brightness(0.92);
    -webkit-backdrop-filter: saturate(0.85) brightness(0.92);
}
/* Cuando el filtro está activo: la zona queda iluminada permanentemente */
.av-zone.is-active {
    background: rgba(197,165,114,0.45);
    box-shadow:
        inset 0 0 0 3px var(--c-gold),
        inset 0 0 0 5px rgba(10,10,10,0.5),
        0 0 40px rgba(197,165,114,0.85);
}
/* Oscurecer la imagen del fondo cuando se hace hover sobre cualquier torre
   (zona o chip dorado). La torre activa queda destacada con su overlay dorado. */
.av-hero-img { transition: filter 0.45s ease; }
.av-hero.is-tower-hover .av-hero-img {
    filter: brightness(0.78) saturate(0.92);
}
/* Fallback moderno con :has para navegadores que soportan */
.av-hero:has(.av-zone:hover, .av-zone.is-hover, .av-tower-chip:hover) .av-hero-img {
    filter: brightness(0.78) saturate(0.92);
}

/* Cuando hay hover en torre, las otras dos zonas se atenúan sutilmente */
.av-hero.is-tower-hover .av-zone:not(.is-hover):not(:hover) {
    opacity: 0.5;
    transition: opacity 0.35s ease;
}

/* Calibrado a la aérea central (16:9; hoy Renders/aerea-central-1440.webp): cada zona cubre solo su torre */
.av-zone--a { top: 39%; left: 18%; width: 25%; height: 31%; }
.av-zone--b { top: 28%; left: 43%; width: 18.5%; height: 33%; }
.av-zone--c { top: 39%; left: 61.5%; width: 26.5%; height: 31%; }

/* Etiquetas flotantes */
.av-tag {
    position: absolute;
    padding: 0.55rem 1rem 0.65rem;
    border-radius: 14px;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    color: var(--c-white);
    background: rgba(10,10,10,0.82);
    border: 1px solid rgba(197,165,114,0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    letter-spacing: 0.02em;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    gap: 0.15rem;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
                border-color 0.35s ease,
                box-shadow 0.35s ease;
}
.av-tag strong {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
    color: var(--c-white);
}
.av-tag small {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-gold-soft, var(--c-gold));
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.15rem;
}
.av-tag small i { font-size: 0.7rem; opacity: 0.9; }
.av-tag::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: inherit;
    border-right: 1px solid rgba(197,165,114,0.4);
    border-bottom: 1px solid rgba(197,165,114,0.4);
}
.av-tag.is-highlight {
    transform: translateY(-3px) scale(1.06);
    border-color: var(--c-gold);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5),
                0 0 0 1px rgba(197,165,114,0.55);
}
.av-tag--b.is-highlight { transform: translateX(-50%) translateY(-3px) scale(1.06); }

.av-tag--a { top: 32%; left: 14%; }
.av-tag--b { top: 19%; left: 48%; transform: translateX(-50%); }
.av-tag--c { top: 32%; right: 14%; }

/* Grupos torre · etiqueta + chip dorado debajo */
.av-tower-group {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    z-index: 4;
    pointer-events: none; /* el chip recupera pointer-events */
}
.av-tower-group .av-tag {
    /* Anula el absolute heredado del selector .av-tag genérico */
    position: relative;
    top: auto; left: auto; right: auto;
    transform: none !important;
    pointer-events: auto;
}
/* Ocultar la flecha ::before del tag cuando va en grupo (el chip toma su lugar) */
.av-tower-group .av-tag::before { display: none; }

.av-tower-group--a { top: 30%; left: 22%;  transform: translateX(-50%); }
.av-tower-group--b { top: 19%; left: 48%;  transform: translateX(-50%); }
.av-tower-group--c { top: 30%; right: 18%; transform: translateX(50%);  }

.av-tower-chip {
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--c-gold);
    background: var(--c-gold);
    color: var(--c-ink);
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(197,165,114,0.45), 0 0 0 1px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    pointer-events: auto;
}
.av-tower-chip:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 26px rgba(197,165,114,0.6);
    background: #d4af6e;
}
.av-tower-chip:disabled {
    opacity: 0.95;
    cursor: not-allowed;
}
.av-tower-chip.is-active {
    background: var(--c-white);
    color: var(--c-ink);
    border-color: var(--c-white);
    box-shadow: 0 12px 26px rgba(255,255,255,0.35), 0 0 0 3px rgba(197,165,114,0.55);
    transform: translateY(-2px) scale(1.06);
}
.av-tower-chip.is-active::after {
    content: ' ✓';
    font-weight: 800;
}

/* Hint inferior */
.av-hero-hint {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1.1rem;
    z-index: 4;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.75);
    background: rgba(10,10,10,0.55);
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Filtros */
.av-filters {
    max-width: var(--container-max);
    margin: 0 auto 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}
.av-filter-group {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}
.av-filter-label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.55);
}
.seg-control--dark {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}
.seg-control--dark .seg-btn {
    color: rgba(255,255,255,0.6);
    background: transparent;
}
.seg-control--dark .seg-btn:hover { color: var(--c-white); background: rgba(255,255,255,0.06); }
.seg-control--dark .seg-btn.active {
    background: rgba(255,255,255,0.95);
    color: var(--c-ink);
    box-shadow: var(--shadow-sm);
}

/* Banner de resultados (aparece al filtrar) */
.av-result-bar {
    max-width: var(--container-max);
    margin: 0 auto 1.4rem;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.av-result-bar[hidden] { display: none; }
.av-result-bar.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.av-result-bar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem 0.85rem 0.85rem;
    background: linear-gradient(135deg, rgba(197,165,114,0.18) 0%, rgba(197,165,114,0.08) 100%);
    border: 1px solid rgba(197,165,114,0.4);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.av-result-badge {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--c-gold);
    color: var(--c-ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(197,165,114,0.5);
}
.av-result-text {
    flex: 1;
    color: var(--c-white);
    font-size: var(--fs-md);
    line-height: 1.3;
}
.av-result-text strong:first-of-type {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--c-gold);
    margin-right: 0.35rem;
}
.av-result-text strong:last-of-type {
    color: var(--c-white);
    font-weight: 600;
    margin-left: 0.25rem;
}
.av-result-clear {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    color: var(--c-white);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.av-result-clear:hover {
    background: var(--c-white);
    color: var(--c-ink);
    border-color: var(--c-white);
}
.av-result-clear i { font-size: 0.7rem; }

/* Grid de 24 cards */
.av-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
}
.av-grid--empty::after {
    content: 'No hay tipologías que coincidan con los filtros.';
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255,255,255,0.45);
    padding: 3rem 1rem;
    font-style: italic;
}

.av-card {
    appearance: none;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: inherit;
    text-align: left;
    padding: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
                opacity 0.35s ease,
                background 0.3s, border-color 0.3s, box-shadow 0.3s;
    animation: avCardIn 0.45s ease both;
    animation-delay: var(--av-stagger, 0ms);
}
.av-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.05);
    border-color: rgba(197,165,114,0.45);
    box-shadow: 0 18px 40px rgba(0,0,0,0.5);
}
.av-card--hidden {
    display: none !important;
}
@keyframes avCardIn {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.av-card-plan {
    aspect-ratio: 1 / 0.9;
    background: linear-gradient(135deg, #f8f6f1 0%, #ece6da 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem;
    overflow: hidden;
}
.av-card-plan img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.15));
    transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.av-card:hover .av-card-plan img { transform: scale(1.04); }

.av-card-body {
    padding: 1.1rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.av-card-wing {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-gold);
    font-weight: 600;
}
.av-card-id {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--c-white);
    margin: 0;
    line-height: 1.1;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.av-card-area {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 400;
    color: rgba(255,255,255,0.7);
}
.av-card-meta {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.55);
    margin: 0;
}
.av-card-price {
    font-size: var(--fs-md);
    font-weight: 500;
    color: var(--c-white);
    margin: 0.25rem 0 0.4rem;
}
.av-card-inv {
    font-size: var(--fs-sm);
    color: var(--c-white);
    opacity: 0.85;
}
.av-card-inv strong {
    color: var(--c-gold);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.av-card-bar {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
    margin: 0.5rem 0 0.3rem;
}
.av-card-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d97706 0%, #b91c1c 100%);
    transition: width 0.4s ease;
    border-radius: 2px;
}
.av-card--sold .av-card-bar-fill { background: #b91c1c; }

/* Mini-pills por torre dentro de la card (Norte / Centro / Sur) */
.av-card-towers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.6rem;
    align-self: flex-start;
}
.av-card-tower-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    background: rgba(197,165,114,0.12);
    border: 1px solid rgba(197,165,114,0.28);
    border-radius: 999px;
    font-size: 0.64rem;
    color: var(--c-gold);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
}
.av-card-tower-pill--golf {
    background: rgba(197,165,114,0.08);
    border-color: rgba(197,165,114,0.22);
    color: var(--c-gold);
}

.av-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-gold);
    margin-top: 0.4rem;
    transition: gap 0.3s ease;
}
.av-card:hover .av-card-cta { gap: 0.8rem; }

/* Tag de estado SOLD/RESERVED sobre la card */
.av-card { position: relative; }
.av-card-statustag {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 5;
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-white);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.av-card-statustag--sold {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}
.av-card-statustag--reserved {
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
}

/* Modificadores visuales del card según estado */
.av-card--sold {
    opacity: 0.92;
    position: relative;
}
.av-card--sold .av-card-plan {
    filter: grayscale(0.55) brightness(0.95);
}
/* Overlay rojo semi-transparente que aparece SOLO en hover */
.av-card--sold::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(220, 38, 38, 0.22);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
    z-index: 4;
}
.av-card--sold:hover::after { opacity: 1; }
.av-card--sold:hover {
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: 0 18px 40px rgba(220, 38, 38, 0.25);
    transform: translateY(-4px);
}
/* El tag VENDIDO debe estar por encima del overlay */
.av-card--sold .av-card-statustag { z-index: 6; }

.av-card--sold .av-card-cta {
    color: rgba(255,255,255,0.4);
}
.av-card--sold .av-card-cta i { transform: rotate(-45deg); }
.av-card--reserved .av-card-plan {
    filter: brightness(0.98) saturate(0.9);
}
.av-card--reserved .av-card-cta { color: #d97706; }

/* Tag en el panel detalle */
.up-visual { position: relative; }
.up-statustag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 5;
    padding: 0.5rem 0.95rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.up-statustag--sold     { background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%); }
.up-statustag--reserved { background: linear-gradient(135deg, #d97706 0%, #92400e 100%); }

/* Bloque "Modelo vendido" en el panel detalle */
.up-soldout {
    padding: 1.1rem 1.2rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(153, 27, 27, 0.06) 100%);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 8px;
    text-align: center;
}
.up-soldout strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #991b1b;
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
}
.up-soldout p {
    margin: 0 0 0.85rem;
    font-size: 0.85rem;
    color: var(--c-gray-700, #555);
    line-height: 1.4;
}

/* Nota inline cuando está RESERVADO */
.up-reserved-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.25);
    border-radius: 6px;
    font-size: 0.8rem;
    color: #92400e;
    line-height: 1.4;
}
.up-reserved-note i { color: #d97706; margin-top: 2px; }

.av-disclaimer {
    max-width: var(--container-max);
    margin: 2.5rem auto 0;
    text-align: center;
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.4);
    font-style: italic;
    line-height: 1.6;
}

/* Mobile · las etiquetas + chips no caben sobre la foto: se mueven a una fila
   de 3 tarjetas debajo de la imagen (Norte · Centro · Sur, mismo orden que la foto).
   Las zonas sobre la foto se ocultan: las tarjetas las reemplazan. */
@media (max-width: 640px) {
    .av-hero-interactive {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
        padding: 0.5rem;
        background: #0c0c0c;
    }
    .av-zone { display: none; }
    .av-tower-group,
    .av-tower-group--a,
    .av-tower-group--b,
    .av-tower-group--c {
        position: static;
        transform: none;
        gap: 0;
        min-width: 0;
        justify-content: space-between;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(197,165,114,0.35);
        border-radius: 12px;
        padding: 0.55rem 0.35rem 0.45rem;
        pointer-events: auto;
    }
    .av-tower-group .av-tag {
        background: none;
        border: 0;
        padding: 0 0 0.45rem;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        text-align: center;
    }
    .av-tower-group .av-tag strong { font-size: 0.9rem; }
    .av-tower-group .av-tag small {
        font-size: 0.55rem;
        letter-spacing: 0.06em;
        line-height: 1.25;
        white-space: normal;
    }
    .av-tower-group .av-tower-chip {
        width: 100%;
        min-height: 36px;
        padding: 0.45rem 0.3rem;
        font-size: 0.56rem;
        letter-spacing: 0.06em;
        white-space: normal;
        line-height: 1.2;
        box-shadow: none;
    }
    .av-tower-group .av-tower-chip.is-active { transform: none; }
    /* La viñeta era para leer las etiquetas sobre la foto; ya no hace falta */
    .av-hero::before { display: none; }
}

/* Tablet */
@media (max-width: 900px) {
    .av-tag { padding: 0.4rem 0.75rem; }
    .av-tag strong { font-size: 0.85rem; }
    .av-tag small { font-size: 0.6rem; letter-spacing: 0.08em; }
    .av-tag--a { top: 20%; left: 14%; }
    .av-tag--b { top: 4%; }
    .av-tag--c { top: 20%; right: 12%; }
    .av-tower-chip { padding: 0.32rem 0.7rem; font-size: 0.58rem; letter-spacing: 0.1em; }
    .av-tower-group { gap: 0.4rem; }
    .av-tower-group--a { top: 22%; left: 18%; }
    .av-tower-group--b { top: 8%; }
    .av-tower-group--c { top: 22%; right: 14%; }
}

/* Mobile */
@media (max-width: 640px) {
    .av-hero { border-radius: var(--radius-sm); }
    .av-tag { padding: 0.3rem 0.55rem; gap: 0.08rem; }
    .av-tag strong { font-size: 0.72rem; }
    .av-tag small { font-size: 0.52rem; }
    .av-tag--a { top: 18%; left: 10%; }
    .av-tag--b { top: 2%; }
    .av-tag--c { top: 18%; right: 8%; }
    /* Chips táctiles: 0.52rem/20px era ilegible e intocable sobre la imagen */
    .av-tower-chip { padding: 0.5rem 0.8rem; font-size: 0.66rem; min-height: 36px; }
    .av-tower-group { gap: 0.35rem; }
    .av-tower-group--a { top: 20%; left: 16%; }
    .av-tower-group--b { top: 6%; }
    .av-tower-group--c { top: 20%; right: 12%; }
    .av-hero-hint { font-size: 0.6rem; bottom: 0.7rem; padding: 0.3rem 0.7rem; }
    .av-filters { gap: 1rem; }
    .av-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.9rem; }
    .av-result-bar-inner { padding: 0.7rem; gap: 0.65rem; flex-wrap: wrap; }
    .av-result-badge { width: 32px; height: 32px; font-size: 0.95rem; }
    .av-result-text { font-size: var(--fs-sm); flex: 1 1 auto; }
    .av-result-text strong:first-of-type { font-size: 1.1rem; }
    .av-result-clear { padding: 0.4rem 0.75rem; font-size: 0.65rem; }
    .av-result-clear span { display: none; }
}

/* Panel lateral con detalle de unidad */
/* ============================================================
   PANEL DE TIPOLOGÍA · modal split-screen estilo ficha inmobiliaria
============================================================ */
.unit-panel {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.unit-panel.open { display: flex; }

/* Modo split: el panel se centra en el espacio libre a la izquierda del chatbot */
@media (min-width: 901px) {
    .unit-panel.is-split {
        justify-content: center;
        padding-left: 2rem;
        padding-right: 380px; /* espacio reservado para el chatbot a la derecha */
        pointer-events: none; /* el card recupera pointer-events más abajo */
    }
    .unit-panel.is-split .unit-panel-backdrop {
        background: rgba(0,0,0,0.35);
        pointer-events: auto;
    }
    .unit-panel.is-split .unit-panel-card {
        pointer-events: auto;
        max-width: 820px;
        animation: panelSlideLeft 0.5s cubic-bezier(0.22, 1, 0.36, 1);
        transition: max-width 0.5s ease, transform 0.5s ease;
    }
    .unit-panel.is-split .unit-panel-body {
        grid-template-columns: 1fr 1fr;
    }
}
@keyframes panelSlideLeft {
    0%   { transform: translateX(3vw) scale(0.98); opacity: 0.7; }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}

.unit-panel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
    transition: background 0.5s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.unit-panel-card {
    position: relative;
    width: 100%;
    max-width: 1080px;
    max-height: calc(100vh - 4rem);
    background: var(--c-canvas);
    border-radius: var(--radius-md);
    box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
    overflow: hidden;
    animation: panelIn 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}
@keyframes panelIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.unit-panel-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.95);
    font-size: 1.4rem;
    line-height: 1;
    box-shadow: var(--shadow-sm);
    color: var(--c-ink);
    z-index: 10;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}
.unit-panel-close:hover {
    transform: rotate(90deg);
    background: var(--c-gold);
}

.unit-panel-body {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

/* Columna izquierda · plano + ubicación */
.up-visual {
    background: linear-gradient(135deg, #f8f6f1 0%, #ece6da 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
    border-right: 1px solid var(--c-gray-200);
}
.up-img {
    flex: 1;
    min-height: 0;
    width: 100%;
    object-fit: contain;
    margin: 0;
    background: transparent;
    padding: 0;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,0.12));
}
.up-location {
    flex-shrink: 0;
    margin: 0;
    padding: 0.75rem;
    background: rgba(255,255,255,0.65);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.up-location-label {
    flex-shrink: 0;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-gray-500);
    font-weight: 700;
    max-width: 110px;
    line-height: 1.3;
}
.up-location-img {
    flex: 1;
    max-height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-left: auto;
}

/* Columna derecha · info compacta */
.up-info {
    padding: 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    overflow-y: auto;
}

.up-wing {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-ink);
    background: var(--c-gold);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 14px rgba(197,165,114,0.4);
}
.up-code {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--c-ink);
    line-height: 1.1;
    margin: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.up-area {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--fs-md);
    color: var(--c-gray-500);
}
.up-price {
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: var(--c-gold-deep);
    margin: 0 0 0.3rem;
    font-weight: 500;
}
.up-tower {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.2rem 0 0.8rem;
    padding: 0.4rem 0.85rem;
    background: rgba(197,165,114,0.10);
    border: 1px solid rgba(197,165,114,0.3);
    border-radius: 999px;
    color: var(--c-gold-deep);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.up-tower i { font-size: 0.78rem; opacity: 0.85; }
.up-tower-view { color: var(--c-gray-500); font-weight: 500; }

.up-specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0.85rem 0;
    margin: 0;
    border-top: 1px solid var(--c-gray-200);
    border-bottom: 1px solid var(--c-gray-200);
}
.up-spec {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.4rem 0;
    border: none;
}
.up-spec dt {
    font-size: var(--fs-sm);
    color: var(--c-gray-500);
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
}
.up-spec dd {
    font-size: var(--fs-md);
    color: var(--c-ink);
    font-weight: 500;
    margin: 0;
    font-variant-numeric: tabular-nums;
}
.up-spec--total {
    border-top: 1px dotted var(--c-gray-300, var(--c-gray-200));
    padding-top: 0.55rem;
    margin-top: 0.15rem;
}
.up-spec--total dt,
.up-spec--total dd {
    font-weight: 700;
    color: var(--c-ink);
    font-size: 1rem;
}

.up-desc {
    color: var(--c-gray-700, #555);
    font-size: var(--fs-sm);
    line-height: 1.55;
    margin: 0;
}

.up-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 0.5rem;
}
.up-actions .btn--full,
.up-actions .up-tour { width: 100%; }

/* Tour 360° · botón con presencia y movimiento que invita a hacer click */
.up-tour {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    white-space: nowrap;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--c-ink);
    cursor: pointer;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(197,165,114,0.18) 0%, rgba(197,165,114,0.08) 100%);
    border: 1px solid rgba(197,165,114,0.6);
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-pill);
    transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}
.up-tour i {
    font-size: 1rem;
    color: var(--c-gold-deep);
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), color 0.35s ease;
}
.up-tour::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 1s ease;
    pointer-events: none;
}
.up-tour:hover {
    background: var(--c-gold);
    border-color: var(--c-gold);
    color: var(--c-ink);
    box-shadow: 0 8px 22px rgba(197,165,114,0.45);
    transform: translateY(-1px);
}
.up-tour:hover i {
    transform: rotate(-15deg) scale(1.15);
    color: var(--c-ink);
}
.up-tour:hover::after {
    transform: translateX(100%);
}

.up-disclaimer {
    margin: 0;
    font-size: 0.66rem;
    color: var(--c-gray-500);
    font-style: italic;
    line-height: 1.45;
}

/* Responsive · tablet (panel se mantiene split pero más compacto) */
@media (max-width: 960px) {
    .unit-panel { padding: 1rem; }
    .unit-panel-card { max-height: calc(100vh - 2rem); }
    .up-visual { padding: 1.25rem; }
    .up-info { padding: 1.5rem; gap: 0.7rem; }
    .up-code { font-size: 1.7rem; }
    .up-price { font-size: 1.25rem; }
}

/* Responsive · móvil (colapsa a vertical, plano arriba) */
@media (max-width: 720px) {
    .unit-panel { padding: 0; }
    .unit-panel-card {
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    .unit-panel-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        overflow-y: auto;
    }
    .up-visual {
        padding: 1.2rem;
        border-right: none;
        border-bottom: 1px solid var(--c-gray-200);
        aspect-ratio: 4/3;
        max-height: 42vh;
    }
    .up-location { display: none; } /* En móvil ocultamos el iso para no quitar espacio del plano */
    .up-info { padding: 1.2rem 1.2rem 1.5rem; overflow: visible; }
    .up-actions { grid-template-columns: 1fr; }
    .up-actions .btn--primary { grid-column: auto; }
}

/* ============================================================
   10. SHOWROOM 360 · catálogo de cards por tipología
============================================================ */
.showroom {
    padding: var(--space-7) var(--container-pad);
    background: var(--c-ink);
    color: var(--c-white);
}
.showroom > .section-head {
    max-width: var(--container-max);
    margin: 0 auto var(--space-5);
}
.showroom > .section-head .eyebrow { color: var(--c-gold-soft); }
.showroom > .section-head .display { color: var(--c-white); }
.showroom > .section-head .lead { color: rgba(255,255,255,0.65); }

.showroom-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.showroom-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.3s, border-color 0.3s;
}
.showroom-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(197, 165, 114, 0.4);
}

.showroom-card-visual {
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f8f6f1 0%, #ece6da 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1.8rem;
}
.showroom-card-visual img {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.showroom-card:hover .showroom-card-visual img {
    transform: scale(1.04);
}
.showroom-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-gold);
    background: rgba(0, 0, 0, 0.55);
    padding: 0.35rem 0.75rem;
    border-radius: 2px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 165, 114, 0.3);
}
.showroom-card-vr {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-gold);
    color: var(--c-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(197, 165, 114, 0.4);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.showroom-card:hover .showroom-card-vr {
    transform: rotate(360deg) scale(1.1);
}

.showroom-card-body {
    padding: 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.showroom-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--c-white);
    margin: 0 0 0.6rem;
    line-height: 1.1;
}
.showroom-card-body p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.55;
    margin: 0 0 1.4rem;
    flex: 1;
}
.showroom-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: transparent;
    color: var(--c-white);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.4s, border-color 0.4s;
}
.showroom-card-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c-gold);
    transform: translateX(-101%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}
.showroom-card-btn:hover {
    color: var(--c-ink);
    border-color: var(--c-gold);
}
.showroom-card-btn:hover::before { transform: translateX(0); }
.showroom-card-btn i { font-size: 0.85em; }

/* ============================================================
   11. AMENITIES · grid 4x2 de cards estilo editorial
============================================================ */
.amenities {
    padding: var(--space-7) var(--container-pad);
    background: #0F0F0F;
    color: var(--c-white);
}
.amenities > .section-head { max-width: var(--container-max); margin: 0 auto var(--space-5); }
.amenities > .section-head .lead { color: rgba(255, 255, 255, 0.6); }

.amen-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.amen-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 2px;
    isolation: isolate;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.amen-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.20) 0%,
        rgba(0, 0, 0, 0.40) 55%,
        rgba(0, 0, 0, 0.88) 100%
    );
    z-index: 1;
    transition: opacity 0.4s ease;
}
.amen-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.amen-card:hover::after { transform: scale(1.08); }
.amen-card:hover { transform: translateY(-3px); }

.amen-card-num {
    position: absolute;
    top: 1rem;
    left: 1.1rem;
    z-index: 2;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--c-gold);
    opacity: 0.7;
    line-height: 1;
    letter-spacing: -0.02em;
    transition: opacity 0.4s, transform 0.4s;
}
.amen-card:hover .amen-card-num { opacity: 1; transform: translateY(-3px); }

.amen-card-icon {
    position: absolute;
    top: 1rem;
    right: 1.1rem;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(197, 165, 114, 0.4);
    color: var(--c-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    backdrop-filter: blur(8px);
    transition: background 0.3s, color 0.3s, transform 0.3s;
}
.amen-card:hover .amen-card-icon {
    background: var(--c-gold);
    color: var(--c-ink);
    transform: scale(1.08);
}

.amen-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 1.4rem 1.3rem 1.3rem;
    color: var(--c-white);
}
.amen-card-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 0.3rem;
    color: var(--c-white);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}
.amen-card-meta {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--c-gold-soft);
    font-weight: 600;
}

/* ============================================================
   12. MOMENTOS (día / atardecer / noche)
============================================================ */
.moments {
    padding: var(--space-7) var(--container-pad);
    background: var(--c-black);
    color: var(--c-white);
}
.moments > .section-head { max-width: var(--container-max); margin: 0 auto var(--space-5); }
.moments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
}
.moment {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: default;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base);
}
.moment img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.9s ease, filter var(--transition-base);
    filter: brightness(0.82);
}
.moment:hover img { transform: scale(1.06); filter: brightness(1); }
.moment:hover { transform: translateY(-4px); }
.moment figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
    color: var(--c-white);
}
.moment-label {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--c-gold);
    margin-bottom: 0.3rem;
}
.moment-desc { display: block; font-size: var(--fs-sm); color: rgba(255,255,255,0.85); }

/* ============================================================
   13. LOCATION
============================================================ */
.location {
    padding: var(--space-7) var(--container-pad);
    background: var(--c-canvas);
}
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
}
.location-body .display { margin-bottom: 1.1rem; }
.location-body > p { margin-bottom: 1.4rem; color: var(--c-gray-700); max-width: 50ch; }
.poi-list {
    margin-bottom: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.poi-list li {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--c-gray-200);
    font-size: var(--fs-md);
    color: var(--c-graphite);
}
.poi-list strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--c-gold-deep);
    font-weight: 500;
    min-width: 90px;
}

.value-callout {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 1.8rem;
    background: var(--c-ink);
    color: var(--c-white);
    border-radius: var(--radius-md);
}
.value-num {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
    color: var(--c-gold);
    font-weight: 400;
}
.value-num small { font-size: 0.4em; color: var(--c-gold-soft); vertical-align: super; }
.value-text { font-size: var(--fs-sm); color: rgba(255,255,255,0.75); }

.location-map {
    aspect-ratio: 4/5;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.location-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   14. GALLERY (masonry)
============================================================ */
.gallery {
    padding: var(--space-7) 0;
    background: var(--c-black);
    color: var(--c-white);
}
.gallery > .section-head {
    max-width: var(--container-max);
    margin: 0 auto var(--space-5);
    padding: 0 var(--container-pad);
}
.gallery > .section-head .lead { color: rgba(255,255,255,0.6); }

/* GRID 2x2 de paneles full-width */
.gal-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--c-black);
}

.gal-cat {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gal-cat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.20) 0%,
        rgba(0, 0, 0, 0.45) 60%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 1;
    transition: opacity 0.6s ease;
}
.gal-cat::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1);
    transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.gal-cat:hover::after { transform: scale(1.06); }
.gal-cat:hover::before {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.10) 0%,
        rgba(0, 0, 0, 0.30) 50%,
        rgba(0, 0, 0, 0.90) 100%
    );
}

.gal-cat-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: clamp(2rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    color: var(--c-white);
}
.gal-cat-num {
    position: absolute;
    top: clamp(2rem, 4vw, 3rem);
    left: clamp(2rem, 4vw, 3.5rem);
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--c-gold);
    line-height: 1;
    opacity: 0.55;
    letter-spacing: -0.02em;
    transition: opacity 0.4s, transform 0.4s;
}
.gal-cat:hover .gal-cat-num { opacity: 1; transform: translateY(-4px); }

.gal-cat-eyebrow {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: var(--c-gold-soft);
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.gal-cat-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 500;
    line-height: 1;
    margin: 0 0 0.5rem;
    color: var(--c-white);
    text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.gal-cat-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.78);
    max-width: 380px;
    line-height: 1.5;
    margin: 0 0 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.gal-cat-action {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1.1rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.45);
    color: var(--c-white);
    border-radius: 2px;
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.4s, border-color 0.4s;
}
.gal-cat-action::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c-gold);
    transform: translateX(-101%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}
.gal-cat:hover .gal-cat-action { color: var(--c-ink); border-color: var(--c-gold); }
.gal-cat:hover .gal-cat-action::before { transform: translateX(0); }
.gal-cat-count {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--c-gold-soft);
    letter-spacing: 0.05em;
    margin-left: 0.6rem;
    opacity: 0.85;
}

.gal-video-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 0 var(--container-pad);
}
.gal-video-cta .btn { border-color: var(--c-gold); color: var(--c-gold); }
.gal-video-cta .btn:hover { background: var(--c-gold); color: var(--c-ink); border-color: var(--c-gold); }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 6000;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--c-white);
    font-size: 2.2rem;
    line-height: 1;
    transition: transform var(--transition-fast);
    z-index: 10;
}
.lightbox-close:hover { transform: rotate(90deg); color: var(--c-gold); }
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--c-white);
    border-radius: 50%;
    font-size: 1.6rem;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
    backdrop-filter: blur(4px);
}
.lightbox-arrow:hover { background: var(--c-gold); color: var(--c-ink); border-color: var(--c-gold); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: var(--fs-xs);
    letter-spacing: 0.1em;
}

/* ============================================================
   15. TEAM (humaniza WhatsApp)
============================================================ */
.team {
    padding: var(--space-8) var(--container-pad);
    background: var(--c-canvas);
}
.team > .section-head { max-width: var(--container-max); margin: 0 auto var(--space-5); }
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
}
.team-card {
    background: var(--c-white);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-gray-200);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-gold-soft), var(--c-gold-deep));
    color: var(--c-white);
    font-family: var(--font-display);
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--c-ink);
    margin-bottom: 0.3rem;
}
.team-role {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-gray-500);
    margin-bottom: 1.2rem;
}
.team-bio {
    font-size: var(--fs-sm);
    color: var(--c-gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.team-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    background: #25D366;
    color: var(--c-white);
    border-radius: var(--radius-pill);
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: background var(--transition-fast);
}
.team-cta:hover { background: #1da851; }

/* ============================================================
   16. CONTACT
============================================================ */
.contact {
    padding: var(--space-8) var(--container-pad);
    background: var(--c-ink);
    color: var(--c-white);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    max-width: var(--container-max);
    margin: 0 auto;
}
.contact-body .display { color: var(--c-white); margin-bottom: 1rem; }
.contact-body .lead { color: rgba(255,255,255,0.7); margin-bottom: 2.5rem; }
.contact-body .eyebrow { color: var(--c-gold); }

/* Mini-form reutilizable (contacto, brochure, lead) */
.mini-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.field label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
}
.contact-form .field label { color: rgba(255,255,255,0.6); }
.mini-form input,
.mini-form select,
.mini-form textarea {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    color: var(--c-white);
    font-size: var(--fs-base);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}
.mini-form input:focus,
.mini-form select:focus,
.mini-form textarea:focus {
    border-color: var(--c-gold);
    background: rgba(255,255,255,0.1);
    outline: none;
}
.field--row {
    flex-direction: row;
    gap: 1rem;
}
.field-prefix { flex: 0 0 130px; display: flex; flex-direction: column; gap: 0.4rem; }
.field-phone { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.mini-form select option { background: var(--c-ink); color: var(--c-white); }
.form-disclaimer {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}
.form-disclaimer a { color: var(--c-gold); text-decoration: underline; }
.form-status {
    font-size: var(--fs-sm);
    margin-top: 0.5rem;
    text-align: center;
    min-height: 1.4em;
}
.form-status.success { color: #2BA15A; }
.form-status.error { color: #FF6B6B; }

/* Contact side */
.contact-side .contact-info {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    margin-bottom: 1.5rem;
}
.contact-info h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--c-white);
}
.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    transition: color var(--transition-fast);
}
.contact-method:first-of-type { border-top: none; padding-top: 0; }
.contact-method:hover { color: var(--c-gold); }
.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-gold);
    font-size: 1.1rem;
    transition: background var(--transition-fast);
}
.contact-method:hover .contact-icon { background: var(--c-gold); color: var(--c-ink); }
.contact-method--wa .contact-icon { color: #25D366; }
.contact-method--wa:hover .contact-icon { background: #25D366; color: var(--c-white); }
.contact-label {
    display: block;
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
}
.contact-value { font-size: var(--fs-base); color: var(--c-white); }
.contact-office {
    padding: 1.5rem 1.8rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
}
.contact-office p { color: rgba(255,255,255,0.7); margin-top: 0.5rem; }

/* ============================================================
   17. FOOTER
============================================================ */
.footer {
    background: var(--c-black);
    color: var(--c-white);
    padding: var(--space-6) var(--container-pad) 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
    gap: 3rem;
    max-width: var(--container-max);
    margin: 0 auto var(--space-4);
}
.footer-brand .footer-logo { width: 130px; margin-bottom: 1.1rem; }
.footer-tagline {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.62);
    line-height: 1.55;
    margin-bottom: 1.2rem;
    max-width: 320px;
}
.footer-dev {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: var(--fs-xs);
}
.footer-dev span {
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    white-space: nowrap;
}
.footer-dev-logo {
    width: 130px;
    height: auto;
    opacity: 0.85;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}
.footer-dev-logo:hover { opacity: 1; }

/* ============================================================
   UNLOCK GATE · estilos para contenido bloqueado
============================================================ */
/* Amenidad bloqueada: foto un poco oscurecida + lock icon */
.amen-card--locked {
    position: relative;
}
.amen-card--locked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
    z-index: 1;
}
.amen-card--locked .amen-card-content,
.amen-card--locked .amen-card-num,
.amen-card--locked .amen-card-icon { z-index: 2; }
.amen-card--locked .amen-card-icon {
    background: rgba(197,165,114,0.95);
    color: var(--c-ink);
}

/* Card grande de bloqueo en el catálogo · sustituye al grid completo cuando NO hay unlock */
.av-locked-card {
    grid-column: 1 / -1;
    max-width: 620px;
    margin: 2rem auto;
    padding: 3rem 2.5rem;
    text-align: center;
    border: 1px solid rgba(197,165,114,0.35);
    background: linear-gradient(145deg, rgba(20,18,16,0.85) 0%, rgba(30,26,22,0.85) 100%);
    border-radius: 18px;
    backdrop-filter: blur(8px);
}
.av-locked-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(197,165,114,0.22);
    border: 1.5px solid rgba(197,165,114,0.55);
    color: var(--c-gold);
    font-size: 2rem;
    box-shadow: 0 0 0 6px rgba(197,165,114,0.08), inset 0 1px 0 rgba(255,255,255,0.06);
}
.av-locked-icon i { line-height: 1; }
.av-locked-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    color: var(--c-white);
    margin: 0 0 0.7rem;
    letter-spacing: 0.01em;
}
.av-locked-text {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 1.6rem;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}
.av-locked-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.footer-nav, .footer-contact, .footer-connect {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-nav h4, .footer-contact h4, .footer-connect h4 {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    color: var(--c-gold);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.9rem;
    font-weight: 600;
}
.footer-nav a {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.65);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.footer-nav a:hover { color: var(--c-gold); padding-left: 0.35rem; }

.footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.65);
    transition: color var(--transition-fast);
    padding: 0.15rem 0;
}
.footer-contact-item:hover { color: var(--c-gold); }
.footer-contact-item--static { color: rgba(255,255,255,0.5); cursor: default; }
.footer-contact-item--static:hover { color: rgba(255,255,255,0.5); }
.footer-contact-item i {
    width: 16px;
    color: var(--c-gold);
    font-size: 0.82rem;
    text-align: center;
}

.footer-brochure-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    color: rgba(255,255,255,0.85);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.footer-brochure-link:hover {
    background: var(--c-gold);
    color: var(--c-ink);
    border-color: var(--c-gold);
}
.footer-brochure-link i { font-size: 0.78rem; }

.social-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.social-row a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.social-row a:hover { background: var(--c-gold); color: var(--c-ink); }
.footer-legal {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.4);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color var(--transition-fast);
}
.footer-legal:hover { color: var(--c-gold); }

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.35);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-disclaimer {
    flex: 1 1 auto;
    text-align: center;
    font-style: italic;
    color: rgba(255,255,255,0.28);
    max-width: 560px;
    line-height: 1.4;
}
.footer-admin {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.18);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
    padding: 4px 8px;
}
.footer-admin:hover { color: var(--c-gold); }

/* ============================================================
   18. MODALES
============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.25s ease;
}
.modal.open { display: flex; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.modal-content {
    position: relative;
    background: var(--c-canvas);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 950px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    animation: modalIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.96) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--c-white);
    color: var(--c-ink);
    font-size: 1.5rem;
    line-height: 1;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    transition: transform var(--transition-fast);
}
.modal-close:hover { transform: rotate(90deg); }

.modal-content--video {
    background: var(--c-black);
    aspect-ratio: 16/9;
    padding: 0;
    overflow: hidden;
}
.modal-content--video iframe { width: 100%; height: 100%; border: 0; }
.modal-content--video .modal-close { background: rgba(0,0,0,0.6); color: var(--c-white); }

.modal-content--showroom {
    width: 90vw;
    height: 90vh;
    max-width: 1400px;
    max-height: none;
    padding: 0;
    background: var(--c-ink);
    color: var(--c-white);
    display: flex;
    flex-direction: column;
}
.showroom-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--c-graphite);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: var(--fs-sm);
    color: var(--c-white);
}
.showroom-modal-head a {
    color: var(--c-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color var(--transition-fast);
}
.showroom-modal-head a:hover { color: var(--c-white); }
.showroom-modal-head .modal-close {
    position: static;
    background: transparent;
    color: var(--c-white);
    box-shadow: none;
    margin-left: 1rem;
}
.modal-content--showroom iframe { flex: 1; width: 100%; border: 0; }

.modal-content--mini {
    max-width: 460px;
    padding: 2.5rem 2rem 2rem;
}
.mini-modal-head { text-align: center; margin-bottom: 1.5rem; }
.mini-logo { width: 90px; margin: 0 auto 1rem; }
.mini-modal-head h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--c-ink);
    margin-bottom: 0.5rem;
}
.mini-modal-head p { color: var(--c-gray-500); font-size: var(--fs-sm); }
.modal-content--mini .mini-form input,
.modal-content--mini .mini-form select {
    background: var(--c-white);
    border-color: var(--c-gray-300);
    color: var(--c-ink);
}
.modal-content--mini .field label { color: var(--c-gray-500); }
.modal-content--mini .mini-form select option { background: var(--c-white); color: var(--c-ink); }

.modal-content--lead {
    max-width: 1000px;
    padding: 0;
    overflow: hidden;
}
.lead-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 540px;
}
.lead-left {
    background: var(--c-ink);
    color: var(--c-white);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}
.lead-left .eyebrow { color: var(--c-gold); }
.lead-left h3 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.lead-meta { color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; font-size: var(--fs-sm); }
.lead-price {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--c-gold);
    margin-bottom: 1.5rem;
}
.lead-img-wrap {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    max-height: 240px;
}
.lead-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lead-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.7);
}
.lead-specs li { display: flex; justify-content: space-between; }
.lead-specs li strong { color: var(--c-white); font-weight: 500; }

.lead-right {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}
.lead-right h4 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--c-ink);
    margin-bottom: 0.5rem;
}
.lead-right .lead-sub { font-size: var(--fs-sm); color: var(--c-gray-500); margin-bottom: 1.5rem; }
.lead-right .mini-form input,
.lead-right .mini-form select {
    background: var(--c-canvas);
    border-color: var(--c-gray-300);
    color: var(--c-ink);
}
.lead-right .field label { color: var(--c-gray-500); }
.lead-disclaimer { font-size: var(--fs-xs); color: var(--c-gray-500); text-align: center; margin-top: 0.5rem; }

.modal-content--legal {
    max-width: 760px;
    padding: 2.5rem;
}
.legal-head { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--c-gray-200); }
.legal-head h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--c-ink);
    margin-bottom: 0.5rem;
}
.legal-body {
    font-size: var(--fs-sm);
    color: var(--c-gray-700);
    line-height: 1.8;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}
.legal-body p { margin-bottom: 1rem; }
.legal-body strong { color: var(--c-ink); }
.legal-body ul { padding-left: 1.2rem; list-style: disc; margin-bottom: 1rem; }

/* ============================================================
   18.5. BROCHURE FAB · editorial cuadrado, lenguaje del btn-hero
============================================================ */
.brochure-fab {
    position: fixed;
    bottom: 1.8rem;
    left: 1.8rem;
    z-index: 1800;
    display: inline-flex;
    align-items: center;
    gap: 1.1rem;
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    color: var(--c-white);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.9rem 1.4rem 0.9rem 1.4rem;
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.brochure-fab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--c-gold);
    transform: translateX(-101%);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}
.brochure-fab:hover {
    color: var(--c-ink);
    border-color: var(--c-gold);
}
.brochure-fab:hover::before { transform: translateX(0); }

.brochure-fab-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
}
.brochure-fab-meta {
    font-size: 0.55rem;
    color: var(--c-gold-soft);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-weight: 500;
    transition: color 0.4s;
}
.brochure-fab:hover .brochure-fab-meta { color: rgba(10, 10, 10, 0.65); }
.brochure-fab-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--c-white);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    transition: color 0.4s;
}
.brochure-fab:hover .brochure-fab-label { color: var(--c-ink); }

.brochure-fab-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--c-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
    transition: background 0.4s, color 0.4s, transform 0.4s;
}
.brochure-fab:hover .brochure-fab-icon {
    background: var(--c-ink);
    color: var(--c-gold);
    transform: translateY(2px);
}

/* Móvil grande (tablet portrait) */
@media (max-width: 900px) {
    .brochure-fab {
        bottom: 1.1rem;
        left: 1.1rem;
        padding: 0.7rem 1.05rem;
        gap: 0.85rem;
    }
    .brochure-fab-icon { width: 30px; height: 30px; }
    .brochure-fab-label { font-size: 0.7rem; letter-spacing: 0.18em; }
    .brochure-fab-meta { font-size: 0.5rem; letter-spacing: 0.24em; }
}

/* Móvil chico: colapsar brochure a solo ícono para no chocar con chatbot/sticky-cta */
@media (max-width: 560px) {
    .brochure-fab {
        bottom: 0.9rem;
        left: 0.9rem;
        gap: 0;
        padding: 0;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        justify-content: center;
    }
    .brochure-fab-content { display: none; }
    .brochure-fab-icon {
        width: 100%;
        height: 100%;
        background: transparent;
        font-size: 1rem;
        color: var(--c-white);
    }
}

/* ────────────────────────────────────────────────
   ALTERNATIVAS · descomenta una y comenta la versión actual arriba
   ──────────────────────────────────────────────── */

/* ALT 1 · Etiqueta editorial minimalista (estilo museum/Aman)
.brochure-fab {
    position: fixed; bottom: 2rem; left: 2rem; z-index: 1800;
    display: inline-flex; align-items: center; gap: 0.9rem;
    background: transparent;
    color: var(--c-white);
    padding: 0.6rem 0;
    border: none;
    cursor: pointer;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.brochure-fab::before {
    content: ''; width: 38px; height: 1px; background: var(--c-gold);
    transition: width 0.35s;
}
.brochure-fab:hover::before { width: 56px; }
.brochure-fab-icon { display: none; }
.brochure-fab-content { gap: 1px; }
.brochure-fab-label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--c-white); }
.brochure-fab-meta { font-size: 0.6rem; color: var(--c-gold-soft); letter-spacing: 0.18em; text-transform: uppercase; }
*/

/* ALT 2 · Pill expandible · solo ícono colapsado, texto al hover
.brochure-fab {
    position: fixed; bottom: 2rem; left: 2rem; z-index: 1800;
    display: inline-flex; align-items: center; gap: 0;
    background: var(--c-ink); color: var(--c-white);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0; border-radius: 100px;
    width: 56px; height: 56px; justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: width 0.4s cubic-bezier(0.22,1,0.36,1), gap 0.4s, padding 0.4s, background 0.3s;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.brochure-fab:hover {
    width: 220px; gap: 0.7rem; padding: 0 1.2rem 0 0.5rem;
    justify-content: flex-start; background: var(--c-gold); color: var(--c-ink);
}
.brochure-fab-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--c-gold); color: var(--c-ink); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.brochure-fab:hover .brochure-fab-icon { background: var(--c-ink); color: var(--c-gold); }
.brochure-fab-content { opacity: 0; transform: translateX(-10px); transition: opacity 0.3s 0.1s, transform 0.3s 0.1s; white-space: nowrap; }
.brochure-fab:hover .brochure-fab-content { opacity: 1; transform: translateX(0); }
.brochure-fab-label { font-weight: 600; font-size: 0.78rem; }
.brochure-fab-meta { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
*/

/* ============================================================
   19. CHATBOT WIDGET · estilo luxury (paleta dorada/negra)
============================================================ */
.chatbot {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1800;
    font-family: var(--font-body);
}

/* Toast informativo cerca del chatbot FAB */
.chat-hint-toast {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    z-index: 1799;
    background: var(--c-ink);
    color: var(--c-white);
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border-left: 3px solid var(--c-gold);
    font-size: 0.78rem;
    max-width: 260px;
    line-height: 1.4;
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}
.chat-hint-toast.show {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 560px) {
    .chat-hint-toast {
        right: 1rem;
        left: 1rem;
        max-width: none;
        bottom: 5.5rem;
    }
}

/* FAB · botón flotante */
.chatbot-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--c-ink);
    color: var(--c-gold);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(197, 165, 114, 0.3) inset;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
                background 0.3s, color 0.3s;
    border: 1px solid rgba(197, 165, 114, 0.45);
}
.chatbot-fab:hover {
    background: var(--c-gold);
    color: var(--c-ink);
    transform: translateY(-2px);
}
.chatbot-fab-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--c-gold);
    opacity: 0.35;
    animation: chatbotPulse 2.4s infinite;
    pointer-events: none;
    z-index: -1;
}
@keyframes chatbotPulse {
    0%   { transform: scale(1);   opacity: 0.35; }
    100% { transform: scale(1.6); opacity: 0; }
}
.chatbot-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    background: var(--c-gold);
    color: var(--c-ink);
    border-radius: 50%;
    font-size: 0.62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--c-canvas);
    padding: 0 5px;
    font-family: var(--font-body);
}
.chatbot[data-state="open"] .chatbot-fab-badge,
.chatbot[data-state="open"] .chatbot-fab-pulse,
.chatbot[data-state="open"] .chatbot-fab-icon { display: none; }
.chatbot[data-state="open"] .chatbot-fab {
    background: var(--c-gold);
    color: var(--c-ink);
}
.chatbot[data-state="open"] .chatbot-fab::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.2rem;
}

/* Panel */
.chatbot-panel {
    position: absolute;
    bottom: calc(100% + 1rem);
    right: 0;
    width: min(380px, calc(100vw - 3rem));
    background: var(--c-canvas);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(197, 165, 114, 0.15) inset;
    display: flex;
    flex-direction: column;
    height: 560px;
    max-height: calc(100vh - 9rem);
    overflow: hidden;
    transform-origin: bottom right;
    opacity: 0;
    transform: scale(0.94) translateY(15px);
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.22,1,0.36,1),
                transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.chatbot[data-state="open"] .chatbot-panel {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

/* Header · oscuro editorial con línea dorada */
.chatbot-head {
    background: var(--c-ink);
    color: var(--c-white);
    padding: 1.1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    position: relative;
    border-bottom: 1px solid rgba(197, 165, 114, 0.2);
}
.chatbot-head::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    height: 1px;
    width: 70px;
    background: var(--c-gold);
}
.chatbot-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--c-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 0 0 2px rgba(197,165,114,0.25), 0 4px 12px rgba(0,0,0,0.25);
}
.chatbot-avatar img {
    width: 70%;
    height: auto;
    /* Logo negro sobre fondo dorado: máximo contraste */
}
.chatbot-head-meta { flex: 1; line-height: 1.2; }
.chatbot-head-meta strong {
    display: block;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--c-white);
    letter-spacing: 0.02em;
    margin-bottom: 3px;
}
.chatbot-status {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-gold);
    box-shadow: 0 0 8px var(--c-gold);
    animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.85); }
}
.chatbot-close,
.chatbot-reset {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.4rem;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color var(--transition-fast), background var(--transition-fast);
}
.chatbot-reset { font-size: 0.85rem; margin-right: 0.2rem; }
.chatbot-close:hover,
.chatbot-reset:hover {
    color: var(--c-white);
    background: rgba(255, 255, 255, 0.08);
}

/* Messages · ambiente cálido, conversación real */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.4rem 1rem;
    background:
        radial-gradient(ellipse at top, rgba(197,165,114,0.08) 0%, transparent 60%),
        linear-gradient(180deg, #f5f1ea 0%, #ebe6dc 100%);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.15) transparent;
}
.chatbot-messages::-webkit-scrollbar { width: 5px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }

.cb-msg {
    max-width: 78%;
    padding: 0.7rem 0.95rem;
    font-size: 0.88rem;
    line-height: 1.45;
    word-wrap: break-word;
    animation: cbMsgIn 0.3s cubic-bezier(0.22,1,0.36,1) both;
    position: relative;
}
@keyframes cbMsgIn {
    from { opacity: 0; transform: translateY(6px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Bot · burbuja blanca con cola izquierda (estilo iMessage entrante) */
.cb-msg--bot {
    background: var(--c-white);
    color: var(--c-ink);
    align-self: flex-start;
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
}

/* User · burbuja dorada con cola derecha (estilo iMessage saliente) */
.cb-msg--user {
    background: linear-gradient(135deg, var(--c-gold) 0%, #b89764 100%);
    color: var(--c-ink);
    align-self: flex-end;
    border-radius: 16px 16px 4px 16px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(197,165,114,0.35);
}

/* Mensajes consecutivos del mismo emisor: bordes más redondos arriba */
.cb-msg--bot + .cb-msg--bot { border-top-left-radius: 6px; }
.cb-msg--user + .cb-msg--user { border-top-right-radius: 6px; }

/* Typing indicator · burbuja blanca con dots */
.cb-typing {
    background: var(--c-white);
    align-self: flex-start;
    padding: 0.85rem 1rem;
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
    display: inline-flex;
    gap: 5px;
    width: fit-content;
}
.cb-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0,0,0,0.35);
    animation: cbTyping 1.3s infinite ease-in-out;
}
.cb-typing span:nth-child(2) { animation-delay: 0.18s; }
.cb-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes cbTyping {
    0%, 60%, 100% { transform: translateY(0);   opacity: 0.35; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

/* Input zone */
.chatbot-input-zone {
    padding: 0.85rem 0.9rem;
    background: var(--c-white);
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cb-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.cb-choice {
    background: var(--c-white);
    border: 1px solid var(--c-gold);
    color: var(--c-gold-deep);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    flex: 1 1 auto;
    text-align: center;
}
.cb-choice:hover {
    background: var(--c-gold);
    color: var(--c-ink);
    transform: translateY(-1px);
}

.cb-text-input {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    align-items: center;
}
.cb-text-input input {
    flex: 1;
    border: 1px solid rgba(0,0,0,0.08);
    background: #f5f1ea;
    border-radius: 999px;
    padding: 0.7rem 1.1rem;
    font-size: 1rem; /* 16px: evita el zoom automático de iOS al enfocar */
    color: var(--c-ink);
    font-family: var(--font-body);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}
.cb-text-input input::placeholder { color: var(--c-gray-500); }
.cb-text-input input:focus {
    outline: none;
    border-color: var(--c-gold);
    background: var(--c-white);
}
.cb-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--c-gold);
    color: var(--c-ink);
    font-size: 0.9rem;
    border: none;
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(197,165,114,0.4);
}
.cb-send:hover {
    background: var(--c-gold-deep, #b89764);
    transform: scale(1.05);
}
.cb-input-error input { border-color: #d11; background: rgba(220,38,38,0.06) !important; }
.cb-input-err {
    color: #b91c1c;
    font-size: 0.78rem;
    padding: 0.35rem 0.6rem 0;
    font-weight: 500;
    min-height: 0;
    line-height: 1.3;
}
.cb-input-err:empty { padding: 0; }

/* Footer · línea editorial */
.chatbot-foot {
    background: var(--c-ink);
    padding: 0.65rem 1rem;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 500;
}
.chatbot-foot i { color: var(--c-gold); font-size: 0.9rem; }

@media (max-width: 560px) {
    .chatbot { bottom: 1rem; right: 1rem; }
    .chatbot-fab { width: 54px; height: 54px; font-size: 1.4rem; }
    .chatbot-panel {
        width: calc(100vw - 2rem);
        height: calc(100vh - 7rem);
        max-height: calc(100vh - 5rem);
        bottom: calc(100% + 0.6rem);
    }
    .chatbot-bubble {
        max-width: calc(100vw - 6rem);
        right: 4.5rem;
    }
}

/* ──────────────────────────────────────────────
   WELCOME BUBBLE · preview message del chatbot
   ────────────────────────────────────────────── */
.chatbot-bubble {
    position: absolute;
    bottom: 8px;
    right: 78px;
    background: var(--c-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 0.85rem 2rem 0.85rem 0.85rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 280px;
    cursor: pointer;
    opacity: 0;
    transform: translateX(20px) scale(0.92);
    transform-origin: right center;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.22,1,0.36,1),
                transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.chatbot-bubble.show {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    animation: bubbleBounce 0.6s ease 0.4s;
}
@keyframes bubbleBounce {
    0%, 100% { transform: translateX(0) scale(1); }
    50%      { transform: translateX(0) scale(1.03); }
}
.chatbot-bubble:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22); }
.chatbot-bubble::after {
    content: '';
    position: absolute;
    right: -7px;
    bottom: 16px;
    width: 14px;
    height: 14px;
    background: var(--c-white);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    transform: rotate(45deg);
}
.chatbot-bubble-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(197,165,114,0.25);
}
.chatbot-bubble-avatar img { width: 70%; }
.chatbot-bubble-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.25;
}
.chatbot-bubble-content strong {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--c-ink);
}
.chatbot-bubble-content span {
    font-size: 0.74rem;
    color: var(--c-gray-700);
}
.chatbot-bubble-close {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: var(--c-gray-700);
    font-size: 0.85rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.chatbot-bubble-close:hover {
    background: var(--c-ink);
    color: var(--c-white);
}
/* Al abrir el chat, ocultar el bubble */
.chatbot[data-state="open"] .chatbot-bubble {
    opacity: 0;
    pointer-events: none;
}

/* ──────────────────────────────────────────────
   CTAs DENTRO DEL CHAT (botones de acción)
   ────────────────────────────────────────────── */
.cb-cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
}
.cb-cta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--c-ink);
    color: var(--c-white);
    border: 1px solid var(--c-ink);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    text-align: left;
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
    text-decoration: none;
    width: 100%;
    text-transform: none;
    letter-spacing: 0.01em;
}
.cb-cta:hover {
    background: var(--c-gold);
    color: var(--c-ink);
    border-color: var(--c-gold);
    transform: translateY(-1px);
}
.cb-cta-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(197, 165, 114, 0.15);
    color: var(--c-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: background 0.3s, color 0.3s;
}
.cb-cta:hover .cb-cta-icon {
    background: rgba(0, 0, 0, 0.15);
    color: var(--c-ink);
}
.cb-cta-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}
.cb-cta-text strong {
    font-size: 0.82rem;
    font-weight: 600;
}
.cb-cta-text small {
    font-size: 0.66rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Variante secundaria (outline) */
.cb-cta--ghost {
    background: transparent;
    color: var(--c-ink);
    border-color: var(--c-gray-300);
}
.cb-cta--ghost:hover {
    background: var(--c-gold);
    color: var(--c-ink);
    border-color: var(--c-gold);
}
.cb-cta--ghost .cb-cta-icon {
    background: var(--c-canvas);
    color: var(--c-gold-deep);
}

/* Quick reply chips (choices con íconos) */
.cb-choices--icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}
.cb-choices--icons .cb-choice {
    flex: 1;
    text-align: left;
    padding: 0.7rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
}
.cb-choice-emoji { font-size: 1.1rem; flex-shrink: 0; }

/* ============================================================
   20. ANIMACIONES SCROLL
============================================================ */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }

/* ============================================================
   20.5. REASONS · 6 razones para invertir
============================================================ */
.reasons {
    padding: var(--space-8) var(--container-pad);
    background: var(--c-canvas);
}
.reasons > .section-head { max-width: 720px; margin: 0 auto var(--space-5); }
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
}
.reason-card {
    position: relative;
    background: var(--c-white);
    border-radius: var(--radius-md);
    padding: 2rem 1.8rem 1.8rem;
    border: 1px solid var(--c-gray-200);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.reason-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-gold-soft);
}
.reason-num {
    position: absolute;
    top: 1.4rem;
    right: 1.6rem;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--c-gray-200);
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.02em;
}
.reason-icon {
    font-size: 1.5rem;
    color: var(--c-gold-deep);
    margin-bottom: 1.2rem;
    display: block;
}
.reason-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--c-ink);
    line-height: 1.2;
}
.reason-card p {
    font-size: var(--fs-sm);
    color: var(--c-gray-700);
    line-height: 1.55;
}

/* ============================================================
   20.6. FAQ
============================================================ */
.faq {
    padding: var(--space-8) var(--container-pad);
    background: var(--c-white);
}
.faq > .section-head { max-width: 720px; margin: 0 auto var(--space-5); }
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.faq-item {
    border: 1px solid var(--c-gray-200);
    border-radius: var(--radius-md);
    background: var(--c-canvas);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}
.faq-item[open] { border-color: var(--c-gold-soft); }
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.2rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--c-ink);
    font-weight: 500;
    transition: color var(--transition-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--c-gold-deep); }
.faq-item summary i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--c-white);
    color: var(--c-gold-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: transform var(--transition-fast), background var(--transition-fast);
    border: 1px solid var(--c-gray-200);
    flex-shrink: 0;
}
.faq-item[open] summary i {
    transform: rotate(45deg);
    background: var(--c-gold);
    color: var(--c-ink);
    border-color: var(--c-gold);
}
.faq-answer {
    padding: 0 1.6rem 1.4rem;
    color: var(--c-gray-700);
    font-size: var(--fs-base);
    line-height: 1.6;
}

/* ============================================================
   21. RESPONSIVE
============================================================ */
/* iPad landscape / tablets grandes */
@media (max-width: 1200px) {
    .reasons-grid { grid-template-columns: repeat(3, 1fr); }
    .building-info { padding: 3rem 2.5rem; }
    .building-info .display { font-size: 2.2rem; }
}

/* iPad portrait */
@media (max-width: 1024px) {
    .reasons-grid { grid-template-columns: repeat(2, 1fr); }
    .showroom-grid { grid-template-columns: repeat(2, 1fr); }
    .amen-grid { grid-template-columns: repeat(3, 1fr); }
    .av-grid { grid-template-columns: repeat(3, 1fr); }

    /* iPad: hero un poco más compacto */
    .hero { min-height: 680px; }
    .hero-title-line { font-size: clamp(3.5rem, 9vw, 5rem); }
    .hero-sub { font-size: 1rem; }
    .nav-logo { height: 52px; }
}

/* iPad portrait / tablet pequeña */
@media (max-width: 820px) {
    .amen-grid { grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
    .av-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { min-height: 640px; }
    .hero-title-line { font-size: clamp(3rem, 11vw, 4.5rem); }
    .nav-logo { height: 48px; }
    .nav-cta { padding: 0.5rem 0.85rem; font-size: 0.6rem; }

    /* Building en tablet portrait: stack pero con imagen más alta */
    .building-figure { aspect-ratio: 16 / 9; }
    .building-info { padding: 2.5rem 2rem 3rem; max-width: 720px; margin: 0 auto; }
}

@media (max-width: 900px) {
    /* Nav · móvil: barra más baja (el 92px de desktop dejaba aire muerto
       arriba del hero). La var ajusta nav + hero padding + scroll-padding juntos. */
    :root { --nav-height: 64px; }
    .nav { padding: 0.55rem 1rem; }
    .nav-logo { height: 42px; }
    body.scrolled .nav-logo { height: 38px; }
    .nav-cta { padding: 0.7rem 1rem; font-size: 0.72rem; letter-spacing: 0.1em; min-height: 42px; display: inline-flex; align-items: center; }
    .nav-burger { width: 44px; height: 44px; padding: 0.6rem; }

    /* Hero · ocupa pantalla real (svh evita corte por barra URL móvil) */
    .hero {
        min-height: 580px;
        height: 100svh;
    }
    /* En móvil las imágenes son horizontales pero el viewport vertical:
       'cover' mantiene proporción (sin estirar), background-position ajustada
       para mostrar la parte superior con cielo/edificio. */
    .hero::before,
    .hero::after {
        background-size: cover;
        background-position: center 35%;
    }
    .hero-inner {
        padding-bottom: calc(clamp(2rem, 6vh, 3.5rem) + env(safe-area-inset-bottom, 0));
    }
    .hero-block {
        transform: translate(0, -2vh); /* sin offset X en móvil para no salirse */
        max-width: 100%;
    }
    .hero-title-line { font-size: clamp(2.8rem, 13vw, 4.8rem); }
    .hero-mark { margin-bottom: 1.2rem; }
    .hero-mark-text { font-size: 0.55rem; letter-spacing: 0.26em; }
    .hero-mark-line { width: 28px; }
    .hero-sub { font-size: 0.9rem; margin-bottom: 1.6rem; max-width: 92%; line-height: 1.45; }
    .btn-hero {
        padding: 0.85rem 1.1rem 0.85rem 1.35rem;
        font-size: 0.62rem;
        letter-spacing: 0.18em;
        gap: 0.75rem;
        min-height: 48px; /* tap target accesible */
    }
    .btn-hero-arrow { width: 26px; height: 26px; }
    .hero-dots { gap: 0.4rem; bottom: 1.1rem; }
    .hero-dot { width: 6px; height: 6px; }

    /* Drawer móvil: cómodo de usar con el pulgar */
    .drawer { width: min(380px, 88vw); }
    .drawer-head { padding: 1.1rem 1.4rem; }
    .drawer-close { width: 44px; height: 44px; } /* tap-friendly */
    .drawer-nav { padding: 1.2rem 1.4rem; }
    .drawer-nav a {
        padding: 1rem 0;
        font-size: 1rem;
        min-height: 48px; /* tap target */
        display: flex;
        align-items: center;
    }
    .drawer-controls { padding: 1.2rem 1.4rem; }
    .drawer-locale { gap: 0.5rem; }
    .drawer-brochure {
        padding: 1rem;
        min-height: 48px;
        font-size: 0.7rem;
    }

    /* Building · stack vertical en móvil/tablet (imagen arriba, texto abajo) */
    .building-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .building-figure {
        aspect-ratio: 4 / 3;
        min-height: auto;
        max-height: none;
    }
    .building-figure img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 45%; /* muestra el edificio + marina, no el cielo */
    }
    .building-info {
        padding: 2.2rem 1.4rem 2.5rem;
        max-width: 100%;
        text-align: left;
    }
    .building-info .display { font-size: clamp(1.6rem, 6vw, 2rem); }
    .building-divider { margin: 0.9rem 0 1.2rem; width: 40px; }
    .building-info .lead { font-size: 0.92rem; margin-bottom: 1rem; }
    .building-info .building-claim { font-size: 1.05rem; padding-top: 0.9rem; margin-bottom: 1.4rem; }
    .facts { grid-template-columns: 1fr 1fr; gap: 0.85rem 1.2rem; margin-bottom: 1.4rem; }
    .facts dt { font-size: 0.65rem; }
    .facts dd { font-size: 1.35rem; }
    .building-stats { grid-template-columns: repeat(3, 1fr); gap: 0.9rem 0.5rem; padding: 0.9rem 0; }
    .building-stats dd { font-size: 1.3rem; }
    .building-stats-foot { font-size: 0.75rem; margin-bottom: 1.4rem; }

    /* Availability · catálogo en móvil */
    /* TIPO a la izquierda · RECÁMARAS a la derecha (en la misma fila) */
    .av-filters {
        gap: 0.7rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: nowrap;
    }
    .av-filter-group {
        flex-direction: column;
        gap: 0.4rem;
        align-items: center;
        flex: 1 1 0;
        min-width: 0;
    }
    .av-filter-group .seg-control { flex-wrap: nowrap; }
    .av-filter-group .seg-btn { padding: 0.45rem 0.6rem; font-size: 0.7rem; }
    .av-filter-label { text-align: center; }
    .av-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
    .av-card-id { font-size: 1.25rem; }

    /* Unit panel: full screen móvil */
    .unit-panel-card { width: 100vw; }
    .unit-panel-body { padding: 1.5rem; }
    .up-code { font-size: 2.4rem; }

    /* Reasons */
    .reasons-grid { grid-template-columns: 1fr; gap: 0.8rem; }
    .reason-card { padding: 1.5rem 1.5rem 1.3rem; }
    .reason-num { font-size: 1.6rem; top: 1.2rem; right: 1.3rem; }

    /* FAQ */
    .faq { padding: var(--space-6) var(--container-pad); }
    .faq-item summary { padding: 1rem 1.2rem; font-size: 1rem; gap: 1rem; }
    .faq-answer { padding: 0 1.2rem 1.1rem; font-size: 0.92rem; }

    /* Unit panel: full screen móvil */
    .unit-panel-card { width: 100vw; }
    .unit-panel-body { padding: 1.5rem; }
    .up-code { font-size: 2.4rem; }

    /* Showroom · móvil: 1 columna */
    .showroom { padding: var(--space-5) var(--container-pad); }
    .showroom-grid { grid-template-columns: 1fr; gap: 0.9rem; }
    .showroom-card-visual { aspect-ratio: 16/10; padding: 1.2rem; }
    .showroom-card-body { padding: 1.2rem; }
    .showroom-card-body h3 { font-size: 1.3rem; }

    /* Moments */
    .moments-grid { grid-template-columns: 1fr; }
    .moment { aspect-ratio: 16/9; }

    /* Location */
    .location-grid { grid-template-columns: 1fr; gap: 2rem; }
    .location-map { aspect-ratio: 16/10; }

    /* Amenidades · móvil 2 cols */
    .amen-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .amen-card { aspect-ratio: 3/4; }
    .amen-card-title { font-size: 1.05rem; }
    .amen-card-num { font-size: 1.1rem; top: 0.7rem; left: 0.8rem; }
    .amen-card-icon { width: 26px; height: 26px; font-size: 0.6rem; top: 0.7rem; right: 0.8rem; }
    .amen-card-content { padding: 1rem 0.9rem 0.9rem; }
    .amen-card-meta { font-size: 0.55rem; letter-spacing: 0.16em; }

    /* Gallery · móvil: 1 columna stack */
    .gal-categories { grid-template-columns: 1fr; }
    .gal-cat { aspect-ratio: 4/3; }
    .gal-cat-title { font-size: 1.7rem; }
    .gal-cat-num { font-size: 2.2rem; }
    .gal-cat-content { padding: 1.5rem; }
    .gal-cat-num { top: 1.2rem; left: 1.5rem; }

    /* Team */
    .team-grid { grid-template-columns: 1fr 1fr; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

    /* Footer */
    .footer-inner { grid-template-columns: 1fr 1fr; text-align: left; gap: 2rem; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-tagline { max-width: 100%; }
    .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
    .footer-disclaimer { text-align: center; max-width: 100%; }

    /* Modal lead: stack */
    .lead-grid { grid-template-columns: 1fr; min-height: auto; }
    .lead-left { padding: 1.5rem; }
    .lead-right { padding: 1.5rem; }

    /* Modal showroom mobile */
    .modal-content--showroom { width: 100vw; height: 100vh; max-width: none; border-radius: 0; }
    .showroom-modal-head { padding: 0.7rem 1rem; font-size: var(--fs-xs); }

    /* Chatbot */
    .chatbot {
        bottom: calc(0.9rem + env(safe-area-inset-bottom, 0));
        right: 0.9rem;
    }
    .chatbot-fab { width: 52px; height: 52px; font-size: 1.4rem; }
    .chatbot-panel {
        width: calc(100vw - 2rem);
        height: 75vh;
        bottom: calc(100% + 0.6rem);
        right: 0;
    }

    /* Lightbox */
    .lightbox-arrow { width: 42px; height: 42px; }
    .lightbox-prev { left: 0.6rem; }
    .lightbox-next { right: 0.6rem; }
}

@media (max-width: 560px) {
    :root { --container-pad: 1.1rem; }
    .hero-title-line { font-size: clamp(2.6rem, 14vw, 3.8rem); }
    .hero-sub { font-size: 0.85rem; }
    .btn-hero { padding: 0.7rem 0.9rem 0.7rem 1.1rem; font-size: 0.58rem; gap: 0.55rem; }
    .btn-hero-arrow { width: 22px; height: 22px; }
    .display { font-size: 1.7rem; }
    .lead { font-size: 0.95rem; }

    /* Availability · móvil pequeño */
    .av-grid { grid-template-columns: 1fr; }
    .av-card-id { font-size: 1.4rem; }

    /* Drawer en móvil pequeño · ocupa casi toda la pantalla */
    .drawer { width: 92vw; }
    .drawer-nav a { font-size: 0.95rem; padding: 0.75rem 0; }

    /* Footer en móvil chico: una columna */
    .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
    .footer-brand { grid-column: auto; }

    .team-grid { grid-template-columns: 1fr; }
    .field--row { flex-direction: column; }
    .field-prefix { flex: 1 1 auto; }

    .reason-card { padding: 1.4rem 1.3rem 1.2rem; }
    .reason-num { font-size: 1.4rem; }
    .reason-card h3 { font-size: 1.2rem; }

    .facts { grid-template-columns: 1fr 1fr; gap: 0.7rem 1rem; }
    .facts dd { font-size: 1.2rem; }

    /* Building info · padding compacto */
    .building-figure { aspect-ratio: 4 / 3; }
    .building-info { padding: 1.8rem 1.2rem 2rem; }
    .building-info .display { font-size: 1.5rem; }
    .building-info .lead { font-size: 0.88rem; }
    .building-info .building-claim { font-size: 0.98rem; }
}

@media (max-width: 380px) {
    .hero-title { font-size: 2.6rem; }
    .display { font-size: 1.6rem; }
    /* Cerrar es el gesto mas frecuente en los modales — mantener target tactil */
    .modal-close { width: 42px; height: 42px; font-size: 1.3rem; top: 0.6rem; right: 0.6rem; }
}

/* Móvil chico: 3 flotantes (brochure + chatbot + CTA sticky) saturaban la zona
   del pulgar. El brochure sigue accesible desde el drawer y el footer. */
@media (max-width: 560px) {
    .brochure-fab { display: none; }
}

/* ============================================================
   Catálogo de tipologías · carrusel horizontal en móvil
   Una card casi completa + asomo de la siguiente para invitar a deslizar.
   Va al final para ganarle a los breakpoints anteriores de .av-grid.
============================================================ */
.av-dots { display: none; }
@media (max-width: 640px) {
    .av-grid {
        display: flex;
        grid-template-columns: none;
        gap: 0.8rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Sangrado a los bordes de la pantalla; el padding mantiene el gutter */
        margin-inline: calc(-1 * var(--container-pad));
        padding: 0.25rem var(--container-pad) 0.75rem;
        scroll-padding-inline: var(--container-pad);
    }
    .av-grid::-webkit-scrollbar { display: none; }
    .av-grid > .av-card {
        flex: 0 0 82%;
        max-width: 340px;
        scroll-snap-align: center;
    }
    .av-grid--empty::after { flex: 1 0 100%; }
    /* Card más baja para que quepa entera con los puntos en pantalla */
    .av-grid .av-card-plan { aspect-ratio: 4 / 3; padding: 1rem; }
    .av-dots {
        display: flex;
        justify-content: center;
        gap: 0.4rem;
        margin-top: 0.4rem;
    }
    .av-dot {
        width: 8px; height: 8px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(255,255,255,0.25);
        cursor: pointer;
        transition: width 0.25s ease, background 0.25s ease;
    }
    .av-dot.is-active { width: 22px; background: var(--c-gold); }
    /* Área táctil cómoda sin agrandar el punto visible */
    .av-dot { position: relative; }
    .av-dot::before { content: ''; position: absolute; inset: -10px -4px; }
}

/* Panel de tipología · disponibles por torre y lista de penthouses */
.up-tower-n { display: inline-block; min-width: 1.4em; padding: 0 0.35em; margin-left: 0.15em; border-radius: 999px; background: rgba(197,165,114,0.18); font-size: 0.8em; text-align: center; }
.up-ph-list { margin: 1rem 0 1.2rem; }
.up-ph-list h3 { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.5rem; color: var(--c-gray-500, #777); font-weight: 600; }
.up-ph-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.up-ph { display: grid; grid-template-columns: auto 1fr auto; gap: 0.2rem 0.7rem; align-items: baseline; padding: 0.5rem 0.7rem; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; font-size: 0.82rem; }
.up-ph strong { white-space: nowrap; }
.up-ph span { color: var(--c-gray-700, #555); min-width: 0; }
.up-ph em { font-style: normal; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #15803d; }
.up-ph--reserved em { color: #b45309; }
.up-ph--sold { opacity: 0.55; }
.up-ph--sold em { color: #b91c1c; }
@media (max-width: 480px) {
    .up-ph { grid-template-columns: 1fr auto; }
    .up-ph span { grid-column: 1 / -1; grid-row: 2; }
}

/* ============================================================
   Panel de tipología · layout con columnas balanceadas
   Escritorio: izquierda = imagen arriba + datos técnicos (y penthouses) debajo;
   derecha = nombre/torres/precio + descripción y botón (visible sin scroll).
   Móvil: imagen → encabezado → datos → descripción/botón.
============================================================ */
.unit-panel-body {
    grid-template-columns: 1.05fr 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
        "visual info"
        "side   info";
}
.up-visual {
    grid-area: visual;
    background: #efe9de;
    justify-content: flex-start;
    border-bottom: none;
    padding-bottom: 0.5rem;
}
.up-img {
    flex: none;
    height: min(40vh, 380px);
    max-height: min(40vh, 380px);
}
.up-side {
    grid-area: side;
    background: #efe9de; /* mismo tono que .up-visual: una sola columna visual */
    border-right: 1px solid var(--c-gray-200);
    padding: 0.4rem 2rem 1.6rem;
    overflow-y: auto;
    min-height: 0;
}
.up-side .up-specs { border-top: 1px solid rgba(0,0,0,0.08); }
.up-side .up-spec dt { color: var(--c-gray-700, #555); }
.up-side .up-ph-list { margin: 0.6rem 0 0; }
.up-side .up-ph { background: rgba(255,255,255,0.55); }
.up-info {
    grid-area: info;
    justify-content: flex-start;
}
.up-head, .up-tail { display: flex; flex-direction: column; gap: 0.9rem; }
.up-tail { padding-top: 0.2rem; }

/* Chatbot abierto al lado (modo split): mismas áreas, columnas iguales */
@media (min-width: 901px) {
    .unit-panel.is-split .unit-panel-body { grid-template-columns: 1fr 1fr; }
    .unit-panel.is-split .up-side { padding-inline: 1.4rem; }
}

@media (max-width: 960px) {
    .up-side { padding: 0.4rem 1.25rem 1.25rem; }
}

@media (max-width: 720px) {
    .unit-panel-body {
        grid-template-columns: 1fr;
        /* max-content: las filas no se encogen al alto de la pantalla (si no, se enciman) */
        grid-template-rows: repeat(4, max-content);
        grid-template-areas:
            "visual"
            "head"
            "side"
            "tail";
    }
    .up-visual { padding-bottom: 1.2rem; border-bottom: 1px solid var(--c-gray-200); }
    .up-img { height: 100%; max-height: none; flex: 1; }
    .up-info { display: contents; }
    .up-head { grid-area: head; padding: 1.2rem 1.2rem 0; }
    .up-side {
        background: none;
        border-right: none;
        padding: 0 1.2rem;
        overflow: visible;
    }
    .up-side .up-ph { background: transparent; }
    .up-tail { grid-area: tail; padding: 0.9rem 1.2rem 1.5rem; }
}

/* ============================================================
   Isométricos por modelo · selector en el panel + ficha del modelo
============================================================ */
/* Los isométricos vienen sobre fondo blanco/gris: multiply los funde con el beige */
.av-card-plan img,
.up-img,
.up-model-btn img { mix-blend-mode: multiply; }

.up-models {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 0.2rem 0.1rem 0.4rem;
    flex-shrink: 0;
}
.up-model-btn {
    flex: 0 0 auto;
    width: 64px;
    padding: 0.25rem 0.25rem 0.3rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    font: inherit;
    color: var(--c-ink);
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.up-model-btn img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.up-model-btn span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; }
.up-model-btn:hover { transform: translateY(-2px); }
.up-model-btn.is-active {
    border-color: var(--c-gold);
    background: #fff;
    box-shadow: 0 0 0 1px var(--c-gold);
}

.up-model { padding: 0.9rem 0 0.2rem; }
.up-model h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 0 0 0.4rem;
    color: var(--c-ink);
}
.up-model dl { margin: 0; display: grid; gap: 0; }
.up-model dl > div {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.3rem 0;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
    font-size: var(--fs-sm);
}
.up-model dt { color: var(--c-gray-700, #555); }
.up-model dd { margin: 0; text-align: right; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.up-model-note { font-size: 0.75rem; color: var(--c-gray-500, #777); font-style: italic; margin: 0.5rem 0 0; }
@media (max-width: 720px) {
    .up-visual { aspect-ratio: auto; max-height: none; }
    .up-img { height: 34vh; flex: none; }
    .up-model-btn { width: 58px; }
}

/* ============================================================
   Un solo tono: los isométricos traen fondo blanco puro (normalizado),
   así que las zonas de imagen y el panel van en blanco — sin cuadros,
   sombras de caja ni mezclas de beige/gris.
============================================================ */
.av-card-plan img,
.up-img,
.up-model-btn img { mix-blend-mode: normal; }
.av-card-plan { background: #fff; }
.av-card-plan img { filter: none; } /* el drop-shadow dibujaba el contorno cuadrado de la imagen */
.unit-panel-card { background: #fff; }
.up-visual,
.up-side { background: #fff; }
.up-img { filter: none; }
.up-visual { border-right: 1px solid var(--c-gray-200); }
.up-side { border-right: 1px solid var(--c-gray-200); border-top: 1px solid var(--c-gray-200); }
.up-side .up-ph { background: #fff; }
.up-model-btn { background: #fff; }
.up-info { background: #fff; }
@media (max-width: 720px) {
    .up-visual { border-right: none; }
    .up-side { border-right: none; border-top: none; }
}

/* Disponibles por torre · casillas iguales en lugar de una línea que se partía en móvil */
.up-towers { display: flex; flex-direction: column; gap: 0.45rem; }
.up-towers-lbl { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-gray-500, #777); display: flex; align-items: center; gap: 0.4rem; }
.up-towers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 0.45rem; }
.up-tw {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 0.55rem 0.4rem; border-radius: 12px;
    border: 1px solid rgba(197,165,114,0.35); background: rgba(197,165,114,0.08);
    min-width: 0;
}
.up-tw b { font-size: 1.25rem; line-height: 1.1; color: var(--c-gold-deep, #8a6d3b); font-variant-numeric: tabular-nums; }
.up-tw small { font-size: 0.72rem; color: var(--c-ink); letter-spacing: 0.02em; }

/* Ficha del modelo · torres como etiquetas que bajan de línea ordenadamente */
.up-chips { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.3rem; }
.up-chips > span { padding: 0.12rem 0.5rem; border-radius: 999px; background: #f4efe6; font-size: 0.78rem; white-space: nowrap; }
.up-chips b { font-weight: 700; }
.up-model dl > div { align-items: center; }

/* Columnas del panel no crecen por el carrusel de modelos (overflow en 360px) */
.unit-panel-body { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.up-visual, .up-side, .up-info { min-width: 0; }
.up-side .up-spec dd { font-size: var(--fs-sm); text-align: right; }
.up-side .up-spec dt { font-size: var(--fs-sm); }
@media (min-width: 901px) {
    .unit-panel.is-split .unit-panel-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .unit-panel-body { grid-template-columns: minmax(0, 1fr); }
}
/* Etiquetas en una sola línea; los valores largos (etiquetas de torre) son los que bajan */
.up-model dt, .up-side .up-spec dt { white-space: nowrap; flex-shrink: 0; }
.up-side .up-spec dd { white-space: nowrap; }
.up-side .up-spec:last-child dd, .up-side .up-spec dd:has(strong) { white-space: normal; }

/* ============================================================
   Panel de tipología abierto · nada flotante encima
   (el sticky "Reserva tu visita" tenía z-index 1700 > panel 1500)
============================================================ */
body.panel-open .sticky-cta,
body.panel-open .brochure-fab,
body.panel-open .chatbot-bubble,
body.panel-open .chatbot:not([data-state="open"]) .chatbot-fab {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Móvil: el panel mide lo visible (dvh, sin la barra del navegador) y el scroll
   no "rebota" hacia la página bloqueada de atrás al llegar al final */
@media (max-width: 720px) {
    .unit-panel-card {
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
    }
    .unit-panel-body {
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }
    /* Barra fija abajo con Tour 360° + Hablar con asesor, siempre visibles */
    .up-actions {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 20;
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 1px solid var(--c-gray-200);
        box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
    }
    .up-actions > * { flex: 1 1 0; min-width: 0; margin: 0 !important; }
    .up-actions .up-tour {
        font-size: 0.62rem;
        letter-spacing: 0.08em;
        padding: 0.75rem 0.5rem;
        min-height: 48px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    }
    .up-actions .up-tour i { flex-shrink: 0; }
    .up-actions .btn { min-height: 48px; padding: 0.75rem 0.6rem; font-size: 0.85rem; }
    .up-actions .up-tour[hidden] { display: none; }
    .up-soldout { flex-basis: 100%; }
}

/* Móvil · en la página, "Reserva tu visita" se recorre a la izquierda
   para no quedar encima del botón de WhatsApp */
@media (max-width: 640px) {
    .sticky-cta {
        left: 1rem;
        right: auto;
        transform: translate(0, 80px);
    }
    .sticky-cta.show,
    .sticky-cta.is-visible,
    .sticky-cta.visible { transform: translate(0, 0); }
}

/* ============================================================
   Panel de tipología · columnas intercambiadas (escritorio)
   Izquierda: imagen + selector de modelos, y debajo las torres.
   Derecha: nombre, ficha del modelo y, al fondo, precio, descripción
   y botones. Así las dos columnas quedan parejas.
   (.up-buy abarca las dos últimas filas para que las torres queden
   pegadas abajo a la izquierda y la imagen use el resto del alto.)
============================================================ */
.up-tour[hidden] { display: none; }

@media (min-width: 721px) {
    .unit-panel-body,
    .unit-panel.is-split .unit-panel-body {
        grid-template-rows: auto minmax(0, 1fr) auto auto;
        grid-template-areas:
            "visual head"
            "visual side"
            "visual buy"
            "tail   buy";
    }
    .up-info { display: contents; }

    .up-visual { padding: 1.5rem 2rem 0.5rem; gap: 0.75rem; }
    .up-img { flex: 1 1 auto; height: auto; max-height: none; min-height: 160px; }

    .up-head {
        grid-area: head;
        gap: 0.6rem;
        padding: 2rem 4.5rem 1rem 2rem; /* derecha libre para el botón de cerrar */
    }
    .up-side {
        grid-area: side;
        border-right: none;
        border-top: none;
        padding: 0 2rem 0.5rem;
    }
    .up-side .up-model { padding-top: 0.4rem; }
    .up-side .up-specs { border-bottom: none; padding-bottom: 0; }

    .up-tail {
        grid-area: tail;
        padding: 0.6rem 2rem 1.5rem;
        border-right: 1px solid var(--c-gray-200);
    }
    .up-buy {
        grid-area: buy;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 0.7rem;
        padding: 1rem 2rem 1.5rem;
        margin: 0 2rem;
        padding-inline: 0;
        border-top: 1px solid var(--c-gray-200);
    }
    .up-buy .up-price { font-size: 1.3rem; margin: 0; }
    .up-actions { flex-direction: row; padding-top: 0.2rem; }
    .up-actions > * { flex: 1 1 0; min-width: 0; margin: 0; }
    .up-actions .up-tour { font-size: 0.68rem; letter-spacing: 0.1em; padding: 0.8rem 0.7rem; }
    .up-actions .btn { padding: 0.8rem 0.9rem; }
    .up-soldout { flex-basis: 100%; }
}

/* Separador del metraje junto al nombre (en móvil va en su propia línea, sin barra) */
.up-area::before { content: '| '; }

/* ============================================================
   Panel de tipología · móvil compacto
   - Un solo margen lateral de 1rem (antes se sumaban dos: ~44px).
   - Imagen más baja y miniaturas chicas: los datos aparecen antes.
   - Orden de venta: nombre → torres, precio y descripción → ficha técnica.
============================================================ */
@media (max-width: 720px) {
    .unit-panel-body {
        padding: 0 0 calc(84px + env(safe-area-inset-bottom, 0px));
        grid-template-rows: repeat(5, max-content);
        grid-template-areas:
            "visual"
            "head"
            "tail"
            "buy"
            "side";
    }
    .up-visual { padding: 1rem 1rem 0.75rem; gap: 0.6rem; }
    .up-img { height: 30vh; max-height: 270px; }
    .up-models { justify-content: center; }
    .up-model-btn { width: 52px; }
    .up-model-btn span { font-size: 0.62rem; }

    .up-head { padding: 1.1rem 1rem 0; gap: 0.4rem; }
    .up-code { font-size: 1.75rem; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
    .up-area { font-size: 0.95rem; }
    .up-area::before { content: none; }

    .up-tail { padding: 0.9rem 1rem 0; }
    .up-buy { grid-area: buy; display: flex; flex-direction: column; gap: 0.65rem; padding: 0.75rem 1rem 0.4rem; }
    .up-buy .up-price { font-size: 1.2rem; margin: 0; }

    .up-side {
        padding: 0.2rem 1rem 1.5rem;
        margin: 0.6rem 1rem 0;
        padding-inline: 0;
        border-top: 1px solid var(--c-gray-200);
    }
}

/* Tablet / laptop angosta: botones apilados (lado a lado se cortaban) y título más chico */
@media (min-width: 721px) and (max-width: 1100px) {
    .unit-panel-body { padding: 0; }
    .up-actions { flex-direction: column; }
    .up-actions > * { flex: none; }
    .up-code { font-size: 1.65rem; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
    .up-area { font-size: 0.95rem; }
    .up-area::before { content: none; }
    .up-head { padding-top: 1.6rem; }
}

/* Laptops bajas (≤760px de alto): renglones más apretados para que la ficha quepa sin scroll */
@media (min-width: 721px) and (max-height: 760px) {
    .up-head { padding-top: 1.4rem; padding-bottom: 0.6rem; }
    .up-code { font-size: 1.7rem; }
    .up-model h3 { font-size: 1.05rem; margin-bottom: 0.1rem; }
    .up-model dl > div { padding: 0.18rem 0; }
    .up-side .up-spec { padding: 0.2rem 0; }
    .up-side .up-specs { padding-top: 0.4rem; }
    .up-buy { gap: 0.5rem; padding-top: 0.7rem; padding-bottom: 1.1rem; }
    .up-buy .up-desc { line-height: 1.45; }
    .up-visual { padding-top: 1.1rem; }
    .up-side { padding-bottom: 0.2rem; }
    .up-side .up-model { padding-top: 0.1rem; }
}

/* ============================================================
   Visor de fotos · táctil (amenidades e isométricos)
   La foto ocupa todo el espacio libre; en el teléfono los controles van
   arriba y se cambia de foto deslizando. touch-action: none evita que el
   pellizco agrande toda la página: el zoom lo hace el visor sobre la foto.
============================================================ */
.lightbox {
    padding: 0;
    background: rgba(0,0,0,0.96);
    overscroll-behavior: contain;
}
.lb-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 6rem 3rem;
    overflow: hidden;
    touch-action: none;
}
.lb-stage img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    will-change: transform;
    cursor: zoom-in;
}
.lightbox.is-zoomed .lb-stage img { cursor: grab; border-radius: 0; }

.lb-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem 0;
    pointer-events: none;
}
.lb-top > * { pointer-events: auto; }
.lb-top .lightbox-counter {
    position: static;
    transform: none;
    margin-right: auto;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}
.lb-top .lightbox-close,
.lb-fs {
    position: static;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    border: none;
    cursor: pointer;
}
.lb-fs { font-size: 1rem; }
.lb-top .lightbox-close:hover { transform: rotate(90deg); color: var(--c-ink); background: var(--c-gold); }

.lightbox.is-zoomed .lightbox-arrow,
.lightbox--single .lightbox-arrow,
.lightbox--single .lightbox-counter { display: none; }

.lb-hint {
    position: absolute;
    left: 50%;
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, 12px);
    max-width: calc(100vw - 2rem);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(20,20,20,0.82);
    color: #fff;
    font-size: 0.78rem;
    text-align: center;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 11;
}
.lb-hint i { color: var(--c-gold); margin-right: 0.3rem; }
.lb-hint.show { opacity: 1; transform: translate(-50%, 0); }

/* Isométricos: fondo blanco (vienen sobre blanco) y controles oscuros */
.lightbox--light { background: #fff; }
.lightbox--light .lb-top .lightbox-close,
.lightbox--light .lb-fs { background: rgba(0,0,0,0.06); color: var(--c-ink); }
.lightbox--light .lb-top .lightbox-counter { background: rgba(0,0,0,0.06); color: var(--c-ink); }
.lightbox--light .lightbox-arrow { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.12); color: var(--c-ink); }
.lightbox--light .lb-stage img { border-radius: 0; }

/* Celular: se cambia de foto deslizando, sin flechas; la foto usa todo el ancho */
@media (pointer: coarse) {
    .lightbox-arrow { display: none; }
}
@media (max-width: 720px) {
    .lb-stage { padding: 4rem 0 2.5rem; }
}
/* Celular en horizontal: la foto ocupa toda la pantalla y los controles flotan encima */
@media (orientation: landscape) and (max-height: 540px) {
    .lb-stage { padding: 0 env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px); }
    .lb-stage img { border-radius: 0; }
    .lb-top { padding: 0.5rem max(0.75rem, env(safe-area-inset-right, 0px)) 0 max(0.75rem, env(safe-area-inset-left, 0px)); }
    .lb-top .lightbox-close, .lb-fs { width: 38px; height: 38px; background: rgba(0,0,0,0.45); }
    .lb-top .lightbox-counter { background: rgba(0,0,0,0.45); }
}

/* Panel de tipología · el isométrico se abre en grande */
.up-img { cursor: zoom-in; }
.up-zoom {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--c-gray-200);
    background: rgba(255,255,255,0.92);
    color: var(--c-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.up-zoom:hover { background: var(--c-gold); color: var(--c-ink); transform: scale(1.06); }
.up-statustag ~ .up-zoom { top: 3.7rem; }

/* Miniaturas con tour 360° disponible */
.up-model-btn { position: relative; }
.up-model-360 {
    position: absolute;
    top: 3px; right: 3px;
    font-style: normal;
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 0.18rem 0.28rem;
    border-radius: 999px;
    background: var(--c-gold);
    color: var(--c-ink);
    pointer-events: none;
}

/* ──────────────────────────────────────────────
   Disponibilidad: torres ↔ recámaras ↔ tarjetas más juntos
   ────────────────────────────────────────────── */
.av-hero { margin-bottom: 2rem; }
.av-filters { margin-bottom: 1.5rem; }
@media (max-width: 767px) {
    .av-hero { margin-bottom: 1.25rem; }
    .av-filters { margin-bottom: 1rem; }
}

/* ──────────────────────────────────────────────
   Burbuja de bienvenida del chat: en celular se cierra con un solo toque
   (la X tenía 18px y se fallaba fácil; ahora el área táctil es de 40px)
   ────────────────────────────────────────────── */
.chatbot-bubble-close { touch-action: manipulation; }
.chatbot-bubble-close::before {
    content: '';
    position: absolute;
    inset: -11px;
    border-radius: 50%;
}
@media (hover: none) {
    .chatbot-bubble-close:hover { background: rgba(0, 0, 0, 0.05); color: var(--c-gray-700); }
}
@media (max-width: 768px) {
    .chatbot-bubble {
        width: max-content;
        max-width: min(260px, calc(100vw - 6rem));
        padding: 0.75rem 2.4rem 0.75rem 0.75rem;
    }
    .chatbot-bubble-close {
        top: 6px; right: 6px;
        width: 24px; height: 24px;
        font-size: 1rem;
    }
}
.up-model-variant { font-size: 0.75rem; color: var(--c-gold-dark, #a8864f); margin: -0.2rem 0 0.4rem; letter-spacing: 0.02em; }
/* Botones de brochure ocultos mientras no haya brochure vigente (ver BROCHURE_URL en script.js) */
[data-open-brochure][hidden] { display: none !important; }

/* Tour 360° en celular: pantalla completa real (sin el margen del modal que dejaba
   franjas a los lados) y alto visible del navegador (100dvh, no 100vh). */
@media (max-width: 768px) {
    #showroomModal { padding: 0; }
    #showroomModal .modal-content--showroom {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
    }
    #showroomModal .showroom-modal-head { padding-top: calc(0.7rem + env(safe-area-inset-top, 0px)); }
    #showroomModal iframe { padding-bottom: env(safe-area-inset-bottom, 0px); background: #000; }
}
@media (max-width: 768px) {
    #showroomModal .showroom-modal-head { gap: 0.6rem; padding-bottom: 0.5rem; padding-left: 1rem; padding-right: 0.5rem; }
    #showroomModal .showroom-modal-head > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #showroomModal .showroom-modal-head a { white-space: nowrap; font-size: 0.68rem; letter-spacing: 0.06em; }
    #showroomModal .showroom-modal-head a span { display: none; }
    #showroomModal .showroom-modal-head a i { font-size: 1rem; padding: 0.4rem; }
    #showroomModal .showroom-modal-head .modal-close { margin-left: 0; }
}

/* Hero: el dedo puede deslizar horizontalmente para cambiar de foto (scroll vertical intacto) */
.hero { touch-action: pan-y; }

/* Teléfono: sin el párrafo del hero para dejar ver más la foto (en computadora se mantiene) */
@media (max-width: 768px) {
    .hero-sub { display: none; }
}
/* Puntitos del hero siempre en una sola línea (antes el contenedor solo tenía medio ancho y se partía) */
.hero-dots { width: max-content; flex-wrap: nowrap; }

/* Puntos del carrusel de departamentos: el activo se estira con transform (sin recalcular
   el layout en cada cuadro del deslizamiento, que hacía que el punto amarillo se trabara) */
@media (max-width: 640px) {
    .av-dots { gap: 0.55rem; }
    .av-dot { transition: transform 0.2s ease, background-color 0.2s ease; transform-origin: center; will-change: transform; }
    .av-dot.is-active { width: 8px; transform: scaleX(2.4); }
}

/* ──────────────────────────────────────────────
   Chat en celular: pantalla completa y pegado al teclado.
   El alto/top salen del área visible (visualViewport, ver script.js), así al abrir
   el teclado el campo queda justo encima de él, sin hueco ni página asomándose.
   ────────────────────────────────────────────── */
@media (max-width: 640px) {
    .chatbot[data-state="open"] .chatbot-panel {
        position: fixed;
        left: 0; right: 0; bottom: auto;
        top: var(--cb-vv-top, 0px);
        width: 100%;
        height: var(--cb-vv-h, 100dvh);
        max-height: none;
        border-radius: 0;
        border: 0;
        transform: none;
        transition: opacity 0.2s ease;
    }
    .chatbot[data-state="open"] .chatbot-head { padding-top: calc(0.9rem + env(safe-area-inset-top, 0px)); }
    .chatbot[data-state="open"] .chatbot-foot { padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px)); }
    /* La X del encabezado cierra; el botón flotante estorbaba encima del chat */
    .chatbot[data-state="open"] .chatbot-fab { display: none; }
    body.chat-open { overflow: hidden; }
}
@media (max-width: 640px) {
    .chatbot.is-typing[data-state="open"] .chatbot-foot { display: none; }
    .chatbot.is-typing[data-state="open"] .chatbot-input-zone { padding-bottom: 0.6rem; }
}

/* Chat desde un modelo: tarjeta con el modelo elegido al inicio de la conversación */
.cb-unit-card {
    display: flex; gap: 0.75rem; align-items: center;
    background: #fff; border: 1px solid rgba(197,165,114,0.35); border-radius: 14px;
    padding: 0.6rem 0.75rem; margin: 0 0 0.7rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    animation: cbIn 0.3s ease;
}
.cb-unit-card img { width: 64px; height: 64px; object-fit: contain; flex: 0 0 64px; background: #fff; border-radius: 10px; }
.cb-unit-card div { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; line-height: 1.25; }
.cb-unit-card small { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-gold-deep, #9a7b4f); font-weight: 600; }
.cb-unit-card strong { font-size: 0.95rem; color: var(--c-ink); }
.cb-unit-card span { font-size: 0.8rem; color: var(--c-gray-700); }
.cb-unit-card em { font-style: normal; font-size: 0.75rem; color: var(--c-gray-500); }
@keyframes cbIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cb-msg strong { font-weight: 700; }
/* Con el chat abierto en celular, la barra "Reserva tu visita" no debe quedar encima */
body.chat-open .sticky-cta { display: none !important; }

/* ══════════════════════════════════════════════
   CONTACTO CONVERSACIONAL (reemplaza al formulario)
   ══════════════════════════════════════════════ */
.cchat {
    background: #fff; border-radius: 18px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35); border: 1px solid rgba(197,165,114,0.25);
    display: flex; flex-direction: column; margin-top: 1.4rem; max-width: 560px;
}
.cchat-head { display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1.1rem; background: #141414; border-bottom: 2px solid var(--c-gold); }
.cchat-avatar { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--c-gold); display: grid; place-items: center; flex: 0 0 46px; }
.cchat-avatar img { width: 72%; }
.cchat-avatar i { position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid #141414; }
.cchat-who { display: flex; flex-direction: column; line-height: 1.25; }
.cchat-who strong { color: #fff; font-size: 1rem; }
.cchat-who small { color: rgba(255,255,255,0.65); font-size: 0.78rem; }
.cchat-msgs {
    background: var(--c-canvas, #f5f1ea); padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem;
    min-height: 260px; max-height: 420px; overflow-y: auto; scroll-behavior: smooth;
}
.cchat-msg { max-width: 82%; padding: 0.65rem 0.9rem; border-radius: 16px; font-size: 0.95rem; line-height: 1.4; animation: cchatIn 0.25s ease; word-wrap: break-word; }
.cchat-msg--bot { align-self: flex-start; background: #fff; color: var(--c-ink); border-bottom-left-radius: 5px; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.cchat-msg--user { align-self: flex-end; background: var(--c-gold); color: var(--c-ink); border-bottom-right-radius: 5px; }
.cchat-typing { align-self: flex-start; background: #fff; border-radius: 16px; border-bottom-left-radius: 5px; padding: 0.75rem 0.9rem; display: flex; gap: 4px; }
.cchat-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b9a27c; animation: cchatDot 1.1s infinite ease-in-out; }
.cchat-typing span:nth-child(2) { animation-delay: 0.15s; } .cchat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes cchatDot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes cchatIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cchat-input { background: #fff; padding: 0.85rem 1rem; border-top: 1px solid rgba(0,0,0,0.06); display: flex; flex-direction: column; gap: 0.5rem; min-height: 72px; justify-content: center; }
.cchat-input:empty { padding: 0; min-height: 0; border: 0; }
.cchat-row { display: flex; gap: 0.5rem; align-items: center; }
.cchat-field, .cchat-prefix {
    min-height: 48px; border: 1px solid #ddd2bf; border-radius: 999px; padding: 0 1.1rem;
    font: inherit; font-size: 16px; background: #fbf8f3; color: var(--c-ink); outline: 0;
}
.cchat-field { flex: 1; min-width: 0; }
.cchat-field:focus, .cchat-prefix:focus { border-color: var(--c-gold); background: #fff; }
.cchat-prefix { padding: 0 0.6rem; flex: 0 0 auto; }
.cchat-row.is-error .cchat-field { border-color: #dc2626; }
.cchat-send { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; border: 0; background: var(--c-gold); color: var(--c-ink); font-size: 1rem; cursor: pointer; box-shadow: 0 3px 10px rgba(197,165,114,0.45); }
.cchat-send:hover { background: var(--c-gold-deep, #b89764); }
.cchat-err { margin: 0; color: #dc2626; font-size: 0.8rem; min-height: 0; }
.cchat-err:empty { display: none; }
.cchat-choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cchat-choice { flex: 1 1 auto; min-height: 46px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--c-gold); background: #fff; color: var(--c-ink); font: inherit; font-size: 0.92rem; cursor: pointer; }
.cchat-choice:hover { background: var(--c-gold); }
.cchat-skip { align-self: center; background: none; border: 0; color: var(--c-gray-500, #777); font: inherit; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0.3rem; }
.cchat-cta { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 50px; border-radius: 999px; background: #25D366; color: #fff; font-weight: 700; text-decoration: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.cchat-cta--ghost { background: #fff; color: var(--c-ink); border: 1px solid #ddd2bf; }
.cchat-legal { margin-top: 0.8rem; }
@media (max-width: 640px) {
    .cchat { margin-left: calc(-1 * var(--container-pad) + 0.5rem); margin-right: calc(-1 * var(--container-pad) + 0.5rem); border-radius: 16px; }
    .cchat-msgs { min-height: 300px; max-height: 60vh; }
    .cchat-msg { max-width: 88%; }
}

/* ══════════════════════════════════════════════
   CHATS LIMPIOS (contacto + flotante) · estilo TECESA
   Esquinas redondas, cuerpo blanco, burbujas gris claro con avatar, sin franjas extra.
   ══════════════════════════════════════════════ */
:root { --chat-bg: #ffffff; --chat-bubble: #f2f0ec; --chat-line: #ebe7e0; --chat-head: #1c1b19; }
/* Tarjeta */
.cchat { border-radius: 24px; border: 0; box-shadow: 0 18px 50px rgba(0,0,0,0.28); background: var(--chat-bg); }
.cchat-head { background: var(--chat-head); border-bottom: 0; padding: 1.1rem 1.3rem; gap: 0.9rem; }
.cchat-avatar { width: 52px; height: 52px; flex-basis: 52px; }
.cchat-avatar i { width: 13px; height: 13px; border-color: var(--chat-head); }
.cchat-who strong { font-size: 1.08rem; font-weight: 700; }
.cchat-who small { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.cchat-msgs { background: var(--chat-bg); padding: 1.2rem 1.1rem; gap: 0.45rem; min-height: 300px; }
/* Burbujas */
.cchat-msg { font-size: 1rem; line-height: 1.5; padding: 0.8rem 1rem; border-radius: 20px; box-shadow: none; }
.cchat-msg--bot { position: relative; margin-left: 42px; background: var(--chat-bubble); border-bottom-left-radius: 20px; }
.cchat-msg--user { background: var(--chat-head); color: #fff; border-bottom-right-radius: 6px; }
.cchat-typing { position: relative; margin-left: 42px; background: var(--chat-bubble); border-radius: 20px; }
/* Avatar junto al último mensaje del bot de cada grupo */
.cchat-msg--bot::before, .cchat-typing::before {
    content: ''; position: absolute; left: -42px; bottom: 0; width: 32px; height: 32px; border-radius: 50%;
    background: var(--c-gold) url('MARINA GOLD DISEÑO/Logo/logo-negro-sm.webp') center / 68% no-repeat;
}
.cchat-msg--bot:has(+ .cchat-msg--bot)::before,
.cchat-msg--bot:has(+ .cchat-typing)::before { display: none; }
/* Zona de escritura */
.cchat-input { background: #f7f6f3; border-top: 1px solid var(--chat-line); padding: 1rem 1.1rem; }
.cchat-field, .cchat-prefix { background: #fff; border: 1px solid #dedad2; min-height: 52px; }
.cchat-field:focus, .cchat-prefix:focus { border-color: var(--c-gold); box-shadow: 0 0 0 3px rgba(197,165,114,0.18); }
.cchat-send { width: 52px; height: 52px; flex-basis: 52px; box-shadow: none; }
.cchat-choice { background: #fff; border-color: #dedad2; }
.cchat-choice:hover { border-color: var(--c-gold); background: #fffaf2; }
.cchat-legal { opacity: 0.7; font-size: 0.75rem; }
@media (max-width: 640px) {
    .cchat { border-radius: 22px; }
    .cchat-msgs { min-height: 320px; }
}

/* Chat flotante con el mismo estilo */
.chatbot-foot { display: none !important; }
.chatbot-panel { border-radius: 24px; border: 0; background: var(--chat-bg); box-shadow: 0 24px 60px rgba(0,0,0,0.3); }
.chatbot-head { background: var(--chat-head); }
.chatbot-head::after { display: none; }
.status-dot { background: #22c55e; }
.chatbot-messages { background: var(--chat-bg) !important; padding: 1.1rem 1rem; }
.cb-msg { font-size: 0.98rem; line-height: 1.5; box-shadow: none; }
.cb-msg--bot { position: relative; margin-left: 40px; background: var(--chat-bubble); border-radius: 20px; }
.cb-msg--bot + .cb-msg--bot { border-top-left-radius: 20px; }
.cb-msg--user { background: var(--chat-head); color: #fff; border-radius: 20px 20px 6px 20px; }
.cb-typing { position: relative; margin-left: 40px; background: var(--chat-bubble); border-radius: 20px; box-shadow: none; }
.cb-msg--bot::before, .cb-typing::before {
    content: ''; position: absolute; left: -40px; bottom: 0; width: 30px; height: 30px; border-radius: 50%;
    background: var(--c-gold) url('MARINA GOLD DISEÑO/Logo/logo-negro-sm.webp') center / 68% no-repeat;
}
.cb-msg--bot:has(+ .cb-msg--bot)::before, .cb-msg--bot:has(+ .cb-typing)::before { display: none; }
.chatbot-input-zone { background: #f7f6f3; border-top: 1px solid var(--chat-line); }
.cb-text-input input { background: #fff; border: 1px solid #dedad2; min-height: 50px; }
.cb-send { width: 50px; height: 50px; box-shadow: none; }
.cb-choice { background: #fff; border-color: #dedad2; color: var(--c-ink); }
.cb-unit-card { margin-left: 0; }
@media (max-width: 640px) {
    .chatbot[data-state="open"] .chatbot-panel { border-radius: 0; }
}
/* El campo no empuja el ancho de la columna (antes, con el prefijo, el chat se salía de la pantalla) */
.contact-body { min-width: 0; }
.cchat-field { width: 0; flex: 1 1 auto; }
.cchat-prefix { max-width: 104px; }
body.cchat-visible .chatbot:not([data-state="open"]) .chatbot-fab,
body.cchat-visible .chatbot-bubble { opacity: 0; pointer-events: none; transform: scale(0.8); transition: opacity 0.2s, transform 0.2s; }
body.cchat-visible .chatbot:not([data-state="open"]) { pointer-events: none; }

/* Tour 360° en computadora: ocupa toda la pantalla (antes 90% con tope de 1400px).
   Barra superior delgada con el título, la versión extendida y la X en la esquina. */
@media (min-width: 769px) {
    #showroomModal { padding: 0; }
    #showroomModal .modal-content--showroom {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }
    #showroomModal .showroom-modal-head { padding: 0.45rem 0.6rem 0.45rem 1.5rem; gap: 1rem; }
    #showroomModal .showroom-modal-head > span { flex: 1; }
    #showroomModal .showroom-modal-head .modal-close {
        width: 42px; height: 42px; font-size: 1.7rem; margin-left: 0.5rem;
        border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
        transition: background 0.2s, color 0.2s, transform 0.3s;
    }
    #showroomModal .showroom-modal-head .modal-close:hover { background: var(--c-gold); color: var(--c-ink); transform: rotate(90deg); }
}

/* Textos largos de la ficha ("18 similares en todas las torres", inventario entre modelos) bajan de línea alineados a la derecha */
.up-side .up-spec--inv dd,
.up-model dl > div:first-child dd { white-space: normal; text-align: right; }

/* Contacto: sin chat incrustado; dos botones directos (chat flotante y WhatsApp) */
.contact-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.contact-ctas .btn { display: inline-flex; align-items: center; gap: 0.55rem; }
@media (max-width: 640px) {
    .contact-ctas { flex-direction: column; }
    .contact-ctas .btn { justify-content: center; width: 100%; }
}

/* "Reserva tu visita" flotante: solo en computadora (en celular se encimaba con el chat) */
@media (max-width: 760px) {
    .sticky-cta { display: none !important; }
}

/* Menú lateral cerrado: sin sombra ni visibilidad (su sombra se asomaba por el borde derecho) */
.drawer:not(.open) { visibility: hidden; transition: right 0.55s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s linear 0.55s; }
.drawer.open { visibility: visible; transition: right 0.55s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s; }

/* Aviso de privacidad dentro de los modales (fondo claro): el gris claro de la sección oscura no se leía */
.modal .form-disclaimer { color: var(--c-gray-500, #777); text-align: center; }
.modal .form-disclaimer a { color: var(--c-gold-deep); }

/* Acceso admin: legible y sin quedar tapado por los botones flotantes en pantallas chicas */
.footer-admin { color: rgba(255,255,255,0.45); }
@media (max-width: 900px) {
    .footer-bottom { padding-bottom: 6.5rem; }
    .footer-admin { font-size: 0.78rem; padding: 0.6rem 1rem; }
}

/* ================================================================
   MINUTA 02-OCT-2026 · página más clara, hero sin velo, logo chico,
   galería por espacio, "Explora tu espacio", contacto y Grupo Karuxi.
   (Bloque al final del archivo: gana sobre las reglas anteriores.)
================================================================ */
:root {
    --mg-bg: #F7F4EE;          /* fondo claro de secciones */
    --mg-surface: #FFFFFF;
    --mg-line: rgba(10,10,10,0.09);
    --mg-muted: #6B665E;
}

/* ── Logo: pequeño y arriba a la izquierda; dorado sobre la foto, negro al bajar ── */
.nav-brand { position: relative; }
.nav-logo { opacity: 1; transform: none; filter: none; height: 46px; }
.nav-logo--dark { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.nav-logo--gold { filter: drop-shadow(0 1px 6px rgba(0,0,0,0.35)); }
body.scrolled .nav-logo { height: 46px; }
body.scrolled .nav-logo--gold { opacity: 0; }
body.scrolled .nav-logo--dark { opacity: 1; }

/* ── Hero: fotos completas (sin zoom ni velo oscuro), texto compacto abajo a la izquierda ── */
.hero::before, .hero::after {
    background-size: cover;
    background-position: center;
    animation: none;
    transform: none;
    transition: opacity 0.9s ease;
}
.hero-veil { display: none; }
.hero-inner { align-items: flex-end; }
.hero-block {
    transform: none;
    max-width: 560px;
    margin-bottom: clamp(3.2rem, 9vh, 5.5rem);
    padding: 1.1rem 1.4rem 1.3rem;
    border-radius: 14px;
    background: rgba(10,10,10,0.32);
}
.hero-slogan {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.6rem, 2.7vw, 2.4rem);
    line-height: 1.12;
    color: #fff;
    margin: 0 0 1rem;
    text-shadow: 0 2px 16px rgba(0,0,0,0.45);
    letter-spacing: -0.01em;
}
.btn-hero { opacity: 1; animation: none; }
.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.55);
    background: rgba(10,10,10,0.28);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.hero-arrow:hover { background: var(--c-gold); color: var(--c-ink); border-color: var(--c-gold); }
.hero-arrow--prev { left: clamp(0.75rem, 2vw, 1.5rem); }
.hero-arrow--next { right: clamp(0.75rem, 2vw, 1.5rem); }
.hero-down {
    position: absolute;
    left: 50%;
    bottom: clamp(3.4rem, 7vh, 4.6rem);
    z-index: 3;
    width: 42px; height: 42px;
    margin-left: -21px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    background: rgba(10,10,10,0.3);
    border: 1px solid rgba(255,255,255,0.5);
    animation: mgBounce 2.2s ease-in-out infinite;
}
.hero-down:hover { background: var(--c-gold); color: var(--c-ink); }
@keyframes mgBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .hero-down { animation: none; } }

/* Celular y tablet vertical: la foto se ve COMPLETA (16:9) y el texto va debajo, sin taparla */
@media (max-width: 820px), (orientation: portrait) and (max-width: 1100px) {
    .nav { background: rgba(255,255,255,0.94); border-bottom-color: var(--mg-line); }
    .nav-logo--gold { opacity: 0; }
    .nav-logo--dark { opacity: 1; }
    .nav-burger span { background: var(--c-ink); }
    .hero {
        height: auto;
        min-height: 0;
        display: block;
        background: var(--mg-bg);
        padding-top: calc(var(--nav-height) + 56.25vw);
        color: var(--c-ink);
    }
    .hero::before, .hero::after {
        inset: auto;
        top: var(--nav-height);
        left: 0; right: 0;
        height: 56.25vw;
    }
    .hero-arrow { top: calc(var(--nav-height) + 28.125vw); width: 40px; height: 40px; font-size: 0.9rem; }
    .hero-dots { top: calc(var(--nav-height) + 56.25vw - 2rem); bottom: auto; }
    .hero-inner { padding: 1.4rem var(--container-pad) 4.4rem; min-height: 0; }
    .hero-block { margin: 0; padding: 0; background: none; max-width: none; }
    .hero-slogan { color: var(--c-ink); text-shadow: none; font-size: clamp(1.5rem, 6.4vw, 2rem); }
    .btn-hero { color: var(--c-ink); border-color: rgba(10,10,10,0.35); }
    .btn-hero-arrow { background: var(--c-ink); color: #fff; }
    .hero-down { bottom: 1rem; color: var(--c-ink); background: #fff; border-color: var(--mg-line); }
}

/* ── El edificio ── */
.building-place {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--c-gold-deep, #9F8550);
    font-weight: 600; font-size: var(--fs-sm);
    margin: 0.2rem 0 1rem;
}
.building-place i { font-size: 1.05rem; }
.building-place:hover { text-decoration: underline; }
.building-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.building-stats--4 dt { white-space: normal; line-height: 1.25; }
@media (max-width: 520px) { .building-stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.2rem; } }

/* ── Secciones en tonos claros ── */
.amenities, .availability, .contact { background: var(--mg-bg); color: var(--c-ink); }
.amenities .section-head--light, .availability .section-head--light { color: var(--c-ink); }
.amenities .section-head--light .lead, .availability .section-head--light .lead { color: var(--mg-muted); }

/* Galería: una tarjeta por espacio; "Vistas y entorno" ocupa doble */
.amen-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.amen-card {
    appearance: none; border: 0; padding: 0; font: inherit; text-align: left; color: #fff;
    background-color: #d9d3c7;
    border-radius: 10px;
    aspect-ratio: 4 / 4.6;
}
.amen-card--wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.amen-card--wide .amen-card-title { font-size: 2rem; }
.amen-card-title { display: block; }
.amen-card-meta { display: block; }
.amen-card:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 3px; }
@media (max-width: 1000px) { .amen-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
    .amen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
    .amen-card--wide { grid-row: auto; aspect-ratio: 16 / 10; }
    .amen-card-title { font-size: 1.05rem; }
    .amen-card-content { padding: 0.9rem; }
}

/* Explora tu espacio: tarjetas y filtros claros; títulos de torre en el cielo (no tapan terrazas) */
.availability .av-card { background: var(--mg-surface); border-color: var(--mg-line); }
.availability .av-card:hover { background: var(--mg-surface); box-shadow: 0 16px 34px rgba(0,0,0,0.1); }
.availability .av-card-body { background: none; }
.availability .av-card-id { color: var(--c-ink); }
.availability .av-card-area, .availability .av-card-meta, .availability .av-card-inv { color: var(--mg-muted); opacity: 1; }
.availability .av-card-cta, .availability .av-card-tower-pill { color: var(--c-gold-deep, #9F8550); }
.availability .av-filter-label, .availability .av-disclaimer { color: var(--mg-muted); }
.availability .seg-control--dark { background: var(--mg-surface); border: 1px solid var(--mg-line); }
.availability .seg-control--dark .seg-btn { color: var(--mg-muted); }
.availability .seg-control--dark .seg-btn:hover { color: var(--c-ink); background: rgba(0,0,0,0.04); }
.availability .seg-control--dark .seg-btn.active { background: var(--c-ink); color: #fff; }
.availability .av-hero { box-shadow: 0 18px 50px rgba(0,0,0,0.14); }
.av-tower-group--a { top: 6%; left: 30%; }
.av-tower-group--b { top: 4%; left: 52%; }
.av-tower-group--c { top: 6%; right: 26%; }
.av-subtitle {
    max-width: var(--container-max);
    margin: 2.6rem auto 1rem;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--c-ink);
    text-align: center;
}

/* Buscador Torre → Nivel → Departamento */
.xp {
    max-width: var(--container-max);
    margin: 0 auto 1rem;
    background: var(--mg-surface);
    border: 1px solid var(--mg-line);
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    scroll-margin-top: calc(var(--nav-height) + 1rem);
}
.xp-tabs { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.xp-tab, .xp-tower, .xp-need {
    appearance: none; font: inherit; cursor: pointer;
    border: 1px solid var(--mg-line); background: #fff; color: var(--c-ink);
    border-radius: 999px; padding: 0.55rem 1rem; font-size: 0.85rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.45rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.xp-tab.is-active, .xp-need.is-active { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.xp-towers, .xp-needs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.xp-tower { border-radius: 12px; flex-direction: column; align-items: flex-start; gap: 0.1rem; padding: 0.6rem 1rem; }
.xp-tower small { font-weight: 400; font-size: 0.72rem; color: var(--mg-muted); }
.xp-tower.is-active { border-color: var(--c-gold); background: rgba(197,165,114,0.12); box-shadow: inset 0 0 0 1px var(--c-gold); }
.xp-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.xp-cut {
    display: flex; flex-direction: column; gap: 4px;
    padding: 0.6rem 0.6rem 0;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(180deg, #efe8dc, #f7f4ee);
    border: 1px solid var(--mg-line); border-bottom: 0;
}
.xp-cut-roof { text-align: center; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mg-muted); padding: 0.2rem 0 0.3rem; }
.xp-level {
    appearance: none; font: inherit; cursor: pointer;
    display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: center; gap: 0.5rem;
    border: 0; border-radius: 6px; padding: 0.55rem 0.7rem; text-align: left;
    color: var(--c-ink);
    background: color-mix(in srgb, #C5A572 calc(18% + var(--t) * 30%), #fff);
    transition: transform 0.15s, box-shadow 0.15s;
}
.xp-level--ph { background: #1c1a17; color: #f3e6c9; }
.xp-level:hover { transform: translateX(3px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.xp-level.is-active { box-shadow: inset 0 0 0 2px var(--c-ink); }
.xp-level-n { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.xp-level-lbl { font-size: 0.82rem; }
.xp-level-c { font-size: 0.75rem; opacity: 0.75; white-space: nowrap; }
.xp-cut-ground { margin: 2px -0.6rem 0; padding: 0.45rem; text-align: center; font-size: 0.7rem; color: #fff; background: #6b665e; letter-spacing: 0.06em; }
.xp-side { min-height: 120px; }
.xp-hint, .xp-empty { color: var(--mg-muted); font-size: 0.92rem; padding: 1rem 0.2rem; }
.xp-hint i { color: var(--c-gold-deep, #9F8550); margin-right: 0.3rem; }
.xp-list-title { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; margin: 0.2rem 0 0.8rem; }
.xp-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.55rem; }
.xp-unit {
    appearance: none; font: inherit; cursor: pointer; text-align: left;
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.7rem;
    border: 1px solid var(--mg-line); background: #fff; border-radius: 12px; padding: 0.65rem 0.8rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.xp-unit:hover { border-color: var(--c-gold); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.xp-unit-num { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; min-width: 3.1rem; color: var(--c-gold-deep, #9F8550); }
.xp-unit-info strong { display: block; font-size: 0.88rem; }
.xp-unit-info small { color: var(--mg-muted); font-size: 0.74rem; }
.xp-unit > i { color: var(--mg-muted); font-size: 0.75rem; }
.xp-lock { text-align: center; padding: 1.4rem 1rem; border: 1px dashed rgba(197,165,114,0.6); border-radius: 12px; background: #fbf9f4; }
.xp-lock i { color: var(--c-gold-deep, #9F8550); font-size: 1.3rem; }
.xp-lock p { color: var(--mg-muted); margin: 0.6rem auto 0.9rem; max-width: 34ch; }
.xp-matrix-cap { font-size: 0.82rem; color: var(--mg-muted); margin-bottom: 0.5rem; }
.xp-matrix { width: 100%; border-collapse: separate; border-spacing: 4px; }
.xp-matrix th { font-size: 0.75rem; color: var(--mg-muted); font-weight: 600; text-align: center; }
.xp-matrix tbody th { text-align: left; white-space: nowrap; }
.xp-matrix td { text-align: center; }
.xp-cell {
    appearance: none; font: inherit; cursor: pointer; width: 100%;
    border: 0; border-radius: 6px; padding: 0.45rem 0; font-weight: 700;
    background: rgba(197,165,114,0.22); color: var(--c-ink);
}
.xp-cell:hover, .xp-cell.is-active { background: var(--c-ink); color: #fff; }
.xp-cell-0 { color: #c9c3b8; }
@media (max-width: 760px) {
    .xp { padding: 0.9rem; border-radius: 14px; }
    .xp-grid { grid-template-columns: minmax(0, 1fr); }
    .xp-towers { flex-wrap: nowrap; overflow-x: auto; }
    .xp-tower { flex: 1 0 auto; }
    .xp-needs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.2rem; }
    .xp-need { flex: 0 0 auto; }
    .xp-units { grid-template-columns: minmax(0, 1fr); }
}
.up-unit-loc { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; font-size: 0.85rem; font-weight: 600; color: var(--c-gold-deep, #9F8550); margin: 0; }
.up-unit-loc span { color: var(--mg-muted); font-weight: 400; }

/* ── Ubicación: dirección clara y marcador propio en el mapa ── */
.loc-address { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--c-ink); margin: 0 0 0.6rem; }
.loc-address i { color: var(--c-gold-deep, #9F8550); font-size: 1.15rem; }
.location-map { position: relative; }
.map-badge, .map-open {
    position: absolute; z-index: 2;
    background: #fff; color: var(--c-ink);
    border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    font-size: 0.82rem; font-weight: 600;
}
.map-badge { top: 0.8rem; left: 0.8rem; padding: 0.45rem 0.85rem; display: inline-flex; gap: 0.4rem; align-items: center; }
.map-badge i { color: #c0392b; }
.map-open { bottom: 0.8rem; left: 0.8rem; padding: 0.45rem 0.9rem; }
.map-open:hover { background: var(--c-gold); }

/* ── Contacto claro con formulario corto ── */
.contact-body .display { color: var(--c-ink); }
.contact-body .lead { color: var(--mg-muted); margin-bottom: 1.6rem; }
.contact-body .eyebrow { color: var(--c-gold-deep, #9F8550); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; max-width: 560px; }
.contact .field label { color: var(--mg-muted); }
.contact .field label small { color: #a19a8e; text-transform: none; letter-spacing: 0; }
.contact-form input, .contact-form select, .contact-form textarea {
    background: #fff; border: 1px solid rgba(10,10,10,0.14); border-radius: 10px;
    padding: 0.8rem 0.95rem; color: var(--c-ink); font: inherit; font-size: var(--fs-base);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--c-gold); box-shadow: 0 0 0 3px rgba(197,165,114,0.2); }
.contact-form textarea { resize: vertical; }
.contact .form-disclaimer { color: var(--mg-muted); }
.contact .form-disclaimer a { color: var(--c-gold-deep, #9F8550); }
.contact-ctas { margin-top: 0.4rem; }
.contact .btn--ghost { color: var(--c-ink); border-color: rgba(10,10,10,0.25); }
.contact .btn--ghost:hover { background: var(--c-ink); color: #fff; }
.contact .btn--wa i { color: #25D366; }
.contact .btn--wa:hover i { color: #fff; }
.contact-side .contact-info { background: #fff; border-color: var(--mg-line); }
.contact-info h3 { color: var(--c-ink); }
.contact-method { color: var(--c-ink); border-color: var(--mg-line); }
.contact-icon { background: #f3eee4; }
.contact-label { color: var(--mg-muted); }
.contact-value { color: var(--c-ink); }
.contact-office p { color: var(--mg-muted); }

/* ── Pie de página claro + Grupo Karuxi ── */
.footer { background: #EFEAE1; color: var(--c-ink); border-top-color: var(--mg-line); }
.footer-tagline, .footer-nav a, .footer-contact-item, .footer-contact-item--static, .footer-legal { color: #5f5a52; }
.footer-contact-item--static:hover { color: #5f5a52; }
.footer-nav h4, .footer-contact h4 { color: var(--c-gold-deep, #9F8550); }
.footer-bottom { border-top-color: var(--mg-line); color: #7a746a; }
.footer-disclaimer { color: #8a8378; }
.footer-admin { color: #8a8378; }
.footer-group { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.footer-group-title { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--c-ink); }
.footer-group-logos { display: flex; align-items: center; gap: 1.6rem; }
.footer-group-logo { height: 64px; width: auto; }.footer-group a { opacity: 0.9; transition: opacity 0.2s; }
.footer-group a:hover { opacity: 1; }

/* ── Visor de fotos: flechas también en celular (minuta punto 4) ── */
@media (pointer: coarse) {
    .lightbox-arrow { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; top: auto; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); transform: none; background: rgba(255,255,255,0.14); }
    .lightbox-prev { left: 1rem; }
    .lightbox-next { right: 1rem; }
    .lightbox--light .lightbox-arrow { background: rgba(0,0,0,0.06); }
    .lightbox.is-zoomed .lightbox-arrow, .lightbox--single .lightbox-arrow { display: none; }
}

/* Celular: la primera foto del hero en su versión ligera desde el CSS (sin esperar al JS) */
@media (max-width: 820px) { .hero { --hero-img-1: url('MARINA GOLD DISEÑO/Hero/m/hero-16-vista-logo.webp'); } }

/* Logo legible sobre cualquier foto: logo negro sobre una pastilla blanca discreta (colores oficiales dorado/negro) */
.nav-logo--gold { display: none; }
.nav-logo--dark { position: static; transform: none; opacity: 1; }
.nav-brand { background: rgba(255,255,255,0.88); border-radius: 12px; padding: 4px 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.12); transition: background 0.3s, box-shadow 0.3s; }
body.scrolled .nav-brand { background: transparent; box-shadow: none; }
.nav-logo { height: 40px; }
body.scrolled .nav-logo { height: 42px; }
.hero-block { background: rgba(10,10,10,0.4); }
@media (max-width: 820px), (orientation: portrait) and (max-width: 1100px) {
    .nav-brand { background: transparent; box-shadow: none; padding: 0; }
    .hero-block { background: none; }
}

/* Computadora / iPad horizontal: el alto del hero sigue la proporción de la foto (16:9), así se ve completa */
@media (min-width: 821px) {
    .hero { height: min(100vh, 56.25vw); min-height: 0; }
}
@media (min-width: 821px) and (orientation: portrait) and (max-width: 1100px) {
    .hero { height: auto; }
}
.xp-unit-info small { display: block; line-height: 1.35; }

/* Hero · punto medio: degradado suave solo detrás del texto (abajo a la izquierda) para
   que se lea en cualquier foto; el resto de la imagen queda limpia (minuta 02-oct). */
.hero-veil {
    display: block;
    background:
        radial-gradient(ellipse 75% 70% at 0% 100%, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.32) 45%, rgba(0,0,0,0) 75%),
        linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0) 16%);
}
.hero-block { background: none; padding: 0; }
.hero-slogan { text-shadow: 0 2px 18px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4); }
.btn-hero { background: rgba(10,10,10,0.35); border-color: rgba(255,255,255,0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
/* Menú legible sobre cualquier foto */
.nav-burger { background: rgba(255,255,255,0.88); border-radius: 12px; width: 48px; height: 44px; box-shadow: 0 2px 12px rgba(0,0,0,0.12); }
.nav-burger span { background: var(--c-ink); }
body.scrolled .nav-burger { background: transparent; box-shadow: none; }
@media (max-width: 820px), (orientation: portrait) and (max-width: 1100px) {
    .hero-veil { display: none; }
    .nav-burger { background: transparent; box-shadow: none; }
}

/* Galería: todas las categorías del mismo tamaño y a todo el ancho (sin márgenes sobrantes).
   Con 13 categorías la última fila queda centrada. Miniaturas de 640 px: nunca se estiran de más. */
.amenities { padding-left: clamp(1rem, 2.5vw, 2.5rem); padding-right: clamp(1rem, 2.5vw, 2.5rem); }
.amen-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    max-width: 1800px;
}
.amen-card, .amen-card--wide {
    flex: 0 0 calc((100% - 3 * 0.9rem) / 4);
    grid-column: auto; grid-row: auto;
    aspect-ratio: 4 / 3;
}
.amen-card--wide .amen-card-title { font-size: 1.4rem; }
@media (min-width: 1500px) { .amen-card, .amen-card--wide { flex-basis: calc((100% - 4 * 0.9rem) / 5); } }
@media (max-width: 1000px) { .amen-card, .amen-card--wide { flex-basis: calc((100% - 2 * 0.9rem) / 3); } }
@media (max-width: 720px) {
    .amen-grid { gap: 0.6rem; }
    .amen-card, .amen-card--wide { flex-basis: calc((100% - 0.6rem) / 2); aspect-ratio: 4 / 3.4; }
}
@media (max-width: 720px) { .amen-card--wide .amen-card-title { font-size: 1.05rem; } }

/* Navbar blanco siempre (sobre el hero y al bajar): logo, contacto y menú se distinguen en cualquier foto.
   El menú hamburguesa vuelve a su estilo original (3 líneas finas, sin fondo). */
.nav,
body.scrolled .nav {
    background: rgba(255,255,255,0.94);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 18px rgba(0,0,0,0.06);
}
.nav-brand, body.scrolled .nav-brand { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
.nav-logo, body.scrolled .nav-logo { height: 44px; }
.nav-burger, body.scrolled .nav-burger {
    width: 28px; height: 20px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.nav-burger span, body.scrolled .nav-burger span { background: var(--c-ink); height: 2px; border-radius: 1px; }
/* El hero empieza debajo de la barra para que la barra no tape la foto */
@media (min-width: 1101px), (min-width: 821px) and (orientation: landscape) {
    .hero { margin-top: var(--nav-height); height: min(calc(100vh - var(--nav-height)), 56.25vw); }
    .hero-veil { background:
        radial-gradient(ellipse 75% 70% at 0% 100%, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.32) 45%, rgba(0,0,0,0) 75%); }
}
@media (max-width: 820px), (orientation: portrait) and (max-width: 1100px) {
    .hero-slogan { text-shadow: none; }
    .btn-hero { background: transparent; color: var(--c-ink); border-color: rgba(10,10,10,0.35); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Barra como en la versión 1: transparente sobre la foto y blanca solo al desplazar */
.nav {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
}
body.scrolled .nav {
    background: rgba(255,255,255,0.94);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 18px rgba(0,0,0,0.06);
}
.nav-brand { position: relative; }
.nav-logo--gold { display: block; opacity: 1; filter: drop-shadow(0 1px 8px rgba(0,0,0,0.45)); transition: opacity 0.3s; }
.nav-logo--dark { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity 0.3s; }
body.scrolled .nav-logo--gold { opacity: 0; }
body.scrolled .nav-logo--dark { opacity: 1; }
.nav-burger span { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.35); }
body.scrolled .nav-burger span { background: var(--c-ink); box-shadow: none; }
/* El hero vuelve a empezar arriba de todo, detrás de la barra */
/* (iPad vertical queda fuera: ahí la foto va arriba y el texto debajo; con esta regla el texto se salía del hero) */
@media (min-width: 1101px), (min-width: 821px) and (orientation: landscape) {
    .hero { margin-top: 0; height: min(100vh, 56.25vw); }
    .hero-veil { background:
        linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0) 14%),
        radial-gradient(ellipse 75% 70% at 0% 100%, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.32) 45%, rgba(0,0,0,0) 75%); }
}
@media (max-width: 820px), (orientation: portrait) and (max-width: 1100px) {
    body:not(.scrolled) .nav { background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0)); border-bottom-color: transparent; }
    .hero { padding-top: 56.25vw; }
    .hero::before, .hero::after { top: 0; }
    .hero-arrow { top: 28.125vw; }
    .hero-dots { top: calc(56.25vw - 2rem); }
}
.nav-logo--gold { filter: drop-shadow(0 0 1px rgba(0,0,0,0.55)) drop-shadow(0 2px 10px rgba(0,0,0,0.55)); }
@media (min-width: 1101px), (min-width: 821px) and (orientation: landscape) {
    .hero-veil { background:
        linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.12) 9%, rgba(0,0,0,0) 15%),
        radial-gradient(ellipse 75% 70% at 0% 100%, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.32) 45%, rgba(0,0,0,0) 75%); }
}
body:not(.scrolled) .nav-logo--gold { height: 58px; }

/* Logo: blanco sobre la foto; dorado cuando la barra se vuelve blanca. Centrado en la barra (no se sale). */
.nav-brand { display: flex; align-items: center; height: 100%; padding: 0; }
.nav-logo--dark { display: none; }
.nav-logo--gold,
body:not(.scrolled) .nav-logo--gold {
    display: block;
    position: static;
    transform: none;
    height: 46px;
    width: auto;
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0,0,0,0.45));
    transition: filter 0.35s ease, height 0.35s ease;
}
body.scrolled .nav-logo--gold { opacity: 1; height: 44px; filter: none; }

/* Logo más grande y dorado más fuerte; la barra conserva su alto (el logo no la empuja) */
.nav { height: var(--nav-height); }
.nav-brand { height: var(--nav-height); overflow: visible; }
.nav-logo--gold, body:not(.scrolled) .nav-logo--gold { height: 66px; max-height: calc(var(--nav-height) - 14px); }
body.scrolled .nav-logo--gold { height: 62px; filter: none; }
@media (max-width: 820px) {
    .nav-logo--gold, body:not(.scrolled) .nav-logo--gold, body.scrolled .nav-logo--gold { height: 52px; max-height: calc(var(--nav-height) - 10px); }
}

/* ============================================================
   EDIFICIO 3D (initExplorer3D) + PANEL DE PLANTA POR NIVEL
============================================================ */
.x3d { max-width: var(--container-max); margin: 0 auto var(--space-5); }
.x3d-stage {
    position: relative;
    height: min(72vh, 640px);
    min-height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    /* cielo: azul arriba, bruma clara en el horizonte (igual a la niebla del 3D) */
    background: linear-gradient(180deg, #5e9bd0 0%, #9cc3e3 38%, #cfdfe8 62%, #d6e2e8 100%);
    box-shadow: 0 14px 40px rgba(0,0,0,0.12), 0 0 0 1px var(--mg-line, rgba(10,10,10,0.09));
    isolation: isolate;
}
.x3d-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.x3d-canvas:active { cursor: grabbing; }
.x3d-poster {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: opacity 0.6s ease; z-index: 2; pointer-events: none;
}
.x3d.is-ready .x3d-poster, .x3d.is-ready .x3d-loading { opacity: 0; visibility: hidden; }
/* .x3d-loading (indicador de carga): bloque «Controles del 3D unificados (15-nov)», al final */
.x3d-spin {
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3); border-top-color: var(--c-gold);
    animation: x3dSpin 0.8s linear infinite;
}
@keyframes x3dSpin { to { transform: rotate(360deg); } }
.x3d-labels { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.x3d-tag {
    position: absolute; left: 0; top: 0;
    padding: 0.32rem 0.7rem; border-radius: 999px;
    background: rgba(10,10,10,0.78); color: #fff;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
    transition: opacity 0.2s;
}
.x3d-tag::after {
    content: ''; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%);
    border: 5px solid transparent; border-bottom: 0; border-top-color: rgba(10,10,10,0.78);
}
.x3d:not(.is-ready) .x3d-tag { opacity: 0 !important; }
.x3d-tip {
    position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
    display: flex; flex-direction: column; gap: 0.1rem;
    padding: 0.5rem 0.75rem; border-radius: 10px;
    background: #fff; color: var(--c-ink); font-size: 0.8rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.x3d-tip[hidden] { display: none; }
.x3d-tip b { font-weight: 600; }
.x3d-tip span { color: var(--st-available); font-weight: 600; }
.x3d-tools {
    position: absolute; right: 0.9rem; top: 0.9rem; z-index: 3;
    display: flex; flex-direction: column; gap: 0.4rem;
}
.x3d-tools button {
    width: 40px; height: 40px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,0.92); color: var(--c-ink);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15); cursor: pointer; font-size: 0.9rem;
}
.x3d-tools button:hover { background: var(--c-gold-soft); }
.x3d-hint {
    position: absolute; left: 0.9rem; bottom: 0.9rem; z-index: 3; margin: 0;
    padding: 0.4rem 0.75rem; border-radius: 999px;
    background: rgba(255,255,255,0.88); color: var(--c-graphite); font-size: 0.78rem;
    pointer-events: none;
}
.x3d-hint i { color: var(--c-gold-deep); margin-right: 0.25rem; }
.x3d:not(.is-ready) .x3d-hint, .x3d:not(.is-ready) .x3d-tools { opacity: 0; pointer-events: none; }

/* Pantalla completa */
.x3d.is-full .x3d-stage {
    position: fixed; inset: 0; z-index: 1400; height: auto; min-height: 0;
    border-radius: 0; box-shadow: none;
}

/* Torre + nivel debajo del 3D */
.x3d-pick { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; margin-top: 1.1rem; }
.x3d-towers {
    display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px;
    background: var(--mg-surface, #fff); border: 1px solid var(--mg-line, rgba(10,10,10,0.09));
}
.x3d-tw {
    border: 0; background: transparent; color: var(--mg-muted, #6B665E);
    padding: 0.5rem 1.15rem; border-radius: 999px; font-size: 0.9rem; font-weight: 500; cursor: pointer;
}
.x3d-tw.is-active { background: var(--c-ink); color: #fff; font-weight: 600; }
.x3d-levels { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; }
.x3d-lv {
    display: flex; flex-direction: column; align-items: center; gap: 0.1rem;
    min-width: 62px; padding: 0.5rem 0.6rem; border-radius: 12px; cursor: pointer;
    border: 1px solid var(--mg-line, rgba(10,10,10,0.09)); background: var(--mg-surface, #fff); color: var(--c-ink);
}
.x3d-lv b { font-size: 1.05rem; font-weight: 600; line-height: 1.1; }
.x3d-lv:hover { border-color: var(--c-gold); }
.x3d-lv.is-active { border-color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-ink); }

.floor-panel {
    position: fixed; inset: 0; z-index: 1450;
    display: none; align-items: center; justify-content: center; padding: 2rem;
}
.floor-panel.open { display: flex; }
.floor-panel-backdrop {
    position: absolute; inset: 0; background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn 0.3s ease;
}
.floor-panel-card {
    position: relative; width: 100%; max-width: 1080px; max-height: calc(100vh - 4rem);
    background: var(--c-canvas); color: var(--c-ink);
    border-radius: var(--radius-md); overflow: hidden auto;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    animation: panelIn 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.floor-panel-close {
    position: absolute; top: 1rem; right: 1rem; z-index: 5;
    width: 38px; height: 38px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,0.95); box-shadow: var(--shadow-sm);
    font-size: 1.4rem; line-height: 1; color: var(--c-ink); cursor: pointer;
}
.floor-panel-body { padding: 1.4rem 1.6rem 1.6rem; }
.fp-head { display: flex; align-items: center; gap: 1rem; padding-right: 3rem; }
.fp-title small { display: block; color: var(--c-gold-deep); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.fp-title h3 { margin: 0.1rem 0 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; }
.fp-step { display: flex; gap: 0.35rem; margin-left: auto; }
.fp-step button {
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
    border: 1px solid var(--c-gray-300); background: #fff; color: var(--c-ink);
}
.fp-step button:disabled { opacity: 0.35; cursor: default; }
.fp-sum { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; margin: 0.7rem 0 0.9rem; font-size: 0.88rem; color: var(--c-graphite); }
.fp-sum span { display: inline-flex; align-items: center; gap: 0.4rem; }
.fp-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.fp-dot--available { background: var(--st-available); }
.fp-dot--reserved { background: var(--st-reserved); }
.fp-dot--sold { background: var(--st-sold); }
.fp-plan {
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
    border: 1px solid var(--c-gray-200); border-radius: 12px; background: #fff;
}
.fp-plan-inner { position: relative; width: 100%; min-width: 0; }
.fp-plan-inner img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.fp-pin {
    position: absolute; transform: translate(-50%, -50%);
    min-width: 40px; height: 26px; padding: 0 0.45rem; border-radius: 999px; border: 2px solid #fff;
    font-size: 0.74rem; font-weight: 700; color: #fff; cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25); transition: transform 0.15s;
}
.fp-pin--available { background: var(--st-available); }
.fp-pin--reserved { background: var(--st-reserved); }
.fp-pin--sold { background: var(--st-sold); cursor: default; }
.fp-pin--unit { background: var(--c-ink); }
.fp-pin--unit:hover { background: var(--c-gold-deep); }
.fp-pin:not(:disabled):hover { transform: translate(-50%, -50%) scale(1.12); }
.fp-hint { margin: 0.6rem 0 0.5rem; font-size: 0.8rem; color: var(--c-gray-500); }
.fp-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.45rem;
}
.fp-core { grid-column: 1 / -1; margin: 0.6rem 0 0.1rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-gold-deep); }
.fp-row {
    width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.7rem;
    padding: 0.65rem 0.8rem; border-radius: 10px; text-align: left; cursor: pointer;
    border: 1px solid var(--c-gray-200); background: #fff; color: var(--c-ink); font-size: 0.82rem;
}
.fp-row b { font-size: 0.95rem; min-width: 3.2em; }
.fp-row span { color: var(--c-gray-700); }
.fp-row em { font-style: normal; font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 999px; white-space: nowrap; }
.fp-row--available em { color: var(--st-available); background: var(--st-available-bg); }
.fp-row--reserved em { color: #a87410; background: var(--st-reserved-bg); }
.fp-row--sold { cursor: default; opacity: 0.6; }
.fp-row--sold em { color: var(--st-sold); background: var(--st-sold-bg); }
.fp-row:not(:disabled):hover { border-color: var(--c-gold); }
.fp-row > i { color: var(--c-gray-500); font-size: 0.8rem; }

@media (max-width: 760px) {
    .x3d-stage { height: 64vh; min-height: 340px; border-radius: var(--radius-sm); }
    .x3d-tools { right: 0.6rem; top: 0.6rem; }
    .x3d-tools button { width: 36px; height: 36px; }
    .x3d-hint { left: 0.6rem; bottom: 0.6rem; font-size: 0.72rem; }
    .x3d-tag { font-size: 0.7rem; padding: 0.26rem 0.55rem; }
    .x3d-lv { min-width: 0; flex: 1 0 calc(25% - 0.45rem); }
    .floor-panel { padding: 0; align-items: flex-end; }
    .floor-panel-card { max-height: 92vh; max-height: 92dvh; border-radius: 18px 18px 0 0; }
    .floor-panel-body { padding: 1.1rem 1rem 1.4rem; }
    .fp-title h3 { font-size: 1.35rem; }
    /* La planta es más ancha que el teléfono: se desliza de lado */
    .fp-plan-inner { width: max(820px, calc(var(--ar, 3) * 250px)); }
    .fp-pin { min-width: 36px; height: 24px; font-size: 0.7rem; }
    .fp-list { grid-template-columns: 1fr; }
}

/* 3D bajo demanda: botón sobre la foto aérea; nada del 3D se descarga hasta picarle */
.x3d[hidden], .av-hero[hidden] { display: none !important; }
.x3d-launch {
    position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 6;
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.8rem 1.4rem; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--c-ink); color: #fff; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
    box-shadow: 0 10px 28px rgba(0,0,0,0.3); transition: transform 0.2s, background 0.2s;
}
.x3d-launch i { color: var(--c-gold); font-size: 1.05rem; }
.x3d-launch span { white-space: nowrap; line-height: 1.1; }
.x3d-launch { width: auto; max-width: calc(100% - 2rem); white-space: nowrap; }
.x3d-launch:hover { background: #000; transform: translateX(-50%) translateY(-2px); }
.x3d-tools .x3d-photo { margin-top: 0.4rem; }
/* Pantalla completa: torre y nivel flotan abajo sobre el 3D */
.x3d.is-full .x3d-pick {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1401; margin: 0;
    padding: 0.8rem 0.8rem calc(0.8rem + env(safe-area-inset-bottom));
    background: rgba(247,244,238,0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--mg-line, rgba(10,10,10,0.09));
}
.x3d.is-full .x3d-hint { top: calc(0.9rem + env(safe-area-inset-top)); bottom: auto; }
.x3d.is-full .x3d-tools { top: calc(0.9rem + env(safe-area-inset-top)); }
@media (max-width: 760px) {
    /* En celular las tarjetas de torre van debajo de la foto: el botón va arriba, sobre el cielo */
    .x3d-launch { top: 0.8rem; bottom: auto; padding: 0.65rem 1.1rem; font-size: 0.88rem; }
    .x3d.is-full .x3d-levels { gap: 0.35rem; }
    .x3d.is-full .x3d-lv { padding: 0.35rem 0.4rem; }
}

/* 3D · referencias en el terreno, etiqueta del piso elegido, vista por depto y compartir */
.x3d-places { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.x3d-place {
    position: absolute; left: 0; top: 0; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.22rem 0.6rem; border-radius: 999px;
    background: rgba(255,255,255,0.9); color: var(--c-graphite);
    font-size: 0.72rem; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.x3d-place i { font-size: 0.72rem; }
.x3d-place--golf i { color: #4f8a3a; }
.x3d-place--park i { color: #3f7d4f; }
.x3d-place--street i { color: var(--c-gray-500); }
.x3d:not(.is-ready) .x3d-place { opacity: 0 !important; }
.fp-side { display: block; margin-top: 0.15rem; font-size: 0.72rem; color: #3f7d4f; font-weight: 600; }
.fp-side--out { color: var(--c-gold-deep); }
.up-share {
    margin: 0.1rem 0 0.6rem; padding: 0.4rem 0.8rem; border-radius: 999px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 0.4rem;
    border: 1px solid var(--c-gray-300); background: #fff; color: var(--c-ink); font-weight: 600; font-size: 0.78rem;
}
.up-share i { color: var(--c-gold-deep); }
.up-share:hover { border-color: var(--c-gold); }
@media (max-width: 760px) {
    .x3d-place { font-size: 0.66rem; padding: 0.18rem 0.5rem; }
}


.x3d-place--sea i, .x3d-place--marina i { color: #2b78ad; }
.x3d-place--faro i { color: #b2452f; }

/* Etiquetas como primera capa: arriba del edificio con línea al punto que señalan */
.x3d-leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.x3d-leaders line { stroke: rgba(255,255,255,0.95); stroke-width: 1.5; filter: drop-shadow(0 0 1.5px rgba(0,0,0,0.45)); }
.x3d-leaders line.is-tower { stroke: #1c1b19; stroke-width: 1.6; filter: drop-shadow(0 0 1.5px rgba(255,255,255,0.9)); }
.x3d-leaders circle { fill: #fff; stroke: #1c1b19; stroke-width: 1.4; }
.x3d-leaders circle.is-tower { fill: #e0a93a; }
.x3d-labels, .x3d-places { z-index: 2; }
.x3d-tag::after { display: none; }
.x3d-tag, .x3d-place { transition: opacity 0.2s; will-change: transform; }
.x3d:not(.is-ready) .x3d-leaders { display: none; }

/* Leyenda de disponibilidad del 3D */
.x3d-legend {
    position: absolute; left: 0.9rem; top: 0.9rem; z-index: 3;
    display: flex; gap: 0.7rem; padding: 0.38rem 0.75rem; border-radius: 999px;
    background: rgba(255,255,255,0.9); color: var(--c-graphite); font-size: 0.74rem; font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12); pointer-events: none;
}
.x3d-legend span { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.x3d-legend .fp-dot { width: 9px; height: 9px; }
.x3d:not(.is-ready) .x3d-legend { opacity: 0; }
@media (max-width: 760px) {
    .x3d-legend { left: 0.6rem; right: auto; bottom: auto; top: calc(3.2rem + env(safe-area-inset-top)); gap: 0.5rem; font-size: 0.68rem; padding: 0.3rem 0.6rem; }
}

/* Responsive · auditoría oct-2026 */
/* Burbuja "¡Hola!" del chat: en tableta y computadora se encogía a una columna
   (una palabra por línea) porque su contenedor mide lo que el botón redondo */
.chatbot-bubble { width: max-content; max-width: min(290px, calc(100vw - 6rem)); }
.chatbot-bubble-content { min-width: 0; }

/* Áreas de toque de al menos ~44px sin cambiar cómo se ven */
.nav-burger { position: relative; }
.nav-burger::after { content: ''; position: absolute; inset: -12px -10px; }
.hero-dot { position: relative; }
.hero-dot::after { content: ''; position: absolute; inset: -8px -4px; border-radius: 50%; }
.seg-btn { min-width: 40px; min-height: 40px; }
.av-tower-chip { min-height: 36px; }

/* Menú abierto: el botón de WhatsApp y "Reserva tu visita" no se enciman sobre el menú */
body:has(.drawer.open) .chatbot,
body:has(.drawer.open) .sticky-cta { opacity: 0; visibility: hidden; pointer-events: none; }

@media (max-width: 400px) {
    /* Ficha: "Tour 360° · Modelo C" se cortaba con puntos suspensivos; ahora baja a dos líneas */
    .up-actions .up-tour { white-space: normal; text-overflow: clip; line-height: 1.25; letter-spacing: 0.05em; text-align: left; }
}


/* Planta: cada departamento como zona de color tocable + tarjeta del seleccionado */
.fp-zones { position: absolute; inset: 0; width: 100%; height: 100%; }
.fp-zone { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill-opacity 0.15s; fill-opacity: 0.32; }
.fp-zone--available { fill: var(--st-available); }
.fp-zone--reserved { fill: var(--st-reserved); }
.fp-zone--sold { fill: var(--st-sold); fill-opacity: 0.28; }
.fp-zone--unit { fill: var(--c-gold); fill-opacity: 0.18; }
.fp-zone:hover { fill-opacity: 0.5; }
.fp-zone.is-sel { fill-opacity: 0.6; stroke: #111; stroke-width: 2.5; }
.fp-pin { z-index: 2; }
.fp-pin.is-sel { transform: translate(-50%, -50%) scale(1.18); box-shadow: 0 0 0 3px #111, 0 4px 12px rgba(0,0,0,0.3); }
.fp-pin--sold { cursor: pointer; }
.fp-card { margin: 0.7rem 0 0.9rem; padding: 0.8rem 0.9rem; border-radius: 12px; background: #fff; border: 1px solid var(--c-gray-200); }
.fp-card .fp-hint { margin: 0; }
.fp-card--available { border-color: var(--st-available); box-shadow: inset 4px 0 0 var(--st-available); }
.fp-card--reserved { border-color: var(--st-reserved); box-shadow: inset 4px 0 0 var(--st-reserved); }
.fp-card--sold { border-color: var(--st-sold); box-shadow: inset 4px 0 0 var(--st-sold); }
.fp-card-top { display: flex; align-items: baseline; gap: 0.6rem; }
.fp-card-top b { font-size: 1.25rem; }
.fp-card-top span { font-size: 0.8rem; color: var(--c-gray-500); }
.fp-card-top em { margin-left: auto; font-style: normal; font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 999px; }
.fp-card--available .fp-card-top em { color: var(--st-available); background: var(--st-available-bg); }
.fp-card--reserved .fp-card-top em { color: #a87410; background: var(--st-reserved-bg); }
.fp-card--sold .fp-card-top em { color: var(--st-sold); background: var(--st-sold-bg); }
.fp-card > p { margin: 0.35rem 0 0.6rem; font-size: 0.85rem; color: var(--c-gray-700); }
.fp-card .fp-card-note { margin: 0; color: var(--st-sold); font-weight: 600; }
.fp-card-go { width: 100%; justify-content: center; }
@media (max-width: 760px) {
    /* la tarjeta queda pegada abajo mientras se recorre la planta */
    .fp-card { position: sticky; bottom: 0; z-index: 3; box-shadow: 0 -6px 18px rgba(0,0,0,0.08); }
}

/* 3D · torre elegida en dorado */
.x3d-tag { transition: opacity 0.2s, background 0.2s, color 0.2s; }
.x3d-tag.is-active { background: var(--c-gold); color: #111; box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
/* líneas de referencias del suelo más discretas que las de las torres */
.x3d-leaders line:not(.is-tower) { stroke-dasharray: 3 3; opacity: 0.85; }

/* Celular: sin desenfoque detrás de la planta y la ficha. En el iPhone el blur encima del
   3D (o de la página) se recalcula en cada movimiento del scroll y lo traba */
@media (max-width: 760px), (hover: none) {
    .floor-panel-backdrop, .unit-panel-backdrop { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(0,0,0,0.68); }
    .x3d.is-full .x3d-pick { backdrop-filter: none; -webkit-backdrop-filter: none; background: #f7f4ee; }
    .floor-panel-card, .unit-panel-card { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
    .fp-card { box-shadow: 0 -4px 10px rgba(0,0,0,0.06); }
}

/* ============================================================
   Diseño · oct-2026 (skills: marina-gold-design, frontend-design,
   ui-ux-pro-max, Vercel Web Interface Guidelines)
   Sistema: tinta = acción principal, dorado = solo acento, sentence case,
   sin etiquetas decorativas. Ver diagnóstico en el repo de trabajo.
============================================================ */
:root {
    --c-gold-text: #7A6433;            /* dorado para texto chico: contraste AA sobre arena y blanco */
    --r-card: 16px;
    --r-ctrl: 12px;
}

/* --- Accesibilidad base --- */
.skip-link {
    position: absolute; left: 0.75rem; top: -60px; z-index: 10000;
    padding: 0.7rem 1rem; border-radius: var(--r-ctrl);
    background: var(--c-ink); color: #fff; font-weight: 600; font-size: 0.9rem;
}
.skip-link:focus { top: 0.75rem; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--c-gold-text);
    outline-offset: 3px;
    border-radius: 6px;
}
/* sobre fotos el anillo va en blanco con sombra para leerse en cualquier fondo */
:where(.hero, .x3d-stage, .amen-card) :where(a, button):focus-visible, .amen-card:focus-visible { outline-color: #fff; box-shadow: 0 0 0 4px rgba(0,0,0,0.45); }
section[id], footer { scroll-margin-top: 84px; }
:where(a, button, [role="button"], input, select, textarea, label) { touch-action: manipulation; }
:where(h1, h2, h3, .display) { text-wrap: balance; }
:where(p, .lead) { text-wrap: pretty; }
.modal, .unit-panel, .floor-panel, .lightbox, .drawer, .chatbot-window, .modal-card, .unit-panel-card, .floor-panel-card { overscroll-behavior: contain; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important; scroll-behavior: auto !important;
    }
    [data-animate], .reveal, .fade-up { opacity: 1 !important; transform: none !important; }
}

/* --- Sentence case en todo el sitio (antes: 52 reglas en MAYÚSCULAS espaciadas) --- */
.eyebrow, .nav-cta, .drawer-section-label, .drawer-nav a, .locale-currency, .drawer-brochure,
.building-info .display, .building-stats dt, .facts dt, .av-tag small, .av-tower-chip, .av-hero-hint,
.av-filter-label, .av-result-clear, .av-card-wing, .av-card-tower-pill, .av-card-cta, .av-card-statustag,
.up-statustag, .up-location-label, .up-wing, .up-tour, .amen-card-meta, .gal-cat-eyebrow, .gal-cat-action,
.field label, .contact-label, .footer-nav h4, .footer-contact h4, .footer-connect h4, .chatbot-status,
.cb-cta-text small, .up-ph-list h3, .up-ph em, .up-towers-lbl, .cb-unit-card small, .xp-cut-roof,
.footer-group-title, .fp-title small, .fp-core, .btn-hero, .btn-hero-text, .hero-mark-text {
    text-transform: none !important;
    letter-spacing: 0.01em !important;
}
.building-info .display { letter-spacing: -0.02em !important; }
/* tamaños que estaban pensados para mayúsculas: se ajustan para leerse en minúsculas */
.building-stats dt, .facts dt { font-size: 0.82rem; color: var(--mg-muted, #6B665E); }
.av-card-tower-pill, .up-wing { font-size: 0.74rem; font-weight: 600; }
.av-card-cta { font-size: 0.86rem; }
.amen-card-meta { font-size: 0.8rem; opacity: 0.9; }
.field label, .contact-label { font-size: 0.82rem; font-weight: 600; color: var(--c-graphite); }
.footer-nav h4, .footer-contact h4, .footer-connect h4, .footer-group-title { font-size: 0.86rem; font-weight: 600; color: var(--c-ink); }
.drawer-nav a { font-size: 1.15rem; font-weight: 500; }
.nav-cta { font-size: 0.85rem; }
.up-tour { font-size: 0.82rem; white-space: normal; text-align: center; line-height: 1.2; }
.fp-title small, .fp-core { font-size: 0.8rem; }
.eyebrow, .fp-core, .fp-title small, .building-place, .av-filter-label, .gal-cat-eyebrow { color: var(--c-gold-text); }
.building-stats dd { color: var(--c-ink); }

/* --- Botones: un primario (tinta), un secundario (contorno) en todo el sitio --- */
.btn { border-radius: var(--radius-pill); letter-spacing: 0; font-size: 0.92rem; min-height: 46px; }
.btn--primary:hover { background: #000; transform: none; box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.btn--gold { background: var(--c-ink); color: #fff; }
.btn--gold:hover { background: #000; color: #fff; }
.building-cta { margin-top: 0.4rem; align-self: flex-start; }
.btn-hero { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; }

/* --- El Edificio: un solo estilo de título (antes en MAYÚSCULAS) --- */
.building-info .display { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; }
.building-divider { display: none; }

/* --- Pie y chat: etiquetas chicas sin tracking --- */
.chatbot-status { font-size: 0.74rem; }

/* --- Explora tu espacio: la foto es la portada del 3D; el botón es el protagonista --- */
.av-hero { cursor: default; }
.av-hero::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 55%; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.55) 100%);
}
.x3d-launch {
    top: auto !important; bottom: clamp(1rem, 4vw, 2rem) !important; left: 50%; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 0.9rem; text-align: left;
    padding: 0.65rem 1.4rem 0.65rem 0.65rem; border-radius: 999px; white-space: normal;
    width: max-content; max-width: calc(100% - 2rem);
    background: #fff; color: var(--c-ink); box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}
.x3d-launch:hover { background: #fff; transform: translateX(-50%) translateY(-2px); box-shadow: 0 18px 46px rgba(0,0,0,0.4); }
.x3d-launch-ic {
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--c-ink); color: var(--c-gold); font-size: 1.15rem;
}
.x3d-launch-ic i { color: var(--c-gold); }
.x3d-launch-txt { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.x3d-launch-txt b { font-size: 1rem; font-weight: 600; line-height: 1.2; }
.x3d-launch-txt small { font-size: 0.8rem; color: var(--mg-muted, #6B665E); line-height: 1.3; font-weight: 400; }
@media (max-width: 760px) {
    .x3d-launch { top: auto !important; bottom: 0.8rem !important; gap: 0.7rem; padding: 0.5rem 1rem 0.5rem 0.5rem; }
    .x3d-launch-ic { width: 40px; height: 40px; font-size: 1rem; }
    .x3d-launch-txt b { font-size: 0.9rem; }
    .x3d-launch-txt small { font-size: 0.72rem; }
}
/* el buscador queda como "la lista": misma tarjeta, separado del 3D */
.xp { margin-top: clamp(1rem, 2.5vw, 1.5rem); }
.x3d-launch .x3d-launch-txt b, .x3d-launch .x3d-launch-txt small { white-space: normal; }
@media (max-width: 760px) { .x3d-launch-txt small { display: none; } }
/* Distribuciones: 6 tipologías en 3 + 3 (antes 4 + 2 con hueco) */
@media (min-width: 1000px) { .av-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1100px; } }
.av-card-cta { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* --- Diseño · bloque 2: estados y secciones --- */
/* Ritmo de fondos: Explora (arena) → Galería (blanco) → Pádel (arena) → Ubicación (blanco) → Contacto (arena) */
.amenities { background: #fff; }
.location { background: #fff; }
.poi-list strong { color: var(--c-gold-text); font-variant-numeric: tabular-nums; }
.value-num { font-variant-numeric: tabular-nums; }
/* Botones de cerrar: blancos con × tinta; en pantallas táctiles sin "hover pegado" dorado */
.unit-panel-close, .floor-panel-close, .lb-top .lightbox-close { background: #fff; color: var(--c-ink); }
@media (hover: none) {
    .unit-panel-close:hover, .floor-panel-close:hover, .lightbox-close:hover, .lb-top .lightbox-close:hover,
    .modal-close:hover, .drawer-close:hover, .btn--primary:hover, .x3d-launch:hover {
        transform: none; background: revert-layer; box-shadow: revert-layer;
    }
    .unit-panel-close:hover, .floor-panel-close:hover, .lb-top .lightbox-close:hover { background: #fff; color: var(--c-ink); }
    .btn--primary:hover { background: var(--c-ink); }
    .x3d-launch:hover { background: #fff; transform: translateX(-50%); }
}
/* Pie: el botón flotante de WhatsApp ya no tapa la última línea en computadora */
@media (min-width: 761px) { .footer-bottom { padding-right: 84px; } }

/* --- Club de Pádel (sección aparte) · Club de Playa usa la misma estructura --- */
.club {
    display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
    /* fondo de lado a lado; el contenido se centra a lo ancho del contenedor */
    padding: clamp(3rem, 7vw, 6rem) max(var(--container-pad), calc((100% - var(--container-max)) / 2));
    background: var(--mg-bg, #F7F4EE);
}
.club[hidden] { display: none; }
.club--reverse .club-media { order: 2; }
.club-media { position: relative; padding-bottom: 12%; }
.club-img { display: block; width: 100%; height: auto; border-radius: var(--r-card); object-fit: cover; }
.club-img--main { aspect-ratio: 16 / 10; box-shadow: 0 18px 50px rgba(0,0,0,0.14); }
.club-img--alt {
    position: absolute; right: -4%; bottom: 0; width: 46%; aspect-ratio: 4 / 3;
    border: 6px solid var(--mg-bg, #F7F4EE); box-shadow: 0 14px 34px rgba(0,0,0,0.18);
}
.club-info .display { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; margin: 0 0 1rem; }
.club-info .lead { color: var(--mg-muted, #6B665E); max-width: 34ch; margin: 0 0 1.6rem; }
@media (max-width: 860px) {
    .club { grid-template-columns: 1fr; }
    .club--reverse .club-media { order: 0; }
    .club-media { padding-bottom: 18%; }
    .club-img--alt { right: 0; width: 52%; border-width: 4px; }
}

/* --- Testimonios (solo reales; ocultos mientras no haya) --- */
.testimonials { padding: clamp(3rem, 7vw, 6rem) var(--container-pad); background: #fff; }
.testimonials[hidden] { display: none; }
.testi-list { max-width: var(--container-max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.testi { margin: 0; padding: 1.6rem; border-radius: var(--r-card); background: var(--mg-bg, #F7F4EE); }
.testi blockquote { margin: 0 0 1rem; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.45; }
.testi figcaption { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.88rem; }
.testi figcaption span { color: var(--mg-muted, #6B665E); }

/* --- Distribuciones: el tour 360° se ve desde la tarjeta --- */
.av-card-tour {
    display: inline-flex; align-items: center; gap: 0.3rem; margin-left: auto;
    font-size: 0.74rem; font-weight: 600; color: var(--c-gold-text);
}
.av-card-towers { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
/* imágenes con width/height en el HTML (evita saltos de diseño): la altura la decide su ancho */
:where(img) { height: auto; }
/* toque en celular: resaltado discreto en lugar del azul del sistema */
:where(a, button, [role="button"], label, summary) { -webkit-tap-highlight-color: rgba(26,26,26,0.08); }
/* Aviso de privacidad: más ancho útil en celular y lectura más compacta */
.legal-body { line-height: 1.65; }
@media (max-width: 760px) {
    .modal-content--legal { padding: 1.6rem 1.25rem; }
    .legal-head h2 { font-size: 1.7rem; }
    .legal-body { max-height: 66vh; max-height: 66dvh; }
}
/* Estado vacío del filtro de distribuciones legible sobre fondo claro */
.av-grid--empty::after { color: var(--mg-muted, #6B665E) !important; }
/* Campos de formulario: foco con contraste suficiente (antes borde dorado claro, < 3:1) */
.mini-form input:focus, .mini-form select:focus, .mini-form textarea:focus,
.cb-text-input input:focus, .cchat-field:focus, .cchat-prefix:focus,
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    border-color: var(--c-gold-text);
    box-shadow: 0 0 0 3px rgba(122,100,51,0.22);
}
.building-info .display { margin-bottom: 0.9rem; }

/* ============================================================
   Responsive · auditoría en teléfono (oct-2026, 2ª pasada)
   Página quieta detrás de menú, modales, paneles y 3D; toques de
   al menos 44 px; textos de al menos 12 px; scroll sin trabajo extra.
============================================================ */
/* Bloqueo del scroll en la raíz: con overflow-x: clip en <html>, el overflow del <body> ya no
   pasa a la ventana y la página de atrás se seguía moviendo con el dedo (menú, aviso de
   privacidad, formulario, planta, ficha y 3D a pantalla completa). En el iPhone eso además
   escondía/mostraba la barra del navegador y redimensionaba todo: se sentía trabado. */
@media (hover: none), (pointer: coarse) {
    /* solo en táctil: en computadora con barra de scroll clásica quitarla movería el diseño */
    html:has(body.no-scroll), html:has(body.chat-open) { overflow: hidden; }
}
/* Al llegar al final de un texto con scroll, el arrastre no pasa a la página */
.modal-content, .legal-body, .chatbot-messages, .drawer, .unit-panel-card, .unit-panel-body, .floor-panel-card { overscroll-behavior: contain; }
.fp-plan, .av-grid, .xp-towers, .xp-needs { overscroll-behavior-x: contain; }

/* Barra de avance: se mueve con transform (antes cambiaba su ancho = reflow en cada cuadro) */
.scroll-progress { width: 100%; transform: scaleX(0); transform-origin: 0 50%; transition: none; }
body.no-scroll .scroll-progress, body.panel-open .scroll-progress { visibility: hidden; }
/* Inicio fuera de pantalla: el acercamiento lento de la foto se pausa (script.js pone la clase) */
.hero.is-offscreen::before, .hero.is-offscreen::after { animation-play-state: paused; }

/* --- Toques de al menos 44 px --- */
@media (max-width: 820px), (orientation: portrait) and (max-width: 1100px) {
    .hero-arrow { width: 44px; height: 44px; }   /* en computadora ya miden 48 px */
}
.hero-down { width: 44px; height: 44px; margin-left: -22px; }
.xp-tab, .xp-need, .xp-cell, .x3d-tw { min-height: 44px; }
.seg-btn { min-width: 44px; min-height: 44px; }
.map-open { min-height: 44px; display: inline-flex; align-items: center; }
.modal-close, .unit-panel-close, .floor-panel-close, .fp-step button, .up-zoom,
.lb-top .lightbox-close, .chatbot-close, .chatbot-reset { width: 44px; height: 44px; }
.up-share { min-height: 44px; }
/* "Marina Vallarta…" de El Edificio: área de toque mayor sin cambiar cómo se ve */
.building-place { position: relative; }
.building-place::after { content: ''; position: absolute; inset: -11px 0; }
@media (max-width: 760px), (pointer: coarse) {
    .x3d-tools button { width: 44px; height: 44px; }
    .lb-top .lightbox-close, .lb-fs { width: 44px; height: 44px; }
    .footer-nav, .footer-contact, .footer-connect { gap: 0; }
    .footer-nav a, .footer-contact-item, .footer-legal { min-height: 44px; display: flex; align-items: center; }
    .footer-admin { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 640px) {
    /* Puntos del carrusel: se veían blancos sobre el fondo claro; área de toque más alta */
    .av-dot { background: rgba(26,26,26,0.22); }
    .av-dot::before { inset: -18px -4px; }
}

/* --- Textos de al menos 12 px en celular --- */
@media (max-width: 760px), (pointer: coarse) {
    .xp-tower small, .xp-cut-roof, .xp-cut-ground, .seg-btn, .av-filter-group .seg-btn,
    .av-card-tower-pill, .av-card-tour, .field label small, .chatbot-fab-badge,
    .x3d-tag, .x3d-place, .x3d-legend, .x3d-hint,
    .fp-pin, .fp-row em, .fp-side, .fp-card-top em { font-size: 0.75rem; }
}

/* Celular acostado: el menú cabe sin tener que desplazarlo */
@media (orientation: landscape) and (max-height: 500px) {
    .drawer-head { padding-block: 0.35rem; }
    .drawer-logo { height: 36px; }
    .drawer-nav { padding-block: 0.25rem; }
    .drawer-nav a { padding-block: 0.5rem; min-height: 44px; align-items: center; }
}
/* Celular acostado: el chat también a pantalla completa. Antes quedaba una ventanita de
   ~200 px de alto en la que no se veía el campo para escribir */
@media (orientation: landscape) and (max-height: 500px) {
    .chatbot[data-state="open"] .chatbot-panel {
        position: fixed;
        left: 0; right: 0; bottom: auto;
        top: var(--cb-vv-top, 0px);
        width: 100%;
        height: var(--cb-vv-h, 100dvh);
        max-height: none;
        padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
        border-radius: 0;
        border: 0;
        transform: none;
        transition: opacity 0.2s ease;
    }
    .chatbot[data-state="open"] .chatbot-head { padding-block: calc(0.5rem + env(safe-area-inset-top, 0px)) 0.5rem; }
    .chatbot[data-state="open"] .chatbot-fab { display: none; }
    .chatbot.is-typing[data-state="open"] .chatbot-foot { display: none; }
    body.chat-open { overflow: hidden; }
}
/* Celular: sin desenfoque en la barra de arriba (su fondo es casi opaco, el blur no se notaba y en
   el iPhone se recalcula en cada cuadro del scroll) ni detrás de los formularios, que también se
   abren encima del 3D */
@media (max-width: 760px), (hover: none) {
    body.scrolled .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,0.97); }
    .modal-backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0,0,0,0.72); }
}
/* 3D a pantalla completa: un pellizco que empieza sobre los botones o la barra de torre/nivel
   no debe acercar la página entera (el 3D tiene su propio zoom) */
.x3d.is-full .x3d-tools, .x3d.is-full .x3d-pick { touch-action: none; }
/* Celular acostado: botones del 3D fuera de la muesca del iPhone */
@media (orientation: landscape) and (max-height: 500px) {
    .x3d.is-full .x3d-tools { right: max(0.6rem, env(safe-area-inset-right, 0px)); }
    .x3d.is-full .x3d-hint, .x3d.is-full .x3d-legend, .x3d.is-full .x3d-unlock { left: max(0.6rem, env(safe-area-inset-left, 0px)); }
}
/* 3D a pantalla completa en celular: el edificio se dibuja solo arriba de la barra de torre/nivel.
   Antes el canvas seguía por debajo de la barra y el edificio quedaba centrado contando la parte
   tapada: los pisos bajos caían debajo de la tarjeta del piso elegido */
@media (max-width: 760px) {
    .x3d.is-full .x3d-stage { bottom: var(--x3d-pick-h, 190px); }
}
/* Celular acostado: torre y niveles en una sola fila (antes la barra ocupaba más de la mitad de
   la pantalla y el edificio quedaba en una franja de ~150 px) */
@media (orientation: landscape) and (max-height: 500px) {
    .x3d.is-full .x3d-pick {
        flex-direction: row; justify-content: center; gap: 0.6rem;
        padding: 0.4rem max(0.6rem, env(safe-area-inset-right, 0px)) calc(0.4rem + env(safe-area-inset-bottom, 0px)) max(0.6rem, env(safe-area-inset-left, 0px));
    }
    .x3d.is-full .x3d-levels { flex-wrap: nowrap; gap: 0.3rem; }
    .x3d.is-full .x3d-lv { flex: 0 0 auto; min-width: 54px; min-height: 44px; padding: 0.2rem 0.35rem; }
}
/* Táctil: los botones +/−/foto del 3D no se quedan dorados después de tocarlos (hover pegado) */
@media (hover: none) { .x3d-tools button:hover { background: rgba(255,255,255,0.92); } }
/* Ficha y chat en celular: textos chicos que faltaban (modelos, 360°, torres, penthouses) a 12 px */
@media (max-width: 760px), (pointer: coarse) {
    .up-model-btn span, .up-towers-lbl, .up-tw small, .up-ph-list h3, .up-ph em, .cb-unit-card small, .cb-cta-text small { font-size: 0.75rem; }
    .up-model-360 { font-size: 0.75rem; padding: 0.12rem 0.25rem; }
    .up-actions .up-tour { font-size: 0.75rem; letter-spacing: 0.01em; }
    .up-actions .up-tour span { text-wrap: balance; }
    .up-disclaimer { font-size: 0.75rem; }
}

/* =========================================================
   EXPLORA TU ESPACIO · edificio desplegado + lista (§9c script.js, 19-oct-2026)
   ========================================================= */
.bx { max-width: var(--container-max); margin: 0 auto; }
.bx-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1rem; margin-bottom: 1rem; }
.bx-view .seg-btn i { margin-right: 0.3em; font-size: 0.85em; }
.bx-towers { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.bx-tw {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
    padding: 0.5rem 0.95rem; min-height: 44px; border-radius: 10px;
    border: 1px solid var(--mg-line); background: var(--mg-surface); color: var(--c-ink);
    font: inherit; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.bx-tw b { font-weight: 600; font-size: 0.92rem; line-height: 1.1; }
.bx-tw small { font-size: 0.7rem; color: var(--mg-muted); line-height: 1.1; }
.bx-tw:hover { border-color: var(--c-gold); }
.bx-tw.is-active { border-color: var(--c-gold); background: #fff; box-shadow: 0 0 0 2px var(--c-gold) inset; }
.bx-body {
    position: relative; background: var(--mg-surface); border: 1px solid var(--mg-line); border-radius: 16px;
    padding: 1rem 1.1rem 1.1rem; min-height: 240px;
}
.bx-loading { display: flex; justify-content: center; padding: 4rem 0; }
.bx-bar, .bx-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; margin-bottom: 0.7rem; }
.bx-hint { margin: 0; font-size: 0.82rem; color: var(--mg-muted); }
.bx-hint i { color: var(--c-gold-deep, #9F8550); margin-right: 0.3em; }
.bx-legend { display: flex; gap: 0.9rem; font-size: 0.78rem; color: var(--mg-muted); }
.bx-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.bx-unlock {
    display: inline-flex; align-items: center; gap: 0.45rem; min-height: 38px; padding: 0.4rem 0.9rem;
    border-radius: 999px; border: 1px solid var(--c-gold); background: #fff; color: var(--c-ink);
    font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.bx-unlock:hover { background: var(--c-gold); }
.bx-unlock i { color: var(--c-gold-deep, #9F8550); }
.bx-unlock:hover i { color: var(--c-ink); }

/* Dibujo de la fachada */
.bx-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; border-radius: 12px; background: linear-gradient(#f9f7f2, #f1ede4); border: 1px solid var(--mg-line); }
.bx-svg { display: block; max-width: none; font-family: var(--font-body, inherit); }
.bx-face { fill: rgba(255,255,255,0.55); stroke: var(--mg-line); stroke-width: 1; }
.bx-face-lbl { font-size: 10.5px; fill: var(--mg-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.bx-ground { fill: #6b655b; }
.bx-ground-lbl { font-size: 8px; fill: #fff; letter-spacing: 0.05em; text-transform: uppercase; }
.bx-lv { cursor: pointer; }
.bx-lv rect { fill: #fff; stroke: var(--mg-line); transition: fill 0.15s, stroke 0.15s; }
.bx-lv text { font-size: 11px; font-weight: 600; fill: var(--c-ink); pointer-events: none; }
.bx-lv:hover rect, .bx-lv:focus-visible rect { fill: var(--c-gold); stroke: var(--c-gold); }
.bx-lv:focus-visible { outline: none; }
.bx-u { cursor: pointer; }
.bx-u rect { fill: #e9e3d6; stroke: #cfc6b4; stroke-width: 1; transition: fill 0.15s, stroke 0.15s, filter 0.15s; }
.bx-u text { font-size: 11px; font-weight: 600; fill: var(--c-ink); pointer-events: none; }
.bx-u--available rect { fill: #cfe9d6; stroke: #8fc6a2; }
.bx-u--reserved rect { fill: #f6e5b8; stroke: #d9b85a; }
.bx-u--sold rect { fill: #f0c9c6; stroke: #d98e89; }
.bx-u--sold { cursor: not-allowed; }
.bx-u--sold text { fill: #7a4a46; opacity: 0.8; }
.bx-u:hover rect, .bx-u:focus-visible rect, .bx-u.is-sel rect { stroke: var(--c-ink); stroke-width: 1.5; filter: brightness(0.96); }
.bx-u--unit:hover rect, .bx-u--unit.is-sel rect { fill: var(--c-gold-soft); }
.bx-u:focus-visible { outline: none; }
.bx-tip {
    position: absolute; top: 0; left: 0; z-index: 3; pointer-events: none; min-width: 150px; max-width: 220px;
    padding: 0.5rem 0.7rem; border-radius: 10px; background: var(--c-ink); color: #fff; font-size: 0.78rem; line-height: 1.35;
    box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}
.bx-tip b { display: block; font-weight: 600; }
.bx-tip span { display: block; opacity: 0.85; }
.bx-tip em { display: inline-block; margin-top: 0.25rem; font-style: normal; font-weight: 600; font-size: 0.72rem; }
.bx-tip em.is-available { color: #9ad8ad; }
.bx-tip em.is-reserved { color: #f0d282; }
.bx-tip em.is-sold { color: #f3a39d; }
.bx-card {
    margin-top: 0.8rem; padding: 0.75rem 1rem; border-radius: 12px; background: #fff; border: 1px solid var(--mg-line);
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.2rem;
}
.bx-card-empty { margin: 0; font-size: 0.85rem; color: var(--mg-muted); }
.bx-card-top { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.bx-card-top b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.bx-card-top span { font-size: 0.82rem; color: var(--mg-muted); }
.bx-card-top em { font-style: normal; font-size: 0.74rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 999px; background: #eee; }
.bx-card--available .bx-card-top em { background: #cfe9d6; color: #1f5c33; }
.bx-card--reserved .bx-card-top em { background: #f6e5b8; color: #6a4e05; }
.bx-card--sold .bx-card-top em { background: #f0c9c6; color: #7a2b26; }
.bx-card p { margin: 0; font-size: 0.86rem; color: var(--c-ink); }
.bx-card .fp-side { display: inline; margin-left: 0.6rem; }
.bx-card .bx-card-go { margin-left: auto; min-height: 40px; padding: 0.45rem 1rem; font-size: 0.82rem; }

/* Lista */
.bx-filter { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--mg-muted); }
.bx-filter select {
    min-height: 36px; padding: 0.3rem 0.6rem; border-radius: 8px; border: 1px solid var(--mg-line); background: #fff;
    font: inherit; font-size: 0.85rem; color: var(--c-ink);
}
.bx-count { font-size: 0.8rem; color: var(--mg-muted); }
.bx-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--mg-line); border-radius: 12px; background: #fff; }
.bx-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.bx-table th { text-align: left; padding: 0.6rem 0.75rem; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mg-muted); border-bottom: 1px solid var(--mg-line); white-space: nowrap; }
.bx-table td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--mg-line); vertical-align: middle; white-space: nowrap; }
.bx-table td small { display: block; font-size: 0.72rem; color: var(--mg-muted); white-space: normal; }
.bx-table td b { font-weight: 600; }
.bx-table tr:last-child td { border-bottom: 0; }
.bx-row { cursor: pointer; transition: background 0.12s; }
.bx-row:hover, .bx-row:focus-visible { background: #faf7f0; outline: none; }
.bx-row--sold { cursor: default; opacity: 0.6; }
.bx-row td:last-child { color: var(--c-gold-deep, #9F8550); text-align: right; }
.bx-st { font-style: normal; font-size: 0.74rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 999px; background: #eee; }
.bx-st--available { background: #cfe9d6; color: #1f5c33; }
.bx-st--reserved { background: #f6e5b8; color: #6a4e05; }
.bx-st--sold { background: #f0c9c6; color: #7a2b26; }
.bx-table .fp-side { margin: 0; }
.bx-more { display: block; margin: 1rem auto 0; color: var(--c-ink); border-color: rgba(0,0,0,0.2); }
.bx-more:hover { background: var(--c-ink); color: #fff; }
.bx-empty { margin: 1.5rem 0 0; text-align: center; color: var(--mg-muted); font-size: 0.9rem; }

/* Sección Modelos (cards de distribuciones) */
.models { padding-top: 0; }
.models .section-head { margin-bottom: 1.4rem; }

@media (max-width: 760px) {
    .bx-top { flex-direction: column; align-items: stretch; }
    .bx-view { align-self: center; }
    .bx-towers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
    .bx-body.is-list ~ .bx-towers, .bx-towers.has-all { grid-template-columns: repeat(4, 1fr); }
    .bx-tw { align-items: center; text-align: center; padding: 0.45rem 0.4rem; }
    .bx-tw small { font-size: 0.64rem; }
    .bx-body { padding: 0.8rem 0.7rem 0.9rem; border-radius: 12px; }
    .bx-hint { font-size: 0.78rem; }
    .bx-legend { gap: 0.6rem; font-size: 0.72rem; }
    .bx-card .bx-card-go { margin-left: 0; width: 100%; justify-content: center; }
    .bx-th-side { display: none; }
    .bx-u text, .bx-lv text { font-size: 12px; }
    .bx-table { font-size: 0.8rem; }
    .bx-table th, .bx-table td { padding: 0.5rem 0.55rem; }
}

/* 3D dentro del explorador: la foto-póster no se muestra, el botón "ver foto" sobra */
.av-hero--poster { display: none !important; }
.bx .x3d { margin: 0; }
.bx .x3d .x3d-photo { display: none; }
.bx .x3d-pick { margin-top: 0.6rem; }
.x3d-legend[hidden], .bx-towers[hidden], .bx-body[hidden], .x3d[hidden] { display: none; }
.x3d:not(.is-loading) .x3d-loading { display: none; }
.x3d:not(.is-ready) .x3d-labels, .x3d:not(.is-ready) .x3d-tools, .x3d:not(.is-ready) .x3d-hint, .x3d:not(.is-ready) .x3d-places { visibility: hidden; }
.x3d-launch[hidden] { display: none; }

/* =========================================================
   CONTRASTE, BORDES, FOCO Y ÁREAS DE TOQUE (auditoría de diseño 19-oct-2026)
   Todo dentro de la paleta: dorado (#7A6433 para texto chico), negro y neutros.
   ========================================================= */
@media (orientation: portrait) and (max-width: 1100px) and (min-width: 821px) {
    .hero-down { top: auto; bottom: 1rem; }
}
/* Texto chico dorado o gris → tonos que pasan AA (4.5:1) sobre crema y blanco */
.av-card-cta, .av-card-tower-pill, .availability .av-card-cta, .availability .av-card-tower-pill,
.form-disclaimer a, .contact .form-disclaimer a, .modal .form-disclaimer a,
.footer-contact-item i, .contact-method .contact-icon, .loc-address i { color: var(--c-gold-text, #7A6433); }
.av-card-tower-pill { font-size: 0.75rem; }
.form-disclaimer a { display: inline-block; padding: 0.6rem 0; }
.footer-nav a:hover, .footer-contact-item:hover, .footer-legal:hover, .contact-method:hover { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-disclaimer, .footer-bottom > span, #contact label small { color: var(--mg-muted, #6B665E); }
.building-stats-foot { color: var(--c-ink); font-style: normal; }
/* Bordes de botones y campos que se distinguen de su fondo (≥ 3:1) */
.btn--ghost.btn--light, .contact .btn--ghost { border-color: var(--c-ink); color: var(--c-ink); }
.btn--wa i, .contact-method--wa .contact-icon { color: var(--c-ink); }
.contact-method--wa:hover .contact-icon { background: var(--c-ink); color: #fff; }
.contact-form :is(input, select, textarea), .mini-form :is(input, select, textarea), .bx select, .cchat-field,
.cchat-field :is(input, select, textarea) { border-color: #8C857A; }
.x3d-lv { border-color: #8C857A; min-height: 44px; }
.up-tour { border-color: var(--c-gold-text, #7A6433); font-size: 0.8125rem; }
.cchat-cta { background: var(--c-ink); color: #fff; }
.cchat-choice { border-color: var(--c-gold-text, #7A6433); }
.cchat-skip { color: var(--mg-muted, #6B665E); }
@media (max-width: 820px), (orientation: portrait) and (max-width: 1100px) {
    .btn-hero { border-color: var(--c-ink); }
}
/* Controles encima de fotos, mapa y 3D: fondo oscuro y contorno para que se vean en cualquier foto */
.hero-dot { background: rgba(255,255,255,0.95); border-color: rgba(10,10,10,0.6); }
.hero-dot.is-active { background: var(--c-gold); border-color: #0A0A0A; }
.hero-dot::after { inset: -14px; }
.hero-arrow { background: rgba(10,10,10,0.6); border-color: rgba(255,255,255,0.85); }
.lightbox-arrow { background: rgba(10,10,10,0.6); border-color: rgba(255,255,255,0.6); }
.map-open { background: var(--c-ink); color: #fff; }
.map-open:hover { background: var(--c-gold); color: var(--c-ink); }
.map-badge i { color: var(--c-ink); }
.amen-card-icon { background: rgba(10,10,10,0.75); color: var(--c-gold-soft); }
.x3d-tools button { box-shadow: 0 0 0 1px rgba(10,10,10,0.35), 0 4px 14px rgba(0,0,0,0.15); }
/* Área de toque de 44 px sin cambiar cómo se ven */
.nav-burger, body.scrolled .nav-burger { width: 44px; height: 44px; padding: 12px 8px; box-sizing: border-box; margin-right: -8px; }
.chatbot-bubble-close { width: 44px; height: 44px; }
/* Logos del pie en negro (dentro de la paleta; el dorado pálido no se veía sobre arena) */
.footer-logo, .footer-group-logo { filter: brightness(0); opacity: 0.88; }
/* Foco de teclado visible en fondos oscuros, blancos y en la lista */
:where(.drawer, .lightbox, .chatbot-head) :focus-visible { outline-color: var(--c-gold); }
#amenities .amen-card:focus-visible { outline-color: var(--c-ink); box-shadow: none; }
.bx-row:focus-visible { outline: 2px solid var(--c-gold-text, #7A6433); outline-offset: -2px; background: #F3EEE4; }
.locale-btn { border-color: rgba(255,255,255,0.35); }
/* Segunda pasada (re-escaneo): campos del modal de datos y del chat, WhatsApp de Contacto, cerrar del menú, pie */
.modal-content--mini .mini-form :is(input, select, textarea), .mini-form :is(input, select, textarea),
#chatbotPanel :is(input, select, textarea), .cchat-field, .cchat-prefix, .cb-text-input input { border-color: #8C857A; }
.cchat-choice { border-color: var(--c-gold-text, #7A6433); }
.contact .btn--ghost i, .contact .btn--ghost .fa-whatsapp { color: var(--c-ink); }
.contact-method { border-color: #8C857A; }
.drawer-close { border-color: rgba(255,255,255,0.55); }
.footer-admin, .footer .footer-admin { color: var(--mg-muted, #6B665E); }
.footer-admin:hover { color: var(--c-ink); text-decoration: underline; }
.up-zoom, .unit-panel-close { box-shadow: 0 0 0 1px rgba(10,10,10,0.25), 0 4px 12px rgba(0,0,0,0.12); }
@media (max-width: 820px), (orientation: portrait) and (max-width: 1100px) {
    .hero-down { border-color: rgba(10,10,10,0.55); }
}
@media (min-width: 821px) and (orientation: portrait) and (max-width: 1100px) {
    .hero { height: auto; }
}
/* Vista previa del depto al pasar el cursor en el 3D (isométrico + datos) */
.x3d-tip.x3d-tip--unit { flex-direction: row; align-items: center; gap: 0.75rem; padding: 0.6rem 0.9rem 0.6rem 0.6rem; max-width: 340px; }
.x3d-tip-img { width: 104px; height: 104px; object-fit: contain; border-radius: 8px; background: #F7F4EE; flex-shrink: 0; }
.x3d-tip-txt { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.x3d-tip-txt b { font-size: 0.95rem; font-weight: 700; }
.x3d-tip-txt small { color: var(--mg-muted, #6B665E); font-size: 0.75rem; }
.x3d-tip-txt span { color: var(--c-ink); font-weight: 500; font-size: 0.8rem; }
.x3d-tip-txt em { font-style: normal; font-weight: 700; font-size: 0.78rem; }
.x3d-tip-txt em.is-available { color: #1f7a43; }
.x3d-tip-txt em.is-reserved { color: #8a5d00; }
.x3d-tip-txt em.is-sold { color: #b3261e; }
.x3d-tip-txt i { font-style: normal; font-size: 0.72rem; color: var(--c-gold-text, #7A6433); margin-top: 0.15rem; }
.x3d .x3d-photo { display: none !important; }   /* la foto ya no es parte del explorador */
/* Gate de datos compacto (20-oct): 2 campos, sin etiquetas encima, sin logo grande */
.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; }
.modal-content--gate { max-width: 380px; padding: 1.6rem 1.5rem 1.2rem; }
.gate-head { text-align: center; margin-bottom: 1.1rem; }
.gate-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #F3EEE4; color: var(--c-gold-text, #7A6433); font-size: 1.05rem; margin-bottom: 0.6rem; }
.gate-head h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; line-height: 1.2; margin: 0 0 0.35rem; color: var(--c-ink); }
.gate-head p { margin: 0; font-size: 0.88rem; line-height: 1.45; color: var(--mg-muted, #6B665E); }
.gate-form { display: flex; flex-direction: column; gap: 0.6rem; }
.gate-form input, .gate-form select { width: 100%; min-height: 48px; padding: 0 0.9rem; font-size: 16px; border-radius: 10px; }
.gate-phone { display: grid; grid-template-columns: 104px 1fr; gap: 0.5rem; }
.gate-form .btn { margin-top: 0.25rem; min-height: 50px; }
.gate-note { margin: 0.15rem 0 0; text-align: center; font-size: 0.75rem; color: var(--mg-muted, #6B665E); }
.gate-note a { color: var(--c-gold-text, #7A6433); text-decoration: underline; }
.gate-form .form-status:empty { display: none; }
@media (max-width: 420px) { .modal-content--gate { padding: 1.4rem 1.1rem 1rem; } }

/* 3D · revisión UX 20-oct (cielo y pasto nuevos) */
/* Tooltip: sin cortes feos ("Ingreso TN-\n100", "104.62\nm²") y conteo en verde solo con estatus */
.x3d-tip.x3d-tip--unit { max-width: 400px; }
.x3d-tip-txt small, .x3d-tip-txt span { white-space: nowrap; }
.x3d-tip span { color: var(--c-ink); font-weight: 500; }
.x3d-tip span.is-avail { color: var(--st-available); font-weight: 600; }
.x3d-tip em.is-locked { font-style: normal; font-weight: 600; font-size: 0.76rem; color: var(--c-ink); display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.1rem; }
.x3d-tip em.is-locked i { font-size: 0.7rem; color: var(--c-gold-text, #7A6433); margin: 0; }
/* Leyenda más legible sobre el cielo */
.x3d-legend { background: rgba(255,255,255,0.95); color: var(--c-ink); }
/* Sin datos: botón "Ver disponibilidad" en el lugar de la leyenda */
.x3d-unlock {
    position: absolute; left: 0.9rem; top: 0.9rem; z-index: 3;
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.45rem 0.85rem; border: 0; border-radius: 999px; cursor: pointer;
    background: rgba(17,17,17,0.86); color: #fff; font: inherit; font-size: 0.78rem; font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.x3d-unlock i { color: var(--c-gold, #C9A24B); font-size: 0.72rem; }
.x3d-unlock:hover { background: #111; }
.x3d-unlock[hidden] { display: none; }
.x3d:not(.is-ready) .x3d-unlock { opacity: 0; pointer-events: none; }
@media (max-width: 760px) {
    .x3d-unlock { left: 0.6rem; top: calc(3.2rem + env(safe-area-inset-top)); font-size: 0.72rem; padding: 0.4rem 0.75rem; }
}
/* «Colorear todos» dentro de la leyenda del 3D */
.x3d-legend { pointer-events: auto; align-items: center; }
.x3d-paintall { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: 0.2rem; min-height: 30px; padding: 0.2rem 0.7rem; border: 0; border-radius: 999px; background: var(--c-ink); color: #fff; font: inherit; font-size: 0.72rem; font-weight: 700; cursor: pointer; }
.x3d-paintall[aria-pressed="true"] { background: #fff; color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-ink); }
.x3d-paintall:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }
@media (max-width: 760px) { .x3d-paintall { min-height: 32px; font-size: 0.68rem; } }

/* ============================================================
   QA diseño 21-oct · nada tapa nada, todo se lee, todo se toca
   ============================================================ */
/* 1. Con un modal, el menú o la galería abiertos, el WhatsApp flotante y el CTA fijo
      se ocultan (antes quedaban encima del velo, a un lado de los botones del modal). */
body.no-scroll:not(.chat-open) .chatbot,
body.no-scroll .sticky-cta { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility 0s linear .2s; }
/* 2. Al llegar a Contacto o al pie, la burbuja «¡Hola!» se retira: tapaba la dirección
      de la oficina y los datos de contacto (1366×768). El botón redondo se queda. */
body.mg-at-end .chatbot-bubble { opacity: 0 !important; visibility: hidden; pointer-events: none; }
/* 3. El último renglón del pie siempre puede quedar por encima del botón flotante. */
@media (max-width: 1100px) { .footer-bottom { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }
/* 4. Áreas de toque de 44 px. */
.footer-legal, .footer-admin { min-height: 44px; display: inline-flex; align-items: center; }
.x3d-unlock { min-height: 44px; }
.form-disclaimer a, .gate-note a { display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; }
/* 5. Jerarquía: el eslogan (H1) ya no es más chico que los títulos de sección (H2). */
.hero-slogan { font-size: clamp(2rem, 4vw, 3.6rem); }
@media (max-width: 820px), (orientation: portrait) and (max-width: 1100px) {
    .hero-slogan { font-size: clamp(2rem, 8.4vw, 2.6rem); }
}
/* 6. Celular horizontal: las flechas del hero ya no se montan sobre el eslogan. */
@media (orientation: landscape) and (max-height: 520px) {
    .hero-inner { padding-left: calc(clamp(0.75rem, 2vw, 1.5rem) + 64px); padding-right: calc(clamp(0.75rem, 2vw, 1.5rem) + 64px); }
    .hero-slogan { font-size: clamp(1.6rem, 4.2vw, 2.2rem); }
    .hero-block { margin-bottom: 3.4rem; }
    /* Modales en pantallas bajas: menos aire y scroll interno, nunca cortados */
    #unlockModal .modal-content, #unlockModal .modal-box, #unlockModal [class*="modal-card"] { max-height: calc(100dvh - 24px); overflow-y: auto; padding-top: 1.4rem; padding-bottom: 1.2rem; }
}
/* 7. Modal de datos en celular chico: el placeholder «WhatsApp (10 dígitos)» ya no se corta. */
@media (max-width: 400px) {
    .gate-phone { grid-template-columns: 102px 1fr; }
    .gate-phone select { padding-left: 0.55rem; padding-right: 1.2rem; }
    .gate-phone input { padding-left: 0.75rem; padding-right: 0.6rem; font-size: 1rem; }
    .gate-phone input::placeholder { font-size: 0.86rem; }
}
/* 8. Lista de departamentos: aviso visual de que la tabla se desliza a los lados. */
@media (max-width: 760px) {
    .bx-table-wrap { background: linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)) left / 24px 100% no-repeat local, linear-gradient(270deg, #fff 30%, rgba(255,255,255,0)) right / 24px 100% no-repeat local, radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.14), transparent) right / 10px 100% no-repeat scroll, #fff; }
}
/* 9. Movimiento reducido: sin rebotes ni pulsos. */
@media (prefers-reduced-motion: reduce) { .chatbot-fab-pulse, .hero-down { animation: none !important; } }

/* Minuta 02-oct: §20 "UN PROYECTO DE GRUPO KARUXI" en mayusculas; §17 tiempos de traslado
   quitados hasta que el cliente los confirme (vineta dorada en su lugar). */
.footer-group-title { text-transform: uppercase; letter-spacing: 0.14em; }
.poi-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-gold-deep); flex: none; align-self: center; }

/* La ficha de un departamento (21-oct) se rediseñó el 12-nov: bloque «Ficha del departamento (12-nov)» al final */
.up-model dd small { color: var(--c-gray-700, #555); font-weight: 400; }
/* Ficha de catálogo: casillas por torre son botones que llevan a la Lista */
button.up-tw { font: inherit; cursor: pointer; }
button.up-tw:hover { border-color: var(--c-gold-deep, #8a6d3b); }
.up-towers-hint { display: block; margin-top: 0.4rem; font-size: 0.72rem; color: var(--c-gray-700, #555); }
/* Tarjeta de Modelos: enlace a la Lista filtrada */
.av-card-list { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; padding: 0.55rem 0; min-height: 44px; font-size: 0.85rem; font-weight: 600; color: var(--c-gold-deep, #8a6d3b); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* Lista en celular: "Rec." ya va en la columna Modelo ("H · 2 rec."); se oculta para que quepan los m² */
@media (max-width: 600px) { .bx-table .bx-th-br { display: none; } }
.footer-group-link { display: inline-flex; border-radius: 6px; transition: opacity .2s; }
.footer-group-link:hover { opacity: .7; }
.footer-group-link:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 4px; }

/* Leyenda del 3D en celular: baja de renglón antes de los botones de zoom */
@media (max-width: 760px) {
    .x3d-legend { flex-wrap: wrap; max-width: calc(100% - 4.6rem); row-gap: 0.3rem; }
}

/* ============================================================
   Controles 3D 21-oct · nada se enciman, todo vive sobre el visor
   Arriba: leyenda (izq.) y zoom (der.) a la misma altura. Abajo: barra flotante
   torre | niveles; el aviso «Gira el edificio» va centrado justo encima de ella.
   ============================================================ */
.x3d { position: relative; }
.x3d .x3d-legend, .x3d .x3d-unlock { top: 0.9rem; left: 0.9rem; }
.x3d .x3d-legend { min-height: 40px; padding: 4px 4px 4px 14px; gap: 0.7rem; box-shadow: 0 4px 14px rgba(0,0,0,0.15); max-width: calc(100% - 5.4rem); flex-wrap: wrap; row-gap: 4px; border-radius: 22px; }
.x3d .x3d-legend .x3d-paintall { min-height: 32px; margin-left: 0; }
.x3d .x3d-legend .x3d-paintall:first-of-type { margin-left: 0.15rem; }
.x3d .x3d-unlock { min-height: 40px; }
.x3d .x3d-tools { top: 0.9rem; right: 0.9rem; }
.x3d .x3d-tools button { width: 40px; height: 40px; }
.x3d .x3d-hint, .x3d.is-full .x3d-hint {
    left: 50%; right: auto; top: auto; transform: translateX(-50%);
    bottom: calc(var(--x3d-pick-h, 64px) + 1.6rem);
    white-space: nowrap; font-size: 0.76rem; padding: 0.35rem 0.8rem;
    background: rgba(17,17,17,0.62); color: #fff; transition: opacity .2s;
}
.x3d .x3d-hint i { color: var(--c-gold, #C9A24B); }

@media (min-width: 761px) {
    .x3d .x3d-pick, .bx .x3d .x3d-pick, .x3d.is-full .x3d-pick {
        position: absolute; left: 50%; right: auto; bottom: 0.9rem; transform: translateX(-50%); z-index: 4;
        flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px;
        width: max-content; max-width: calc(100% - 1.8rem); margin: 0; padding: 6px;
        background: rgba(255,255,255,0.95); border: 0; border-radius: 18px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2); backdrop-filter: none; -webkit-backdrop-filter: none;
    }
    .x3d.is-full .x3d-pick { position: fixed; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 1401; }
    .x3d.is-full .x3d-stage { bottom: 0; }
    .x3d.is-full .x3d-legend, .x3d.is-full .x3d-unlock, .x3d.is-full .x3d-tools { top: calc(0.9rem + env(safe-area-inset-top, 0px)); }
    .x3d-pick .x3d-towers { border: 0; background: #F1EDE6; padding: 3px; }
    .x3d-pick .x3d-tw { min-height: 44px; padding: 0 1rem; }
    .x3d-pick .x3d-levels { flex-wrap: nowrap; gap: 2px; padding-left: 6px; border-left: 1px solid rgba(10,10,10,0.1); }
    .x3d-pick .x3d-lv { min-width: 58px; min-height: 50px; padding: 0.25rem 0.4rem; justify-content: center; border: 0; border-radius: 12px; background: transparent; box-shadow: none; }
    .x3d-pick .x3d-lv:hover { background: #F1EDE6; }
    .x3d-pick .x3d-lv.is-active { background: var(--c-ink); color: #fff; box-shadow: none; }
}
/* Tablet / ventana angosta: si la barra no cabe en un renglón, los niveles se deslizan */
@media (min-width: 761px) and (max-width: 900px) {
    .x3d-pick .x3d-levels { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
    .x3d-pick .x3d-levels { border-left: 0; padding-left: 0; }
}

/* Teléfono: la barra queda pegada al visor (misma tarjeta), en dos renglones compactos */
@media (max-width: 760px) {
    .x3d .x3d-legend, .x3d .x3d-unlock { top: 0.6rem; left: 0.6rem; }
    .x3d .x3d-legend { max-width: calc(100% - 4.6rem); gap: 0.5rem; font-size: 0.68rem; padding-left: 10px; }
    .x3d .x3d-tools { top: 0.6rem; right: 0.6rem; }
    .x3d .x3d-tools button { width: 44px; height: 44px; }
    .x3d .x3d-hint, .x3d.is-full .x3d-hint { top: auto; bottom: 0.7rem; font-size: 0.72rem; max-width: calc(100% - 1.2rem); overflow: hidden; text-overflow: ellipsis; }
    .x3d:not(.is-full) .x3d-stage { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
    .x3d .x3d-pick, .bx .x3d .x3d-pick {
        margin: 0; padding: 0.55rem; gap: 0.5rem; align-items: stretch;
        background: #fff; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
        box-shadow: 0 14px 40px rgba(0,0,0,0.12), 0 0 0 1px var(--mg-line, rgba(10,10,10,0.09));
    }
    .x3d.is-full .x3d-pick { border-radius: 16px 16px 0 0; background: #fff; padding: 0.55rem 0.55rem calc(0.55rem + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 20px rgba(0,0,0,0.12); }
    .x3d.is-full .x3d-legend, .x3d.is-full .x3d-unlock, .x3d.is-full .x3d-tools { top: calc(0.6rem + env(safe-area-inset-top, 0px)); }
    .x3d-pick .x3d-towers { display: flex; width: 100%; border: 0; background: #F1EDE6; padding: 3px; }
    .x3d-pick .x3d-tw { flex: 1; min-height: 40px; padding: 0 0.5rem; }
    .x3d-pick .x3d-levels, .x3d.is-full .x3d-pick .x3d-levels { flex-wrap: nowrap; justify-content: flex-start; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding-bottom: 1px; }
    .x3d-pick .x3d-levels::-webkit-scrollbar { display: none; }
    .x3d-pick .x3d-lv, .x3d.is-full .x3d-pick .x3d-lv { flex: 1 0 auto; min-width: 56px; min-height: 48px; padding: 0.25rem 0.4rem; scroll-snap-align: start; justify-content: center; }
    .x3d-pick .x3d-lv.is-active { background: var(--c-ink); color: #fff; }
}
/* Teléfono acostado a pantalla completa: barra de un renglón (torre + niveles) */
@media (orientation: landscape) and (max-height: 500px) {
    .x3d .x3d-hint, .x3d.is-full .x3d-hint { display: none; }
    .x3d.is-full .x3d-legend, .x3d.is-full .x3d-unlock, .x3d.is-full .x3d-tools { top: calc(0.5rem + env(safe-area-inset-top, 0px)); }
    .x3d.is-full .x3d-pick { bottom: 0.5rem; padding: 4px; }
    .x3d .x3d-tools { gap: 0.3rem; }
    .x3d .x3d-tools button { width: 40px; height: 40px; }
    .x3d-pick .x3d-lv { min-height: 44px; min-width: 52px; }
}
/* Chat y visor 3D: la burbuja se oculta y el botón se hace a un lado mientras se ve el 3D */
.chatbot.is-over-3d .chatbot-bubble { opacity: 0 !important; visibility: hidden !important; pointer-events: none; }
@media (min-width: 761px) { .chatbot.is-over-3d:not([data-state="open"]) .chatbot-fab { transform: scale(0.82); opacity: 0.85; } }
/* Teléfono: los 7 niveles caben completos en un renglón (sin el último cortado) */
@media (max-width: 760px) { .x3d-pick .x3d-levels, .x3d.is-full .x3d-pick .x3d-levels { gap: 0.25rem; } .x3d-pick .x3d-lv, .x3d.is-full .x3d-pick .x3d-lv { flex: 1 1 0; min-width: 44px; padding: 0.25rem 0.15rem; } }

/* ============================================================
   Nivel en el 3D (21-oct) · reemplaza a la planta sombreada como experiencia principal
   Elegir un nivel: la cámara lo encuadra y sus deptos se pintan; la tarjeta del nivel va a la
   izquierda (computadora, debajo de la leyenda y arriba de la barra) o abajo (teléfono vertical,
   con los deptos en fichas que se deslizan). El plano limpio queda como «Ver plano del nivel».
   ============================================================ */
.x3d .x3d-lvcard {
    position: absolute; z-index: 5; left: 0.9rem; width: min(330px, 36%);
    top: calc(0.9rem + 40px + 0.6rem); bottom: calc(var(--x3d-pick-h, 64px) + 1.8rem);
    display: flex; flex-direction: column; background: #fff; color: var(--c-ink, #111);
    border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); overflow: hidden;
    animation: lcIn .28s ease-out;
}
@keyframes lcIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.x3d .x3d-lvcard[hidden] { display: none; }
.x3d.is-full .x3d-lvcard { top: calc(0.9rem + 40px + 0.6rem + env(safe-area-inset-top, 0px)); bottom: calc(var(--x3d-pick-h, 64px) + 2rem + env(safe-area-inset-bottom, 0px)); }
.x3d.is-level .x3d-hint { display: none !important; }
.x3d.is-level .x3d-labels, .x3d.is-level .x3d-leaders { opacity: 0; transition: opacity .3s; }   /* de cerca, los nombres de torre solo estorban (la tarjeta dice cuál es) */
.lc-head { display: flex; align-items: center; gap: 0.4rem; padding: 0.8rem 0.7rem 0.45rem 1rem; }
.lc-title { flex: 1; min-width: 0; }
.lc-title small { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mg-muted, #6B665E); }
.lc-title h3 { margin: 0; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
.lc-step { display: flex; gap: 4px; }
.lc-step button, .lc-x {
    width: 36px; height: 36px; border: 0; border-radius: 50%; background: #F1EDE6; color: var(--c-ink, #111);
    display: grid; place-items: center; cursor: pointer; font-size: 0.8rem; padding: 0;
}
.lc-step button:disabled { opacity: 0.35; cursor: default; }
.lc-x { background: transparent; font-size: 1.5rem; line-height: 1; }
.lc-step button:not(:disabled):hover, .lc-x:hover { background: #E6E0D6; }
.lc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; padding: 0 0.8rem 0.65rem 1rem; }
.lc-sum { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; font-size: 0.8rem; color: var(--c-graphite, #3a3a3a); }
.lc-sum span { display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.lc-sum .fp-dot { width: 8px; height: 8px; }
.lc-side { flex: 0 0 auto; display: flex; margin-left: auto; padding: 3px; background: #F1EDE6; border-radius: 999px; }
.lc-side button { flex: 1; min-height: 30px; border: 0; border-radius: 999px; background: transparent; padding: 0.25rem 0.7rem; font-size: 0.75rem; font-weight: 600; color: var(--c-graphite, #3a3a3a); cursor: pointer; }
.lc-side button.is-active { background: #fff; color: var(--c-ink, #111); box-shadow: 0 1px 4px rgba(0,0,0,0.14); }
.lc-list { flex: 1; min-height: 0; margin: 0; padding: 0 0.5rem 0.5rem; list-style: none; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; border-top: 1px solid rgba(10,10,10,0.08); }
.lc-core { padding: 0.75rem 0.5rem 0.3rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mg-muted, #6B665E); }
.lc-row {
    position: relative; width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 0.6rem;
    padding: 0.45rem 0.5rem; border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
    transition: background .15s;
}
.lc-row:hover, .lc-row.is-hot { background: #F5F1EA; }
.lc-row.is-sel { background: #F1EDE6; box-shadow: inset 0 0 0 1.5px var(--c-ink, #111); }
.lc-row:focus-visible { outline: 2px solid var(--c-gold, #C9A24B); outline-offset: 1px; }
.lc-num { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 54px; height: 44px; padding: 0 0.3rem; border-radius: 10px; background: #F1EDE6; }
.lc-num b { font-size: 0.98rem; line-height: 1.1; white-space: nowrap; }
.lc-num small { font-size: 0.58rem; color: var(--mg-muted, #6B665E); white-space: nowrap; }
.lc-row--available .lc-num { background: #E2F4E9; }
.lc-row--reserved .lc-num { background: #FCEFD3; }
.lc-row--sold .lc-num { background: #F8E1E4; }
.lc-facts { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.lc-facts > span { font-size: 0.83rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-facts small { font-size: 0.72rem; color: var(--mg-muted, #6B665E); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-st { padding: 0.18rem 0.5rem; border-radius: 999px; font-size: 0.68rem; font-style: normal; font-weight: 700; white-space: nowrap; }
.lc-row--available .lc-st { background: #E2F4E9; color: #17834A; }
.lc-row--reserved .lc-st { background: #FCEFD3; color: #9A6400; }
.lc-row--sold .lc-st { background: #F8E1E4; color: #B3283A; }
.lc-row--sold { cursor: default; }
.lc-row--sold .lc-facts { opacity: 0.6; }
.lc-go { color: var(--c-gold, #C9A24B); font-size: 0.72rem; }
.lc-row--unit { grid-template-columns: auto minmax(0, 1fr) auto; }
.lc-cta { display: none; }
.lc-foot { padding: 0.45rem 0.8rem 0.6rem; border-top: 1px solid rgba(10,10,10,0.08); }
.lc-plan {
    display: inline-flex; align-items: center; gap: 0.4rem; min-height: 36px; padding: 0.3rem 0.3rem; border: 0; background: transparent;
    font-size: 0.78rem; font-weight: 600; color: var(--c-graphite, #3a3a3a); cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(10,10,10,0.25);
}
.lc-plan i { color: var(--c-gold-deep, #9A7A35); }
.lc-plan:hover { color: var(--c-ink, #111); }
/* Plano limpio (sin zonas ni números): nota arriba y leyenda abajo */
.fp-sum--plan { color: var(--mg-muted, #6B665E); font-size: 0.82rem; }
.fp-legal { margin: 0.8rem 0 0; font-size: 0.74rem; color: var(--mg-muted, #6B665E); }

/* Celular acostado: tarjeta más angosta y compacta */
@media (orientation: landscape) and (max-height: 500px) {
    .x3d .x3d-lvcard, .x3d.is-full .x3d-lvcard { width: min(280px, 38%); top: calc(0.5rem + 40px + 0.4rem + env(safe-area-inset-top, 0px)); bottom: calc(var(--x3d-pick-h, 56px) + 1rem + env(safe-area-inset-bottom, 0px)); left: max(0.6rem, env(safe-area-inset-left, 0px)); }
    .lc-head { padding: 0.45rem 0.45rem 0.25rem 0.8rem; }
    .lc-title small { display: none; }   /* la torre ya se ve activa en la barra */
    .lc-title h3 { font-size: 1.1rem; white-space: nowrap; }
    .lc-step button, .lc-x { width: 34px; height: 34px; }
    .lc-bar { padding: 0 0.6rem 0.4rem 0.8rem; }
    .lc-sum { font-size: 0.72rem; }
    .lc-side button { min-height: 28px; padding: 0.2rem 0.55rem; font-size: 0.7rem; }
    .lc-row { padding: 0.3rem 0.4rem; gap: 0.45rem; }
    .lc-num { height: 38px; min-width: 48px; }
    .lc-foot { padding: 0.2rem 0.7rem 0.3rem; }
}

/* Teléfono vertical: la tarjeta va abajo del edificio y los deptos se deslizan de lado */
@media (max-width: 760px) {
    .x3d .x3d-lvcard, .x3d.is-full .x3d-lvcard { left: 0.5rem; right: 0.5rem; width: auto; top: auto; bottom: 0.5rem; max-height: 58%; border-radius: 16px; }
    .lc-head { padding: 0.5rem 0.4rem 0.3rem 0.8rem; gap: 0.25rem; }
    .lc-title { display: flex; align-items: baseline; gap: 0.45rem; }
    .lc-title small { font-size: 0.66rem; }
    .lc-title h3 { font-size: 1.12rem; }
    .lc-step button, .lc-x { width: 40px; height: 40px; }
    .lc-bar { padding: 0 0.55rem 0.4rem 0.8rem; }
    .lc-sum { font-size: 0.72rem; gap: 0.2rem 0.6rem; }
    .lc-side button { min-height: 34px; }
    .lc-list { flex: 0 0 auto; display: flex; gap: 0.4rem; padding: 0.5rem 0.55rem; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
    .lc-list::-webkit-scrollbar { display: none; }
    .lc-list > li { flex: 0 0 auto; scroll-snap-align: start; }
    .lc-core { display: none; }
    .lc-row, .lc-row--unit {
        width: 150px; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 0.15rem 0.5rem;
        padding: 0.4rem; border: 1px solid rgba(10,10,10,0.1);
    }
    .lc-num { grid-row: span 2; min-width: 46px; height: 46px; }
    .lc-num b { font-size: 0.9rem; }
    .lc-facts > span { font-size: 0.74rem; }
    .lc-facts small { font-size: 0.66rem; }
    .lc-st { grid-column: 2; justify-self: start; padding: 0.08rem 0.4rem; font-size: 0.6rem; }
    .lc-go, .lc-mw, .lc-sd { display: none; }   /* en ficha chica: «C · 1 rec.» y m² (el lado lo dice el selector) */
    .lc-foot { padding: 0 0.8rem 0.35rem; border-top: 0; }
    .lc-plan { min-height: 32px; font-size: 0.72rem; }
}
/* Táctil (teléfono o tableta, vertical u horizontal): el depto marcado muestra «Ver ficha» */
@media (hover: none), (max-width: 760px) {
    .lc-row.is-sel .lc-cta {
        display: flex; grid-column: 1 / -1; align-items: center; justify-content: center; gap: 0.35rem; min-height: 34px; margin-top: 0.25rem;
        border-radius: 8px; background: var(--c-ink, #111); color: #fff; font-size: 0.74rem; font-weight: 600;
    }
    .lc-row.is-sel .lc-cta i { color: var(--c-gold, #C9A24B); font-size: 0.68rem; }
}

/* ============================================================
   JUNTA 27-OCT · logo dorado 1.5x, pin en El Edificio, chat junto a la ficha,
   ficha de modelo más clara
   ============================================================ */
/* 1. Logo: siempre dorado (colores de la marca). 27-oct: 1.5x y luego -15 % a pedido de Edgar (84 px; en celular 66 px).
      La barra crece para contenerlo: el logo no se sale de la barra ni toca el menú. */
:root { --nav-height: 100px; }
.nav-logo--gold,
body:not(.scrolled) .nav-logo--gold {
    height: 84px;
    max-height: calc(var(--nav-height) - 14px);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35)) drop-shadow(0 2px 12px rgba(0,0,0,0.35));
}
body.scrolled .nav-logo--gold { height: 80px; filter: none; }
@media (min-width: 1101px), (min-width: 821px) and (orientation: landscape) {
    /* velo superior un poco más alto: el logo dorado se lee sobre cielos claros */
    .hero-veil { background:
        linear-gradient(180deg, rgba(0,0,0,0.46) 0%, rgba(0,0,0,0.16) 11%, rgba(0,0,0,0) 18%),
        radial-gradient(ellipse 75% 70% at 0% 100%, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.32) 45%, rgba(0,0,0,0) 75%); }
}
/* Teléfono / tableta vertical: barra blanca y la foto empieza DEBAJO de la barra (el logo no tapa la foto) */
@media (max-width: 820px), (orientation: portrait) and (max-width: 1100px) {
    :root { --nav-height: 76px; }
    .nav, body:not(.scrolled) .nav, body.scrolled .nav { background: #fff; border-bottom: 1px solid var(--mg-line); }
    .building-karuxi { font-size: 0.74rem; letter-spacing: 0.08em; }
    .nav-logo--gold, body:not(.scrolled) .nav-logo--gold, body.scrolled .nav-logo--gold { height: 66px; max-height: calc(var(--nav-height) - 10px); filter: none; }
    .nav-burger span, body:not(.scrolled) .nav-burger span { background: var(--c-ink); box-shadow: none; }
    .hero { padding-top: calc(var(--nav-height) + 56.25vw); }
    .hero::before, .hero::after { top: var(--nav-height); }
    .hero-arrow { top: calc(var(--nav-height) + 28.125vw); }
    .hero-dots { top: calc(var(--nav-height) + 56.25vw - 2rem); }
}
@media (max-width: 380px) {
    :root { --nav-height: 70px; }
    .nav-logo--gold, body:not(.scrolled) .nav-logo--gold, body.scrolled .nav-logo--gold { height: 60px; }
}

/* 3. Pin "Marina Gold" sobre el conjunto en la foto aérea (script.js: initBuildingPin) */
.building-pin {
    position: absolute; left: 51.5%; top: 50%; z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    transform: translate(-50%, -100%);
    pointer-events: none; opacity: 0; transition: opacity .4s ease;
}
.building-pin.is-placed { opacity: 1; }
.building-pin-label {
    padding: 0.38rem 0.8rem; border-radius: 999px;
    background: var(--c-ink); color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35); border: 1px solid rgba(197,165,114,0.7);
}
.building-pin-mark { color: var(--c-gold); font-size: 2.1rem; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5)); animation: mgPinBounce 2.4s ease-in-out infinite; }
@keyframes mgPinBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .building-pin-mark { animation: none; } }
@media (max-width: 600px) { .building-pin-label { font-size: 0.72rem; padding: 0.3rem 0.65rem; } .building-pin-mark { font-size: 1.7rem; } }

/* 4. Frase de Grupo Karuxi arriba del título de El Edificio */
.building-karuxi {
    margin: 0 0 0.8rem; color: var(--c-gold-text); font-size: 0.82rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.5;
}

/* 5. Chat junto a la ficha: con un modal abierto el chat CERRADO se oculta, pero el abierto se ve */
body.no-scroll:not(.chat-open) .chatbot { opacity: 1; visibility: visible; pointer-events: auto; }
body.no-scroll .chatbot:not([data-state="open"]) { opacity: 0; visibility: hidden; pointer-events: none; }
@media (min-width: 901px) {
    .unit-panel.is-split { padding-right: 420px; }
    .unit-panel.is-split .unit-panel-card { max-width: min(860px, calc(100vw - 460px)); }
}

/* 6. Ficha de modelo: jerarquía clara */
.mx-head .up-wing { display: inline-block; margin-bottom: 0.25rem; color: var(--c-gold-text); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.mx-head .up-code { margin: 0; }
.mx-sub { margin: 0.3rem 0 0; color: var(--c-gray-700, #555); font-size: 0.92rem; }
.up-model--mx h3 { display: none; }
.mx { display: flex; flex-direction: column; gap: 1rem; }
.mx.is-swap, .mx-head.is-swap { animation: mxSwap .35s cubic-bezier(.22,1,.36,1); }
@keyframes mxSwap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mx-variant { margin: 0; font-size: 0.8rem; color: var(--c-gold-text); font-weight: 600; }
.mx-tiles { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 0.5rem; }
.mx-tile {
    display: flex; flex-direction: column; justify-content: center; gap: 0.15rem;
    padding: 0.75rem 0.85rem; border-radius: 12px; background: var(--mg-bg, #F7F4EE); border: 1px solid rgba(197,165,114,0.35);
}
.mx-tile b { font-family: var(--font-display); font-size: 1.55rem; font-weight: 500; line-height: 1.05; color: var(--c-ink); white-space: nowrap; }
.mx-tile span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-gray-700, #555); }
.mx-tile--area { background: var(--c-ink); border-color: var(--c-ink); }
.mx-tile--area b { color: var(--c-gold-soft, #D9C193); }
.mx-tile--area span { color: rgba(255,255,255,0.75); }
.mx-range { margin: -0.3rem 0 0; font-size: 0.84rem; color: var(--c-gray-700, #555); }
.mx-range b { color: var(--c-ink); }
.mx-block { padding-top: 0.9rem; border-top: 1px solid var(--mg-line, rgba(10,10,10,0.09)); }
.mx-block h4 { margin: 0 0 0.6rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-ink); }
.mx-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: #eee; }
.mx-bar i { display: block; height: 100%; transition: width .45s cubic-bezier(.22,1,.36,1); }
.mx-bar-in { background: var(--c-ink); }
.mx-bar-out { background: var(--c-gold); }
.mx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1rem; margin: 0.6rem 0 0; }
.mx-split div { display: flex; flex-direction: column; }
.mx-split dt { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--c-gray-700, #555); }
.mx-split dd { margin: 0; font-weight: 700; font-size: 0.98rem; color: var(--c-ink); }
.mx-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.mx-dot--in { background: var(--c-ink); }
.mx-dot--out { background: var(--c-gold); }
.mx-desc { margin: 0.7rem 0 0; font-size: 0.88rem; line-height: 1.55; color: var(--c-gray-700, #555); }
.mx-where { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mx-tw {
    flex: 1 1 0; min-width: 112px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.55rem; align-items: center;
    padding: 0.55rem 0.7rem; border-radius: 12px; border: 1px solid rgba(10,10,10,0.12); background: #fff; text-align: left; cursor: pointer; font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.mx-tw:hover, .mx-tw:focus-visible { border-color: var(--c-gold); box-shadow: 0 6px 16px rgba(0,0,0,0.08); transform: translateY(-1px); outline: none; }
.mx-tw b { grid-row: span 2; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--c-gold-deep); line-height: 1; }
.mx-tw span { font-size: 0.84rem; font-weight: 700; color: var(--c-ink); }
.mx-tw small { font-size: 0.7rem; color: var(--c-gray-700, #555); }
.mx-levels { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem; margin: 0.6rem 0 0; font-size: 0.82rem; color: var(--c-ink); }
.mx-levels i { color: var(--c-gold-deep); }
.mx-levels span { flex-basis: 100%; color: var(--c-gray-700, #555); font-size: 0.76rem; }
.up-models-lbl { margin: 0.2rem 0 -0.2rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-gold-text); }
.mx-list {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.9rem; border-radius: 999px;
    border: 1px solid rgba(10,10,10,0.15); background: #fff; color: var(--c-ink); font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.mx-list:hover { border-color: var(--c-gold); }
.mx-list i { color: var(--c-gold-deep); }
@media (max-width: 720px) {
    .mx-tiles { grid-template-columns: 1fr 1fr 1.25fr; gap: 0.4rem; }
    .mx-tile { padding: 0.6rem 0.65rem; }
    .mx-tile b { font-size: 1.3rem; }
    .mx-tile span { font-size: 0.64rem; }
    .mx-tw { min-width: 96px; }
}

.up-model--mx { padding: 0.9rem 0 0.2rem; }
/* Celular: la ficha de modelo sigue la misma jerarquía (nombre -> cifras -> distribución -> dónde -> lista -> precio y CTA) */
@media (max-width: 720px) {
    .unit-panel-body:not(.is-unitsheet) { grid-template-areas: "visual" "head" "side" "tail" "buy"; }
    .unit-panel-body:not(.is-unitsheet) .up-tail { padding-top: 0.4rem; }
}

/* ============================================================
   Barra del 3D (27-oct) · torres y niveles a la IZQUIERDA, «360°» a la DERECHA
   .x3d-pick ya no es la píldora: en computadora es una franja transparente (no tapa clics al 3D)
   con dos piezas: .x3d-pick-bar (torre | niveles) y .x3d-tour (botón 360° + lista de recorridos).
   En teléfono vertical: renglón 1 = torres + 360°, renglón 2 = niveles.
   ============================================================ */
.x3d-tour { position: relative; }
.x3d-360-btns { display: flex; align-items: stretch; height: 100%; border-radius: 18px; background: var(--c-ink, #111); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.22); overflow: hidden; }
.x3d-360-btns button {
    display: flex; align-items: center; gap: 0.55rem; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer;
    padding: 0 1rem; min-height: 44px; transition: background .15s;
}
.x3d-360-btns button:hover { background: rgba(255,255,255,0.1); }
.x3d-360-btns button:focus-visible { outline: 2px solid var(--c-gold, #C9A24B); outline-offset: -3px; }
.x3d-360-btns i.fa-vr-cardboard { color: var(--c-gold, #C9A24B); font-size: 1.15rem; }
.x3d-360-btns span { font-size: 1.02rem; font-weight: 700; letter-spacing: 0.01em; }
.x3d-360-main small { font-size: 0.74rem; font-weight: 500; color: rgba(255,255,255,0.72); }
.x3d-tour.is-open .x3d-360-main { background: rgba(255,255,255,0.12); }

/* Lista de recorridos: sube desde el botón */
.x3d-360menu {
    position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 30;
    width: 372px; max-height: calc(min(72vh, 640px) - var(--x3d-pick-h, 64px) - 2.6rem);
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; color: var(--c-ink, #111); border-radius: 18px; box-shadow: 0 16px 44px rgba(0,0,0,0.3);
    animation: lcIn .22s ease-out;
}
.x3d-360menu[hidden] { display: none; }
.x3d.is-full .x3d-360menu { max-height: calc(100vh - var(--x3d-pick-h, 64px) - 4.5rem - env(safe-area-inset-top, 0px)); max-height: calc(100dvh - var(--x3d-pick-h, 64px) - 4.5rem - env(safe-area-inset-top, 0px)); }
.x3d-360-head { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.85rem 0.6rem 0.55rem 1rem; border-bottom: 1px solid rgba(10,10,10,0.08); }
.x3d-360-head > div { flex: 1; min-width: 0; }
.x3d-360-head b { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.x3d-360-head small { display: block; margin-top: 0.1rem; font-size: 0.74rem; color: var(--mg-muted, #6B665E); }
.x3d-360-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--c-ink, #111); }
.x3d-360-x:hover { background: #F1EDE6; }
.x3d-360-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0.2rem 0.7rem 0.8rem; scrollbar-width: thin; }
.x3d-360-h { margin: 0.7rem 0.2rem 0.4rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-gold-text, #7A6433); }
.x3d-360-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.x3d-360-it {
    position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 0.55rem;
    min-height: 64px; padding: 6px 8px 6px 6px; border: 1px solid rgba(10,10,10,0.1); border-radius: 12px;
    background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.x3d-360-it:hover, .x3d-360-it:focus-visible { border-color: var(--c-gold, #C9A24B); box-shadow: 0 6px 16px rgba(0,0,0,0.08); outline: none; transform: translateY(-1px); }
.x3d-360-it img, .x3d-360-noimg { width: 52px; height: 52px; border-radius: 9px; object-fit: contain; background: #F5F1EA; }
.x3d-360-noimg { display: grid; place-items: center; color: var(--c-gold-deep, #9A7A35); }
.x3d-360-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.x3d-360-tx b { font-size: 0.86rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x3d-360-tx small { font-size: 0.7rem; color: var(--mg-muted, #6B665E); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x3d-360-tx em { align-self: flex-start; margin-top: 0.2rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: var(--c-ink, #111); color: #fff; font-size: 0.6rem; font-style: normal; font-weight: 700; white-space: nowrap; }
.x3d-360-it.is-ctx { border-color: var(--c-ink, #111); box-shadow: inset 0 0 0 1px var(--c-ink, #111); }
.x3d-360-arr { display: none; }

@media (min-width: 761px) {
    .x3d .x3d-pick, .bx .x3d .x3d-pick, .x3d.is-full .x3d-pick {
        left: 0.9rem; right: 0.9rem; transform: none; width: auto; max-width: none;
        flex-wrap: nowrap; justify-content: space-between; align-items: stretch; gap: 10px;
        padding: 0; background: transparent; box-shadow: none; border-radius: 0; pointer-events: none;
    }
    .x3d.is-full .x3d-pick { left: max(1rem, env(safe-area-inset-left, 0px)); right: max(1rem, env(safe-area-inset-right, 0px)); }
    .x3d-pick > .x3d-pick-bar, .x3d-pick > .x3d-tour { pointer-events: auto; }
    .x3d-pick-bar {
        display: flex; align-items: center; gap: 6px; min-width: 0; flex: 0 1 auto; padding: 6px;
        background: rgba(255,255,255,0.95); border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    .x3d-pick-bar .x3d-towers { flex: none; }
    .x3d-pick-bar .x3d-levels { min-width: 0; overflow-x: auto; scrollbar-width: none; }
    .x3d-pick-bar .x3d-levels::-webkit-scrollbar { display: none; }
    .x3d-tour { flex: none; margin-right: var(--x3d-tour-dodge, 0px); transition: margin-right .25s ease; }
    /* la lista no tapa la columna del zoom (40 px, misma orilla derecha que la barra) */
    .x3d-360menu { right: max(0px, calc(50px - var(--x3d-tour-dodge, 0px))); }
}
/* Teléfono acostado: barra más baja y lista más compacta */
@media (orientation: landscape) and (max-height: 500px) {
    .x3d.is-full .x3d-pick { padding: 0; bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px)); }
    .x3d.is-full .x3d-pick-bar { padding: 4px; }
    .x3d-360-btns button { padding: 0 0.8rem; }
    .x3d-360-main small { display: none; }
    .x3d-pick-bar .x3d-tw { padding: 0 0.75rem; }
    .x3d.is-full .x3d-360menu { width: min(420px, 60vw); }
    .x3d.is-full .x3d-360-head { padding: 0.5rem 0.5rem 0.4rem 0.9rem; }
    .x3d.is-full .x3d-360-head small { display: none; }
    .x3d.is-full .x3d-360-h { margin: 0.45rem 0.2rem 0.3rem; }
    .x3d-360-it { min-height: 54px; grid-template-columns: 44px minmax(0, 1fr); }
    .x3d-360-it img, .x3d-360-noimg { width: 44px; height: 44px; }
}
/* Teléfono vertical: torres + 360° arriba, niveles abajo; la lista sube como hoja sobre el 3D */
@media (max-width: 760px) {
    .x3d .x3d-pick, .bx .x3d .x3d-pick {
        position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tw tour" "lv lv";
        column-gap: 0.45rem; row-gap: 0.5rem;
    }
    .x3d.is-full .x3d-pick { position: fixed; }
    .x3d-pick-bar { display: contents; }
    .x3d-pick .x3d-towers { grid-area: tw; width: auto; min-width: 0; }
    .x3d-pick .x3d-levels { grid-area: lv; }
    .x3d-tour { grid-area: tour; position: static; }
    .x3d-360-btns { border-radius: 999px; box-shadow: none; }
    .x3d-360-btns button { padding: 0 0.85rem; gap: 0.4rem; }
    .x3d-360-btns span { font-size: 0.95rem; }
    .x3d-360-main small { display: none; }
    .x3d-360menu { left: 0.5rem; right: 0.5rem; width: auto; bottom: calc(100% + 8px); max-height: calc(64vh - 1rem); border-radius: 16px; }
    .x3d.is-full .x3d-360menu { max-height: calc(100vh - var(--x3d-pick-h, 120px) - 1.5rem - env(safe-area-inset-top, 0px)); max-height: calc(100dvh - var(--x3d-pick-h, 120px) - 1.5rem - env(safe-area-inset-top, 0px)); }
    .x3d-360-grid { gap: 5px; }
    .x3d-360-it { grid-template-columns: 46px minmax(0, 1fr); gap: 0.45rem; min-height: 58px; padding: 5px 6px 5px 5px; }
    .x3d-360-it img, .x3d-360-noimg { width: 46px; height: 46px; }
    .x3d-360-tx b { font-size: 0.8rem; }
    .x3d-360-tx small { font-size: 0.66rem; }
}

/* ============================================================
   3D inactivo en teléfono (28-oct)
   Mientras no se toca «Explorar el edificio en 3D» (.x3d.is-idle, lo quita open3d):
   sin torres, niveles ni 360° (son controles de adentro del 3D) y la foto pasa de media
   pantalla a una tarjeta compacta: franja de foto panorámica arriba y banda negra con la
   invitación abajo; toda la tarjeta es el botón. Debajo, un acceso discreto a la Lista.
   En computadora el 3D arranca solo (nunca se queda en is-idle): no cambia nada.
   ============================================================ */
.x3d.is-idle .x3d-pick { display: none !important; }
.x3d.is-idle .x3d-stage > :not(.x3d-poster):not(.x3d-launch) { display: none !important; }
.x3d-launch-eyebrow, .x3d-launch-meta, .x3d-launch-go, .x3d-idle { display: none; }
@media (max-width: 760px) {
    .x3d.is-idle { --x3d-idle-ar: 21 / 9; margin-bottom: var(--space-3); }
    .x3d.is-idle .x3d-stage {
        display: flex; flex-direction: column; height: auto; min-height: 0;
        border-radius: var(--radius-md); background: var(--c-ink);
        box-shadow: 0 14px 36px rgba(0,0,0,0.16), 0 0 0 1px rgba(10,10,10,0.06);
    }
    .x3d.is-idle .x3d-stage::before { content: ''; display: block; flex: none; aspect-ratio: var(--x3d-idle-ar); }
    .x3d.is-idle .x3d-poster { inset: 0 0 auto 0; height: auto; aspect-ratio: var(--x3d-idle-ar); object-position: 50% 52%; }
    .x3d.is-idle .x3d-launch {
        position: relative; inset: auto !important; transform: none; width: 100%; max-width: none;
        display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
        padding: 0.85rem 0.9rem 0.9rem 1.05rem; border-radius: 0; text-align: left;
        background: var(--c-ink); color: #fff; box-shadow: none; -webkit-tap-highlight-color: transparent;
    }
    /* la foto también abre el 3D: el área tocable del botón sube sobre ella */
    .x3d.is-idle .x3d-launch::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; aspect-ratio: var(--x3d-idle-ar); }
    .x3d.is-idle .x3d-launch::after { content: ''; position: absolute; left: 1.05rem; right: 1.05rem; top: 0; height: 1px; background: linear-gradient(90deg, var(--c-gold), rgba(197,165,114,0)); opacity: 0.7; }
    .x3d.is-idle .x3d-launch:hover { background: var(--c-ink); transform: none; box-shadow: none; }
    .x3d.is-idle .x3d-launch:active .x3d-launch-go { transform: scale(0.94); }
    .x3d.is-idle .x3d-launch:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }
    .x3d.is-idle .x3d-launch-ic, .x3d.is-idle .x3d-launch-txt small { display: none; }
    .x3d.is-idle .x3d-launch-txt { gap: 0.2rem; }
    .x3d.is-idle .x3d-launch-eyebrow {
        display: block; font-style: normal; font-size: 0.66rem; font-weight: 600;
        letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-gold-soft);
    }
    .x3d.is-idle .x3d-launch-txt b {
        font-family: var(--font-display); font-size: clamp(1.12rem, 5.2vw, 1.4rem); font-weight: 500;
        line-height: 1.12; color: #fff; text-wrap: balance;
    }
    .x3d.is-idle .x3d-launch-meta { display: block; font-size: 0.76rem; line-height: 1.3; color: rgba(255,255,255,0.84); white-space: normal; }
    .x3d.is-idle .x3d-launch-go {
        flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
        width: 46px; height: 46px; border-radius: 50%;
        background: var(--c-gold); color: var(--c-ink); font-size: 1rem;
        box-shadow: 0 6px 18px rgba(0,0,0,0.3); transition: transform .15s ease;
    }
    .x3d.is-idle .x3d-launch-go i { color: var(--c-ink); font-size: 1rem; }
    /* acceso discreto a la Lista */
    .x3d.is-idle .x3d-idle { display: block; margin: 0.7rem 0 0; text-align: center; }
    .x3d-idle-list {
        display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0 0.4rem;
        border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 0.86rem;
        color: var(--c-graphite);
    }
    .x3d-idle-list span { text-decoration: underline; text-decoration-color: var(--c-gold); text-decoration-thickness: 1px; text-underline-offset: 4px; }
    .x3d-idle-list i { color: var(--c-gold-deep); font-size: 0.8rem; }
    /* recién activado y aún cargando: la barra no abre nada (sin 3D abría la planta tipo) */
    .x3d:not(.is-ready) .x3d-pick { pointer-events: none; opacity: 0.5; }
}
@media (max-width: 360px) {
    .x3d.is-idle .x3d-launch { padding: 0.75rem 0.75rem 0.75rem 0.85rem; }
    .x3d.is-idle .x3d-launch-meta { display: none; }
    .x3d.is-idle .x3d-launch-go { width: 40px; height: 40px; }
}
/* fin · 3D inactivo en teléfono (28-oct) */

/* ============================================================
   Controles del 3D (28-oct) · rediseño UX a pedido de Edgar
   OJO (15-nov): tamaños, colores, radios y posiciones de los controles los define ahora el bloque
   «Controles del 3D unificados (15-nov)», al final del archivo. Lo de aquí que toque lo mismo ya
   no manda; se conserva por las piezas que ese bloque no repite (rejillas, contenidos, textos).
   Menos cosas a la vez y todo con el mismo lenguaje (píldoras de vidrio, negro y dorado):
   - Arriba izq.: leyenda en una línea y, debajo, el interruptor «Colorear todo el edificio»
     (sin datos: «Ver disponibilidad»). Arriba der.: solo pantalla completa; el +/− queda
     únicamente con mouse (en táctil se pellizca).
   - Depto. elegido: abre su ficha directo. La tarjeta de vista previa que salía abajo se quitó
     el 12-nov (Edgar: al cerrar no debe quedar nada del departamento en pantalla).
   - Barra: torres y niveles como dos selectores iguales; cada nivel muestra solo su número
     (con datos, un punto de color). «360°» es un solo botón que abre la lista.
   ============================================================ */
.x3d-stage { container: x3dstage / inline-size; }

/* --- Arriba a la izquierda: leyenda + interruptor --- */
.x3d .x3d-legend, .x3d.is-full .x3d-legend {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex-wrap: nowrap;
    min-height: 0; max-width: calc(100% - 76px); padding: 0; border-radius: 0;
    background: none; box-shadow: none; pointer-events: none; font-size: 12px;
}
.x3d-legend-keys {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(255,255,255,0.92); color: var(--c-ink, #111);
    font-size: 12px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.35;
    box-shadow: 0 0 0 1px rgba(10,10,10,0.06), 0 4px 14px rgba(0,0,0,0.12);
}
.x3d-legend-keys span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.x3d-legend-keys .fp-dot { width: 8px; height: 8px; }
.x3d .x3d-legend .x3d-paintall, .x3d .x3d-unlock {
    position: relative; pointer-events: auto; display: inline-flex; align-items: center; gap: 8px;
    min-height: 36px; margin: 0; padding: 0 14px 0 9px; border: 0; border-radius: 999px; cursor: pointer;
    background: rgba(17,17,17,0.84); color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.x3d .x3d-unlock { padding-left: 13px; }
.x3d .x3d-legend .x3d-paintall::after, .x3d .x3d-unlock::after { content: ''; position: absolute; inset: -4px 0; }   /* 44 px de toque */
.x3d .x3d-legend .x3d-paintall:hover, .x3d .x3d-unlock:hover { background: #111; }
.x3d .x3d-legend .x3d-paintall[aria-pressed="true"] { background: #111; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.x3d-sw { position: relative; flex: none; width: 30px; height: 18px; border-radius: 999px; background: rgba(255,255,255,0.3); transition: background .2s; }
.x3d-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.x3d-paintall[aria-pressed="true"] .x3d-sw { background: var(--c-gold, #C5A572); }
.x3d-paintall[aria-pressed="true"] .x3d-sw::after { transform: translateX(12px); }
.x3d .x3d-unlock i { font-size: 12px; color: var(--c-gold, #C5A572); }
/* Dentro de un nivel solo se colorea ese nivel: el interruptor sobra */
.x3d.is-level .x3d-legend .x3d-paintall { display: none; }
/* Visor angosto (teléfono de 320 px): la leyenda ocupa el primer renglón completo y pantalla
   completa baja al renglón del interruptor (antes la leyenda se partía en dos renglones) */
@container x3dstage (max-width: 340px) {
    .x3d .x3d-legend, .x3d.is-full .x3d-legend { max-width: calc(100% - 20px); }
    .x3d-legend-keys { gap: 4px 10px; padding: 6px 11px; }
    .x3d:has(.x3d-legend:not([hidden])) .x3d-tools { top: 42px; }
    .x3d.is-full:has(.x3d-legend:not([hidden])) .x3d-tools { top: calc(42px + env(safe-area-inset-top, 0px)); }
}

/* --- Arriba a la derecha: pantalla completa (y +/− solo con mouse) --- */
.x3d .x3d-tools, .x3d.is-full .x3d-tools { gap: 8px; align-items: flex-end; }
.x3d .x3d-tools button {
    width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; padding: 0;
    background: rgba(255,255,255,0.92); color: var(--c-ink, #111); font-size: 14px; cursor: pointer;
    box-shadow: 0 0 0 1px rgba(10,10,10,0.06), 0 4px 14px rgba(0,0,0,0.12);
}
.x3d-zoom { display: flex; flex-direction: column; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.92); box-shadow: 0 0 0 1px rgba(10,10,10,0.06), 0 4px 14px rgba(0,0,0,0.12); }
.x3d .x3d-zoom button { border-radius: 0; background: transparent; box-shadow: none; }
.x3d .x3d-zoom button + button { border-top: 1px solid rgba(10,10,10,0.1); }
.x3d .x3d-tools button:hover { background: #fff; color: var(--c-gold-deep, #9F8550); }
.x3d .x3d-zoom button:hover { background: rgba(255,255,255,0.6); }
@media (hover: none), (pointer: coarse) {
    .x3d-zoom { display: none; }
    .x3d .x3d-tools button { width: 44px; height: 44px; }
    .x3d .x3d-tools button:hover { background: rgba(255,255,255,0.92); color: var(--c-ink, #111); }
}

/* --- Aviso «Desliza para girar…» --- */
.x3d .x3d-hint, .x3d.is-full .x3d-hint {
    font-size: 12px; letter-spacing: 0.01em; padding: 7px 14px; border-radius: 999px;
    background: rgba(17,17,17,0.62); color: #fff; max-width: calc(100% - 24px);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@container x3dstage (max-width: 330px) {
    .x3d .x3d-hint, .x3d.is-full .x3d-hint { white-space: normal; text-align: center; text-wrap: balance; border-radius: 14px; line-height: 1.35; padding: 6px 12px; }
    .x3d .x3d-hint i { display: none; }
}

.x3d .x3d-legend[hidden], .x3d .x3d-unlock[hidden] { display: none; }

/* --- Barra: torre y nivel --- */
.x3d-lv-cap { flex: none; padding: 0 6px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mg-muted, #6B665E); }
.x3d .x3d-pick .x3d-lv {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-width: 44px; min-height: 44px; padding: 0 6px; border: 0; border-radius: 12px;
    background: transparent; color: var(--c-ink, #111); box-shadow: none; cursor: pointer;
}
.x3d .x3d-pick .x3d-lv b { font-size: 15px; font-weight: 600; line-height: 1; }
.x3d-lv-dot { display: block; width: 6px; height: 6px; border-radius: 50%; }
.x3d-lv--available .x3d-lv-dot { background: var(--st-available, #2BA15A); }
.x3d-lv--reserved .x3d-lv-dot { background: var(--st-reserved, #E6A521); }
.x3d-lv--sold .x3d-lv-dot { background: var(--st-sold, #C5283D); }
.x3d .x3d-pick .x3d-lv:hover { background: #F1EDE6; }
.x3d .x3d-pick .x3d-lv.is-active { background: var(--c-ink, #111); color: #fff; }
.x3d .x3d-pick .x3d-lv.is-active .x3d-lv-dot { box-shadow: 0 0 0 1.5px #fff; }
.x3d .x3d-pick .x3d-lv:focus-visible, .x3d .x3d-pick .x3d-tw:focus-visible { outline: 2px solid var(--c-gold, #C5A572); outline-offset: 1px; }
.x3d .x3d-pick .x3d-tw { font-size: 14px; }
.x3d .x3d-pick .x3d-tw.is-active { background: var(--c-ink, #111); color: #fff; }
@media (min-width: 761px) {
    .x3d-pick .x3d-levels { align-items: center; gap: 2px; padding-left: 4px; }
}
/* «360°»: un solo botón */
.x3d .x3d-360-btns { border-radius: 18px; }
.x3d .x3d-360-main { gap: 8px; }
.x3d .x3d-360-main small { font-size: 12px; color: rgba(255,255,255,0.75); }
@media (hover: hover) { .x3d .x3d-360-btns button:hover { background: rgba(255,255,255,0.1); } }

/* Teléfono vertical: renglón 1 = torres (selector) + 360°; renglón 2 = niveles en el mismo estilo */
@media (max-width: 760px) {
    .x3d .x3d-pick, .bx .x3d .x3d-pick { column-gap: 8px; row-gap: 8px; padding: 8px; }
    .x3d-pick .x3d-towers { padding: 3px; gap: 2px; border-radius: 14px; }
    .x3d .x3d-pick .x3d-tw { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 4px; border-radius: 11px; font-size: 14px; }
    .x3d-pick .x3d-levels, .x3d.is-full .x3d-pick .x3d-levels {
        display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 14px; background: #F1EDE6;
        overflow: visible; scroll-snap-type: none;
    }
    .x3d .x3d-pick .x3d-lv, .x3d.is-full .x3d-pick .x3d-lv { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0; border-radius: 11px; scroll-snap-align: none; }
    .x3d .x3d-pick .x3d-lv:hover { background: transparent; }
    .x3d .x3d-pick .x3d-lv.is-active, .x3d .x3d-pick .x3d-lv.is-active:hover { background: var(--c-ink, #111); }
    .x3d-lv-cap { padding: 0 4px 0 8px; }
    .x3d .x3d-360-btns { border-radius: 14px; }
    .x3d .x3d-360-btns button { min-height: 50px; padding: 0 14px; }
    .x3d .x3d-360-btns span { font-size: 15px; }
}
@media (max-width: 359px) { .x3d-lv-cap { display: none; } }
/* Teléfono acostado: un renglón; sin la palabra «Recorridos» para que quepan los niveles */
@media (orientation: landscape) and (max-height: 500px) {
    .x3d .x3d-360-main small { display: none; }
    .x3d-lv-cap { display: none; }
}

/* --- Tarjeta del nivel: textos de al menos 12 px y sin cortes raros --- */
.lc-core { font-size: 12px; letter-spacing: 0.06em; }
@media (max-width: 760px) {
    .lc-title small { font-size: 12px; }
    .lc-sum { font-size: 12.5px; }
    .lc-row, .lc-row--unit { width: 176px; align-items: start; }
    .lc-num { min-width: 56px; height: 50px; }
    .lc-num b { font-size: 15px; }
    .lc-num small { font-size: 12px; }
    .lc-facts > span { font-size: 12.5px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
    .lc-facts small { font-size: 12px; }
    .lc-st { font-size: 12px; padding: 0.1rem 0.45rem; }
    .lc-row.is-sel .lc-cta { font-size: 13px; min-height: 40px; }
    .lc-plan { font-size: 13px; min-height: 40px; }
}
@media (orientation: landscape) and (max-height: 500px) {
    .lc-sum { font-size: 12px; }
    .lc-side button { font-size: 12px; }
    .lc-num small { font-size: 12px; }
    .lc-facts small { font-size: 12px; }
    .lc-st { font-size: 12px; }
}
/* La tarjeta del nivel arranca debajo de la leyenda (sin el interruptor, que se oculta en el nivel) */
@media (min-width: 761px) {
    .x3d .x3d-lvcard { top: calc(10px + 30px + 12px); }
    .x3d.is-full .x3d-lvcard { top: calc(10px + 30px + 12px + env(safe-area-inset-top, 0px)); }
}
@media (orientation: landscape) and (max-height: 500px) {
    .x3d .x3d-lvcard, .x3d.is-full .x3d-lvcard { top: calc(8px + 30px + 8px + env(safe-area-inset-top, 0px)); }
}

/* --- Lista de recorridos 360°: textos de al menos 12 px y × de 44 px --- */
.x3d-360-h { font-size: 12px; }
.x3d-360-tx small { font-size: 12px; }
.x3d-360-tx em { font-size: 12px; padding: 0.05rem 0.45rem; }
.x3d-360-x { width: 44px; height: 44px; font-size: 16px; display: grid; place-items: center; margin: -6px -4px 0 0; }
@media (max-width: 760px) {
    .x3d-360-tx small { font-size: 12px; }
    .x3d-360-tx b { font-size: 13px; }
}

/* --- Ajustes tras revisar capturas (28-oct) --- */
.x3d .x3d-hint, .x3d.is-full .x3d-hint { width: max-content; }
.lc-facts > span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.x3d-360-tx b, .x3d-360-tx small { white-space: normal; }
@media (max-width: 400px) {
    .x3d-360-grid { grid-template-columns: 1fr; }
    .lc-title { flex-direction: column; align-items: flex-start; gap: 0; }
    .lc-title small, .lc-title h3 { white-space: nowrap; }
}

/* Revisión iPad (28-oct): toques de 44 px y visor que cabe en pantallas bajas (iPad acostado, laptops) */
.x3d .x3d-tools button, .x3d .x3d-zoom button { width: 44px; height: 44px; }
.x3d .x3d-legend .x3d-paintall, .x3d .x3d-unlock { min-height: 44px; }
.x3d .x3d-legend .x3d-paintall::after, .x3d .x3d-unlock::after { content: none; }
@container x3dstage (max-width: 340px) {
    .x3d:has(.x3d-legend:not([hidden])) .x3d-tools { top: 44px; }
    .x3d.is-full:has(.x3d-legend:not([hidden])) .x3d-tools { top: calc(44px + env(safe-area-inset-top, 0px)); }
}
@media (min-width: 761px) and (max-height: 900px) {
    .x3d:not(.is-full) .x3d-stage { height: min(64vh, 640px); min-height: 360px; }
}

/* Barra que cabe en iPad vertical */
@media (min-width: 761px) and (max-width: 1024px) {
    .x3d .x3d-360-main small, .x3d-lv-cap { display: none; }
    .x3d-pick .x3d-tw { padding: 0 0.8rem; }
}

/* --- Chat de WhatsApp: en teléfono se retira mientras su botón tapa la barra o la tarjeta del 3D --- */
.chatbot.is-dodge-3d:not([data-state="open"]) .chatbot-fab,
.chatbot.is-dodge-3d .chatbot-bubble { opacity: 0 !important; transform: scale(0.7) !important; pointer-events: none !important; transition: opacity .2s, transform .2s; }

/* ============================================================
   iPad (28-oct) · ajustes para tableta, vertical y horizontal
   (744–1366 px). No toca los controles del visor 3D.
   ============================================================ */
/* 1. iPad vertical: barra un poco más alta y logo más grande que en teléfono
      (en 66 px el logo se veía chico en una pantalla de 8 a 13 pulgadas). */
@media (orientation: portrait) and (min-width: 700px) and (max-width: 1100px) {
    :root { --nav-height: 88px; }
    .nav-logo--gold, body:not(.scrolled) .nav-logo--gold, body.scrolled .nav-logo--gold { height: 76px; max-height: calc(var(--nav-height) - 10px); }
}
/* 2. Galería en 3 columnas (iPad mini/Air vertical): «Vistas y entorno» ocupa dos lugares
      y las 14 tarjetas llenan 5 filas completas (antes la última fila quedaba con 2 sueltas). */
@media (min-width: 721px) and (max-width: 1000px) {
    .amen-card--wide { flex-basis: calc((100% - 2 * 0.9rem) / 3 * 2 + 0.9rem); aspect-ratio: auto; }
}
/* 3. Contacto en una columna (tableta vertical): el formulario usa todo el ancho, alineado
      con la tarjeta de abajo (antes quedaba a 560 px con un hueco a la derecha). */
@media (min-width: 721px) and (max-width: 900px) {
    .contact-form { max-width: none; }
}
/* 4. Pie en una columna (761–900 px): el bloque de abajo queda centrado
      (le sobraba un margen derecho pensado para el botón de WhatsApp; ya tiene espacio abajo). */
@media (min-width: 761px) and (max-width: 900px) {
    .footer-bottom { padding-right: 0; }
}
/* 5. Chat en tableta: ventana flotante junto al botón, no una hoja de todo el ancho */
@media (min-width: 641px) and (max-width: 900px) {
    .chatbot-panel { width: min(400px, calc(100vw - 2rem)); height: min(640px, 70vh); max-height: calc(100vh - 8rem); }
}
/* 6. Lista: «Ingreso TN-200» en un renglón y «Todas» centrado como las demás torres */
@media (min-width: 601px) { .bx-table td small { white-space: nowrap; } }
.bx-tw { justify-content: center; }
/* 7. Ficha del departamento: el estatus («Disponible») ya no queda debajo del botón de ampliar */
/* 8. «Aviso de Privacidad» del formulario: área de toque de 44 px */
.form-disclaimer a { padding-block: 0.75rem; margin-block: -0.75rem; }

/* =========================================================
   Pulido de diseño (3-nov)
   Auditoría «le sobran elementos de app»: hero limpio, barra clásica,
   un solo sistema de botones, chat discreto, pie ordenado, textos legibles.
   No toca los controles internos del visor 3D (bloque «Controles del 3D (28-oct)»).
   ========================================================= */
:root { --mg-gold: #C5A572; --mg-gold-text: #7A6433; --mg-ink: #1A1A1A; --mg-sand: #F7F4EE; --mg-muted-txt: #6B665E; }

/* 1a. Hero: la foto nueva entra ENCIMA de la anterior (script.js goTo), nunca dos fotos a medias */
.hero { isolation: isolate; }
.hero::before { z-index: var(--hero-z-1, 0); }
.hero::after  { z-index: var(--hero-z-2, -1); }
.hero::before, .hero::after { transition: opacity 0.6s ease-in-out; }
.hero.hero-swapping::before, .hero.hero-swapping::after { transition: none; }

/* 1b. Logo dorado legible sobre el cielo (computadora / iPad horizontal) */
@media (min-width: 1101px), (min-width: 821px) and (orientation: landscape) {
    .hero-veil { display: block; background:
        radial-gradient(ellipse 30% 34% at 6% 4%, rgba(0,0,0,0.34) 0%, rgba(0,0,0,0) 70%),
        linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.14) 12%, rgba(0,0,0,0) 22%),
        radial-gradient(ellipse 75% 70% at 0% 100%, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.28) 45%, rgba(0,0,0,0) 75%); }
    body:not(.scrolled) .nav-logo--gold { filter: drop-shadow(0 1px 1px rgba(0,0,0,0.45)) drop-shadow(0 3px 14px rgba(0,0,0,0.4)); }
}

/* 1c. Controles del carrusel finos: chevrón de línea sin círculo; puntos como guiones */
.hero .hero-arrow {
    width: 48px; height: 64px; border: 0; border-radius: 0; background: transparent; box-shadow: none;
    color: #fff; font-size: 0; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.55)); opacity: 0.85;
    transition: opacity .2s ease;
}
.hero .hero-arrow i { display: none; }
.hero .hero-arrow::before {
    content: ''; width: 18px; height: 18px; border: solid currentColor; border-width: 0 0 1.5px 1.5px;
    transform: rotate(45deg); margin-left: 6px;
}
.hero .hero-arrow--next::before { transform: rotate(-135deg); margin-left: -6px; }
.hero .hero-arrow:hover { opacity: 1; background: transparent; color: var(--mg-gold); border: 0; }
.hero .hero-dot { width: 22px; height: 2px; border-radius: 0; border: 0; background: rgba(255,255,255,0.6); box-shadow: 0 0 3px rgba(0,0,0,0.35); }
.hero .hero-dot.is-active { background: var(--mg-gold); }
.hero .hero-down {
    width: 40px; height: 40px; margin-left: -20px; border: 0; border-radius: 0; background: transparent;
    color: #fff; font-size: 0; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6)); animation: none;
}
.hero .hero-down i { display: none; }
.hero .hero-down::before { content: ''; width: 14px; height: 14px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin-top: -6px; }
.hero .hero-down:hover { background: transparent; color: var(--mg-gold); }

/* 1d. Teléfono / tableta vertical: foto más protagonista (barra blanca arriba, decisión 27-oct) */
@media (max-width: 820px), (orientation: portrait) and (max-width: 1100px) {
    .hero { --hero-ph: min(112vw, 60svh); padding-top: calc(var(--nav-height) + var(--hero-ph)); }
    .hero::before, .hero::after { top: var(--nav-height); height: var(--hero-ph); background-size: cover; background-position: center; }
    .hero .hero-arrow { top: calc(var(--nav-height) + var(--hero-ph) / 2); width: 40px; height: 56px; }
    .hero-dots { top: calc(var(--nav-height) + var(--hero-ph) - 1.6rem); }
    .hero .hero-down { display: none; }
    .hero-inner { padding-top: 1.6rem; padding-bottom: 2.2rem; }
    .hero-slogan { margin-bottom: 1.2rem; }
}
@media (min-width: 600px) and (max-width: 1100px) and (orientation: portrait) {
    .hero { --hero-ph: min(78vw, 58svh); }
}

/* 3. Barra clásica: logo a la izquierda, «Contacto» fino a la derecha junto al menú */
.nav .nav-col--brand { flex: 1 1 auto; }
.nav .nav-col--cta { flex: 0 0 auto; order: 2; justify-content: flex-end; margin-right: clamp(0.75rem, 1.8vw, 1.6rem); }
.nav .nav-col--burger { flex: 0 0 auto; order: 3; }
body .nav .nav-cta {
    background: transparent; color: #fff; border: 1px solid var(--mg-gold); border-radius: 0;
    padding: 0 1.25rem; min-height: 40px; display: inline-flex; align-items: center;
    font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
    box-shadow: none; transform: none; text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
body.scrolled .nav .nav-cta { color: var(--mg-ink); text-shadow: none; }
body .nav .nav-cta:hover { background: var(--mg-gold); color: var(--mg-ink); border-color: var(--mg-gold); transform: none; box-shadow: none; text-shadow: none; }
@media (max-width: 820px), (orientation: portrait) and (max-width: 1100px) {
    body .nav .nav-cta { color: var(--mg-ink); text-shadow: none; }
}
@media (max-width: 400px) {
    body .nav .nav-cta { padding: 0 0.8rem; min-height: 36px; font-size: 0.75rem; letter-spacing: 0.06em; }
    .nav .nav-col--cta { margin-right: 0.6rem; }
}

/* 4. Sistema único de botones
   Principal: rectángulo negro, texto blanco; al pasar, dorado.
   Secundario: rectángulo con borde fino negro; al pasar, relleno negro.
   Enlace de texto: dorado oscuro con subrayado fino. */
.btn, .btn-hero, .av-locked-cta, .bx-card-go {
    border-radius: 0; min-height: 48px; padding: 0 1.75rem;
    font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em;
    box-shadow: none; transform: none; gap: 0.6rem;
}
.btn--primary, .btn-hero, .av-locked-cta, .bx-card-go {
    background: var(--mg-ink); color: #fff; border: 1px solid var(--mg-ink);
}
.btn--primary:hover, .btn-hero:hover, .av-locked-cta:hover, .bx-card-go:hover {
    background: var(--mg-gold); color: var(--mg-ink); border-color: var(--mg-gold); transform: none; box-shadow: none;
}
.btn--ghost, .btn--ghost.btn--light, .contact .btn--ghost, .bx-more {
    background: transparent; color: var(--mg-ink); border: 1px solid var(--mg-ink);
}
.btn--ghost:hover, .btn--ghost.btn--light:hover, .contact .btn--ghost:hover, .bx-more:hover {
    background: var(--mg-ink); color: #fff; border-color: var(--mg-ink);
}
.btn--ghost:hover i, .contact .btn--ghost:hover i { color: #fff; }
/* Botón del hero: principal; sobre la foto con borde claro para separarlo */
.hero .btn-hero { backdrop-filter: none; -webkit-backdrop-filter: none; border-color: rgba(255,255,255,0.55); color: #fff; }
.hero .btn-hero .btn-hero-arrow { display: none; }
.hero .btn-hero::after { content: '\2192'; font-weight: 400; }
@media (max-width: 820px), (orientation: portrait) and (max-width: 1100px) {
    .hero .btn-hero { border-color: var(--mg-ink); color: #fff; background: var(--mg-ink); }
}
/* Enlace de texto */
.av-card-cta, .footer-legal, .form-disclaimer a {
    color: var(--mg-gold-text); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px;
    text-underline-offset: 4px; letter-spacing: 0.01em; text-transform: none;
}

/* Tarjetas de modelos: una sola acción y etiquetas discretas */
.av-card .av-card-towers { gap: 0; font-size: 0.8125rem; color: var(--mg-muted-txt); }
.av-card .av-card-tower-pill, .av-card .av-card-tour {
    background: none; border: 0; padding: 0; border-radius: 0; font-size: 0.8125rem; font-weight: 400;
    color: var(--mg-muted-txt); min-height: 0;
}
.av-card .av-card-tower-pill + .av-card-tower-pill::before,
.av-card .av-card-tour::before { content: '\00B7'; margin: 0 0.45rem; color: var(--mg-gold); }
.av-card .av-card-tour i { display: none; }
.av-card .av-card-cta { margin-top: 0.9rem; font-size: 0.875rem; display: inline-flex; gap: 0.4rem; }
.av-card .av-card-meta { color: var(--mg-muted-txt); }

/* 5a. Sin huecos al bajar rápido: el contenido ya está, sin animación de entrada */
.fade-up, .fade-up.in-view { opacity: 1; transform: none; transition: none; }
/* Fotos mientras cargan: fondo arena, no gris */
.amen-card, .building-figure, .av-hero, .location figure, .lightbox img { background-color: #EFE8DA; }

/* 5b. Pie: tres columnas, un renglón de teléfono, aviso junto al copyright, logos alineados */
.footer .footer-inner { grid-template-columns: 1.6fr 1fr 1.2fr; }
.footer-contact-item--phone { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.footer-contact-item--phone a { color: inherit; text-decoration: none; }
.footer-contact-item--phone a:hover { color: var(--mg-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-sep { color: var(--mg-gold); }
.footer .footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem 2.5rem; }
.footer-legal-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.25rem; }
.footer-legal-row .footer-legal { padding: 0.5rem 0; }
.footer .footer-group { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.footer .footer-group-logos { display: flex; align-items: center; justify-content: center; gap: 1.75rem; }
.footer .footer-group-logo { height: 52px; width: auto; object-fit: contain; }
.footer .footer-disclaimer { text-align: right; justify-self: end; max-width: 380px; }
@media (max-width: 900px) {
    .footer .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer .footer-brand { grid-column: 1 / -1; }
    .footer .footer-bottom { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .footer-legal-row { justify-content: center; }
    .footer .footer-disclaimer { text-align: center; justify-self: center; }
}
@media (max-width: 520px) { .footer .footer-inner { grid-template-columns: 1fr; } }

/* 5c. Textos chicos legibles: 13 px o más, gris #6B665E, sin itálica */
.footer-disclaimer, .footer-bottom, .footer-legal-row > span, .footer-tagline,
.av-disclaimer, .up-disclaimer, .up-model-note, .building-stats-foot, .form-disclaimer, .gate-note, .av-tag {
    font-size: max(13px, 0.8125rem); font-style: normal; color: var(--mg-muted-txt);
}
.av-tag strong { font-style: normal; }
.building-stats-foot { color: var(--mg-ink); }
/* Ficha: recorrido 360° y «Ver en la lista» como botón secundario (mismo sistema) */
.unit-panel .up-tour, .unit-panel .mx-list {
    border-radius: 0; background: transparent; color: var(--mg-ink); border: 1px solid var(--mg-ink);
    min-height: 48px; font-weight: 600; box-shadow: none;
}
.unit-panel .up-tour:hover, .unit-panel .mx-list:hover { background: var(--mg-ink); color: #fff; }
.unit-panel .up-tour:hover i, .unit-panel .mx-list:hover i { color: #fff; }

/* ============================================================
   Avisos de privacidad (11-nov)
   A: bloque fijo en cada formulario (texto + enlace + casilla); el botón Enviar
      queda deshabilitado hasta marcarla. B: #privacyModal con el aviso simplificado,
      que puede abrirse ENCIMA de otro modal (gate, ficha) y regresa a él.
   ============================================================ */
.pv-consent { margin: 0.35rem 0 0.9rem; text-align: left; }
.pv-consent .pv-text {
    margin: 0 0 0.7rem; font-size: 0.78rem; line-height: 1.55; color: var(--mg-muted-txt, #6B665E);
    text-align: justify; hyphens: auto;
}
.pv-consent .pv-text a, .legal-body a { color: var(--c-gold-text, #7A6433); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.pv-consent .pv-en { display: none; margin: 0 0 0.4rem; font-size: 0.74rem; font-style: italic; color: var(--mg-muted-txt, #6B665E); }
html[lang="en"] .pv-consent .pv-en { display: block; }
.pv-check {
    display: grid; grid-template-columns: 22px 1fr; gap: 0.6rem; align-items: start;
    margin: 0; cursor: pointer; font-size: 0.82rem; line-height: 1.45; color: var(--mg-ink, #1A1A1A);
    text-transform: none; letter-spacing: normal; font-weight: 500;
}
.pv-check input[type="checkbox"] {
    appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0.05rem 0 0;
    border: 1.5px solid #8C8579; border-radius: 3px; background: #fff; cursor: pointer;
    display: grid; place-content: center; padding: 0;
}
.pv-check input[type="checkbox"]::after {
    content: ""; width: 11px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px;
    transform: rotate(-45deg) translate(1px, -1px); opacity: 0;
}
.pv-check input[type="checkbox"]:checked { background: var(--mg-ink, #1A1A1A); border-color: var(--mg-ink, #1A1A1A); }
.pv-check input[type="checkbox"]:checked::after { opacity: 1; }
.pv-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--c-gold-text, #7A6433); outline-offset: 2px; }
.pv-check small { display: none; margin-top: 0.2rem; font-size: 0.74rem; font-style: italic; font-weight: 400; color: var(--mg-muted-txt, #6B665E); }
html[lang="en"] .pv-check small { display: block; }
/* Botón de envío deshabilitado mientras no se acepta */
form button[type="submit"]:disabled, .pv-chat-send:disabled {
    opacity: 0.4; cursor: not-allowed; box-shadow: none; transform: none; filter: grayscale(0.3);
}
/* Gate (compacto) y modales angostos */
.gate-form .pv-consent { margin: 0.2rem 0 0.4rem; }
.gate-form .pv-consent .pv-text { font-size: 0.74rem; margin-bottom: 0.55rem; }
.gate-form .pv-check { font-size: 0.78rem; }
/* En los chats */
.pv-chat { display: flex; flex-direction: column; gap: 0.6rem; max-height: 46vh; overflow-y: auto; }
.pv-chat .pv-consent { margin: 0; }
.pv-chat .pv-consent .pv-text { font-size: 0.74rem; margin-bottom: 0.5rem; }
.pv-chat .pv-check { font-size: 0.78rem; }
.pv-chat-send {
    align-self: stretch; min-height: 44px; border: 0; border-radius: 2px; cursor: pointer;
    background: var(--mg-ink, #1A1A1A); color: #fff; font: 600 0.82rem/1 var(--font-body);
    letter-spacing: 0.12em; text-transform: uppercase;
}
/* B: ventana emergente encima de otros modales, cuadro blanco centrado con X arriba a la derecha */
#privacyModal { z-index: 2100; }
#privacyModal .modal-content--legal { position: relative; max-width: 720px; width: 100%; background: #fff; }
#privacyModal .modal-close { position: absolute; top: 0.7rem; right: 0.7rem; width: 44px; height: 44px; font-size: 1.9rem; line-height: 1; z-index: 2; }
#privacyModal .legal-head { padding-right: 2.6rem; text-align: center; }
#privacyModal .legal-head h2 { font-size: clamp(1.25rem, 3.2vw, 1.7rem); line-height: 1.25; margin: 0; }
#privacyModal .legal-body { text-align: justify; hyphens: auto; color: #3A3732; }
#privacyModal .legal-note { color: var(--mg-muted-txt, #6B665E); }
@media (max-width: 600px) {
    #privacyModal { padding: 0.75rem; }
    #privacyModal .modal-content--legal { padding: 1.4rem 1.1rem 1.2rem; }
    #privacyModal .legal-body { max-height: 70vh; max-height: 70dvh; text-align: left; }
}
/* La casilla no hereda el alto/ancho de los campos del gate ni de los chats */
.pv-consent .pv-check input[type="checkbox"] {
    width: 22px !important; height: 22px !important; min-width: 22px; min-height: 0 !important;
    max-width: 22px; padding: 0 !important; flex: none; box-shadow: none;
}
#privacyModal .legal-body { max-height: min(70vh, 660px); max-height: min(70dvh, 660px); }

/* ============================================================
   Ficha → chat (12-nov): la ficha se desliza a la izquierda (FLIP en
   openChatbotForUnit) y el chat entra desde la derecha un instante después,
   en lugar de brincar y crecer desde la esquina al mismo tiempo.
   ============================================================ */
@media (min-width: 901px) {
    .unit-panel.is-split .unit-panel-card { animation: none; }
    .unit-panel.is-split .unit-panel-backdrop { transition: background-color 0.5s ease; }
    .chatbot.is-beside .chatbot-panel {
        transform-origin: right center;
        transform: translateX(36px);
        opacity: 0;
        transition: opacity 0.4s ease 0.16s, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.16s;
    }
    .chatbot.is-beside[data-state="open"] .chatbot-panel { transform: none; opacity: 1; }
    .chatbot.is-beside:not([data-state="open"]) .chatbot-panel { transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) {
    .chatbot.is-beside .chatbot-panel { transition: opacity 0.2s ease; transform: none; }
}

/* Aviso en formularios, versión corta (12-nov): una línea con casilla y enlace */
.pv-check a { color: var(--c-gold-text, #7A6433); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

/* ============================================================
   Ficha del departamento (12-nov) · rediseño (script.js → renderUnitSheet, clases fd-*)
   Antes: tabla con scroll interno cortada a media fila, un hueco abajo, datos repetidos
   tres veces y cinco acciones con el mismo peso.
   Ahora: cada dato una vez. Izquierda = lo que se ve (isométrico, 360°, 3D/plano, compartir);
   derecha = dónde está → cifras grandes → interior/exterior → vista y modelo → parecidos (plegado)
   → precio y UNA acción principal, siempre a la vista (pegada abajo si la ficha no cabe).
   La ficha entera es el único scroll; el isométrico absorbe el alto que sobre.
   Una columna cuando la tarjeta mide menos de 760 px (teléfono, o computadora chica con el chat al lado).
   No toca la ficha de MODELO (.up-*, .mx-*), que comparte el panel.
   ============================================================ */
.unit-panel .unit-panel-body.is-unitsheet {
    display: block; padding: 0; grid-template: none;
    overflow-x: hidden; overflow-y: auto; scrollbar-width: thin;
    container: ficha / inline-size;
}
.fd {
    --fd-line: rgba(26, 26, 26, 0.12);
    --fd-pad: 1.25rem;
    display: flex; flex-direction: column; min-height: 100%;
    background: #fff; color: var(--mg-ink, #1A1A1A);
    font-family: var(--font-body); font-size: 0.875rem; line-height: 1.45;
}
.fd-left, .fd-right { display: contents; }

/* --- Isométrico --- */
.fd-visual { order: 1; position: relative; display: flex; flex-direction: column; padding: 1rem var(--fd-pad) 0; }
.fd-fig { position: relative; width: 100%; height: clamp(200px, 36vh, 340px); }
.fd-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.fd-status {
    align-self: flex-start; margin-bottom: 0.5rem;
    display: inline-flex; align-items: center; gap: 0.45rem; min-height: 32px; padding: 0 0.8rem;
    background: #fff; border: 1px solid var(--fd-line); border-radius: 999px;
    font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em;
}
.fd-status .fp-dot { width: 9px; height: 9px; }
.fd-zoom {
    position: absolute; right: 0; bottom: 0; z-index: 2;
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: #fff; color: var(--mg-ink, #1A1A1A); border: 1px solid var(--fd-line);
    font-size: 0.9rem; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.fd-cap { margin: 0.6rem 0 0; font-size: 0.75rem; line-height: 1.45; color: var(--mg-muted-txt, #6B665E); text-align: center; }

/* --- Nombre y ubicación --- */
.fd-head { order: 2; padding: 1.1rem var(--fd-pad) 0; }
.fd-eyebrow { margin: 0 0 0.4rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mg-gold-text, #7A6433); }
.fd-title { margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem, 8cqi, 2.5rem); font-weight: 500; line-height: 1.06; letter-spacing: -0.012em; color: var(--mg-ink, #1A1A1A); }
.fd-sub { margin: 0.55rem 0 0; font-size: 0.875rem; color: var(--mg-muted-txt, #6B665E); }
.fd-sub b { font-weight: 600; color: var(--mg-ink, #1A1A1A); white-space: nowrap; }

/* --- Cifras que deciden --- */
.fd-stats {
    order: 4; margin: 1.15rem var(--fd-pad) 0;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.55fr);
    border-top: 1px solid var(--fd-line); border-bottom: 1px solid var(--fd-line);
}
.fd-stat { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.95rem 0 0.9rem 1.1rem; border-left: 1px solid var(--fd-line); min-width: 0; }
.fd-stat:first-child { padding-left: 0; border-left: 0; }
.fd-stat b { font-family: var(--font-display); font-size: clamp(1.7rem, 7.4cqi, 2.15rem); font-weight: 500; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; font-variant-numeric: lining-nums; }
.fd-stat b small { margin-left: 0.3em; font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; letter-spacing: 0; color: var(--mg-muted-txt, #6B665E); }
.fd-stat span { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mg-muted-txt, #6B665E); }

/* --- Interior / exterior --- */
.fd-area { order: 5; margin: 1rem var(--fd-pad) 0; }
.fd-bar { display: flex; gap: 2px; height: 4px; }
.fd-bar i { display: block; height: 100%; background: var(--mg-ink, #1A1A1A); }
.fd-bar i + i { background: var(--mg-gold, #C5A572); }
.fd-split { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1.25rem; margin: 0.6rem 0 0; }
.fd-split > div { display: flex; align-items: baseline; gap: 0.5rem; }
.fd-split dt { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--mg-muted-txt, #6B665E); }
.fd-split dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fd-dot { width: 8px; height: 8px; flex: none; background: var(--mg-ink, #1A1A1A); }
.fd-dot--out { background: var(--mg-gold, #C5A572); }

/* --- Vista, modelo (y precio en una columna) --- */
.fd-facts { order: 6; margin: 0.95rem var(--fd-pad) 0; border-bottom: 1px solid var(--fd-line); }
.fd-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--fd-line); }
.fd-facts dt { color: var(--mg-muted-txt, #6B665E); white-space: nowrap; }
.fd-facts dd { margin: 0; font-weight: 600; text-align: right; }
.fd-facts dd small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--mg-muted-txt, #6B665E); }

/* --- Acciones para ver: secundarias, juntas --- */
.fd-views { order: 7; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 0.5rem; margin: 1.1rem var(--fd-pad) 0; }
.fd-views--1 { grid-template-columns: minmax(0, 1fr) auto; }
.fd-views--2 .fd-link { grid-column: 1 / -1; justify-self: start; }
.fd-views--0 { grid-template-columns: auto; justify-content: start; margin-top: 0.5rem; }
.fd-btn {
    flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0.35rem 0.6rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    background: transparent; color: var(--mg-ink, #1A1A1A); border: 1px solid var(--mg-ink, #1A1A1A); border-radius: 0;
    font: 600 0.8125rem/1.2 var(--font-body); letter-spacing: 0.03em; text-align: center; cursor: pointer;
    transition: background-color .2s, color .2s;
}
.fd-btn span { text-wrap: balance; }
.fd-btn i { font-size: 0.95rem; color: var(--mg-gold-text, #7A6433); transition: color .2s; }
.fd-link {
    flex: 0 0 auto; min-height: 44px; padding: 0 0.35rem;
    display: inline-flex; align-items: center; gap: 0.45rem;
    background: none; border: 0; color: var(--mg-gold-text, #7A6433);
    font: 600 0.8125rem/1.2 var(--font-body); letter-spacing: 0.03em; cursor: pointer;
}
.fd-link span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* --- Otros parecidos en el nivel: plegado, por ingreso --- */
.fd-near { order: 8; margin: 0.6rem var(--fd-pad) 0; border-bottom: 1px solid var(--fd-line); }
.fd-near-btn {
    width: 100%; min-height: 48px; padding: 0.3rem 0;
    display: flex; align-items: center; gap: 0.6rem;
    background: none; border: 0; color: var(--mg-ink, #1A1A1A);
    font: 600 0.875rem/1.3 var(--font-body); text-align: left; cursor: pointer;
}
.fd-near-btn span { flex: 1 1 auto; min-width: 0; }
.fd-near-btn em { font-style: normal; font-weight: 600; font-size: 0.75rem; min-width: 1.6rem; height: 1.6rem; padding: 0 0.4rem; display: inline-grid; place-items: center; border-radius: 999px; background: var(--mg-sand, #F7F4EE); color: var(--mg-ink, #1A1A1A); }
.fd-near-btn i { font-size: 0.75rem; color: var(--mg-gold-text, #7A6433); transition: transform .25s ease; }
.fd-near.is-open .fd-near-btn i { transform: rotate(180deg); }
.fd-near-list { display: none; padding: 0.15rem 0 1rem; scroll-margin-bottom: 9rem; }
.fd-near.is-open .fd-near-list { display: block; }
.fd-near-g + .fd-near-g { margin-top: 0.8rem; }
.fd-near-g > span { display: block; margin-bottom: 0.4rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mg-muted-txt, #6B665E); }
.fd-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.6rem, 1fr)); gap: 0.4rem; }
.fd-chips--ph { grid-template-columns: repeat(auto-fill, minmax(10.4rem, 1fr)); }
.fd-chip {
    min-height: 44px; padding: 0 0.7rem; min-width: 0;
    display: flex; align-items: center; gap: 0.45rem;
    background: #fff; color: var(--mg-ink, #1A1A1A); border: 1px solid var(--fd-line); border-radius: 0;
    font: 400 0.8125rem/1.2 var(--font-body); cursor: pointer; transition: border-color .2s, background-color .2s;
}
.fd-chip .fp-dot { width: 8px; height: 8px; flex: none; }
.fd-chip b { font-family: var(--font-display); font-size: 1rem; font-weight: 600; white-space: nowrap; }
.fd-chip span { margin-left: auto; padding-left: 0.3rem; color: var(--mg-muted-txt, #6B665E); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fd-near-foot { margin: 0.7rem 0 0; font-size: 0.75rem; color: var(--mg-muted-txt, #6B665E); }

/* --- Nota legal --- */
.fd-note { order: 9; margin: 0.9rem var(--fd-pad) 1.1rem; font-size: 0.75rem; line-height: 1.5; color: var(--mg-muted-txt, #6B665E); }

/* --- Precio y acción principal (una columna: barra pegada abajo, siempre a la mano) --- */
.fd-buy {
    order: 10; position: sticky; bottom: 0; z-index: 3; margin-top: auto;
    padding: 0.7rem var(--fd-pad) calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: #fff; border-top: 1px solid var(--fd-line);
}
.fd-price { display: none; margin: 0; }
.fd-price strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; line-height: 1.2; color: var(--mg-ink, #1A1A1A); }
.fd-price span { display: block; margin-top: 0.2rem; font-size: 0.8125rem; color: var(--mg-muted-txt, #6B665E); }
.fd--sold .fd-fact--price { display: none; }
/* Vendido, en una columna: el aviso va arriba, bajo el nombre (en dos columnas lo dice el bloque de precio) */
.fd-soldnote { order: 3; margin: 0.9rem var(--fd-pad) 0; padding: 0.75rem 0.9rem; background: var(--mg-sand, #F7F4EE); font-size: 0.875rem; color: var(--mg-ink, #1A1A1A); }
.fd-soldnote strong { font-weight: 600; }
.fd .fd-cta { min-height: 50px; padding: 0 1rem; white-space: nowrap; }
.fd .fd-cta i { font-size: 1.1rem; }

@media (hover: hover) {
    .fd-btn:hover { background: var(--mg-ink, #1A1A1A); color: #fff; }
    .fd-btn:hover i { color: #fff; }
    .fd-link:hover { color: var(--mg-ink, #1A1A1A); }
    .fd-zoom:hover { background: var(--mg-ink, #1A1A1A); color: #fff; border-color: var(--mg-ink, #1A1A1A); }
    .fd-chip:hover { border-color: var(--mg-ink, #1A1A1A); background: var(--mg-sand, #F7F4EE); }
    .fd-near-btn:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
}
.fd-btn:focus-visible, .fd-link:focus-visible, .fd-zoom:focus-visible, .fd-chip:focus-visible, .fd-near-btn:focus-visible { outline: 2px solid var(--mg-gold, #C5A572); outline-offset: 2px; }

/* Teléfonos angostos (320 px): la acción principal cabe en una línea */
@container ficha (max-width: 359px) {
    .fd { --fd-pad: 1rem; }
    .fd .fd-cta { font-size: 0.8125rem; letter-spacing: 0.02em; gap: 0.45rem; padding: 0 0.5rem; }
    .fd-stats { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr) minmax(0, 1.5fr); }
    .fd-stat { padding-left: 0.75rem; }
    .fd-stat b { font-size: 1.55rem; }
    .fd-stat span { letter-spacing: 0.04em; }
    .fd-btn { padding-inline: 0.35rem; letter-spacing: 0.01em; gap: 0.4rem; }
}

/* --- Dos columnas: computadora y tableta --- */
@container ficha (min-width: 760px) {
    .fd { --fd-pad: 0px; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); align-items: stretch; min-height: min(620px, 100dvh - 4rem); }
    .fd-left {
        display: flex; flex-direction: column; min-width: 0;
        position: sticky; top: 0; max-height: calc(100dvh - 4rem);
        padding: 1.75rem 2rem 1.6rem; border-right: 1px solid var(--fd-line);
    }
    .fd-right { display: flex; flex-direction: column; min-width: 0; padding: 2.1rem 2.4rem 0; }
    .fd-visual { flex: 1 1 auto; min-height: 0; padding: 0; }
    .fd-fig { flex: 1 1 auto; height: auto; min-height: clamp(210px, 34vh, 340px); }
    .fd-cap { margin-top: 0.8rem; }
    .fd-views, .fd-views--0, .fd-views--1, .fd-views--2 { display: flex; flex-wrap: wrap; margin-top: 1.1rem; }
    .fd-btn { white-space: nowrap; padding-inline: 0.85rem; }
    .fd-soldnote { display: none; }
    .fd-head { padding: 0 2.6rem 0 0; }
    .fd-title { font-size: clamp(2rem, 4.2cqi, 2.6rem); }
    .fd-stats { margin-top: 1.4rem; }
    .fd-stat { padding: 1.05rem 0 1rem 1.25rem; }
    .fd-stat b { font-size: clamp(1.8rem, 3.6cqi, 2.25rem); }
    .fd-area { margin-top: 1.05rem; }
    .fd-facts { margin-top: 1rem; }
    .fd-fact--price { display: none !important; }
    .fd-near { margin-top: 0; }
    /* Precio + acción: bloque arena; se queda pegado abajo si la ficha no cabe en la pantalla */
    .fd-buy { margin: auto -2.4rem 0; padding: 1.2rem 2.4rem 0; border-top: 0; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 1.1rem); }
    .fd-buybox { padding: 1.15rem 1.3rem 1.3rem; background: var(--mg-sand, #F7F4EE); }
    .fd-price { display: block; margin: 0 0 0.9rem; }
    .fd-price strong { font-size: 1.35rem; }
    .fd-note { order: 10; margin: 0; padding: 0.8rem 0 1.5rem; background: #fff; }
}
/* Entre 760 y 880 px de tarjeta (iPad vertical, chat al lado): columnas más angostas */
@container ficha (min-width: 760px) and (max-width: 880px) {
    .fd-left { padding: 1.4rem 1.4rem 1.4rem; }
    .fd-right { padding: 1.8rem 1.6rem 0; }
    .fd-buy { margin-inline: -1.6rem; padding-inline: 1.6rem; }
    .fd-stat { padding-left: 0.95rem; }
}
/* La tarjeta usa 1rem de margen (no 2) hasta 960 px de pantalla */
@media (max-width: 960px) {
    @container ficha (min-width: 760px) {
        .fd { min-height: min(620px, 100dvh - 2rem); }
        .fd-left { max-height: calc(100dvh - 2rem); }
    }
}
/* Pantallas bajas (laptop chica 1100×700): todo cabe sin scroll */
@media (max-height: 780px) {
    @container ficha (min-width: 760px) {
        .fd-left { padding-block: 1.4rem 1.3rem; }
        .fd-right { padding-top: 1.6rem; }
        .fd-title { font-size: clamp(1.9rem, 3.8cqi, 2.25rem); }
        .fd-stats { margin-top: 1.05rem; }
        .fd-stat { padding-block: 0.8rem 0.75rem; }
        .fd-area { margin-top: 0.85rem; }
        .fd-facts { margin-top: 0.75rem; }
        .fd-facts > div { padding-block: 0.58rem; }
        .fd-buy { padding-top: 0.9rem; }
        .fd-buybox { padding: 0.95rem 1.15rem 1.1rem; }
        .fd-price { margin-bottom: 0.7rem; }
        .fd-note { padding: 0.6rem 0 1.1rem; }
    }
}
@media (prefers-reduced-motion: reduce) {
    .fd-near-btn i, .fd-btn, .fd-chip, .fd-zoom { transition: none; }
}
/* fin · Ficha del departamento (12-nov) */

/* ============================================================
   Decisiones de experiencia de compra (12-nov) · script.js → renderUnitSheet, syncTour, renderBxList
   1. Vendidos: abren en el 3D y en la Lista, con una ficha que no se ofrece como producto.
   2-5. Nomenclatura única y código de unidad a la vista; sin «vista» por departamento ni por modelo;
        sin recorrido 360° de «modelo similar».
   ============================================================ */
/* Código de unidad (TS-600-406): el dato que usan ventas y el contrato */
.fd-code, .cb-code { white-space: nowrap; }
.fd-code { font-variant-numeric: lining-nums; }
.cb-unit-card em .cb-code, .cb-unit-card strong .cb-code { font-size: inherit; color: inherit; }

/* Ficha de un vendido: el isométrico se apaga y la acción principal lleva a los disponibles */
.fd--sold .fd-fig { filter: grayscale(1); opacity: 0.6; }
.fd--sold .fd-status { border-color: var(--st-sold, #C0392B); }
.fd-btn--full { width: 100%; margin-top: 0.5rem; }
.fd--sold .fd-buybox .fd-btn--full { min-height: 44px; }

/* Los vendidos se pueden abrir en la Lista, en la tarjeta del nivel y en la fachada de respaldo */
.bx-row--sold, .lc-row--sold, .bx-u--sold { cursor: pointer; }

/* Ficha de MODELO sin recorrido 360° propio: se dice, y se señala qué modelo sí lo tiene */
.up-tourhint { display: flex; align-items: baseline; gap: 0.5rem; margin: 0.6rem 0 0; font-size: 0.8125rem; line-height: 1.45; color: var(--mg-muted-txt, #6B665E); }
.up-tourhint[hidden] { display: none; }
.up-tourhint i { flex: none; font-size: 0.85rem; color: var(--mg-gold-text, #7A6433); }
.up-tourhint button {
    padding: 0; background: none; border: 0; cursor: pointer;
    font: inherit; font-weight: 600; color: var(--mg-gold-text, #7A6433);
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.up-tourhint button:hover { color: var(--mg-ink, #1A1A1A); }
.up-tourhint button:focus-visible { outline: 2px solid var(--mg-gold, #C5A572); outline-offset: 2px; }
/* fin · Decisiones de experiencia de compra (12-nov) */

/* ============================================================
   Controles del 3D unificados (15-nov) · una sola familia
   Edgar: «los botones están en diferentes estilos y diferentes tamaños».
   Este bloque manda sobre todos los anteriores del visor (por eso usa #x3d): para cambiar
   un control del 3D se cambia AQUÍ, y casi siempre basta con mover una variable.

   El sistema:
   - Altura: 44 px todo lo que se toca. 28 px solo lo que informa (aviso, nombres de torre,
     leyenda cuando va sola en teléfono).
   - Radio: 22 px en todo (un control de 44 px queda como píldora o círculo; las tarjetas,
     con la misma esquina). Lo que va dentro de una superficie sigue esa curva en paralelo.
   - Color: superficie clara para todo lo que flota sobre el edificio. Negro solo para
     (a) la opción elegida dentro de un selector y (b) la acción destacada, «360°».
     Dorado solo como acento (ícono de 360°, candado, foco, barra de carga).
   - Una sombra, un texto (Inter 14/600; 12/600 en lo compacto), un tamaño de ícono (15 px).
   - Estados: al pasar el cursor, una píldora interior gris muy suave; al presionar, más
     marcada; elegido, negra con texto blanco; foco de teclado, anillo dorado oscuro.
   - Separación al borde del lienzo: 16 px (12 px en teléfono) y 8 px entre controles.
   Mientras el 3D carga no hay controles: solo el indicador de carga (script.js, initExplorer3D).
   ============================================================ */
#x3d, #bx .bx-view, #location {
    --xc-h: 44px;
    --xc-h-sm: 28px;
    --xc-r: 22px;
    --xc-pad: 4px;
    --xc-r-in: calc(var(--xc-r) - var(--xc-pad));
    --xc-m: 16px;
    --xc-gap: 8px;
    --xc-ink: #1A1A1A;
    --xc-muted: #5F5A52;
    --xc-surface: rgba(255,255,255,0.95);
    --xc-track: rgba(26,26,26,0.06);
    --xc-hover: rgba(26,26,26,0.07);
    --xc-press: rgba(26,26,26,0.14);
    --xc-line: rgba(26,26,26,0.12);
    --xc-gold: #C5A572;
    --xc-gold-text: #7A6433;
    --xc-shadow: 0 0 0 1px rgba(26,26,26,0.06), 0 6px 20px rgba(26,26,26,0.16);
    --xc-fs: 14px;
    --xc-fs-sm: 12px;
    --xc-fw: 600;
    --xc-ic: 15px;
    --xc-stage-h: min(72vh, 640px);
}
@media (max-width: 760px) { #x3d { --xc-m: 12px; } }
@media (orientation: landscape) and (max-height: 500px) { #x3d { --xc-m: 12px; } }
@media (min-width: 761px) and (max-height: 900px) { #x3d { --xc-stage-h: min(64vh, 640px); } }

/* --- 1. Lo común: superficie, texto y estados --- */
#x3d :is(.x3d-legend, .x3d-legend-keys, .x3d-unlock, .x3d-zoom, .x3d-fs, .x3d-pick-bar, .x3d-hint, .x3d-tag, .x3d-lvcard, .x3d-360menu, .x3d-tip) {
    border: 0; border-radius: var(--xc-r); background: var(--xc-surface); color: var(--xc-ink);
    box-shadow: var(--xc-shadow); font-family: var(--font-body); letter-spacing: 0;
    -webkit-backdrop-filter: none; backdrop-filter: none;
}
#x3d :is(.x3d-legend, .x3d-unlock, .x3d-tw, .x3d-lv b, .x3d-paintall, .x3d-360-main, .x3d-360-main span, .x3d-360-main small, .lc-side button) {
    font-family: var(--font-body); font-size: var(--xc-fs); font-weight: var(--xc-fw); letter-spacing: 0; line-height: 1.2;
}
#x3d :is(.x3d-hint, .x3d-tag, .x3d-lv-cap, .x3d-legend-keys) { font-weight: var(--xc-fw); letter-spacing: 0; line-height: 1.2; }
#x3d :is(.x3d-legend, .x3d-unlock, .x3d-tools, .x3d-pick, .x3d-lvcard, .x3d-360menu) :is(button, i.fas) { -webkit-tap-highlight-color: transparent; }
/* Botones: transparentes sobre su superficie; el estado se dibuja en una píldora interior */
#x3d :where(.x3d-tw, .x3d-lv, .x3d-zoom button, .x3d-fs, .x3d-paintall, .x3d-unlock, .x3d-360-main, .lc-step button, .lc-x, .x3d-360-x, .lc-side button) {
    isolation: isolate; margin: 0; border: 0; cursor: pointer; border-radius: var(--xc-r);
    min-width: 0; min-height: 0; transition: color .15s;
}
#x3d :where(.x3d-tw, .x3d-lv, .x3d-zoom button, .x3d-fs, .x3d-paintall, .x3d-360-main, .lc-step button, .lc-x, .x3d-360-x, .lc-side button) { position: relative; }
#x3d :where(.x3d-tw, .x3d-lv, .x3d-zoom button, .x3d-paintall, .x3d-360-main, .lc-step button, .lc-x, .x3d-360-x, .lc-side button) { background: none; box-shadow: none; color: inherit; }
#x3d :where(.x3d-tw, .x3d-lv, .x3d-zoom button, .x3d-fs, .x3d-paintall, .x3d-unlock, .x3d-360-main, .lc-step button, .lc-x, .x3d-360-x, .lc-side button)::before {
    content: ''; position: absolute; inset: var(--xc-pad); z-index: -1; border-radius: var(--xc-r-in);
    background: transparent; transition: background .15s;
}
#x3d :where(.x3d-tw, .x3d-lv, .x3d-zoom button, .x3d-fs, .x3d-paintall, .x3d-unlock, .x3d-360-main, .lc-step button, .lc-x, .x3d-360-x, .lc-side button)::after { content: none; }
@media (hover: hover) and (pointer: fine) {
    #x3d :where(.x3d-tw, .x3d-lv, .x3d-zoom button, .x3d-fs, .x3d-paintall, .x3d-unlock, .lc-step button, .lc-x, .x3d-360-x, .lc-side button):not(:disabled):hover::before { background: var(--xc-hover); }
    #x3d .x3d-360-main:hover::before { background: rgba(255,255,255,0.12); }
}
#x3d :where(.x3d-tw, .x3d-lv, .x3d-zoom button, .x3d-fs, .x3d-paintall, .x3d-unlock, .lc-step button, .lc-x, .x3d-360-x, .lc-side button):not(:disabled):active::before { background: var(--xc-press); }
#x3d .x3d-360-main:active::before, #x3d .x3d-tour.is-open .x3d-360-main::before { background: rgba(255,255,255,0.18); }
/* Elegido: negro con texto blanco (torre, nivel, Exterior/Parque) */
#x3d :where(.x3d-tw, .x3d-lv, .lc-side button).is-active { color: #fff; background: none; box-shadow: none; }
#x3d :where(.x3d-tw, .x3d-lv, .lc-side button).is-active::before,
#x3d :where(.x3d-tw, .x3d-lv, .lc-side button).is-active:hover::before,
#x3d :where(.x3d-tw, .x3d-lv, .lc-side button).is-active:active::before { background: var(--xc-ink); }
/* Foco de teclado */
#x3d :where(.x3d-legend, .x3d-unlock, .x3d-tools, .x3d-pick, .x3d-lvcard, .x3d-360menu, .x3d-loading) :where(button, a):focus-visible,
#x3d .x3d-unlock:focus-visible { outline: 2px solid var(--xc-gold-text); outline-offset: -2px; box-shadow: none; }
#x3d :is(.x3d-fs, .x3d-unlock):focus-visible { outline-offset: 2px; box-shadow: var(--xc-shadow); }
#x3d .x3d-360-main:focus-visible { outline-color: var(--xc-gold); outline-offset: 2px; }
#x3d :is(.x3d-legend, .x3d-unlock, .x3d-tip, .x3d-lvcard, .x3d-360menu, .x3d-launch)[hidden] { display: none; }

/* --- 2. Arriba a la izquierda: leyenda + interruptor en una sola barra (sin datos: «Ver disponibilidad») --- */
#x3d .x3d-legend, #x3d .x3d-unlock {
    position: absolute; z-index: 3; top: var(--xc-m); left: var(--xc-m); right: auto; bottom: auto;
    display: flex; align-items: center; height: var(--xc-h); min-height: 0; max-width: calc(100% - 2 * var(--xc-m));
}
#x3d.is-full .x3d-legend, #x3d.is-full .x3d-unlock { top: calc(var(--xc-m) + env(safe-area-inset-top, 0px)); left: max(var(--xc-m), env(safe-area-inset-left, 0px)); }
#x3d .x3d-legend { flex-direction: row; flex-wrap: nowrap; gap: 0; padding: 0 var(--xc-pad) 0 16px; pointer-events: auto; }
#x3d .x3d-legend-keys {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 14px; padding: 0; height: auto;
    background: none; box-shadow: none; border-radius: 0; font-size: var(--xc-fs); white-space: nowrap;
}
#x3d .x3d-legend-keys span { display: inline-flex; align-items: center; gap: 6px; }
#x3d .x3d-legend .fp-dot, #x3d .lc-sum .fp-dot { width: 8px; height: 8px; flex: none; }
#x3d .x3d-legend .x3d-paintall {
    display: inline-flex; align-items: center; gap: 8px; height: var(--xc-h); margin-left: 12px; padding: 0 14px 0 12px;
    white-space: nowrap; pointer-events: auto;
}
/* divisor entre la leyenda y el interruptor (igual al de torres | niveles) */
#x3d .x3d-legend .x3d-paintall::after { content: ''; position: absolute; left: -6px; top: 12px; bottom: 12px; width: 1px; background: var(--xc-line); }
#x3d .x3d-sw { position: relative; flex: none; width: 32px; height: 20px; border-radius: 10px; background: rgba(26,26,26,0.22); transition: background .2s; }
#x3d .x3d-sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.25); transition: transform .2s; }
#x3d .x3d-paintall[aria-pressed="true"] { background: none; color: var(--xc-ink); box-shadow: none; }
#x3d .x3d-paintall[aria-pressed="true"] .x3d-sw { background: var(--xc-ink); }
#x3d .x3d-paintall[aria-pressed="true"] .x3d-sw::after { transform: translateX(12px); }
/* dentro de un nivel solo se colorea ese nivel: queda la leyenda sola */
#x3d.is-level .x3d-legend { padding-right: 16px; }
#x3d.is-level .x3d-legend .x3d-paintall { display: none; }
#x3d .x3d-unlock { gap: 8px; padding: 0 18px 0 16px; white-space: nowrap; }
#x3d .x3d-unlock i { font-size: var(--xc-ic); color: var(--xc-gold-text); }
/* Visor angosto (teléfono vertical): la leyenda va sola, compacta, y el interruptor debajo */
@container x3dstage (max-width: 600px) {
    #x3d .x3d-legend { flex-direction: column; align-items: flex-start; gap: var(--xc-gap); height: auto; padding: 0; background: none; box-shadow: none; border-radius: 0; pointer-events: none; }
    #x3d .x3d-legend-keys { height: var(--xc-h-sm); gap: 10px; padding: 0 12px; border-radius: var(--xc-r); background: var(--xc-surface); box-shadow: var(--xc-shadow); font-size: var(--xc-fs-sm); pointer-events: auto; }
    #x3d .x3d-legend-keys span { gap: 5px; }
    #x3d .x3d-legend .x3d-paintall { margin-left: 0; padding: 0 16px 0 12px; background: var(--xc-surface); box-shadow: var(--xc-shadow); }
    #x3d .x3d-legend .x3d-paintall::after { content: none; }
}
/* Teléfono acostado: igual, apilados, para dejar el cielo libre a los nombres de torre */
@media (orientation: landscape) and (max-height: 500px) {
    #x3d .x3d-legend { flex-direction: column; align-items: flex-start; gap: var(--xc-gap); height: auto; padding: 0; background: none; box-shadow: none; border-radius: 0; pointer-events: none; }
    #x3d .x3d-legend-keys { height: var(--xc-h-sm); gap: 10px; padding: 0 12px; border-radius: var(--xc-r); background: var(--xc-surface); box-shadow: var(--xc-shadow); font-size: var(--xc-fs-sm); pointer-events: auto; }
    #x3d .x3d-legend-keys span { gap: 5px; }
    #x3d .x3d-legend .x3d-paintall { margin-left: 0; padding: 0 16px 0 12px; background: var(--xc-surface); box-shadow: var(--xc-shadow); }
    #x3d .x3d-legend .x3d-paintall::after { content: none; }
}

/* --- 3. Arriba a la derecha: acercar/alejar (solo con mouse) y pantalla completa --- */
#x3d .x3d-tools {
    position: absolute; z-index: 3; top: var(--xc-m); right: var(--xc-m); left: auto; bottom: auto;
    display: flex; flex-direction: column; align-items: flex-end; gap: var(--xc-gap);
}
#x3d.is-full .x3d-tools { top: calc(var(--xc-m) + env(safe-area-inset-top, 0px)); right: max(var(--xc-m), env(safe-area-inset-right, 0px)); }
#x3d .x3d-zoom { display: flex; flex-direction: column; overflow: visible; }
#x3d .x3d-zoom button, #x3d .x3d-fs { display: grid; place-items: center; width: var(--xc-h); height: var(--xc-h); padding: 0; font-size: var(--xc-ic); }
#x3d .x3d-zoom button + button { border-top: 0; }
#x3d .x3d-zoom button + button::after { content: ''; position: absolute; top: 0; left: 12px; right: 12px; height: 1px; background: var(--xc-line); }
#x3d .x3d-tools button:hover { color: var(--xc-ink); }
@media (hover: none), (pointer: coarse) { #x3d .x3d-zoom { display: none; } }
/* Teléfono de 320 px: la leyenda ocupa el primer renglón y pantalla completa baja al del interruptor */
@container x3dstage (max-width: 340px) {
    #x3d:has(.x3d-legend:not([hidden])) .x3d-tools { top: calc(var(--xc-m) + var(--xc-h-sm) + var(--xc-gap)); }
    #x3d.is-full:has(.x3d-legend:not([hidden])) .x3d-tools { top: calc(var(--xc-m) + var(--xc-h-sm) + var(--xc-gap) + env(safe-area-inset-top, 0px)); }
}

/* --- 4. Aviso «Arrastra para girar…» y nombres de torre: compactos, misma superficie --- */
#x3d .x3d-hint {
    position: absolute; z-index: 3; left: 50%; right: auto; top: auto; bottom: calc(var(--xc-m) + var(--xc-h) + 12px);
    transform: translateX(-50%); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    width: max-content; max-width: calc(100% - 2 * var(--xc-m)); height: var(--xc-h-sm); margin: 0; padding: 0 12px;
    font-size: var(--xc-fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
#x3d .x3d-hint i { margin: 0; font-size: var(--xc-fs-sm); color: var(--xc-gold-text); }
@media (max-width: 760px) { #x3d .x3d-hint { bottom: var(--xc-m); } }
@media (orientation: landscape) and (max-height: 500px) { #x3d .x3d-hint { display: none; } }
@container x3dstage (max-width: 330px) {
    #x3d .x3d-hint { height: auto; min-height: var(--xc-h-sm); padding: 6px 12px; white-space: normal; text-align: center; text-wrap: balance; line-height: 1.35; }
    #x3d .x3d-hint i { display: none; }
}
#x3d .x3d-tag { display: inline-flex; align-items: center; height: var(--xc-h-sm); padding: 0 12px; font-size: var(--xc-fs-sm); white-space: nowrap; }
#x3d .x3d-tag.is-active { background: var(--xc-ink); color: #fff; }
#x3d .x3d-leaders line.is-tower { stroke: var(--xc-ink); stroke-width: 1.4; }
#x3d .x3d-leaders circle.is-tower { fill: var(--xc-gold); stroke: var(--xc-ink); }

/* --- 5. Abajo: torres | niveles a la izquierda y «360°» a la derecha, a la misma altura --- */
#x3d .x3d-towers { display: flex; flex: none; gap: 0; padding: 0; border: 0; border-radius: 0; background: none; }
#x3d .x3d-tw { height: var(--xc-h); padding: 0 16px; white-space: nowrap; }
#x3d .x3d-tw::before { inset: var(--xc-pad) 0; }
#x3d .x3d-levels { position: relative; display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 0; min-width: 0; margin: 0 0 0 8px; padding: 0 0 0 8px; border: 0; overflow: visible; }
#x3d .x3d-levels::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--xc-line); }
#x3d .x3d-lv-cap { flex: none; padding: 0 6px 0 4px; font-size: var(--xc-fs-sm); text-transform: none; color: var(--xc-muted); }
#x3d .x3d-lv { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; flex: none; width: var(--xc-h); height: var(--xc-h); padding: 0; }
#x3d .x3d-lv b { line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
#x3d .x3d-lv-dot { display: block; width: 5px; height: 5px; border-radius: 50%; }
#x3d .x3d-lv.is-active .x3d-lv-dot { box-shadow: 0 0 0 1px rgba(255,255,255,0.9); }
#x3d .x3d-tour { position: relative; flex: none; }
#x3d .x3d-360-btns { display: flex; align-items: stretch; height: var(--xc-h); overflow: visible; border-radius: var(--xc-r); background: var(--xc-ink); color: #fff; box-shadow: var(--xc-shadow); }
#x3d .x3d-360-main { display: flex; align-items: center; gap: 8px; height: var(--xc-h); padding: 0 18px 0 16px; white-space: nowrap; }
#x3d .x3d-360-main i { font-size: var(--xc-ic); color: var(--xc-gold); }
#x3d .x3d-360-main small { color: #fff; }

/* Computadora, tableta y teléfono acostado: flotan sobre el edificio */
@media (min-width: 761px) {
    #x3d .x3d-pick {
        position: absolute; z-index: 4; left: var(--xc-m); right: var(--xc-m); bottom: var(--xc-m); transform: none;
        display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: flex-end; gap: var(--xc-gap);
        width: auto; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; pointer-events: none;
    }
    #x3d.is-full .x3d-pick {
        position: fixed; z-index: 1401; bottom: calc(var(--xc-m) + env(safe-area-inset-bottom, 0px));
        left: max(var(--xc-m), env(safe-area-inset-left, 0px)); right: max(var(--xc-m), env(safe-area-inset-right, 0px));
    }
    #x3d .x3d-pick-bar { display: flex; align-items: center; gap: 0; flex: 0 1 auto; min-width: 0; height: var(--xc-h); padding: 0 var(--xc-pad); pointer-events: auto; }
    #x3d .x3d-tour { margin-right: var(--x3d-tour-dodge, 0px); transition: margin-right .25s ease; pointer-events: auto; }
}
/* Tableta vertical y teléfono acostado: sin las palabras «Nivel» y «Recorridos» para que todo quepa en un renglón */
@media (min-width: 761px) and (max-width: 1024px), (orientation: landscape) and (max-height: 500px) {
    #x3d .x3d-lv-cap, #x3d .x3d-360-main small { display: none; }
    #x3d .x3d-tw { padding: 0 12px; }
    #x3d .x3d-levels { overflow-x: auto; scrollbar-width: none; }
    #x3d .x3d-levels::-webkit-scrollbar { display: none; }
}
/* Teléfono vertical: la barra es un panel pegado al visor; renglón 1 = torres + 360°, renglón 2 = niveles.
   Cada renglón es un selector con la misma altura, radio y estado elegido que en computadora. */
@media (max-width: 760px) {
    #x3d .x3d-pick {
        position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tw tour" "lv lv";
        gap: var(--xc-gap); align-items: stretch; margin: 0; padding: 8px; transform: none; pointer-events: auto;
        background: #fff; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
        box-shadow: 0 14px 40px rgba(0,0,0,0.12), 0 0 0 1px var(--mg-line, rgba(10,10,10,0.09));
    }
    #x3d.is-full .x3d-pick {
        position: fixed; z-index: 1401; left: 0; right: 0; bottom: 0;
        padding: 8px max(var(--xc-m), env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(var(--xc-m), env(safe-area-inset-left, 0px));
        border-radius: var(--xc-r) var(--xc-r) 0 0; box-shadow: 0 -6px 20px rgba(26,26,26,0.12);
    }
    #x3d .x3d-pick-bar { display: contents; }
    #x3d .x3d-towers, #x3d .x3d-levels { height: var(--xc-h); padding: 0 var(--xc-pad); border-radius: var(--xc-r); background: var(--xc-track); }
    #x3d .x3d-towers { grid-area: tw; width: auto; min-width: 0; }
    #x3d .x3d-tw { flex: 1 1 0; padding: 0 4px; }
    #x3d .x3d-levels { grid-area: lv; margin: 0; }
    #x3d .x3d-levels::before { content: none; }
    #x3d .x3d-lv { flex: 1 1 0; width: auto; }
    #x3d .x3d-lv::before { inset: var(--xc-pad) 2px; }
    #x3d .x3d-lv-cap { padding: 0 4px 0 10px; }
    #x3d .x3d-tour { grid-area: tour; position: static; margin: 0; }
    #x3d .x3d-360-btns { box-shadow: none; }
    #x3d .x3d-360-main small { display: none; }
}
/* Teléfonos angostos: sin la palabra «Nivel», para que cada número conserve 44 px de toque */
@media (max-width: 409px) { #x3d:not(.is-full) .x3d-lv-cap { display: none; } }
@media (max-width: 377px) { #x3d .x3d-lv-cap { display: none; } }
@media (max-width: 371px) {
    #x3d:not(.is-full):not(.is-idle) { margin-inline: -12px; }
    #x3d:not(.is-full) .x3d-pick { padding-inline: 4px; }
    #x3d .x3d-levels { padding: 0; }
}
@media (max-width: 339px) {
    #x3d:not(.is-full):not(.is-idle) { margin-inline: calc(-1 * var(--container-pad)); }
    #x3d:not(.is-full):not(.is-idle) .x3d-stage, #x3d:not(.is-full) .x3d-pick { border-radius: 0; }
    #x3d.is-full .x3d-pick { padding-inline: 6px; }
}

/* --- 6. Lista de recorridos 360° --- */
#x3d .x3d-360menu {
    position: absolute; z-index: 30; right: max(0px, calc(var(--xc-h) + var(--xc-gap) - var(--x3d-tour-dodge, 0px))); left: auto; bottom: calc(100% + var(--xc-gap));
    width: 372px; max-height: calc(max(var(--xc-stage-h), 360px) - var(--xc-h) - 2 * var(--xc-m) - var(--xc-gap));
    display: flex; flex-direction: column; overflow: hidden; background: #fff;
}
#x3d.is-full .x3d-360menu { max-height: calc(100vh - var(--xc-h) - 2 * var(--xc-m) - var(--xc-gap) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - var(--xc-h) - 2 * var(--xc-m) - var(--xc-gap) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
#x3d .x3d-360-head { display: flex; align-items: center; gap: 8px; padding: 12px 8px 10px 20px; border-bottom: 1px solid var(--xc-line); }
#x3d .x3d-360-head small { font-size: var(--xc-fs-sm); color: var(--xc-muted); }
#x3d .x3d-360-x, #x3d .lc-x, #x3d .lc-step button { flex: none; display: grid; place-items: center; width: var(--xc-h); height: var(--xc-h); margin: 0; padding: 0; font-size: var(--xc-ic); line-height: 1; color: var(--xc-ink); }
#x3d .lc-step button::before, #x3d .lc-x::before, #x3d .x3d-360-x::before { background: var(--xc-track); }
#x3d .lc-step button:disabled { opacity: 0.35; cursor: default; }
#x3d .x3d-360-body { padding: 4px 12px 12px; }
#x3d .x3d-360-h, #x3d .lc-core { font-size: var(--xc-fs-sm); font-weight: var(--xc-fw); letter-spacing: 0; text-transform: none; }
#x3d .x3d-360-h { margin: 12px 4px 8px; color: var(--xc-gold-text); }
#x3d .x3d-360-it { border: 1px solid var(--xc-line); border-radius: calc(var(--xc-r) - 8px); }
#x3d .x3d-360-it img, #x3d .x3d-360-noimg { border-radius: calc(var(--xc-r) - 12px); }
#x3d .x3d-360-it:focus-visible { outline: 2px solid var(--xc-gold-text); outline-offset: 1px; }
#x3d .x3d-360-it.is-ctx { border-color: var(--xc-ink); box-shadow: inset 0 0 0 1px var(--xc-ink); }
@media (orientation: landscape) and (max-height: 500px) { #x3d.is-full .x3d-360menu { width: min(420px, 60vw); } }
@media (max-width: 760px) {
    #x3d .x3d-360menu { left: var(--xc-m); right: var(--xc-m); width: auto; max-height: calc(64vh - 2 * var(--xc-m)); }
    #x3d.is-full .x3d-360menu { max-height: calc(100vh - var(--x3d-pick-h, 120px) - 2 * var(--xc-m) - env(safe-area-inset-top, 0px)); max-height: calc(100dvh - var(--x3d-pick-h, 120px) - 2 * var(--xc-m) - env(safe-area-inset-top, 0px)); }
}

/* --- 7. Tarjeta del nivel --- */
#x3d .x3d-lvcard {
    position: absolute; z-index: 5; left: var(--xc-m); right: auto; width: min(340px, 38%);
    top: calc(var(--xc-m) + var(--xc-h) + var(--xc-gap)); bottom: calc(var(--xc-m) + var(--xc-h) + var(--xc-gap));
    display: flex; flex-direction: column; overflow: hidden; background: #fff;
}
#x3d.is-full .x3d-lvcard {
    left: max(var(--xc-m), env(safe-area-inset-left, 0px));
    top: calc(var(--xc-m) + var(--xc-h) + var(--xc-gap) + env(safe-area-inset-top, 0px)); bottom: calc(var(--xc-m) + var(--xc-h) + var(--xc-gap) + env(safe-area-inset-bottom, 0px));
}
#x3d .lc-head { gap: 0; padding: 10px 8px 2px 20px; }
#x3d .lc-step { gap: 0; }
#x3d .lc-title small { font-size: var(--xc-fs-sm); font-weight: var(--xc-fw); letter-spacing: 0; text-transform: none; color: var(--xc-muted); }
#x3d .lc-bar { gap: 4px 12px; padding: 0 12px 10px 20px; }
#x3d .lc-sum { font-size: 13px; color: var(--xc-ink); }
#x3d .lc-side { flex: none; display: flex; height: var(--xc-h); margin-left: auto; padding: 0 var(--xc-pad); border-radius: var(--xc-r); background: var(--xc-track); }
#x3d .lc-side button { flex: 1; height: var(--xc-h); padding: 0 14px; white-space: nowrap; }
#x3d .lc-side button::before { inset: var(--xc-pad) 0; }
#x3d .lc-list { border-top: 1px solid var(--xc-line); }
#x3d .lc-core { padding: 12px 12px 4px; color: var(--xc-muted); }
#x3d .lc-row { border-radius: calc(var(--xc-r) - 8px); }
#x3d .lc-row:hover, #x3d .lc-row.is-hot { background: var(--xc-track); }
#x3d .lc-row.is-sel { background: var(--xc-track); box-shadow: inset 0 0 0 1.5px var(--xc-ink); }
#x3d .lc-row:focus-visible { outline: 2px solid var(--xc-gold-text); outline-offset: -2px; }
#x3d .lc-num { border-radius: calc(var(--xc-r) - 12px); }
#x3d .lc-num small, #x3d .lc-facts small, #x3d .lc-st { font-size: var(--xc-fs-sm); }
#x3d .lc-go { color: var(--xc-gold-text); }
#x3d .lc-foot { padding: 0 12px 4px 20px; border-top: 1px solid var(--xc-line); }
#x3d .lc-plan { min-height: var(--xc-h); padding: 0; font-size: 13px; color: var(--xc-ink); }
#x3d .lc-plan i { color: var(--xc-gold-text); }
#x3d .lc-row.is-sel .lc-cta { min-height: 36px; border-radius: var(--xc-r-in); background: var(--xc-ink); font-size: 13px; }
/* Teléfono acostado: la tarjeta, más angosta, debajo de la leyenda compacta */
@media (orientation: landscape) and (max-height: 500px) {
    #x3d .x3d-lvcard { width: min(300px, 40%); top: calc(var(--xc-m) + var(--xc-h-sm) + var(--xc-gap)); }
    #x3d.is-full .x3d-lvcard { top: calc(var(--xc-m) + var(--xc-h-sm) + var(--xc-gap) + env(safe-area-inset-top, 0px)); }
    /* sin datos, arriba va «Ver disponibilidad» (44 px) en lugar de la leyenda compacta */
    #x3d:has(.x3d-unlock:not([hidden])) .x3d-lvcard { top: calc(var(--xc-m) + var(--xc-h) + var(--xc-gap)); }
    #x3d.is-full:has(.x3d-unlock:not([hidden])) .x3d-lvcard { top: calc(var(--xc-m) + var(--xc-h) + var(--xc-gap) + env(safe-area-inset-top, 0px)); }
    #x3d .lc-head { padding: 4px 4px 0 16px; }
    #x3d .lc-bar { padding: 0 8px 6px 16px; }
    #x3d .lc-foot { padding: 0 8px 0 16px; }
}
/* Teléfono vertical: la tarjeta va abajo y los departamentos se deslizan de lado */
@media (max-width: 760px) {
    #x3d .x3d-lvcard, #x3d.is-full .x3d-lvcard { left: var(--xc-m); right: var(--xc-m); top: auto; bottom: var(--xc-m); width: auto; max-height: min(62%, 100% - 2 * var(--xc-m) - var(--xc-h-sm) - var(--xc-gap)); }
    #x3d:not(.is-full) .x3d-lvcard { max-height: calc(100% - 2 * var(--xc-m) - var(--xc-h-sm) - var(--xc-gap)); }
    #x3d .lc-head { padding: 6px 4px 0 16px; }
    #x3d .lc-bar { padding: 0 8px 8px 16px; }
    #x3d .lc-side button { padding: 0 12px; }
    #x3d .lc-list { padding: 8px; gap: 8px; }
    #x3d .lc-row, #x3d .lc-row--unit { border: 1px solid var(--xc-line); }
    #x3d .lc-foot { padding: 0 8px 0 16px; border-top: 0; }
}

/* --- 8. Vista previa al pasar el cursor --- */
#x3d .x3d-tip { padding: 10px 16px; background: #fff; pointer-events: none; }
#x3d .x3d-tip.x3d-tip--unit { padding: 8px 18px 8px 8px; }
#x3d .x3d-tip-img { border-radius: calc(var(--xc-r) - 8px); }

/* --- 9. Selector [Edificio 3D | Lista]: la misma pieza que torres/niveles --- */
#bx .bx-view.seg-control { display: inline-flex; align-items: center; height: var(--xc-h); padding: 0 var(--xc-pad); border: 0; border-radius: var(--xc-r); background: #fff; box-shadow: var(--xc-shadow); }
#bx .bx-view .seg-btn {
    position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 8px; height: var(--xc-h); min-height: 0; padding: 0 16px;
    border-radius: var(--xc-r); background: none; box-shadow: none; color: var(--xc-ink);
    font-size: var(--xc-fs); font-weight: var(--xc-fw); letter-spacing: 0; transition: color .15s;
}
#bx .bx-view .seg-btn i { margin: 0; font-size: var(--xc-ic); }
#bx .bx-view .seg-btn::before { content: ''; position: absolute; inset: var(--xc-pad) 0; z-index: -1; border-radius: var(--xc-r-in); background: transparent; transition: background .15s; }
@media (hover: hover) and (pointer: fine) { #bx .bx-view .seg-btn:not(.active):hover::before { background: var(--xc-hover); } }
#bx .bx-view .seg-btn.active { color: #fff; background: none; box-shadow: none; }
#bx .bx-view .seg-btn.active::before { background: var(--xc-ink); }
#bx .bx-view .seg-btn:focus-visible { outline: 2px solid var(--xc-gold-text); outline-offset: -2px; }

/* --- 10. Mientras carga: ningún control, solo el indicador sobre la foto --- */
#x3d:not(.is-ready) :is(.x3d-legend, .x3d-unlock, .x3d-tools, .x3d-hint, .x3d-labels, .x3d-leaders, .x3d-places, .x3d-pick, .x3d-lvcard, .x3d-tip) { visibility: hidden; opacity: 0; pointer-events: none; }
@media (max-width: 760px) {
    #x3d:not(.is-ready):not(.is-full) .x3d-pick { display: none; }
    #x3d:not(.is-ready):not(.is-full):not(.is-idle) .x3d-stage { border-radius: var(--radius-sm); }
    /* a pantalla completa el visor conserva su tamaño (sin saltos al terminar): la foto se funde hacia
       un fondo oscuro donde después entra la barra de torres y niveles */
    #x3d.is-full::before { content: ''; position: fixed; inset: 0; z-index: 1399; background: #14120F; }
    /* el visor sigue por debajo de las esquinas redondas del panel de torres y niveles */
    #x3d.is-full .x3d-stage { bottom: calc(var(--x3d-pick-h, 190px) - var(--xc-r)); }
    #x3d.is-full .x3d-hint, #x3d.is-full .x3d-lvcard { bottom: calc(var(--xc-m) + var(--xc-r)); }
    #x3d.is-full .x3d-loading { padding-bottom: calc(24px + var(--xc-r)); }
    /* con la lista de recorridos abierta (una hoja sobre el visor) se retira lo que quedaría asomando */
    #x3d.is-tour-open :is(.x3d-legend, .x3d-unlock, .x3d-hint, .x3d-labels, .x3d-leaders) { visibility: hidden; }
    #x3d.is-full .x3d-loading { background: linear-gradient(180deg, rgba(20,18,15,0.50) 0%, rgba(20,18,15,0.66) 62%, #14120F 100%); }
}
/* a pantalla completa siempre queda la × para salir, también mientras carga */
#x3d.is-full:not(.is-ready) .x3d-tools { visibility: visible; opacity: 1; pointer-events: auto; z-index: 5; }
#x3d.is-full:not(.is-ready) .x3d-zoom { display: none; }
#x3d .x3d-poster { transition: opacity .6s ease, filter .6s ease; }
#x3d.is-loading .x3d-poster { filter: blur(6px) saturate(0.9); transform: scale(1.04); }
#x3d .x3d-loading {
    position: absolute; inset: 0; z-index: 4; transform: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
    padding: 24px; border-radius: 0; text-align: center; color: #fff; font-family: var(--font-body); font-size: var(--xc-fs);
    background: linear-gradient(180deg, rgba(20,18,15,0.50), rgba(20,18,15,0.66));
    -webkit-backdrop-filter: none; backdrop-filter: none; transition: opacity .45s ease, visibility 0s linear .45s;
}
#x3d:not(.is-loading) .x3d-loading { display: none; }
#x3d.is-ready .x3d-loading { opacity: 0; visibility: hidden; pointer-events: none; }
#x3d .x3d-ld-logo { width: 68px; height: auto; margin-bottom: 14px; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.35)); }
#x3d .x3d-ld-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
#x3d .x3d-ld-bar { position: relative; width: min(220px, 62%); height: 2px; margin: 14px 0 10px; border-radius: 2px; background: rgba(255,255,255,0.24); overflow: hidden; }
#x3d .x3d-ld-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: var(--xc-gold); transition: width .25s ease; }
#x3d .x3d-ld-bar.is-busy i { width: 38%; transition: none; animation: xcBusy 1.25s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes xcBusy { from { left: -38%; } to { left: 100%; } }
#x3d .x3d-ld-phase { min-height: 1.3em; margin: 0; font-size: var(--xc-fs-sm); font-weight: 500; line-height: 1.3; color: rgba(255,255,255,0.78); font-variant-numeric: tabular-nums; }
#x3d .x3d-ld-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; animation: xcFade .4s ease both; }
#x3d .x3d-ld-more[hidden] { display: none; }
#x3d .x3d-ld-more p { margin: 0; font-size: 13px; line-height: 1.4; color: rgba(255,255,255,0.9); text-wrap: balance; }
#x3d .x3d-ld-btn {
    display: inline-flex; align-items: center; gap: 8px; height: var(--xc-h); padding: 0 18px; border: 0; border-radius: var(--xc-r); cursor: pointer;
    background: var(--xc-surface); color: var(--xc-ink); box-shadow: var(--xc-shadow); font: var(--xc-fw) var(--xc-fs)/1.2 var(--font-body);
}
#x3d .x3d-ld-btn i { font-size: var(--xc-fs-sm); color: var(--xc-gold-text); }
#x3d .x3d-ld-btn:hover { background: #fff; }
#x3d .x3d-ld-link { min-height: var(--xc-h); padding: 0 8px; border: 0; background: none; cursor: pointer; color: #fff; font: 500 13px/1.2 var(--font-body); text-decoration: underline; text-decoration-color: var(--xc-gold); text-underline-offset: 4px; }
#x3d .x3d-loading :is(button):focus-visible { outline: 2px solid var(--xc-gold); outline-offset: 2px; }
/* no cargó: mismo lugar, sin barra de avance */
#x3d.is-error .x3d-ld-bar { display: none; }
#x3d.is-error .x3d-ld-phase { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,0.9); }
#x3d.is-error .x3d-ld-more { margin-top: 16px; gap: 2px; }

/* --- 11. Al terminar de cargar, los controles entran de a uno (script.js pone .is-entering 1.2 s) --- */
@keyframes xcFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes xcInTop { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
@keyframes xcInBottom { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: no-preference) {
    #x3d.is-entering :is(.x3d-legend, .x3d-unlock, .x3d-tools) { animation: xcInTop .38s cubic-bezier(.22,1,.36,1) both; }
    #x3d.is-entering :is(.x3d-pick-bar, .x3d-tour, .x3d-hint) { animation: xcInBottom .38s cubic-bezier(.22,1,.36,1) both; }
    #x3d.is-entering :is(.x3d-labels, .x3d-leaders) { animation: xcFade .5s ease both; animation-delay: .46s; }
    #x3d.is-entering :is(.x3d-legend, .x3d-unlock) { animation-delay: .18s; }
    #x3d.is-entering .x3d-tools { animation-delay: .25s; }
    #x3d.is-entering .x3d-pick-bar { animation-delay: .32s; }
    #x3d.is-entering .x3d-tour { animation-delay: .39s; }
    #x3d.is-entering .x3d-hint { animation-delay: .56s; }
    @media (max-width: 760px) {
        #x3d.is-entering .x3d-pick { animation: xcInBottom .42s cubic-bezier(.22,1,.36,1) both; animation-delay: .2s; }
        #x3d.is-entering .x3d-tour { animation: none; }
    }
}
@media (prefers-reduced-motion: reduce) {
    #x3d .x3d-ld-bar.is-busy i { left: 0; width: 100%; opacity: 0.55; animation: none; }
    #x3d .x3d-poster, #x3d .x3d-loading { transition: none; }
}
/* fin · Controles del 3D unificados (15-nov) */

/* ============================================================
   Mapa de ubicación (16-nov) · mapa propio en lugar del iframe de Google
   Edgar: «¿No puedes como mejorar el mapa de Maps?».
   - El mapa es MapLibre GL JS (mapa/maplibre-gl.js) con teselas de OpenFreeMap: sin llave,
     sin cuenta y con uso comercial permitido. Se carga solo al acercarse a la sección
     (script.js §18b, initLocationMap). El estilo del mapa (colores de tierra, agua, calles) y
     las coordenadas de los destinos están en mapa/mg-mapa.js, no aquí.
   - Estados de #locMap: data-state = idle | loading | ready | static (static = no cargó: queda
     la imagen mapa/poster.webp con «Abrir en Google Maps»). data-view = overview | place | free
     (el botón «Vista general» solo aparece fuera de la vista general).
   - Los controles usan las variables --xc-* del bloque «Controles del 3D unificados (15-nov)»
     (por eso #location está en su lista de selectores): 44 px, radio 22 px, superficie clara,
     negro solo para lo elegido.
   - La atribución (.lm-attr) es obligatoria por la licencia de OpenStreetMap: no quitarla.
   - Sin minutos ni distancias (CLAUDE.md §4).
   ============================================================ */

/* --- 1. Lista de destinos: cada renglón es un botón ligado al mapa --- */
#location .poi-list { gap: 0; margin-bottom: 0.9rem; border-top: 1px solid var(--c-gray-200); }
#location .poi-list li { display: block; padding: 0; border-bottom: 1px solid var(--c-gray-200); }
#location .poi-list li::before { content: none; }
#location .poi-btn {
    position: relative; isolation: isolate; display: flex; align-items: center; gap: 14px;
    width: 100%; min-height: 60px; margin: 0; padding: 8px 12px 8px 8px; border: 0; background: none;
    color: var(--c-graphite); font: inherit; font-size: var(--fs-md); text-align: left; cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: color .15s;
}
#location .poi-btn::before {
    content: ''; position: absolute; inset: 5px 0; z-index: -1; border-radius: 14px;
    background: transparent; transition: background .15s;
}
#location .poi-ic {
    flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
    background: #fff; box-shadow: inset 0 0 0 1px rgba(159,133,80,0.6); color: var(--xc-gold-text);
    transition: background .2s, color .2s, box-shadow .2s;
}
#location .poi-ic svg { width: 19px; height: 19px; }
#location .poi-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.3; }
#location .poi-sub { font-size: 13px; color: var(--xc-muted); }
#location .poi-go {
    flex: none; width: 18px; height: 18px; margin-left: auto; color: var(--xc-gold-text);
    opacity: 0; translate: -6px 0; transition: opacity .2s, translate .2s;
}
@media (hover: hover) and (pointer: fine) {
    #location .poi-btn:hover::before { background: var(--xc-track); }
    #location .poi-btn:hover .poi-go { opacity: 1; translate: 0 0; }
}
#location .poi-btn:active::before { background: var(--xc-press); }
#location .poi-btn.is-active { color: var(--xc-ink); }
#location .poi-btn.is-active::before { background: var(--xc-track); }
#location .poi-btn.is-active .poi-ic { background: var(--xc-ink); color: #fff; box-shadow: none; }
#location .poi-btn.is-active .poi-go { opacity: 1; translate: 0 0; }
#location .poi-btn[aria-pressed="true"] .poi-go { color: var(--xc-ink); }
#location .poi-btn:focus-visible { outline: 2px solid var(--xc-gold-text); outline-offset: -3px; border-radius: 14px; }
#location .location-body > .poi-hint { margin: 0; max-width: none; font-size: 13px; color: var(--xc-muted); }
/* no cargó el mapa: la lista queda como lista */
#location.is-static .poi-btn { cursor: default; }
#location.is-static .poi-btn::before, #location.is-static .poi-go, #location.is-static .poi-hint { display: none; }

/* --- 2. El marco del mapa --- */
#location .location-map {
    position: relative; isolation: isolate; width: 100%; aspect-ratio: 4 / 5;
    max-height: max(440px, calc(100vh - 170px)); max-height: max(440px, calc(100svh - 170px));
    border-radius: var(--xc-r); overflow: hidden; background: #F7F4EE;
    box-shadow: 0 0 0 1px rgba(26,26,26,0.06), 0 24px 60px rgba(26,26,26,0.14);
}
#location .lm-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#location .lm-stage { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; font-family: var(--font-body); }
#locMap[data-state="ready"] .lm-stage { opacity: 1; }
#location .lm-stage .maplibregl-canvas { outline: none; }
#location .lm-stage .maplibregl-canvas:focus-visible { outline: 2px solid var(--xc-gold-text); outline-offset: -4px; border-radius: var(--xc-r); }
/* aviso de «usa dos dedos» / «usa Ctrl + rueda»: velo arena en vez del gris de fábrica */
#location .lm-stage .maplibregl-cooperative-gesture-screen {
    z-index: 6; padding: 24px; background: rgba(247,244,238,0.78); color: var(--xc-ink);
    font: var(--xc-fw) 15px/1.35 var(--font-body); text-align: center; text-wrap: balance;
}

/* --- 3. Marcadores --- */
/* Marina Gold: medalla dorada con su nombre, siempre visible */
#location .lm-mg {
    position: absolute; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; background: none;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
}
#location .lm-mg::before {
    content: ''; position: absolute; inset: -10px; border-radius: 50%; background: rgba(197,165,114,0.4);
    animation: lmHalo 3s ease-out infinite;
}
#location .lm-mg-in {
    position: absolute; inset: 2px; display: grid; place-items: center; border-radius: 50%;
    background: linear-gradient(150deg, #DCC69A 0%, #C5A572 45%, #9F8550 100%);
    box-shadow: 0 0 0 2px #fff, 0 4px 14px rgba(26,26,26,0.35);
    font: 600 12px/1 var(--font-display); letter-spacing: 0.02em; color: var(--xc-ink);
}
#location .lm-mg:focus-visible { outline: none; }
#location .lm-mg:focus-visible .lm-mg-in { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--xc-ink); }
#location .lm-here { left: 50%; top: 50%; translate: -50% -50%; z-index: 1; pointer-events: none; transition: opacity .3s ease .5s; }
#locMap[data-state="ready"] .lm-here { opacity: 0; }
@keyframes lmHalo { 0% { transform: scale(0.5); opacity: 0.9; } 70%, 100% { transform: scale(1.3); opacity: 0; } }

/* Etiqueta de un marcador: a la izquierda del punto (todos los destinos quedan al oriente de Marina Gold) */
#location .lm-lb {
    position: absolute; right: calc(100% + 6px); top: 50%; translate: 6px -50%;
    height: var(--xc-h-sm); padding: 0 12px; border-radius: var(--xc-r);
    background: var(--xc-surface); box-shadow: var(--xc-shadow); color: var(--xc-ink);
    font: var(--xc-fw) var(--xc-fs-sm)/var(--xc-h-sm) var(--font-body); letter-spacing: 0; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity .18s, translate .18s;
}
#location .lm-mg .lm-lb { translate: 0 -50%; opacity: 1; background: var(--xc-ink); color: #fff; box-shadow: 0 4px 14px rgba(26,26,26,0.3); }

/* Destinos */
#location .lm-dot {
    --d: 28px;
    position: absolute; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; background: none;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
}
#location .lm-dot-in {
    position: absolute; inset: 0; margin: auto; display: grid; place-items: center;
    width: var(--d); height: var(--d); border-radius: 50%;
    background: #fff; color: var(--xc-gold-text);
    box-shadow: 0 0 0 1.5px #9F8550, 0 2px 8px rgba(26,26,26,0.22);
    opacity: 0; scale: 0.4;
}
#location .lm-stage.is-in .lm-dot-in {
    opacity: 1; scale: 1;
    transition: opacity .4s ease calc(.6s + var(--i, 0) * 70ms), scale .5s cubic-bezier(.22,1,.36,1) calc(.6s + var(--i, 0) * 70ms),
        transform .2s, background .2s, color .2s, box-shadow .2s, width .2s, height .2s;
}
#location .lm-dot-in svg { width: 15px; height: 15px; }
#location .lm-dot:focus-visible { outline: none; }
#location .lm-dot:focus-visible .lm-dot-in { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--xc-gold-text); }
#location .lm-dot.is-active .lm-dot-in { background: var(--xc-ink); color: #fff; box-shadow: 0 0 0 2px #fff, 0 4px 14px rgba(26,26,26,0.35); transform: scale(1.12); }
#location .lm-dot:is(.is-active, :focus-visible) .lm-lb { opacity: 1; translate: 0 -50%; }
@media (hover: hover) and (pointer: fine) {
    #location .lm-dot:hover { z-index: 4; }
    #location .lm-dot:hover .lm-dot-in { transform: scale(1.12); }
    #location .lm-dot:hover .lm-lb { opacity: 1; translate: 0 -50%; }
}

/* --- 4. Controles sobre el mapa (misma familia que los del 3D) --- */
#location .lm-tools {
    position: absolute; z-index: 3; top: var(--xc-m); right: var(--xc-m);
    display: flex; flex-direction: column; align-items: flex-end; gap: var(--xc-gap);
}
#locMap:not([data-state="ready"]) .lm-tools { display: none; }
#location .lm-zoom { display: none; flex-direction: column; border-radius: var(--xc-r); background: var(--xc-surface); box-shadow: var(--xc-shadow); }
@media (hover: hover) and (pointer: fine) { #location .lm-zoom { display: flex; } }
#location :is(.lm-zoom button, .lm-reset, .map-open) {
    position: relative; isolation: isolate; margin: 0; border: 0; border-radius: var(--xc-r);
    color: var(--xc-ink); font: var(--xc-fw) var(--xc-fs)/1.2 var(--font-body); letter-spacing: 0;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
}
#location :is(.lm-zoom button, .lm-reset, .map-open)::before {
    content: ''; position: absolute; inset: var(--xc-pad); z-index: -1; border-radius: var(--xc-r-in);
    background: transparent; transition: background .15s;
}
@media (hover: hover) and (pointer: fine) {
    #location :is(.lm-zoom button, .lm-reset, .map-open):hover::before { background: var(--xc-hover); }
}
#location :is(.lm-zoom button, .lm-reset, .map-open):active::before { background: var(--xc-press); }
#location :is(.lm-zoom button, .lm-reset, .map-open):focus-visible { outline: 2px solid var(--xc-gold-text); outline-offset: -2px; }
#location :is(.lm-zoom, .lm-reset, .map-open) svg { flex: none; width: 16px; height: 16px; }
#location .lm-zoom button { display: grid; place-items: center; width: var(--xc-h); height: var(--xc-h); padding: 0; background: none; }
#location .lm-zoom button + button::after { content: ''; position: absolute; top: 0; left: 12px; right: 12px; height: 1px; background: var(--xc-line); }
/* fila de arriba: «Abrir en Google Maps» y, fuera de la vista general, «Vista general» */
#location .lm-top { position: absolute; z-index: 3; top: var(--xc-m); left: var(--xc-m); display: flex; align-items: center; gap: var(--xc-gap); }
#location .lm-reset {
    display: inline-flex; align-items: center; gap: 8px; height: var(--xc-h); padding: 0 16px 0 14px;
    background: var(--xc-surface); box-shadow: var(--xc-shadow); white-space: nowrap;
    transition: opacity .2s, visibility .2s;
}
#locMap:not([data-state="ready"]) .lm-reset, #locMap[data-view="overview"] .lm-reset { opacity: 0; visibility: hidden; }
#location .map-open {
    position: relative; inset: auto;
    display: inline-flex; align-items: center; gap: 8px; height: var(--xc-h); min-height: 0; padding: 0 16px;
    background: var(--xc-surface); box-shadow: var(--xc-shadow); text-decoration: none; white-space: nowrap;
}
#location .map-open:hover { background: var(--xc-surface); color: var(--xc-ink); }
#location .map-open svg { color: var(--xc-gold-text); }
#location .mo-short { display: none; }

/* Cargando */
#location .lm-loading {
    position: absolute; z-index: 2; left: 50%; bottom: 40px; translate: -50% 0; display: none;
    align-items: center; gap: 8px; height: var(--xc-h-sm); margin: 0; padding: 0 12px 0 10px; border-radius: var(--xc-r);
    background: var(--xc-surface); box-shadow: var(--xc-shadow); color: var(--xc-ink);
    font: var(--xc-fw) var(--xc-fs-sm)/1 var(--font-body); white-space: nowrap;
}
#locMap[data-state="loading"] .lm-loading { display: inline-flex; }
#location .lm-loading i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(159,133,80,0.3); border-top-color: #9F8550; animation: lmSpin .8s linear infinite; }
@keyframes lmSpin { to { transform: rotate(360deg); } }

/* Atribución: discreta, siempre a la vista */
#location .lm-attr {
    position: absolute; z-index: 2; right: 0; bottom: 0; margin: 0; padding: 3px 10px; max-width: none;
    border-top-left-radius: 10px; background: rgba(247,244,238,0.88); color: var(--xc-muted);
    font: 500 10.5px/1.5 var(--font-body); letter-spacing: 0; white-space: nowrap;
}
#location .lm-attr a { color: inherit; text-decoration: none; }
#location .lm-attr a:hover, #location .lm-attr a:focus-visible { color: var(--xc-ink); text-decoration: underline; }

/* --- 5. Una columna (iPad vertical y teléfono) --- */
@media (max-width: 900px) {
    #location .location-map { aspect-ratio: 4 / 3; max-height: none; }
}
@media (max-width: 600px) {
    #location { --xc-m: 12px; }
    #location .location-map { aspect-ratio: 4 / 5; max-height: max(340px, calc(100svh - 150px)); }
    #location .poi-btn { min-height: 56px; gap: 12px; padding-left: 6px; }
    #location .poi-go { opacity: 0.55; translate: 0 0; }
    /* en teléfono los puntos van chicos para no encimarse; el elegido crece y muestra su ícono */
    #location .lm-dot { --d: 14px; }
    #location .lm-dot-in svg { opacity: 0; transition: opacity .15s; }
    #location .lm-dot.is-active { --d: 28px; }
    #location .lm-dot.is-active .lm-dot-in svg { opacity: 1; }
    #location .lm-mg { width: 32px; height: 32px; }
    #location .lm-mg-in { font-size: 11px; }
}
/* mapa angosto (teléfono, o computadora con ventana chica): el enlace dice solo «Google Maps» */
@media (max-width: 600px), (min-width: 901px) and (max-width: 1100px) {
    #location .mo-long { display: none; }
    #location .mo-short { display: inline; }
}
@media (max-width: 380px) {
    #location .lm-reset { width: var(--xc-h); padding: 0; justify-content: center; }
    #location .lm-reset span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
    #location .lm-mg::before { animation: none; opacity: 0.6; transform: scale(0.85); }
    #location .lm-loading i { animation-duration: 2s; }
    #location :is(.lm-stage, .lm-dot-in, .lm-lb, .lm-here, .poi-go) { transition-duration: 0.01s; transition-delay: 0s; }
}
/* fin · Mapa de ubicación (16-nov) */

/* =========================================================
   Nomenclatura de módulos (16-nov): «Torre Centro 300» en lugar de «Ingreso TC-100»
   ========================================================= */
/* Lista: el nombre del módulo va en un renglón bajo el número (en teléfono se partía en tres) */
.bx-table td:first-child small { white-space: nowrap; }
/* y en teléfono sobra la columna «Torre»: el módulo ya la dice («Torre Centro 300») */
@media (max-width: 600px) { .bx-table :is(th, td):nth-child(2) { display: none; } }
/* fin · Nomenclatura de módulos (16-nov) */

/* ============================================================
   Crédito del entorno del 3D (16-nov). La planta del entorno (3d/entorno.json) sale de OpenStreetMap:
   la licencia pide el crédito a la vista. Va bajo el visor, discreto. No quitarlo.
   ============================================================ */
.availability .av-disclaimer.av-credit { margin-top: 4px; font-size: 12px; opacity: 0.85; }
.availability .av-disclaimer.av-credit a { color: inherit; text-decoration: none; }
.availability .av-disclaimer.av-credit a:hover, .availability .av-disclaimer.av-credit a:focus-visible { text-decoration: underline; }
