/* Sala de ventas virtual web — estilos del visor (extraidos de WEB V2 css/home.css el 2026-11-05). Requiere los tokens de base.css o los del sitio. */
    /* ================= La maqueta en vivo ================= */
    .demo { background: var(--bar); color: #f4f3ee; padding: clamp(56px, 6.5vw, 92px) 0 clamp(40px, 5vw, 72px); }
    .demo .lbl { color: rgba(244, 243, 238, .62); }
    .demo .sec-title em { color: #9fe0c3; }
    .demo-head { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 24px clamp(30px, 5vw, 80px); margin-bottom: clamp(26px, 3.4vw, 42px); }
    .demo-p { margin: 0; max-width: 52ch; color: rgba(244, 243, 238, .76); font-size: 16.5px; line-height: 1.65; }
    @media (max-width: 860px) { .demo-head { grid-template-columns: 1fr; } }

    /* aparición sutil */
    .r { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
    .r.in { opacity: 1; transform: none; }

    /* ================= Torre Kronus 3D ================= */
    .torre-wrap {
      position: relative; width: 100%; height: 640px; max-height: 80vh; max-height: 80svh;
      overflow: hidden;
      background: var(--bar); border-radius: 12px;
      /* Curvas del visor: salida firme para lo que entra o responde, y la de hoja inferior para paneles. */
      --tv-out: cubic-bezier(.23, 1, .32, 1);
      --tv-sheet: cubic-bezier(.32, .72, 0, 1);
      -webkit-tap-highlight-color: transparent;
    }
    #torre-3d { width: 100%; height: 100%; display: block; position: relative; z-index: 1; }
    #torre-3d canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

    /* Portada: un cuadro de la maqueta real (10:30, con su entorno) hasta que
       el 3D arranca; con prefers-reduced-motion se queda hasta que la persona
       pulsa "Explorar en 3D". */
    .torre-poster {
      position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #0d0e11;
      opacity: 1; transition: opacity .7s var(--ease);
    }
    .torre-poster img {
      display: block; width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%;
      transform: scale(1.02); transition: transform 9s var(--ease);
    }
    @media (hover: hover) and (pointer: fine) { .torre-wrap.is-static:hover .torre-poster img { transform: scale(1.07); } }
    .torre-poster::before {
      content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
      background: linear-gradient(180deg, rgba(13, 14, 17, .36) 0%, rgba(13, 14, 17, 0) 26%, rgba(13, 14, 17, 0) 58%, rgba(13, 14, 17, .66) 100%);
    }
    .torre-pills {
      position: absolute; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 26px); z-index: 2;
      display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 46%;
      margin: 0; padding: 0; list-style: none;
    }
    .torre-pills li {
      padding: 8px 12px; border-radius: 999px;
      border: 1px solid rgba(247, 246, 243, .26); background: rgba(13, 14, 17, .46);
      -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
      color: rgba(247, 246, 243, .86);
      font: 500 9.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
    }
    .torre-wrap.is-ready .torre-poster { opacity: 0; pointer-events: none; }
    .torre-wrap.is-ready .torre-loading { display: none; }

    /* Solo aparece con prefers-reduced-motion: requiere un gesto explicito
       para descargar y arrancar la escena 3D. */
    .torre-activate {
      position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%);
      z-index: 12; display: flex; flex-direction: column; align-items: center; gap: 14px;
      padding: 0; border: 0; background: transparent; color: #f7f6f3; cursor: pointer;
      font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-align: center;
      text-shadow: 0 1px 14px rgba(0, 0, 0, .7);
    }
    .torre-activate[hidden] { display: none; }
    /* El rótulo del botón va sobre la portada: fondo propio para que se lea sobre cualquier imagen */
    .torre-activate-t { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 11px 18px 12px; border-radius: 12px; background: rgba(13, 14, 17, .66); text-shadow: none; }
    .torre-activate .torre-activate-t small { margin-top: 0; color: rgba(247, 246, 243, .9); }
    .torre-activate-ring {
      width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center;
      background: rgba(13, 14, 17, .5); border: 1.5px solid rgba(247, 246, 243, .6);
      -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
      position: relative; box-shadow: 0 18px 44px rgba(0, 0, 0, .4);
      transition: background-color .2s ease, border-color .2s ease, color .2s ease, scale .2s var(--tv-out);
    }
    .torre-activate-ring::after {
      content: ""; position: absolute; inset: -13.5px; border-radius: 50%; pointer-events: none;
      border: 12px solid rgba(247, 246, 243, .08);
      transition: scale .3s var(--tv-out), border-color .2s ease;
    }
    .torre-activate svg { width: 32px; height: 32px; flex: none; }
    .torre-activate small {
      display: block; max-width: 34ch; margin-top: -2px;
      font: 400 12px/1.45 var(--sans); letter-spacing: .02em; text-transform: none; color: rgba(247, 246, 243, .74);
    }
    @media (hover: hover) and (pointer: fine) {
      .torre-activate:hover .torre-activate-ring { background: var(--green); border-color: var(--green); color: #0d0e11; scale: 1.06; }
      .torre-activate:hover .torre-activate-ring::after { scale: 1.07; border-color: rgba(81, 181, 141, .2); }
    }
    .torre-activate:active .torre-activate-ring { scale: .96; }
    @media (hover: hover) and (pointer: fine) { .torre-activate:hover .torre-activate-l { color: #fff; } }
    .torre-activate:focus-visible { outline: none; }
    .torre-activate:focus-visible .torre-activate-ring { outline: 2px solid var(--green); outline-offset: 4px; }

    /* Selector de pisos: rail vertical a la derecha (el "ascensor").
       Se construye desde JS cuando el modelo ya esta listo. */
    .torre-floors {
      position: absolute; right: clamp(12px, 1.8vw, 22px); top: 74px; bottom: 70px;
      z-index: 11; display: flex; flex-direction: column; align-items: flex-end;
      justify-content: center; gap: 8px;
      opacity: 0; pointer-events: none;
      transition: opacity .45s var(--ease);
    }
    .torre-wrap.is-ready .torre-floors { opacity: 1; }
    .torre-floors[hidden] { display: none; }
    .torre-floors-title {
      padding-right: 4px;
      font: 600 10px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
      color: rgba(247, 246, 243, .78); text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
    }
    .torre-floors[data-plan="true"] .torre-floors-title { color: var(--green); }
    .torre-floors-list {
      display: flex; flex-direction: column-reverse; gap: 2px;
      max-height: calc(100% - 17px); min-height: 0;
      padding: 2px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
      pointer-events: auto; scrollbar-width: none;
    }
    .torre-floors-list::-webkit-scrollbar { display: none; }
    .torre-floor {
      -webkit-appearance: none; appearance: none;
      display: inline-flex; align-items: center; justify-content: flex-end;
      min-width: 104px; min-height: 27px; padding: 0 12px;
      border: 1px solid rgba(247, 246, 243, .2); border-radius: 7px;
      background: rgba(13, 14, 17, .66); color: rgba(247, 246, 243, .82);
      font: 500 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
      cursor: pointer; white-space: nowrap;
      -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    }
    @media (hover: hover) and (pointer: fine) { .torre-floor:hover { border-color: var(--green); color: #fff; background: rgba(13, 14, 17, .85); } }
    .torre-floor[aria-pressed="true"] {
      background: var(--green); border-color: var(--green); color: #101215; font-weight: 600;
    }
    .torre-floor:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
    .torre-floor[aria-pressed="true"]:focus-visible { outline-color: #fff; }

    .torre-loading {
      position: absolute; inset: 0; z-index: 2;
      display: flex; align-items: center; justify-content: center;
      color: rgba(247, 246, 243, .72); pointer-events: none;
      background: rgba(13, 14, 17, .35);
      text-shadow: 0 1px 14px rgba(0, 0, 0, .8);
      font: 500 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
    }

    .torre-meta {
      position: absolute; left: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 26px);
      z-index: 10; display: flex; flex-direction: column; gap: 7px;
      pointer-events: none;
      color: rgba(247, 246, 243, .72);
      font: 500 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
    }
    .torre-wrap.is-ready .torre-meta { display: none; }
    .torre-meta-k { color: rgba(247, 246, 243, .62); font-size: 9.5px; }
    .torre-meta-t {
      margin: 2px 0 1px; font: 400 clamp(19px, 2.1vw, 25px)/1.1 var(--serif);
      letter-spacing: 0; text-transform: none; color: #f7f6f3; text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
    }
    .torre-meta-hint { color: rgba(247, 246, 243, .52); letter-spacing: .16em; opacity: 0; transition: opacity .5s var(--ease); }
    .torre-meta-link {
      pointer-events: auto; align-self: flex-start; margin-top: 3px;
      color: rgba(247, 246, 243, .82); text-decoration: none;
      border-bottom: 1px solid rgba(247, 246, 243, .28); padding-bottom: 2px;
      transition: color .15s ease, border-color .15s ease;
    }
    @media (hover: hover) and (pointer: fine) { .torre-meta-link:hover { color: var(--green); border-color: var(--green); } }

    .torre-fallback {
      display: none; width: 100%; height: 100%;
      position: absolute; inset: 0; z-index: 3;
      align-items: flex-end; justify-content: center; text-align: center;
      padding: 40px clamp(16px, 5vw, 60px) 52px;
      background: linear-gradient(to top, rgba(13, 14, 17, .55) 0%, rgba(13, 14, 17, 0) 46%);
      color: rgba(247, 246, 243, .72);
    }
    .torre-fallback p {
      margin: 0; max-width: 46ch;
      padding: 11px 18px; border-radius: 12px;
      background: rgba(13, 14, 17, .78);
      border: 1px solid rgba(247, 246, 243, .14);
      -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
      font-size: 13.5px; line-height: 1.55;
    }

    /* "Vista inicial" del HTML: con la escena lista la reemplaza la casita
       de los controles de camara. */
    #torre-reset {
      position: absolute; bottom: 20px; right: 20px;
      z-index: 10; background: rgba(13, 14, 17, .85);
      border: 1px solid var(--hair); color: #f7f6f3;
      min-height: 44px;
      padding: 10px 22px; border-radius: 999px; font-size: 12.5px;
      cursor: pointer; backdrop-filter: blur(6px); white-space: nowrap;
      opacity: 0; pointer-events: none;
    }
    .torre-wrap.is-ready #torre-reset { display: none; }

    /* ---------- Showroom: barra de secciones ---------- */
    .tv-bar {
      position: absolute; left: 0; right: 0; top: 0; z-index: 12;
      display: flex; align-items: stretch; gap: 6px; height: 58px; padding: 0 10px 0 18px;
      background: rgba(13, 14, 17, .8); border-bottom: 1px solid rgba(247, 246, 243, .1);
      -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
      color: #f7f6f3;
    }
    .tv-brand {
      margin: 0 12px 0 0; display: flex; flex-direction: column; justify-content: center; gap: 5px;
      white-space: nowrap;
    }
    .tv-brand b { font: 600 12.5px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; }
    .tv-brand span { font: 500 9px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(247, 246, 243, .5); }
    .tv-tabs {
      flex: 1; min-width: 0; display: flex; align-items: stretch; gap: 2px;
      overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    }
    .tv-tabs::-webkit-scrollbar { display: none; }
    .tv-tab {
      -webkit-appearance: none; appearance: none; flex: 0 0 auto;
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
      min-width: 84px; padding: 0 12px; border: 0; background: transparent; cursor: pointer;
      color: rgba(247, 246, 243, .72);
      font: 500 9.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
      transition: background-color .15s ease, color .15s ease;
    }
    .tv-tab svg { width: 19px; height: 19px; transition: scale .12s var(--tv-out); }
    .tv-tab:active svg { scale: .88; }
    @media (hover: hover) and (pointer: fine) { .tv-tab:hover { color: #fff; background: rgba(247, 246, 243, .07); } }
    .tv-tab[aria-pressed="true"] { background: #f7f6f3; color: #101215; }
    .tv-tab-tour { color: var(--green); }
    @media (hover: hover) and (pointer: fine) { .tv-tab-tour:hover { color: #8ff0c6; } }
    .tv-tab:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; }
    .tv-cta {
      align-self: center; flex: none; display: inline-flex; align-items: center;
      min-height: 38px; padding: 0 18px; border-radius: 10px;
      background: #f7f6f3; color: #101215; text-decoration: none; white-space: nowrap;
      font: 600 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
    }
    @media (hover: hover) and (pointer: fine) { .tv-cta:hover { background: var(--green); } }
    .tv-expand {
      -webkit-appearance: none; appearance: none;
      align-self: center; flex: none; width: 40px; height: 40px; display: grid; place-items: center;
      border-radius: 10px; border: 1px solid rgba(247, 246, 243, .22); background: rgba(247, 246, 243, .06);
      color: #f7f6f3; cursor: pointer;
    }
    .tv-expand svg { width: 20px; height: 20px; }
    @media (hover: hover) and (pointer: fine) { .tv-expand:hover { background: rgba(247, 246, 243, .18); } }
    .tv-cta:focus-visible, .tv-expand:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

    /* ---------- Panel lateral ---------- */
    .tv-panel {
      position: absolute; z-index: 11; left: 14px; top: 72px; bottom: 14px; width: 300px;
      display: flex; flex-direction: column;
      background: rgba(247, 246, 243, .95); color: #15171b; border-radius: 12px;
      box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .55);
    }
    .tv-panel[hidden] { display: none; }
    .tv-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 6px 18px; }
    .tv-panel-title { margin: 0; min-width: 0; font: 400 21px/1.1 var(--serif); overflow-wrap: anywhere; }
    .tv-panel-x {
      -webkit-appearance: none; appearance: none;
      width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 9px;
      background: transparent; color: #15171b; cursor: pointer;
    }
    .tv-panel-x svg { width: 18px; height: 18px; }
    @media (hover: hover) and (pointer: fine) { .tv-panel-x:hover { background: rgba(21, 23, 27, .08); } }
    .tv-panel-body {
      position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
      padding: 6px 18px 18px; scrollbar-width: thin; scrollbar-color: rgba(21, 23, 27, .26) transparent;
    }
    .tv-sec[hidden] { display: none; }
    .tv-field { margin: 0 0 15px; }
    .tv-field-t {
      margin: 0 0 7px;
      font: 600 9.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(21, 23, 27, .55);
    }
    .tv-note { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: rgba(21, 23, 27, .7); }
    .tv-small { margin: -6px 0 0; font-size: 11.5px; line-height: 1.45; color: rgba(21, 23, 27, .5); }

    /* Hora del día: deslizador sobre el cielo de un día, lectura del sol y fecha */
    .tv-time-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 6px; }
    .tv-time-head .tv-field-t { margin: 0; }
    .tv-time-out { font: 600 13px/1 var(--sans); color: #15171b; font-variant-numeric: tabular-nums; }
    .tv-time-row { display: flex; align-items: center; gap: 10px; margin: 0 0 7px; }
    .tv-time-ico { flex: none; width: 19px; height: 19px; color: rgba(21, 23, 27, .6); }
    .tv-range {
      -webkit-appearance: none; appearance: none; display: block; flex: 1 1 auto; min-width: 0; height: 24px; margin: 0;
      background: transparent; cursor: pointer;
    }
    .tv-range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: #fff; border: 1px solid rgba(21, 23, 27, .22); }
    .tv-range::-moz-range-track { height: 6px; border-radius: 999px; background: #fff; border: 1px solid rgba(21, 23, 27, .22); }
    .tv-range::-webkit-slider-thumb {
      -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%;
      background: #15171b; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    }
    .tv-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #15171b; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
    .tv-range:focus-visible { outline: 2px solid #15171b; outline-offset: 2px; }
    .tv-range:disabled { opacity: .35; cursor: default; }
    .tv-sun { margin: 0 0 8px; font-size: 12px; line-height: 1.45; color: rgba(21, 23, 27, .62); }
    .tv-sun b { font-weight: 600; color: #15171b; }
    .tv-time .torre-seg { margin-top: 2px; }
    .tv-date {
      -webkit-appearance: none; appearance: none; width: 100%; min-height: 34px; padding: 0 10px;
      border: 1px solid rgba(21, 23, 27, .14); border-radius: 10px; background: rgba(21, 23, 27, .04);
      font: 500 12.5px/1 var(--sans); color: #15171b; color-scheme: light;
    }
    .tv-date:disabled { opacity: .35; }
    .tv-panel :focus-visible { outline: 2px solid #15171b; outline-offset: 2px; }

    /* Botones segmentados (base oscura; dentro del panel, version clara) */
    .torre-seg {
      display: inline-flex; align-items: center; gap: 2px; padding: 3px;
      border: 1px solid rgba(247, 246, 243, .16); border-radius: 999px;
      background: rgba(13, 14, 17, .62);
    }
    .torre-seg[hidden] { display: none; }
    .torre-seg-btn {
      -webkit-appearance: none; appearance: none;
      min-height: 32px; padding: 0 13px; border: 0; border-radius: 999px;
      background: transparent; color: rgba(247, 246, 243, .8); cursor: pointer; white-space: nowrap;
      font: 500 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
    }
    @media (hover: hover) and (pointer: fine) { .torre-seg-btn:hover { color: #fff; background: rgba(247, 246, 243, .09); } }
    .torre-seg-btn[aria-pressed="true"] { background: var(--green); color: #101215; font-weight: 600; }
    .torre-seg-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
    .torre-seg-btn:disabled { opacity: .35; cursor: default; }
    .tv-panel .torre-seg {
      display: flex; width: 100%; border-color: rgba(21, 23, 27, .14); border-radius: 10px;
      background: rgba(21, 23, 27, .04);
    }
    .tv-panel .torre-seg-btn {
      /* Cada botón parte del ancho de su rótulo y el sobrante se reparte: «Horizonte» no se monta sobre «Por pisos». */
      flex: 1 1 auto; min-width: 0; min-height: 34px; padding: 0 4px; border-radius: 8px;
      overflow: hidden; text-overflow: ellipsis;
      color: rgba(21, 23, 27, .78); font-size: 9.5px; letter-spacing: .06em;
    }
    @media (hover: hover) and (pointer: fine) { .tv-panel .torre-seg-btn:hover { background: rgba(21, 23, 27, .08); color: #15171b; } }
    .tv-panel .torre-seg-btn[aria-pressed="true"] { background: #15171b; color: #f7f6f3; }
    @media (hover: hover) and (pointer: fine) { .tv-panel .torre-seg-btn:disabled:hover { background: transparent; color: rgba(21, 23, 27, .78); } }
    @media (pointer: coarse) { .torre-seg-btn, .tv-panel .torre-seg-btn { min-height: 44px; } }
    .torre-wrap.is-busy #torre-3d { cursor: progress; }

    /* Tarjetas de pisos */
    .tv-floors { display: flex; flex-direction: column; gap: 6px; }
    .tv-fcard {
      border: 1px solid rgba(21, 23, 27, .12); border-radius: 10px; background: #fff;
      transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
    }
    .tv-fcard.is-hover { border-color: var(--green); }
    .tv-fcard.is-active { border-color: #15171b; box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .45); }
    .tv-fcard-h {
      -webkit-appearance: none; appearance: none;
      width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
      padding: 11px 14px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
      color: #15171b; text-align: left;
    }
    .tv-fcard-h b { font: 500 14px/1.2 var(--sans); }
    .tv-fcard-h span { font-size: 11.5px; color: rgba(21, 23, 27, .55); text-align: right; }
    .tv-fcard-a { display: none; gap: 6px; padding: 0 14px 12px; }
    .tv-fcard.is-active .tv-fcard-a { display: flex; }
    .tv-btn {
      -webkit-appearance: none; appearance: none;
      flex: 1; min-height: 36px; border-radius: 8px; border: 1px solid rgba(21, 23, 27, .2);
      background: transparent; color: #15171b; cursor: pointer;
      font: 600 9.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
    }
    @media (hover: hover) and (pointer: fine) { .tv-btn:hover { border-color: #15171b; } }
    .tv-btn[aria-pressed="true"] { background: #15171b; border-color: #15171b; color: #f7f6f3; }
    .tv-units { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px; }
    .tv-units:empty { display: none; }
    .tv-fcard.is-active .tv-units { padding-bottom: 12px; }
    .tv-fcard:not(.is-active) .tv-units { display: none; }
    .tv-unit {
      -webkit-appearance: none; appearance: none;
      display: flex; flex-direction: column; gap: 3px; padding: 7px 10px; border-radius: 8px;
      border: 1px solid rgba(21, 23, 27, .14); border-left: 3px solid var(--green);
      background: #fff; color: #15171b; cursor: pointer; text-align: left;
    }
    .tv-unit b { font: 600 12px/1 var(--sans); }
    .tv-unit span { font-size: 10.5px; color: rgba(21, 23, 27, .6); }
    .tv-unit[data-estado="reservado"] { border-left-color: #d9a441; }
    .tv-unit[data-estado="vendido"] { border-left-color: #c66a5d; opacity: .7; }
    .tv-check { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 13px; color: #15171b; }

    /* Amenidades */
    .tv-acards { display: grid; gap: 10px; }
    .tv-acard {
      -webkit-appearance: none; appearance: none;
      display: block; width: 100%; padding: 0; overflow: hidden;
      border: 1px solid rgba(21, 23, 27, .12); border-radius: 10px; background: #fff;
      color: #15171b; text-align: left; cursor: pointer;
      transition: border-color .2s ease, box-shadow .2s ease, scale .14s var(--tv-out);
    }
    .tv-acard:active { scale: .985; }
    .tv-acard img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 70%; }
    .tv-acard b { display: block; padding: 10px 14px 3px; font: 500 14px/1.2 var(--sans); }
    .tv-acard span { display: block; padding: 0 14px 12px; font-size: 12px; line-height: 1.4; color: rgba(21, 23, 27, .6); }
    @media (hover: hover) and (pointer: fine) { .tv-acard:hover { border-color: var(--green); box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .4); } }

    /* Proyecto */
    .tv-pro-h { margin: 2px 0 4px; font: 400 30px/1.05 var(--serif); }
    .tv-pro-sub { margin: 0 0 16px; font-size: 13px; color: rgba(21, 23, 27, .65); }
    .tv-facts { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid rgba(21, 23, 27, .12); }
    .tv-facts dt { font: 600 9.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(21, 23, 27, .55); }
    .tv-facts dd { margin: 7px 0 0; font-size: 15px; }
    .tv-panel .tv-link {
      display: inline-block; margin: 0 0 16px; padding-bottom: 2px;
      color: #15171b; border-bottom: 1px solid rgba(21, 23, 27, .3); text-decoration: none;
      font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
    }
    @media (hover: hover) and (pointer: fine) { .tv-panel .tv-link:hover { color: #2c8a64; border-color: #2c8a64; } }
    .tv-cta2 {
      display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px;
      background: #15171b; color: #f7f6f3; text-decoration: none;
      font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
    }
    @media (hover: hover) and (pointer: fine) { .tv-cta2:hover { background: var(--green); color: #101215; } }

    /* ---------- Ruta (migas) ---------- */
    .tv-crumb {
      position: absolute; z-index: 11; top: 72px; left: 50%; transform: translateX(-50%);
      display: flex; align-items: center; gap: 8px; padding: 4px; max-width: calc(100% - 28px);
      border-radius: 12px; background: rgba(13, 14, 17, .74); border: 1px solid rgba(247, 246, 243, .14);
      -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #f7f6f3;
    }
    .tv-crumb[hidden] { display: none; }
    .torre-wrap.is-panel .tv-crumb { transform: translateX(calc(-50% + 157px)); max-width: calc(100% - 342px); }
    .tv-back {
      -webkit-appearance: none; appearance: none; flex: none;
      display: inline-flex; align-items: center; gap: 3px; min-height: 32px; padding: 0 12px 0 7px;
      border: 0; border-radius: 9px; background: #f7f6f3; color: #101215; cursor: pointer;
      font: 600 9.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
    }
    .tv-back svg { width: 16px; height: 16px; }
    @media (hover: hover) and (pointer: fine) { .tv-back:hover { background: var(--green); } }
    .tv-path {
      margin: 0; padding: 0 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: pre;
      font: 500 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(247, 246, 243, .88);
    }
    .tv-crumb .torre-seg { flex: none; border-radius: 9px; background: rgba(247, 246, 243, .06); }
    .tv-crumb .torre-seg-btn { min-height: 28px; border-radius: 7px; padding: 0 11px; }
    .tv-back:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

    /* ---------- Controles de camara ---------- */
    .tv-dock {
      position: absolute; z-index: 11; bottom: 14px; left: 50%; transform: translateX(-50%);
      display: flex; gap: 6px;
    }
    .torre-wrap.is-panel .tv-dock, .torre-wrap.is-panel .tv-toast { transform: translateX(calc(-50% + 157px)); }
    .tv-dock-btn {
      -webkit-appearance: none; appearance: none;
      width: 42px; height: 42px; display: grid; place-items: center;
      border-radius: 10px; border: 1px solid rgba(247, 246, 243, .2); background: rgba(13, 14, 17, .68);
      color: #f7f6f3; cursor: pointer;
      -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    }
    .tv-dock-btn svg { width: 20px; height: 20px; }
    @media (hover: hover) and (pointer: fine) { .tv-dock-btn:hover { background: #f7f6f3; color: #101215; } }
    .tv-dock-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

    /* Etiqueta del piso bajo el cursor */
    .tv-tip {
      position: absolute; left: 0; top: 0; z-index: 13; pointer-events: none;
      padding: 8px 11px; border-radius: 9px; width: max-content; max-width: min(300px, calc(100% - 12px));
      background: rgba(247, 246, 243, .96); color: #101215;
      box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55);
    }
    .tv-tip[hidden] { display: none; }
    .tv-tip b { display: block; font: 600 12.5px/1.1 var(--sans); }
    .tv-tip span { display: block; margin-top: 3px; font-size: 10.5px; color: rgba(16, 18, 21, .6); }
    .tv-tip span:empty { display: none; }

    /* Etiquetas de apartamentos sobre la planta */
    .tv-pins { position: absolute; inset: 0; z-index: 10; pointer-events: none; overflow: hidden; }
    .tv-pin {
      position: absolute; left: 0; top: 0; padding: 5px 9px; border-radius: 7px;
      background: rgba(247, 246, 243, .95); color: #101215; border-left: 3px solid var(--green);
      font: 600 10.5px/1 var(--sans); letter-spacing: .06em; white-space: nowrap;
    }
    .tv-pin[data-estado="reservado"] { border-left-color: #d9a441; }
    .tv-pin[data-estado="vendido"] { border-left-color: #c66a5d; opacity: .75; }

    /* Foto de una amenidad */
    .tv-photo {
      position: absolute; inset: 58px 0 0; z-index: 15;
      display: flex; align-items: center; justify-content: center; padding: 18px 20px 20px;
      background: rgba(10, 11, 14, .72);
      -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    }
    .tv-photo[hidden] { display: none; }
    .tv-photo figure {
      margin: 0; height: 100%; max-width: min(1040px, 100%);
      display: flex; flex-direction: column; justify-content: center; min-height: 0;
    }
    .tv-photo img {
      display: block; flex: 0 1 auto; min-height: 0; max-width: 100%; max-height: 100%;
      width: auto; height: auto; object-fit: contain; border-radius: 10px;
      box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .7);
    }
    .tv-photo figcaption {
      flex: none; display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
      padding: 11px 2px 0; color: #f7f6f3;
    }
    .tv-photo figcaption b { font: 400 20px/1.2 var(--serif); }
    .tv-photo figcaption span { font-size: 11.5px; color: rgba(247, 246, 243, .6); }
    .tv-photo-x {
      -webkit-appearance: none; appearance: none;
      position: absolute; top: 14px; right: 16px;
      display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px 0 10px;
      border-radius: 10px; border: 1px solid rgba(247, 246, 243, .28); background: rgba(13, 14, 17, .7);
      color: #f7f6f3; cursor: pointer; font: 600 9.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
    }
    .tv-photo-x svg { width: 16px; height: 16px; }
    @media (hover: hover) and (pointer: fine) { .tv-photo-x:hover { background: #f7f6f3; color: #101215; } }
    .tv-photo-x:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

    /* Crédito de los datos del entorno y brújula */
    .tv-credit {
      position: absolute; z-index: 9; left: 50%; bottom: 62px; transform: translateX(-50%); margin: 0;
      width: max-content; max-width: min(620px, calc(100% - 28px)); padding: 3px 8px; border-radius: 4px;
      background: rgba(13, 14, 17, .46); color: rgba(247, 246, 243, .78);
      font: 400 9.5px/1.35 var(--sans); text-align: center; pointer-events: none;
    }
    .tv-credit[hidden] { display: none; }
    .torre-wrap.is-panel .tv-credit { transform: translateX(calc(-50% + 157px)); max-width: min(620px, calc(100% - 342px)); }
    .torre-wrap.is-touring .tv-credit { bottom: auto; top: 66px; }
    .tv-compass {
      position: absolute; z-index: 11; right: clamp(12px, 1.8vw, 22px); bottom: 14px; width: 42px; height: 42px;
      pointer-events: none;
    }
    .tv-compass svg { display: block; width: 100%; height: 100%; }
    .tv-compass circle { fill: rgba(13, 14, 17, .68); stroke: rgba(247, 246, 243, .28); }
    .tv-compass .n { fill: #9fe0c3; }
    .tv-compass .s { fill: rgba(247, 246, 243, .5); }
    .tv-compass text { display: none; }
    .torre-wrap[data-torre-view="plan"] .tv-compass { opacity: .9; }

    .tv-toast {
      position: absolute; z-index: 14; bottom: 70px; left: 50%; transform: translateX(-50%); margin: 0;
      padding: 9px 14px; border-radius: 9px; background: #f7f6f3; color: #101215;
      font: 600 12px/1 var(--sans); white-space: nowrap;
    }
    .tv-toast[hidden] { display: none; }

    /* Pantalla completa */
    .torre-wrap.is-expanded {
      position: fixed; inset: 0; z-index: 2500;
      width: auto; height: 100vh; height: 100dvh; max-height: none; margin: 0; border-radius: 0;
    }
    html.torre-lock, html.torre-lock body { overflow: hidden; overscroll-behavior: none; }

    /* Presentacion guiada: subtitulos y cierre */
    .torre-wrap.is-touring .tv-panel,
    .torre-wrap.is-touring .tv-crumb,
    .torre-wrap.is-touring .tv-dock,
    .torre-wrap.is-touring .tv-tip,
    .torre-wrap.is-touring .torre-floors { visibility: hidden; }
    .torre-tour {
      position: absolute; left: 50%; bottom: clamp(18px, 3vw, 28px); transform: translateX(-50%);
      z-index: 13; width: min(520px, calc(100% - 32px));
      padding: 16px 20px 16px; border-radius: 14px;
      background: rgba(13, 14, 17, .8); border: 1px solid rgba(247, 246, 243, .14);
      -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
      color: #f7f6f3; text-align: left;
    }
    .torre-tour[hidden] { display: none; }
    .torre-tour-dots { display: flex; gap: 5px; margin: 0 70px 12px 0; }
    .torre-tour-dots span { flex: 1; height: 2px; border-radius: 2px; background: rgba(247, 246, 243, .2); }
    .torre-tour-dots span.is-done { background: rgba(81, 181, 141, .7); }
    .torre-tour-dots span.is-on { background: var(--green); }
    .torre-tour-h { margin: 0 0 4px; font: 400 21px/1.25 var(--serif); color: #fff; }
    .torre-tour-p { margin: 0; font-size: 14.5px; line-height: 1.5; color: rgba(247, 246, 243, .78); }
    /* Hora y posición del sol mientras recorre el día en la presentación */
    .torre-tour-sun { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgba(247, 246, 243, .14); font-size: 13px; line-height: 1.45; color: rgba(247, 246, 243, .86); font-variant-numeric: tabular-nums; }
    .torre-tour-sun[hidden] { display: none; }
    .torre-tour-sun b { font-weight: 600; color: var(--green); }
    .torre-tour-x {
      position: absolute; top: 9px; right: 10px; min-height: 32px; padding: 0 12px;
      border: 1px solid rgba(247, 246, 243, .22); border-radius: 999px; background: transparent;
      color: rgba(247, 246, 243, .85); cursor: pointer;
      font: 500 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
    }
    @media (hover: hover) and (pointer: fine) { .torre-tour-x:hover { border-color: #f7f6f3; color: #fff; } }
    .torre-tour-x:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

    .torre-end {
      position: absolute; inset: 58px 0 0; z-index: 14;
      display: flex; align-items: center; justify-content: center; padding: 20px;
      background: rgba(10, 11, 14, .62);
      -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    }
    .torre-end[hidden] { display: none; }
    .torre-end-card {
      width: min(470px, 100%); padding: clamp(22px, 3.5vw, 32px); border-radius: 16px;
      background: rgba(18, 19, 24, .92); border: 1px solid rgba(247, 246, 243, .14);
      color: #f7f6f3; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6);
    }
    .torre-end-k { margin: 0 0 10px; font: 600 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--green); }
    .torre-end-h { margin: 0 0 10px; font: 300 clamp(26px, 3vw, 32px)/1.15 var(--serif); color: #fff; }
    .torre-end-p { margin: 0 0 20px; font-size: 15px; line-height: 1.55; color: rgba(247, 246, 243, .78); }
    .torre-end-a { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
    .torre-end-cta {
      display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px;
      background: var(--green); color: #101215; text-decoration: none;
      font: 600 11.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
    }
    @media (hover: hover) and (pointer: fine) { .torre-end-cta:hover { background: #fff; } }
    .torre-end-again, .torre-end-close {
      min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
      border: 1px solid rgba(247, 246, 243, .24); background: transparent; color: rgba(247, 246, 243, .85);
      font: 500 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
    }
    @media (hover: hover) and (pointer: fine) { .torre-end-again:hover, .torre-end-close:hover { border-color: #f7f6f3; color: #fff; } }
    .torre-end-cta:focus-visible, .torre-end-again:focus-visible, .torre-end-close:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

    /* En planos el cielo se apaga: fondo azul con cuadricula, como un
       plano tecnico. */
    .torre-wrap[data-torre-view="plan"] {
      background-color: #0e1522;
      background-image:
        linear-gradient(rgba(156, 196, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(156, 196, 255, .07) 1px, transparent 1px);
      background-size: 28px 28px;
      background-position: center;
    }

    /* Pantallas medianas: el panel se angosta un poco */
    @media (min-width: 768px) and (max-width: 1100px) {
      .tv-brand { display: none; }
      .tv-tab { min-width: 72px; padding: 0 8px; }
      .tv-panel { width: 272px; }
      .torre-wrap.is-panel .tv-crumb, .torre-wrap.is-panel .tv-dock, .torre-wrap.is-panel .tv-credit, .torre-wrap.is-panel .tv-toast { transform: translateX(calc(-50% + 143px)); }
      .torre-wrap.is-panel .tv-crumb { max-width: calc(100% - 314px); }
      .torre-wrap.is-panel .torre-floors { display: none; }
    }

    @media (max-width: 767px) {
      .torre-wrap { height: 520px; max-height: 82vh; max-height: 82svh; }
      .tv-bar { height: 54px; padding: 0 6px 0 4px; gap: 2px; }
      .tv-brand, .tv-cta { display: none; }
      .tv-tab { flex: 1 0 auto; min-width: 0; padding: 0 5px; gap: 5px; font-size: 8px; letter-spacing: .03em; }
      .tv-tab svg { width: 18px; height: 18px; }
      .tv-expand { width: 40px; height: 40px; }
      /* El panel pasa a ser una hoja inferior */
      .tv-panel { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 48%; }
      .torre-wrap.is-expanded .tv-panel { max-height: 50%; }
      /* La cabecera es la agarradera: se arrastra hacia abajo para cerrar la hoja. */
      .tv-panel-head { position: relative; padding: 16px 6px 4px 14px; touch-action: pan-x; -webkit-user-select: none; user-select: none; }
      .tv-panel-head::before {
        content: ""; position: absolute; left: 50%; top: 7px; width: 36px; height: 4px; margin-left: -18px;
        border-radius: 99px; background: rgba(21, 23, 27, .22);
      }
      /* Las pestañas que no caben se desvanecen en el borde en vez de cortarse. */
      .tv-tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
      .tv-tabs::after { content: ""; flex: 0 0 18px; }
      .tv-panel-title { font-size: 18px; }
      .tv-panel-body { padding: 4px 14px 14px; }
      .tv-crumb, .torre-wrap.is-panel .tv-crumb { top: 62px; transform: translateX(-50%); max-width: calc(100% - 16px); }
      .tv-path { letter-spacing: .1em; font-size: 9.5px; }
      .tv-dock, .torre-wrap.is-panel .tv-dock { transform: translateX(-50%); bottom: 10px; }
      .torre-wrap.is-panel .tv-toast { transform: translateX(-50%); }
      .torre-wrap.is-panel .tv-dock { display: none; }
      .tv-dock-btn { width: 44px; height: 44px; }
      .tv-credit, .torre-wrap.is-panel .tv-credit { transform: translateX(-50%); bottom: 58px; max-width: calc(100% - 16px); font-size: 8.5px; }
      .tv-compass { right: 8px; bottom: 10px; width: 36px; height: 36px; }
      .torre-wrap.is-panel .tv-credit, .torre-wrap.is-panel .tv-compass { display: none; }
      .torre-wrap.is-ready .torre-floors { display: none; }
      .torre-meta { left: 14px; top: 14px; bottom: auto; gap: 5px; font-size: 9.5px; }
      .torre-meta-k { font-size: 8.5px; }
      .torre-meta-t { font-size: 17px; }
      .torre-meta-hint { display: none; }
      .torre-activate { gap: 11px; font-size: 10.5px; }
      .torre-activate-ring { width: 68px; height: 68px; }
      .torre-activate svg { width: 26px; height: 26px; }
      .torre-activate small { font-size: 11px; max-width: 26ch; }
      .torre-pills { right: 12px; bottom: 12px; max-width: 60%; gap: 5px; }
      .torre-pills li { padding: 7px 10px; font-size: 8.5px; }
      .tv-photo { inset: 54px 0 0; padding: 56px 10px 12px; }
      .tv-photo-x { top: 10px; right: 10px; }
      .tv-photo figcaption { flex-direction: column; gap: 4px; }
      .torre-tour { bottom: 12px; padding: 13px 15px; }
      .torre-tour-h { font-size: 18px; }
      .torre-tour-p { font-size: 13.5px; }
      .torre-end { inset: 54px 0 0; }
    }

    @media (prefers-reduced-motion: reduce) {
      #torre-3d, .torre-meta-hint, .torre-floors { display: none; }
      .torre-poster img, .torre-wrap.is-static:hover .torre-poster img { transform: none; transition: none; }
      .torre-activate-ring, .torre-activate-ring::after { transition: none; }
      /* El 3D solo se muestra si la persona pulsa "Explorar en 3D". */
      .torre-wrap.is-3d-on #torre-3d { display: block; }
      .torre-wrap.is-3d-on.is-ready .torre-floors { display: flex; transition: none; }
    }
    @media (prefers-reduced-motion: reduce) and (max-width: 767px) {
      .torre-wrap.is-3d-on.is-ready .torre-floors { display: none; }
    }


    /* ================= Apartamentos ================= */
    .tv-sample {
      margin: 0 0 12px; padding: 8px 10px; border-radius: 8px;
      background: #fff3d6; border: 1px solid #e6c97a; color: #5c4508; font-size: 12px; line-height: 1.4;
    }
    .tv-usum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 14px; font-size: 12px; color: rgba(21, 23, 27, .72); }
    .tv-usum > b { flex-basis: 100%; font: 500 16px/1.2 var(--sans); color: #15171b; }
    .tv-leg { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
    .tv-leg i { width: 9px; height: 9px; border-radius: 50%; background: #3f9f78; }
    .tv-leg[data-estado="reservado"] i { background: #d9a441; }
    .tv-leg[data-estado="vendido"] i { background: #c66a5d; }
    .tv-leg[data-estado="consultar"] i { background: #8a9099; }
    .tv-leg b { font-weight: 600; color: #15171b; }
    .tv-fcard-h b { white-space: nowrap; }
    .tv-unit { border-left-color: #3f9f78; }
    .tv-unit[data-estado="consultar"] { border-left-color: #8a9099; }
    @media (hover: hover) and (pointer: fine) { .tv-unit:hover { box-shadow: 0 0 0 1px #15171b; } }
    .tv-unit.is-sel { background: #15171b; color: #f7f6f3; opacity: 1; }
    .tv-unit.is-sel span { color: rgba(247, 246, 243, .7); }

    /* Etiquetas sobre el piso: ahora son botones */
    .tv-pin {
      -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: pointer; margin: 0;
      border-top: 0; border-right: 0; border-bottom: 0;
      box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .6);
    }
    .tv-pin[data-estado="disponible"] { border-left-color: #3f9f78; }
    .tv-pin[data-estado="consultar"] { border-left-color: #8a9099; }
    .tv-pin.is-hover { background: #fff; opacity: 1; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 8px 18px -8px rgba(0, 0, 0, .7); }
    @media (hover: hover) and (pointer: fine) { .tv-pin:hover { background: #fff; opacity: 1; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 8px 18px -8px rgba(0, 0, 0, .7); } }
    .tv-pin.is-sel { background: #15171b; color: #f7f6f3; opacity: 1; }
    .tv-pin:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

    /* Ficha del apartamento */
    .tv-uback {
      -webkit-appearance: none; appearance: none;
      display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px -6px; padding: 6px 10px 6px 4px;
      border: 0; border-radius: 8px; background: transparent; color: rgba(21, 23, 27, .7); cursor: pointer;
      font: 600 9.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
    }
    .tv-uback svg { width: 16px; height: 16px; }
    @media (hover: hover) and (pointer: fine) { .tv-uback:hover { background: rgba(21, 23, 27, .08); color: #15171b; } }
    .tv-uhero {
      -webkit-appearance: none; appearance: none; display: block; width: 100%; margin: 0 0 12px; padding: 0;
      border: 1px solid rgba(21, 23, 27, .12); border-radius: 10px; overflow: hidden; background: #fff; cursor: zoom-in;
      transition: scale .14s var(--tv-out);
    }
    .tv-uhero:active { scale: .985; }
    .tv-uhero img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
    .tv-uhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
    .tv-ust {
      flex: none; padding: 6px 10px; border-radius: 99px; background: #23875a; color: #fff;
      font: 600 9.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
    }
    .tv-ust[data-estado="reservado"] { background: #a8700f; }
    .tv-ust[data-estado="vendido"] { background: #a8443a; }
    .tv-ust[data-estado="consultar"] { background: #646a73; }
    .tv-usub { margin: 0; font-size: 14px; color: rgba(21, 23, 27, .78); }
    .tv-uprice {
      display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px;
      padding: 11px 14px; border-radius: 10px; background: #15171b; color: #f7f6f3;
    }
    .tv-uprice span { font: 600 9.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
    .tv-uprice b { font: 500 17px/1 var(--sans); }
    .tv-ufacts { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 14px; }
    .tv-ufacts dt { letter-spacing: .1em; line-height: 1.3; }
    .tv-ufacts dd { margin: 4px 0 0; }
    .tv-umedia, .tv-urow { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
    /* Cada botón mide lo que su rótulo: los cortos comparten fila y ninguno parte el texto en dos renglones. */
    .tv-umedia .tv-btn, .tv-urow .tv-btn {
      flex: 1 1 auto; max-width: 100%; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .tv-ua { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
    .tv-ucta { margin-top: 2px; }
    .tv-ucta .tv-cta2 { margin: 0 0 8px; }

    /* Galería (anterior / siguiente) y recorrido 360 dentro del visor */
    .tv-photo-nav {
      -webkit-appearance: none; appearance: none; position: absolute; top: 50%; margin-top: -22px;
      width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
      border: 1px solid rgba(247, 246, 243, .28); background: rgba(13, 14, 17, .7); color: #f7f6f3; cursor: pointer;
    }
    .tv-photo-nav[hidden] { display: none; }
    .tv-photo-nav svg { width: 20px; height: 20px; }
    .tv-photo-prev { left: 14px; }
    .tv-photo-next { right: 14px; }
    .tv-photo-next svg { transform: rotate(180deg); }
    @media (hover: hover) and (pointer: fine) { .tv-photo-nav:hover { background: #f7f6f3; color: #101215; } }
    .tv-photo-nav:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
    .tv-frame { padding: 62px 16px 16px; }
    .tv-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; background: #000; }

    /* Trazado de contornos (?ubicar=1) */
    .tv-trace {
      position: absolute; z-index: 12; right: 84px; bottom: 14px; width: min(380px, calc(100% - 28px));
      padding: 12px; border-radius: 10px; background: rgba(247, 246, 243, .96); color: #15171b;
      font-size: 12px; line-height: 1.4; box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .6);
    }
    .tv-trace p { margin: 0 0 8px; }
    .tv-trace textarea { width: 100%; box-sizing: border-box; margin: 0 0 8px; font: 11px/1.4 ui-monospace, Consolas, monospace; resize: vertical; }
    .tv-trace .tv-urow { margin: 0; }

    @media (max-width: 767px) {
      .tv-pin { padding: 7px 10px; }
      .tv-photo-prev { left: 6px; }
      .tv-photo-next { right: 6px; }
      .tv-frame { padding: 58px 8px 8px; }
      .tv-trace { right: 8px; bottom: 8px; }
    }

    /* ================= Tabla de disponibilidad (una fila por piso) ================= */
    /* Con la pestaña de apartamentos abierta, la tabla es la única lista de pisos. */
    .torre-wrap.is-units .torre-floors { display: none !important; }
    .tv-grid { display: flex; flex-direction: column; gap: 2px; margin: 0 0 14px; }
    .tv-ghead {
      display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 0 2px 5px;
      font: 600 9px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(21, 23, 27, .5);
    }
    .tv-ghead span:first-child { text-align: center; }
    .tv-grow {
      display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: center;
      padding: 3px 2px; border-radius: 9px; transition: background-color .15s ease;
    }
    .tv-grow[hidden] { display: none; }
    .tv-grow.is-hover { background: rgba(21, 23, 27, .06); }
    .tv-grow.is-active { background: rgba(21, 23, 27, .1); }
    .tv-gfloor {
      -webkit-appearance: none; appearance: none; height: 32px; padding: 0; border: 0; border-radius: 7px;
      background: transparent; color: #15171b; cursor: pointer; font: 600 12.5px/1 var(--sans);
    }
    @media (hover: hover) and (pointer: fine) { .tv-gfloor:hover { background: rgba(21, 23, 27, .1); } }
    .tv-grow.is-active .tv-gfloor { background: #15171b; color: #f7f6f3; }
    .tv-gunits { display: flex; flex-wrap: wrap; gap: 4px; }
    .tv-gunit {
      -webkit-appearance: none; appearance: none; flex: 1 1 40px; max-width: 64px; height: 32px; padding: 0 4px;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      border-radius: 7px; cursor: pointer; font: 600 11px/1 var(--sans); letter-spacing: .01em;
      color: #1c4433; background: #dcefe6; border: 1px solid #b4d9c8;
    }
    .tv-gunit[data-estado="reservado"] { color: #5f4706; background: #f6ebd2; border-color: #e5cf99; }
    .tv-gunit[data-estado="vendido"] { color: #6d2d26; background: #f2dfdc; border-color: #e2bab4; opacity: .8; }
    .tv-gunit[data-estado="consultar"] { color: #3c4149; background: #e9ebee; border-color: #cfd3d8; }
    @media (hover: hover) and (pointer: fine) { .tv-gunit:hover { box-shadow: 0 0 0 2px #15171b; opacity: 1; } }
    .tv-gunit.is-sel { background: #15171b; border-color: #15171b; color: #f7f6f3; opacity: 1; }
    @media (max-width: 767px) {
      .tv-gfloor, .tv-gunit { height: 36px; }
    }

    /* ================= Respuesta al toque =================
       Todo control responde en el momento en que se presiona (no al soltar): se encoge un poco.
       Va con la propiedad scale, que no choca con el transform de las etiquetas ni de los centrados. */
    .torre-floor, .tv-cta, .tv-expand, .tv-panel-x, .torre-seg-btn, .tv-fcard-h, .tv-btn, .tv-unit, .tv-cta2,
    .tv-back, .tv-dock-btn, .tv-photo-x, .tv-photo-nav, .torre-tour-x, .torre-end-cta, .torre-end-again,
    .torre-end-close, .tv-uback, .tv-gfloor, .tv-gunit, .tv-pin {
      transition: background-color .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease, scale .12s var(--tv-out);
    }
    .torre-floor:active, .tv-cta:active, .tv-expand:active, .tv-panel-x:active, .torre-seg-btn:active, .tv-fcard-h:active,
    .tv-btn:active, .tv-unit:active, .tv-cta2:active, .tv-back:active, .tv-dock-btn:active, .tv-photo-x:active,
    .tv-photo-nav:active, .torre-tour-x:active, .torre-end-cta:active, .torre-end-again:active, .torre-end-close:active,
    .tv-uback:active { scale: .97; }
    .tv-gfloor:active, .tv-gunit:active, .tv-pin:active { scale: .94; }
    .torre-seg-btn:disabled:active { scale: none; }
    /* Controles: toque sin espera de doble toque, sin seleccionar el rótulo al mantener presionado. */
    .torre-wrap button, .torre-wrap a { touch-action: manipulation; }
    .torre-wrap button, .tv-cta, .tv-cta2, .tv-ua, .torre-end-cta {
      -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
    }
    /* Cifras que se comparan en columna: todas del mismo ancho. */
    .tv-gfloor, .tv-gunit, .tv-pin, .tv-leg b, .tv-ufacts dd, .tv-uprice b { font-variant-numeric: tabular-nums; }

    @media (pointer: coarse) {
      .tv-panel-x { width: 44px; height: 44px; }
      .tv-btn { min-height: 42px; }
      .tv-back, .tv-uback, .torre-tour-x { min-height: 38px; }
      .tv-crumb .torre-seg-btn { min-height: 38px; }
      /* Con menos de 16 px el iPhone amplía la página al enfocar el campo. */
      .tv-date { min-height: 44px; font-size: 16px; }
    }

    /* ================= Entradas y salidas =================
       Lo que aparece o se va lo hace con un fundido corto y un desplazamiento mínimo desde su origen;
       la salida es más rápida que la entrada. Donde el navegador no admite @starting-style, aparece
       y desaparece de golpe, como antes. La etiqueta que sigue al cursor no se anima: se ve decenas de veces. */
    .tv-panel {
      transition: opacity .2s var(--tv-out), translate .26s var(--tv-sheet), display .26s;
      transition-behavior: allow-discrete;
    }
    .tv-panel[hidden] { opacity: 0; translate: -16px 0; transition-duration: .15s; }
    .tv-crumb {
      transition: transform .26s var(--tv-sheet), opacity .16s var(--tv-out), translate .2s var(--tv-out), display .16s;
      transition-behavior: allow-discrete;
    }
    .tv-crumb[hidden] { opacity: 0; translate: 0 -6px; }
    .tv-dock, .tv-credit { transition: transform .26s var(--tv-sheet); }
    .tv-toast, .torre-tour {
      transition: opacity .18s var(--tv-out), translate .24s var(--tv-out), display .18s;
      transition-behavior: allow-discrete;
    }
    .tv-toast[hidden], .torre-tour[hidden] { opacity: 0; translate: 0 10px; transition-duration: .14s; }
    .tv-photo, .torre-end {
      transition: opacity .2s var(--tv-out), display .2s;
      transition-behavior: allow-discrete;
    }
    .tv-photo[hidden], .torre-end[hidden] { opacity: 0; transition-duration: .14s; }
    .tv-photo figure, .tv-frame iframe, .torre-end-card { transition: scale .24s var(--tv-out); }
    .tv-photo[hidden] figure, .tv-frame[hidden] iframe, .torre-end[hidden] .torre-end-card { scale: .97; transition-duration: .14s; }
    @starting-style {
      .tv-panel { opacity: 0; translate: -16px 0; }
      .tv-crumb { opacity: 0; translate: 0 -6px; }
      .tv-toast, .torre-tour { opacity: 0; translate: 0 10px; }
      .tv-photo, .torre-end { opacity: 0; }
      .tv-photo figure, .tv-frame iframe, .torre-end-card { scale: .97; }
    }
    @media (max-width: 767px) {
      /* Hoja inferior: sube desde el borde y baja al cerrarse, sin fundido. */
      .tv-panel { transition-duration: .2s, .34s, .34s; }
      .tv-panel[hidden] { opacity: 1; translate: 0 calc(100% + 16px); transition-duration: .22s; }
      .tv-panel.is-drag { transition: none; }
      @starting-style { .tv-panel { opacity: 1; translate: 0 calc(100% + 16px); } }
    }
    @media (prefers-reduced-motion: reduce) {
      /* Menos movimiento, no cero: quedan los fundidos, se van los desplazamientos y las escalas de entrada. */
      .tv-panel[hidden] { opacity: 0; translate: none; }
      .tv-crumb[hidden], .tv-toast[hidden], .torre-tour[hidden] { translate: none; }
      .tv-photo[hidden] figure, .tv-frame[hidden] iframe, .torre-end[hidden] .torre-end-card { scale: none; }
      .tv-crumb { transition-property: opacity, display; }
      .tv-dock, .tv-credit { transition: none; }
      @starting-style {
        .tv-panel { opacity: 0; translate: none; }
        .tv-crumb, .tv-toast, .torre-tour { translate: none; }
        .tv-photo figure, .tv-frame iframe, .torre-end-card { scale: none; }
      }
    }

    /* ================= Equipos modestos =================
       El desenfoque de fondo se recalcula con cada cuadro del 3D que tiene detrás. En los dos niveles
       de calidad más bajos se cambia por un fondo más opaco, que se ve casi igual y no cuesta nada. */
    .torre-wrap:is([data-calidad="minimo"], [data-calidad="basico"]) :is(.tv-bar, .torre-floor, .tv-crumb, .tv-dock-btn, .torre-tour, .tv-photo, .torre-end, .torre-pills li, .torre-activate-ring) {
      -webkit-backdrop-filter: none; backdrop-filter: none;
    }
    .torre-wrap:is([data-calidad="minimo"], [data-calidad="basico"]) :is(.tv-bar, .tv-crumb, .torre-tour) { background-color: rgba(13, 14, 17, .93); }
    .torre-wrap:is([data-calidad="minimo"], [data-calidad="basico"]) :is(.torre-floor, .tv-dock-btn) { background-color: rgba(13, 14, 17, .86); }

    /* ================= Datos difíciles =================
       Lo que la interfaz tiene que aguantar cuando los datos no son los de la demostración: nombres largos,
       muchas tipologías, direcciones sin espacios, imágenes que no cargan. Se prueba con
       demo/index.html?proyecto=kronus&unidades=peor. */
    .tv-panel-body { overflow-x: hidden; }
    .tv-note, .tv-usub, .tv-sample, .tv-facts dd { overflow-wrap: anywhere; }
    .tv-uhead .tv-usub { min-width: 0; }
    .tv-uprice { flex-wrap: wrap; }
    .tv-gunit.is-long { flex: 0 1 auto; max-width: 100%; padding: 0 9px; }
    .tv-ghead[hidden] { display: none; }
    .tv-panel .torre-seg.is-wrap { flex-wrap: wrap; }
    .tv-panel .torre-seg.is-wrap .torre-seg-btn {
      flex: 1 1 auto; max-width: 100%; padding: 0 10px; overflow: hidden; text-overflow: ellipsis;
    }
    .tv-photo figcaption b { min-width: 0; }
    .tv-photo figcaption span { text-align: right; }
    .tv-photo.is-broken img { display: none; }
    .tv-photo.is-broken figure::before {
      content: attr(data-msg); display: grid; place-items: center; min-height: 200px; padding: 24px 32px;
      border: 1px dashed rgba(247, 246, 243, .35); border-radius: 10px;
      color: rgba(247, 246, 243, .75); font-size: 14px; text-align: center;
    }
    @media (max-width: 767px) {
      .tv-photo figcaption span { text-align: left; }
    }
    /* Celulares angostos (320 px): la ruta cede su sitio para que quepan «Atrás» y 3D / Planta / Vista. */
    @media (max-width: 359px) {
      .tv-path { display: none; }
      .tv-crumb { gap: 4px; }
      .tv-crumb .torre-seg-btn { padding: 0 8px; letter-spacing: .08em; }
      .tv-back { padding: 0 9px 0 5px; }
    }


    /* ================= Accesibilidad y lectura · 23 de noviembre de 2026 =================
       Revisión con las guías de Impeccable (audit, harden, adapt, typeset). Todo es genérico:
       ninguna regla depende de un proyecto. */

    /* Contraste del texto secundario: mínimo 4,5:1 sobre su fondo */
    .tv-small, .tv-ghead, .tv-field-t, .tv-facts dt { color: rgba(21, 23, 27, .66); }
    .tv-unit span, .tv-acard span { color: rgba(21, 23, 27, .66); }
    .tv-brand span { color: rgba(247, 246, 243, .72); }
    .tv-credit { background: rgba(13, 14, 17, .78); color: rgba(247, 246, 243, .85); }
    .torre-floors-title { padding: 5px 8px; border-radius: 6px; background: rgba(13, 14, 17, .74); color: rgba(247, 246, 243, .82); text-shadow: none; }
    .tv-photo figcaption span { color: rgba(247, 246, 243, .75); }
    .tv-ust { background: #1f7a51; }
    .tv-ust[data-estado="reservado"] { background: #8f5f0c; }
    .tv-range::-webkit-slider-runnable-track { border-color: rgba(21, 23, 27, .5); }
    .tv-range::-moz-range-track { border-color: rgba(21, 23, 27, .5); }
    .tv-range::-moz-range-thumb { width: 18px; height: 18px; }

    /* El foco del teclado se ve también sobre superficies claras */
    .tv-panel .torre-seg-btn:focus-visible { outline-color: #15171b; }
    .tv-tab[aria-pressed="true"]:focus-visible { outline-color: #101215; }

    /* El estado de una unidad no depende solo del color */
    .tv-gunit[data-estado="vendido"], .tv-pin[data-estado="vendido"] { text-decoration: line-through; }
    .tv-gunit[data-estado="reservado"] { border-style: dashed; border-color: #8f5f0c; }
    .tv-gunit[data-estado="consultar"] { border-style: dotted; border-color: #646a73; }
    .tv-leg[data-estado="vendido"] b { text-decoration: line-through; }
    .tv-leg[data-estado="reservado"] i { outline: 1px dashed #8f5f0c; outline-offset: 1px; }
    .tv-leg[data-estado="consultar"] i { outline: 1px dotted #646a73; outline-offset: 1px; }

    /* Tamaños mínimos de letra: 10 px en rótulos en mayúsculas, 12 px en texto corrido */
    .tv-brand span, .tv-ghead { font-size: 10px; }
    .tv-small, .tv-photo figcaption span { font-size: 12px; }
    @media (max-width: 767px) {
      .tv-tab { font-size: 10px; }
      .tv-credit, .torre-wrap.is-panel .tv-credit, .torre-meta-k, .torre-pills li { font-size: 10px; }
    }

    /* Zonas táctiles de 44 px en pantallas táctiles */
    @media (pointer: coarse) {
      .tv-back, .tv-uback, .torre-tour-x, .tv-crumb .torre-seg-btn, .tv-photo-x, .tv-cta { min-height: 44px; }
      .tv-photo-x, .tv-expand, .tv-dock-btn { min-width: 44px; min-height: 44px; }
      .tv-gfloor, .tv-gunit { height: 44px; }
      .tv-gunit { flex-basis: 44px; }
      .tv-pin { padding-top: 13px; padding-bottom: 13px; }
      .tv-range { height: 44px; }
      .torre-floor { min-height: 40px; }
      .tv-check { min-height: 44px; display: flex; align-items: center; }
      .tv-check input { width: 18px; height: 18px; }
      .tv-panel .tv-link, .torre-meta-link { display: inline-flex; align-items: center; min-height: 44px; }
    }

    /* Pantalla completa en teléfonos con muesca o barra de gestos */
    @media (max-width: 767px) {
      .torre-wrap.is-expanded .tv-panel { bottom: max(8px, env(safe-area-inset-bottom)); }
      .torre-wrap.is-expanded .tv-dock { bottom: max(10px, env(safe-area-inset-bottom)); }
    }

    /* Modo de alto contraste del sistema: lo seleccionado se marca con contorno, no solo con fondo */
    @media (forced-colors: active) {
      .torre-wrap [aria-pressed="true"], .tv-gunit.is-sel, .tv-pin.is-sel { outline: 2px solid Highlight; outline-offset: -2px; }
    }

    /* ===== Rótulo sobre la portada · 23 de noviembre de 2026 (detector de Impeccable) =====
       El texto va sobre una imagen que cambia con cada proyecto: lleva su propio fondo para leerse
       sobre cualquier portada (antes 2,1 a 3,3:1) y ningún rótulo baja de 11 px. */
    .torre-meta { padding: 12px 14px; border-radius: 10px; background: rgba(13, 14, 17, .66); color: rgba(247, 246, 243, .88); font-size: 11px; }
    .torre-meta-k { color: rgba(247, 246, 243, .86); font-size: 11px; }
    .torre-meta-t { text-shadow: none; }
    .torre-meta-hint { color: rgba(247, 246, 243, .78); }
    .torre-meta-link { color: #f7f6f3; border-bottom-color: rgba(247, 246, 243, .5); font-size: 11px; }
    .torre-activate-l { font-size: 11px; }
    @media (max-width: 767px) {
      .torre-meta, .torre-meta-k, .torre-meta-link { font-size: 11px; }
      .torre-meta { padding: 9px 11px; }
    }
    /* En táctil el enlace mide 44 px de alto: el subrayado va pegado al texto, no al borde de esa zona. */
    @media (pointer: coarse) {
      .torre-meta-link, .tv-panel .tv-link { border-bottom: 0; padding-bottom: 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
    }
