/* Tribeca Tower · Plantilla 3 — vidrio líquido, lo mínimo.
   La imagen ocupa todo; cada control es una pieza de vidrio pequeña que se agranda al tocarla. */

@font-face { font-family: "Switzer"; src: url("assets/fonts/switzer-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #fff;
  --ink-2: rgb(255 255 255 / .72);
  --ink-3: rgb(255 255 255 / .46);
  --blue: #0a84ff;
  --hair: rgb(255 255 255 / .16);
  --fill: rgb(255 255 255 / .12);
  --m: 26px;                    /* margen de la pantalla */
  --h: 44px;                    /* alto de un control */
  --ios: cubic-bezier(.32, .72, 0, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
  --soft-spring: linear(0, .029 1.6%, .123 3.5%, .651 10.6%, .862 14.1%, 1.002 17.7%, 1.046 19.6%, 1.074 21.6%, 1.087 23.9%, 1.086 26.6%, 1.014 38.5%, .994 46.3%, 1);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  --card-w: 268px;
  --paper: #0b0c0f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: #0b0c0f; color: var(--ink); overflow: hidden; overscroll-behavior: none;
  font: 400 15px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Switzer", system-ui, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
button svg, a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- El vidrio ---------- */
.g {
  --r: 22px;
  border-radius: var(--r); color: var(--ink);
  background: linear-gradient(180deg, rgb(255 255 255 / .13), rgb(255 255 255 / .05) 46%, rgb(255 255 255 / .09)), rgb(22 24 30 / .24);
  -webkit-backdrop-filter: blur(22px) saturate(1.9) brightness(1.04); backdrop-filter: blur(22px) saturate(1.9) brightness(1.04);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .42), inset 0 0 0 .5px rgb(255 255 255 / .2), inset 0 -1px 0 rgb(255 255 255 / .1),
    0 14px 44px rgb(0 0 0 / .22), 0 2px 10px rgb(0 0 0 / .14);
  text-shadow: 0 1px 12px rgb(0 0 0 / .22);
}
.g { position: relative; transition: color .5s, background-color .5s; }
.g::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .45s;
  background: radial-gradient(150px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .17), transparent 70%); }
@media (hover: hover) { .g:hover::after { opacity: 1; } }
.list::after, .sheet::after { display: none; }
/* sobre una imagen clara: tinta oscura */
.lt { --ink: #0c0d10; --ink-2: rgb(12 13 16 / .7); --ink-3: rgb(12 13 16 / .48); --hair: rgb(0 0 0 / .13); --fill: rgb(0 0 0 / .075); --paper: #fff; text-shadow: none; }
.g.lt { background: linear-gradient(180deg, rgb(255 255 255 / .5), rgb(255 255 255 / .26) 46%, rgb(255 255 255 / .36)), rgb(255 255 255 / .1); }
.brand { color: var(--ink); transition: color .5s; }
.brand.lt { text-shadow: 0 0 16px rgb(255 255 255 / .55); }
/* Safari y Firefox no refractan: el mismo vidrio, esmerilado y un punto más denso para que el texto se lea siempre */
.frost .g:not(.lt) { background: linear-gradient(180deg, rgb(255 255 255 / .14), rgb(255 255 255 / .05) 46%, rgb(255 255 255 / .09)), rgb(22 24 30 / .36); }
.frost .g.lt { background: linear-gradient(180deg, rgb(255 255 255 / .58), rgb(255 255 255 / .4)); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .g:not(.lt) { background: rgb(22 24 30 / .72); } .g.lt { background: rgb(255 255 255 / .82); } }
.g.lg-on { box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .1), 0 14px 44px rgb(0 0 0 / .22), 0 2px 10px rgb(0 0 0 / .14); } /* el motor ya dibuja el filo de luz */
.g-round { width: var(--h); height: var(--h); --r: 999px; display: grid; place-items: center; flex: none; }
.g-pill { height: var(--h); --r: 999px; display: inline-flex; align-items: center; gap: 4px; padding: 0 18px 0 10px; font-size: 14px; font-weight: 550; letter-spacing: -.005em; white-space: nowrap; }
.g-pill svg { width: 20px; height: 20px; }

/* todo lo que se toca cede un poco y vuelve con resorte */
.press { transition: transform .5s var(--spring), opacity .3s, background-color .3s; will-change: transform; }
.press:active { transform: scale(.94); transition-duration: .12s; transition-timing-function: ease-out; }

/* aparecer / irse */
@keyframes pop { from { opacity: 0; transform: var(--from, scale(.9)); } }
@keyframes fade { from { opacity: 0; } }
.pop { animation: pop .62s var(--soft-spring) both; }
.out { opacity: 0 !important; transform: var(--to, scale(.94)) !important; transition: opacity .22s ease-in, transform .26s ease-in !important; pointer-events: none !important; }

/* ---------- La imagen ---------- */
#stage { position: fixed; inset: 0; background: #0b0c0f; overflow: hidden; touch-action: none; transition: transform 1.1s var(--ios), filter .9s; }
.buf { position: absolute; inset: 0; opacity: 0; transition: opacity 1.05s ease; }
.buf.on { opacity: 1; }
.buf.cut { transition: none; }
.buf > img, .buf > video, .pair img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) 50%; }
.buf > img.fill, #lb img.fill { filter: blur(30px) brightness(.6) saturate(1.2); transform: scale(1.16); }
.buf > video.fit, #lb video.fit { object-fit: contain; }
.buf > img.breathe { animation: breathe 28s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.045); } }
.pair { position: absolute; inset: 0; }
.pair .night { opacity: var(--dn, 0); }
.relight { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
body[data-view="piso"] #stage, body[data-view="depa"] #stage { transform: scale(1.08); }

/* la ciudad, fuera de foco, detrás de la planta */
#soft { position: fixed; inset: -6%; background: #14161b center / cover no-repeat; filter: blur(18px) saturate(1.3); opacity: 0; pointer-events: none; transition: opacity .9s var(--ios); }
#soft::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, rgb(12 14 20 / .25), rgb(8 9 13 / .72)); }
body[data-view="piso"] #soft, body[data-view="depa"] #soft { opacity: 1; }

/* los pisos sobre la torre */
#bands { position: fixed; overflow: visible; opacity: 0; pointer-events: none; transition: opacity .5s; }
body[data-view="torre"]:not(.is-moving, .is-clean) #bands { opacity: 1; }
body[data-view="torre"]:not(.is-moving, .is-clean) #bands polygon { pointer-events: auto; }
#bands polygon { fill: transparent; stroke: transparent; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; cursor: pointer; transition: fill .35s, stroke .35s; }
#bands g.hot polygon { fill: rgb(255 255 255 / .3); stroke: rgb(255 255 255 / .95); filter: drop-shadow(0 0 10px rgb(255 255 255 / .55)); transition-duration: .12s; }

/* ---------- La planta ---------- */
#plan { position: fixed; inset: 0; pointer-events: none; }
.plan-box { position: absolute; top: calc(92px + var(--sat)); bottom: calc(96px + var(--sab)); left: max(5vw, var(--m)); right: calc(var(--card-w) + var(--m) + 4vw); container-type: size; }
.floor, .unit, .iso3d { position: absolute; opacity: 0; transform: scale(.93); filter: blur(10px); transition: opacity .55s var(--ios), transform .95s var(--ios), filter .55s; pointer-events: none; }
.floor { left: 50%; top: 50%; width: min(100cqw, 100cqh * 1.7914); aspect-ratio: 2800 / 1563; translate: -50% -50%; }
.floor img { position: absolute; inset: 0; width: 100%; height: 100%; }
.floor svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.unit, .iso3d { inset: 0; }
.unit img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
body[data-view="piso"] .floor, body[data-view="depa"]:not([data-mode="3d"]) .unit, body[data-view="depa"][data-mode="3d"] .iso3d { opacity: 1; transform: none; filter: none; pointer-events: auto; transition-delay: .12s; }
.iso3d { cursor: grab; touch-action: none; }
.iso3d:active { cursor: grabbing; }
.iso3d-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; outline: 0; }
.iso3d.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .2); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

/* departamentos del piso: nada a la vista hasta que el cursor pasa */
#floorSvg polygon { fill: transparent; stroke: transparent; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; cursor: pointer; transition: fill .3s, stroke .3s; }
#floorSvg .vendido polygon { fill: rgb(10 11 15 / .5); }
#floorSvg .separado polygon { fill: rgb(10 11 15 / .26); }
#floorSvg .hot polygon { fill: rgb(255 255 255 / .2); stroke: #fff; transition-duration: .1s; }
.tags { position: absolute; inset: 0; pointer-events: none; }
.tags span { position: absolute; translate: -50% -50%; padding: 4px 9px; border-radius: 999px; font-size: clamp(9.5px, 1.25cqw, 12px); font-weight: 600; letter-spacing: .01em;
  background: rgb(18 20 26 / .56); box-shadow: inset 0 .5px 0 rgb(255 255 255 / .35), 0 2px 8px rgb(0 0 0 / .25); transition: background-color .25s, color .25s, scale .5s var(--spring), opacity .3s; white-space: nowrap; }
.tags .separado { color: var(--ink-2); opacity: .7; }
.tags .vendido { color: var(--ink-3); opacity: .55; text-decoration: line-through; }
.tags .hot { background: #fff; color: #0b0c0f; scale: 1.12; opacity: 1; text-shadow: none; }

/* puntos sobre el plano: un toque entra al ambiente */
.dots { position: absolute; pointer-events: none; }
.dots button { position: absolute; width: 34px; height: 34px; translate: -50% -50%; pointer-events: auto; display: grid; place-items: center; animation: fade .6s calc(.5s + var(--i) * 60ms) both; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgb(255 255 255 / .28), 0 2px 10px rgb(0 0 0 / .4); transition: scale .5s var(--spring); }
.dots i::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .7); animation: ping 2.8s var(--out) calc(var(--i) * .35s) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.dots b { position: absolute; left: 50%; bottom: calc(100% + 2px); translate: -50% 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none;
  background: rgb(18 20 26 / .62); -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8); box-shadow: inset 0 .5px 0 rgb(255 255 255 / .4), 0 6px 18px rgb(0 0 0 / .3);
  opacity: 0; scale: .9; transition: opacity .25s, scale .45s var(--spring), translate .45s var(--spring); }
.dots button.dn b { bottom: auto; top: calc(100% + 2px); translate: -50% -6px; }
.dots button:hover i, .dots button:focus-visible i { scale: 1.35; }
.dots button:hover b, .dots button:focus-visible b { opacity: 1; scale: 1; translate: -50% 0; }
@media (hover: none) { .dots b { display: none; } }
.dots.off { opacity: 0; transition: opacity .25s; }
body:not([data-view="depa"]) .dots button, body[data-mode="3d"] .dots button { pointer-events: none; }

/* ubicación */
.pin { position: fixed; width: 0; height: 0; opacity: 0; pointer-events: none; transition: opacity .6s .5s; }
body[data-view="lugar"]:not(.is-clean) .pin { opacity: 1; }
.pin i { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 7px rgb(255 255 255 / .34), 0 4px 18px rgb(0 0 0 / .5); }
.pin span { position: absolute; left: 24px; top: -17px; height: 34px; padding: 0 15px; --r: 999px; display: flex; align-items: center; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.pin i::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid #fff; animation: ping 2.6s var(--out) infinite; }

/* ---------- Arriba ---------- */
.top { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: calc(var(--h) + 44px + var(--sat)); padding: calc(22px + var(--sat)) calc(var(--m) + var(--sar)) 0 calc(var(--m) + var(--sal)); display: flex; align-items: flex-start; justify-content: space-between; pointer-events: none; }
.top > * { pointer-events: auto; }
.top-l, .top-r { display: flex; gap: 10px; align-items: center; min-width: 120px; }
.top-r { justify-content: flex-end; }
.brand { position: absolute; left: 50%; top: calc(22px + var(--sat)); height: var(--h); translate: -50% 0; display: grid; place-content: center; justify-items: center; gap: 5px; text-shadow: 0 0 18px rgb(0 0 0 / .4), 0 1px 3px rgb(0 0 0 / .3); }
.brand b { font-size: 15px; font-weight: 550; letter-spacing: .46em; margin-right: -.46em; line-height: 1; }
.brand span { font-size: 8.5px; font-weight: 550; letter-spacing: .62em; margin-right: -.62em; line-height: 1; opacity: .82; }
.cta { height: 36px; margin-top: 4px; padding: 0 16px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 13.5px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), 0 8px 24px rgb(10 132 255 / .32), 0 2px 6px rgb(0 0 0 / .18); }
.cta:hover { background: #2b95ff; }
#backBtn { --from: translateX(-14px) scale(.9); }

/* ---------- Menú: nace del botón ---------- */
.menu { position: fixed; z-index: 31; top: calc(22px + var(--sat)); left: calc(var(--m) + var(--sal)); width: 252px; padding: 6px; --r: 24px; transform-origin: 22px 22px; --from: scale(.2); --to: scale(.3); }
.menu.pop { animation-duration: .7s; }
.menu-h { display: flex; align-items: center; height: var(--h); padding-right: 14px; }
.menu-h button { width: var(--h); height: var(--h); margin: -6px 2px -6px -6px; translate: 6px 0; display: grid; place-items: center; border-radius: 50%; }
.menu-h span { margin-left: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 42px; padding: 0 14px; border-radius: 16px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; text-align: left; transition: background-color .2s, transform .5s var(--spring); }
.row:hover, .row:focus-visible { background: var(--fill); }
.row:active { transform: scale(.975); background: rgb(255 255 255 / .2); }
.row.cur { font-weight: 650; }
.row.cur::before { content: ""; width: 6px; height: 6px; margin: 0 4px 0 -4px; border-radius: 50%; background: var(--ink); flex: none; }
.row.cur > span:first-child { margin-right: auto; }
.row small { font-size: 12px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.row kbd { font: inherit; font-size: 11.5px; font-weight: 600; color: var(--ink-3); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; display: grid; place-items: center; background: rgb(255 255 255 / .1); }
.sep { height: 1px; margin: 6px 14px; background: var(--hair); }
.grp { padding: 10px 14px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.menu .row, .list .row, .mus .row { animation: fade .5s calc(.08s + var(--i, 0) * 28ms) both; }

/* ---------- La tarjeta ---------- */
.card { position: fixed; z-index: 10; right: calc(var(--m) + var(--sar)); top: 50%; width: var(--card-w); translate: 0 -50%; --r: 28px; overflow: hidden; --from: translateX(26px) scale(.94); --to: translateX(16px) scale(.96); }
.card-in { padding: 22px 20px 20px; }
.card-in > * { animation: rise .7s var(--out) calc(var(--i, 0) * 55ms) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.eyebrow { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.c-t { margin: 0; font-size: 23px; font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
.c-n { margin: 0; display: flex; align-items: center; justify-content: space-between; font-size: 54px; font-weight: 600; line-height: 1; letter-spacing: -.035em; }
.c-n .step { display: flex; gap: 6px; }
.c-n .step button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); }
.c-n .step button:disabled { opacity: .3; pointer-events: none; }
.c-n .step svg { width: 18px; height: 18px; }
.c-s { margin: 8px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.c-s b { color: var(--ink); font-weight: 600; }
.c-p { margin: 12px 0 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); }
.c-p b { font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.c-p span, .c-p b { white-space: nowrap; }
.c-rows { margin: 14px -8px 0; padding: 6px 0 0; border-top: 1px solid var(--hair); }
.c-rows .row { min-height: 38px; padding: 0 8px; border-radius: 12px; font-size: 13.5px; }
.c-rows .row svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.c-rows .row img, .c-rows .row video { width: 44px; height: 28px; border-radius: 7px; object-fit: cover; flex: none; }
.fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--soft-spring); }
.fold > div { overflow: hidden; min-height: 0; }
.fold.open { grid-template-rows: 1fr; }
.row[aria-expanded] svg { transition: rotate .45s var(--spring); }
.row[aria-expanded="true"] svg { rotate: 90deg; }
.sub { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 8px 6px 20px; font-size: 12.5px; color: var(--ink-2); }
.sub b { font-weight: 600; color: var(--ink); white-space: nowrap; }
button.sub { width: 100%; border-radius: 10px; text-align: left; transition: background-color .2s; }
button.sub:hover { background: var(--fill); color: var(--ink); }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 42px; margin-top: 16px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 14.5px; font-weight: 600; letter-spacing: -.005em;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), 0 8px 22px rgb(10 132 255 / .3); }
.btn:hover { background: #2b95ff; }
.btn.quiet { background: var(--fill); box-shadow: inset 0 .5px 0 rgb(255 255 255 / .3); }
.btn.quiet:hover { background: rgb(255 255 255 / .2); }
.btn:disabled { opacity: .4; pointer-events: none; }
.acts { display: flex; justify-content: space-between; margin-top: 12px; }
.acts button, .acts a { position: relative; width: 44px; height: 38px; border-radius: 14px; display: grid; place-items: center; background: var(--fill); color: var(--ink); }
.acts svg { width: 19px; height: 19px; stroke-width: 1.6; }
.acts [aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.acts [aria-pressed="true"] svg { fill: currentColor; }
[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 4px; padding: 5px 9px; border-radius: 9px; font-size: 11.5px; font-weight: 600; white-space: nowrap; color: #0b0c0f; background: rgb(255 255 255 / .94); box-shadow: 0 6px 18px rgb(0 0 0 / .3); opacity: 0; pointer-events: none; transition: opacity .2s, translate .35s var(--spring); text-shadow: none; }
@media (hover: hover) { [data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; translate: -50% 0; transition-delay: .35s; } }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--ink); vertical-align: 1px; }
.dot.separado { background: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.dot.vendido { background: var(--ink-3); }
.card .note { margin: 12px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--ink-3); }

/* ---------- Abajo a la izquierda: dónde estás ---------- */
.place { position: fixed; z-index: 10; left: calc(var(--m) + var(--sal)); bottom: calc(var(--m) + var(--sab)); min-height: 52px; display: flex; align-items: center; --r: 26px; --from: translateY(14px) scale(.92); --to: translateY(10px) scale(.95); max-width: calc(100vw - 2 * var(--m)); }
.place-t { display: grid; gap: 1px; padding: 8px 14px 8px 20px; text-align: left; border-radius: 26px; min-width: 0; }
.place-t small { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
.place-t b { font-size: 16px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-t:disabled { cursor: default; }
.place-nav { display: flex; align-items: center; gap: 2px; padding: 0 8px 0 0; }
.place-nav::before { content: ""; width: 1px; height: 24px; margin-right: 6px; background: var(--hair); }
.place-nav button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; transition: background-color .2s, transform .5s var(--spring); }
.place-nav button:hover { background: var(--fill); }
.place-nav button svg { width: 19px; height: 19px; }
.place-nav span { min-width: 34px; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.place-nav[hidden] + * { display: none; }

.list { position: fixed; z-index: 31; left: calc(var(--m) + var(--sal)); bottom: calc(var(--m) + var(--sab)); width: 286px; max-height: min(64vh, 560px); overflow: auto; overscroll-behavior: contain; padding: 6px; --r: 26px; transform-origin: 30px calc(100% - 26px); --from: scale(.3); --to: scale(.4); scrollbar-width: none; }
.list::-webkit-scrollbar { display: none; }
.list .row { min-height: 40px; }
.list .km { font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.list .row > span:first-child { display: grid; gap: 1px; padding: 7px 0; min-width: 0; }
.list .row > span:first-child i { font-style: normal; font-size: 12px; font-weight: 400; color: var(--ink-3); line-height: 1.3; }

/* ---------- Abajo al centro: plano · isométrico · 360° ---------- */
.seg { position: fixed; z-index: 10; left: 50%; bottom: calc(var(--m) + var(--sab) + 4px); translate: -50% 0; height: var(--h); padding: 4px; display: flex; --r: 999px; --from: translateY(14px) scale(.9); --to: translateY(10px) scale(.95); }
.seg button { position: relative; height: 36px; padding: 0 18px; border-radius: 999px; font-size: 13.5px; font-weight: 550; letter-spacing: -.005em; color: var(--ink-2); transition: color .3s; white-space: nowrap; }
.seg button[aria-selected="true"] { color: var(--ink); }
.seg-thumb { position: absolute; top: 4px; left: 0; height: 36px; width: var(--w, 0); translate: var(--x, 4px) 0; border-radius: 999px; background: rgb(255 255 255 / .2); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), inset 0 0 0 .5px rgb(255 255 255 / .25), 0 3px 12px rgb(0 0 0 / .18); transition: translate .6s var(--spring), width .6s var(--spring), scale .4s var(--spring); }
.seg:active .seg-thumb { scale: 1.06 .94; }
.lt .seg-thumb { background: rgb(255 255 255 / .62); }

/* ---------- Abajo a la derecha: hora y música ---------- */
.tools { position: fixed; z-index: 10; right: calc(var(--m) + var(--sar)); bottom: calc(var(--m) + var(--sab) + 4px); display: flex; gap: 10px; align-items: center; }
.hour { height: var(--h); --r: 999px; display: flex; align-items: center; overflow: hidden; width: var(--h); transition: width .7s var(--soft-spring); --from: scale(.6); }
.hour-b { width: var(--h); height: var(--h); flex: none; display: grid; place-items: center; }
.hour-in { display: flex; align-items: center; gap: 10px; padding-right: 16px; opacity: 0; transition: opacity .25s; }
.hour.open { width: 266px; }
.hour.open .hour-in { opacity: 1; transition-delay: .15s; }
.hour-in span { width: 40px; font-size: 13px; font-weight: 600; text-align: right; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 150px; height: 34px; margin: 0; background: none; cursor: pointer; touch-action: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--ink) var(--p, 0%), var(--ink-3) var(--p, 0%)); }
input[type="range"]::-moz-range-track { height: 5px; border-radius: 5px; background: linear-gradient(90deg, #fff var(--p, 0%), rgb(255 255 255 / .26) var(--p, 0%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9.5px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgb(0 0 0 / .35), 0 0 0 .5px rgb(0 0 0 / .1); transition: scale .45s var(--spring); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgb(0 0 0 / .35); }
input[type="range"]:active::-webkit-slider-thumb { scale: 1.22 1.1; }
#musBtn { position: relative; }
.eq { position: absolute; display: none; gap: 2.5px; align-items: flex-end; height: 14px; }
.eq i { width: 2.5px; height: 100%; border-radius: 2px; background: var(--ink); transform-origin: bottom; animation: eq 1s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-duration: .7s; animation-delay: -.3s; }
.eq i:nth-child(3) { animation-duration: 1.25s; animation-delay: -.6s; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
body.is-music #musBtn svg { visibility: hidden; }
body.is-music #musBtn .eq { display: flex; }
.mus { position: fixed; z-index: 31; right: calc(var(--m) + var(--sar)); bottom: calc(var(--m) + var(--sab) + 4px); width: 272px; padding: 6px; --r: 26px; transform-origin: calc(100% - 22px) calc(100% - 22px); --from: scale(.25); --to: scale(.35); }
.mus .row { min-height: 46px; }
.mus .row > span:first-child { display: grid; gap: 1px; }
.mus .row i { font-style: normal; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.mus .row .eq { position: static; display: flex; }
.mus-h { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 8px 14px; }
.mus-h span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.mus-h button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.mus-h button svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }

/* aviso breve */
.hint { position: fixed; z-index: 9; left: 50%; bottom: calc(var(--m) + var(--sab) + 62px); translate: -50% 0; margin: 0; padding: 8px 16px; --r: 999px; font-size: 12.5px; font-weight: 550; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .5s, transform .7s var(--out); transform: translateY(8px); }
.hint.on { opacity: 1; transform: none; }

/* ---------- Hojas ---------- */
.scrim { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(6 7 10 / .42); animation: fade .35s both; }
.scrim.out { transform: none !important; filter: none; }
.sheet { background: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .04)), rgb(20 22 28 / .66); }
.sheet { width: min(372px, 100%); max-height: calc(100dvh - 40px); overflow: auto; padding: 26px 24px 22px; --r: 32px; --from: translateY(24px) scale(.92); scrollbar-width: none; }
.sheet h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.sheet p { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.sheet label { display: block; margin: 16px 0 6px 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.sheet input:not([type="range"]), .sheet textarea { width: 100%; height: 48px; padding: 0 16px; border: 0; border-radius: 15px; background: rgb(255 255 255 / .13); color: #fff; font: inherit; font-size: 16px; outline: 0; box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .16); user-select: text; -webkit-user-select: text; transition: box-shadow .2s, background-color .2s; }
.sheet textarea { height: 150px; padding: 14px 16px; resize: none; line-height: 1.45; }
.sheet input:focus, .sheet textarea:focus { background: rgb(255 255 255 / .18); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .75); }
.sheet input::placeholder, .sheet textarea::placeholder { color: var(--ink-3); }
.sheet .err { min-height: 18px; margin: 8px 4px 0; font-size: 12.5px; color: #ffb4ab; }
.sheet .btn { height: 48px; margin-top: 12px; font-size: 16px; }
.sheet .x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); }
.sheet { position: relative; }
.sheet .x svg { width: 16px; height: 16px; stroke-width: 2.2; }
.kv { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--hair); font-size: 14px; color: var(--ink-2); }
.kv b { font-size: 16px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.kv.big { border: 0; padding-top: 16px; } .kv.big b { font-size: 30px; letter-spacing: -.03em; }
.rng { display: flex; align-items: center; gap: 12px; } .rng input { flex: 1; width: auto; } .rng b { min-width: 62px; text-align: right; font-size: 15px; font-weight: 600; }
.chips { display: flex; gap: 6px; } .chips button { flex: 1; height: 38px; border-radius: 12px; background: var(--fill); font-size: 14px; font-weight: 600; transition: background-color .2s, color .2s, transform .5s var(--spring); }
.chips button[aria-pressed="true"] { background: #fff; color: #0b0c0f; text-shadow: none; }

/* ---------- Vista real, película, presentación ---------- */
#lb { position: fixed; z-index: 20; inset: 0; background: #000; animation: fade .5s both; }
#lb video, #lb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#film { position: fixed; z-index: 70; inset: 0; background: #000; animation: fade .5s both; cursor: pointer; }
#film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#film .g-round { position: absolute; top: calc(22px + var(--sat)); left: calc(var(--m) + var(--sal)); opacity: 0; transition: opacity .4s, transform .5s var(--spring); }
#film.awake .g-round { opacity: 1; }
#film:not(.awake) { cursor: none; }
#show { position: fixed; z-index: 60; inset: 0; background: #000; overflow: hidden; cursor: pointer; animation: fade .7s both; }
#show .sh { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; will-change: transform, opacity; }
.show-cap { position: absolute; left: calc(var(--m) + var(--sal)); bottom: calc(var(--m) + var(--sab)); margin: 0; padding: 9px 20px; --r: 26px; display: grid; gap: 1px; }
.show-cap small { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); }
.show-cap b { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.show-cap.swap { animation: pop .8s var(--soft-spring) both; --from: translateY(8px) scale(.96); }

/* ---------- Entrada ---------- */
#gate { position: fixed; z-index: 80; inset: 0; background: #0b0c0f; overflow: hidden; transition: opacity 1.1s ease; }
#gate video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#gateVid { filter: brightness(.82); transition: opacity .9s, filter .9s; }
#introVid { opacity: 0; transition: opacity .9s; }
#gate.fly #introVid { opacity: 1; }
#gate.fly #gateVid { opacity: 0; }
#gate.done { opacity: 0; pointer-events: none; }
.gate-c { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; transition: opacity .6s, transform 1s var(--ios), filter .6s; }
#gate.fly .gate-c { opacity: 0; transform: scale(1.06); filter: blur(8px); pointer-events: none; }
.gate-n { margin: 0; display: grid; justify-items: center; gap: clamp(10px, 1.4vw, 18px); text-shadow: 0 2px 30px rgb(0 0 0 / .4); animation: rise 1.4s var(--out) .2s both; }
.gate-n b { font-size: clamp(26px, 4.6vw, 62px); font-weight: 500; letter-spacing: .5em; margin-right: -.5em; line-height: 1; }
.gate-n span { font-size: clamp(10px, 1vw, 13px); font-weight: 550; letter-spacing: .9em; margin-right: -.9em; line-height: 1; opacity: .85; }
.gate-l { margin: clamp(18px, 2.4vw, 30px) 0 0; font-size: 13.5px; font-weight: 500; letter-spacing: .02em; color: var(--ink-2); text-shadow: 0 1px 14px rgb(0 0 0 / .5); animation: rise 1.4s var(--out) .4s both; }
.gate-b { margin-top: clamp(26px, 3.4vw, 44px); height: 50px; padding: 0 34px; font-size: 16px; font-weight: 600; animation: rise 1.4s var(--out) .6s both; }
.gate-skip { position: absolute; right: calc(var(--m) + var(--sar)); bottom: calc(var(--m) + var(--sab)); padding: 0 18px; }

/* ---------- Pantalla limpia: un clic en la imagen y todo se retira ---------- */
.top > *, .card, .place, .tools, .seg { transition: opacity .5s, translate .9s var(--ios), transform .5s var(--spring); }
body.is-clean .top-l, body.is-clean .top-r, body.is-clean .brand { opacity: 0; translate: 0 -24px; pointer-events: none; }
body.is-clean .brand { translate: -50% -24px; }
body.is-clean .card { opacity: 0; translate: 30px -50%; pointer-events: none; }
body.is-clean .place, body.is-clean .tools { opacity: 0; translate: 0 24px; pointer-events: none; }
body.is-clean .seg { opacity: 0; translate: -50% 24px; pointer-events: none; }
body.is-moving .card, body.is-moving .place { opacity: 0; pointer-events: none; }
body.is-lb .card, body.is-lb .place, body.is-lb .seg, body.is-lb .tools, body.is-lb .brand, body.is-lb .top-r, body.is-lb #menuBtn { opacity: 0; pointer-events: none; }
body[data-view="gate"] .top, body[data-view="gate"] .tools { opacity: 0; pointer-events: none; }
.top, .tools { transition: opacity .9s .3s; }

/* ---------- Teléfono ---------- */
@media (max-width: 760px) {
  :root { --m: 14px; --card-w: auto; }
  .top { padding-top: calc(12px + var(--sat)); }
  .brand { top: calc(12px + var(--sat)); }
  .brand b { font-size: 13px; } .brand span { font-size: 10px; letter-spacing: .5em; margin-right: -.5em; } .brand { gap: 4px; }
  .top-l, .top-r { min-width: 0; gap: 8px; }
  .cta { height: 34px; padding: 0 13px; font-size: 13px; margin-top: 5px; }
  .cta span { display: none; }
  #backBtn span { display: none; }
  #backBtn { padding: 0; width: var(--h); justify-content: center; }
  .menu { top: calc(12px + var(--sat)); }
  .card { left: var(--m); right: var(--m); top: auto; bottom: calc(var(--m) + var(--sab) + 64px); width: auto; translate: none; --from: translateY(26px) scale(.96); --to: translateY(16px) scale(.97); }
  body.is-clean .card { translate: 0 30px; }
  .card-in { padding: 18px 18px 16px; }
  .card { max-height: calc(100dvh - 204px - var(--sat) - var(--sab)); overflow-y: auto; scrollbar-width: none; }
  body.mus-open .place { opacity: 0; pointer-events: none; }
  .sub { min-height: 36px; align-items: center; }
  body.hour-open .place { opacity: 0; pointer-events: none; }
  .c-n { font-size: 44px; }
  .plan-box { top: calc(70px + var(--sat)); bottom: calc(var(--card-h, 220px) + 96px + var(--sab)); left: 0; right: 0; overflow: hidden; scrollbar-width: none; }
  body[data-view="piso"] .plan-box { overflow-x: auto; pointer-events: auto; -webkit-overflow-scrolling: touch; }
  .plan-box::-webkit-scrollbar { display: none; }
  body[data-view="depa"] .plan-box { overflow: hidden; left: 10px; right: 10px; top: calc(118px + var(--sat)); }
  .floor { left: 0; top: 50%; width: auto; height: min(100cqh, 330px); translate: 0 -50%; margin: 0 16px; }
  .tags span { font-size: 11px; }
  .seg { top: calc(66px + var(--sat)); bottom: auto; --from: translateY(-10px) scale(.92); }
  body.is-clean .seg { translate: -50% -24px; }
  .seg button { padding: 0 15px; height: 34px; } .seg { height: 42px; } .seg-thumb { height: 34px; }
  .place { max-width: calc(100vw - 2 * var(--m) - 64px); }
  .place-t b { font-size: 15px; }
  .place-nav span { display: none; }
  body[data-hour] .place { max-width: calc(100vw - 2 * var(--m) - 118px); }
  .hour.open { width: min(266px, calc(100vw - 2 * var(--m) - 54px)); }
  .hour.open ~ * { }
  .list { width: min(300px, calc(100vw - 2 * var(--m))); max-height: 66dvh; }
  .hint { bottom: auto; top: calc(66px + var(--sat)); }
  body[data-view="depa"] .hint { top: calc(116px + var(--sat)); }
  .scrim { place-items: end center; padding: 10px; }
  .sheet { --from: translateY(60px); padding-bottom: calc(22px + var(--sab)); }
}
@media (max-height: 520px) and (orientation: landscape) {
  :root { --m: 14px; --card-w: 236px; }
  .top { padding-top: 10px; } .brand { top: 10px; } .menu { top: 10px; }
  .card-in { padding: 14px 16px; } .c-n { font-size: 36px; } .btn { margin-top: 10px; height: 38px; }
  .plan-box { top: 62px; bottom: 66px; }
  .card { max-height: calc(100dvh - 76px); overflow: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .g { background: rgb(22 24 30 / .9); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
