/* ==========================================================================
   Maqueta 3D de «Tu lote» (plano3d.js), modo explorar (explorar.js), paisaje y sonido.
   Compartido por las dos versiones de la compra en línea (tigo.css y compra.css).
   ========================================================================== */

/* Montserrat en woff2, subconjunto latino (scripts/tigo/fuentes-woff2.py; ≈ 22 KB por peso en vez de 198 KB del .ttf). */
@font-face { font-family: 'TgMontserrat'; src: url('../../fuente_montserrat/Montserrat-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'TgMontserrat'; src: url('../../fuente_montserrat/Montserrat-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'TgMontserrat'; src: url('../../fuente_montserrat/Montserrat-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'TgMontserrat'; src: url('../../fuente_montserrat/Montserrat-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* Los colores del visor no cambian con el tema de la página: :where() los deja sin peso para que tigo.css mande. */
:where(:root) {
    --tg-petroleo: #03424E;
    --tg-petroleo-100: #E4EFF0;
    --tg-fondo: #F2F7F7;
    --tg-ambar: #F6A42C;
    --tg-ambar-hover: #EE9A17;
    --tg-ambar-claro: #FFC46B;
    --tg-ambar-100: #FDEFD8;
    --tg-ambar-tinta: #7A4A00;
    --tg-tinta: #0F2A30;
    --tg-tinta-suave: #24414A;
    --tg-gris: #4A6268;
    --tg-gris-off: #55686D;
    --tg-linea: #D5E1E3;
    --tg-linea-suave: #E6EDEE;
    --tg-ok-100: #E3F3EA;
    --tg-ok-tinta: #1E6B48;
    --tg-error: #B42318;
    --tg-sombra-fuerte: 0 18px 36px -16px rgba(3, 66, 78, .55);
    --tg-fuente: 'TgMontserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
@keyframes tg-entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Botones que el visor dibuja dentro de su caja (la ficha del lote, la bienvenida, el mapa). */
:where(.tg-3d) .tg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 20px; border-radius: 14px; border: 1.5px solid transparent; font: 700 16px/1.2 var(--tg-fuente); text-decoration: none; cursor: pointer; transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease; }
:where(.tg-3d) .tg-btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
:where(.tg-3d) .tg-btn:focus-visible { outline: 3px solid var(--tg-petroleo); outline-offset: 2px; }
:where(.tg-3d) .tg-btn--primario { background: var(--tg-ambar); color: var(--tg-tinta); box-shadow: 0 10px 22px -12px rgba(246, 164, 44, .95); }
:where(.tg-3d) .tg-btn--primario:hover:not(:disabled) { background: var(--tg-ambar-hover); }
:where(.tg-3d) .tg-btn--secundario { background: #fff; color: var(--tg-petroleo); border-color: var(--tg-petroleo); min-height: 48px; font-size: 15px; }
:where(.tg-3d) .tg-btn--secundario:hover { background: var(--tg-petroleo-100); }

.tg-plano3d__carga, .tg-3d { height: clamp(380px, 64vh, 580px); border-radius: 14px; }
.tg-plano3d__carga { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: linear-gradient(#CFE4EE, #EFE5CF); color: var(--tg-petroleo); font-size: 14px; font-weight: 600; text-align: center; }
.tg-plano3d__giro { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(3, 66, 78, .2); border-top-color: var(--tg-ambar); animation: tg-3d-gira .9s linear infinite; }
@keyframes tg-3d-gira { to { transform: rotate(360deg); } }
.tg-3d { position: relative; overflow: hidden; isolation: isolate; background: #CFE4EE; font-family: var(--tg-fuente); user-select: none; -webkit-user-select: none; }
.tg-3d:fullscreen { height: 100%; border-radius: 0; }
.tg-3d__lienzo { display: block; width: 100%; height: 100%; outline: none; }
.tg-3d__etiquetas { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.tg-3d__et { position: absolute; left: 0; top: 0; white-space: nowrap; font-weight: 700; font-size: 11px; line-height: 1; will-change: transform, opacity; transform-origin: 50% 50%; }
/* La opacidad y la escala de cada etiqueta las lleva plano3d.js según su distancia (ver «Etiquetas»): sin transiciones de CSS,
   que pelearían con las de cada cuadro. Un nombre de proyecto casi apagado no se puede tocar. */
.tg-3d__et--sector.is-tenue { pointer-events: none; }
.tg-3d__et--parcela { color: #fff; font-size: 10px; letter-spacing: .04em; text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 0 6px rgba(0, 0, 0, .35); }
.tg-3d__et--rotulo { opacity: .7; }
.tg-3d__et--via { padding: 5px 9px; border-radius: 6px; background: #1E6B48; color: #fff; font-size: 10px; letter-spacing: .08em; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 4px 10px rgba(0, 0, 0, .25); }
.tg-3d__et--lote { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; border: 1.5px solid #8FB7BE; background: #fff; color: var(--tg-petroleo); font-size: 12px; box-shadow: 0 3px 8px rgba(3, 66, 78, .25); }
.tg-3d__et--lote[data-estado="elegido"] { border-color: #fff; background: var(--tg-ambar); color: var(--tg-tinta); }
.tg-3d__et--lote[data-estado="bloqueado"] { border-color: #F0C77F; background: var(--tg-ambar-100); color: var(--tg-ambar-tinta); }
.tg-3d__et--lote[data-estado="vendido"] { border-color: transparent; background: #E6ECED; color: var(--tg-gris-off); }
/* Ya es tuyo (reservado o pagado por ti): lila con borde violeta, como su losa. «Cargando»: gris cálido y apagado, sin
   número fuerte: todavía no se sabe su estado (no es «vendido»). */
.tg-3d__et--lote[data-estado="tuyo"] { border-color: #6B55C9; background: #EEEAFB; color: #3F2F8F; }
.tg-3d__et--lote[data-estado="cargando"] { border-color: #C9C2B4; border-style: dashed; background: #F1EEE8; color: #6E6657; box-shadow: none; }
.tg-3d__et--mz { padding: 4px 9px; border-radius: 6px; background: rgba(255, 255, 255, .88); color: var(--tg-petroleo); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.tg-3d__et--comun { padding: 4px 9px; border-radius: 999px; background: #2F6B3C; color: #fff; font-size: 11px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 4px 10px rgba(0, 0, 0, .2); }
.tg-3d__et--via-proyectada { padding: 3px 7px; border: 1px dashed #A48C62; border-radius: 6px; background: rgba(255, 255, 255, .7); color: #6B5836; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.tg-3d__et--medida { padding: 4px 8px; border-radius: 6px; background: var(--tg-ambar); color: var(--tg-tinta); font-size: 11px; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); }
.tg-3d__et--area { padding: 6px 11px; border: 2px solid var(--tg-petroleo); border-radius: 999px; background: #fff; color: var(--tg-petroleo); font-size: 13px; box-shadow: 0 4px 12px rgba(2, 47, 56, .35); }
.tg-3d__et--sector { padding: 3px 5px; color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); pointer-events: auto; cursor: pointer; }
.tg-3d__et--sector:hover { color: var(--tg-ambar-claro); }
.tg-3d[data-zoom="lejos"] .tg-3d__et--via { padding: 0; background: none; box-shadow: none; color: var(--tg-ambar); font-weight: 600; font-size: 11px; letter-spacing: .3em; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.tg-3d__et--etapa { padding: 8px 13px; border-radius: 999px; background: var(--tg-ambar); color: var(--tg-tinta); font-size: 12px; pointer-events: auto; cursor: pointer; animation: tg-3d-faro 1.8s ease-in-out infinite; }
@keyframes tg-3d-faro { 0%, 100% { box-shadow: 0 0 0 0 rgba(246, 164, 44, .7), 0 6px 16px rgba(0, 0, 0, .25); } 50% { box-shadow: 0 0 0 10px rgba(246, 164, 44, 0), 0 6px 16px rgba(0, 0, 0, .25); } }
/* 29-oct-2026 (propuesta visual, «EN VIVO» del carrusel de Alrededores): el punto rojo que late. */
@keyframes tgPulseRed { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 91, .6); } 70% { box-shadow: 0 0 0 7px rgba(255, 91, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 91, 91, 0); } }
.tg-3d__barra { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; }
.tg-3d__barra > * { pointer-events: auto; }
.tg-3d__btn:focus-visible, .tg-3d__brujula:focus-visible, .tg-3d__cerrar:focus-visible { outline: 3px solid var(--tg-ambar); outline-offset: 2px; }
.tg-3d__btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(2, 47, 56, .82); color: #fff; cursor: pointer; }
.tg-3d__btn svg, .tg-3d__cerrar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tg-3d__hud { position: absolute; top: 58px; left: 10px; z-index: 1; display: flex; flex-direction: column; gap: 2px; max-width: min(300px, calc(100% - 84px)); padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(3, 66, 78, .18); pointer-events: none; }
.tg-3d__hud strong { color: var(--tg-petroleo); font-size: 13px; }
.tg-3d__hud span { font-size: 12px; font-weight: 600; color: var(--tg-tinta-suave); }
.tg-3d__hud small { font-size: 11px; color: var(--tg-gris); }
.tg-3d__brujula { position: absolute; top: 58px; right: 10px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(3, 66, 78, .18); cursor: pointer; }
.tg-3d__aguja { position: relative; display: grid; place-items: center; width: 24px; height: 24px; color: var(--tg-error); font-size: 10px; font-weight: 800; }
.tg-3d__aguja::before { content: ""; position: absolute; top: -5px; left: 50%; margin-left: -4px; border: 4px solid transparent; border-bottom: 6px solid var(--tg-error); border-top: 0; }
.tg-3d__pista { position: absolute; left: 50%; bottom: 12px; z-index: 1; max-width: calc(100% - 24px); margin: 0; padding: 7px 13px; border-radius: 999px; background: rgba(2, 47, 56, .82); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translateX(-50%); transition: opacity .4s ease; pointer-events: none; }
.tg-3d__pista.is-oculta, .tg-3d:has(.tg-3d__ficha:not([hidden])) .tg-3d__pista { opacity: 0; }
.tg-3d__tip { position: absolute; left: 0; top: 0; z-index: 3; display: flex; flex-direction: column; gap: 2px; max-width: 220px; padding: 8px 10px; border-radius: 10px; background: #fff; box-shadow: 0 8px 20px rgba(3, 66, 78, .25); pointer-events: none; }
.tg-3d__tip strong { color: var(--tg-petroleo); font-size: 13px; }
.tg-3d__tip span { font-size: 12px; font-weight: 600; }
.tg-3d__tip small { font-size: 11px; color: var(--tg-gris); }
.tg-3d__tip[hidden], .tg-3d__ficha[hidden], .tg-3d__satelite[hidden], .tg-3d__mapa-real[hidden] { display: none; }
.tg-3d__ficha { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; display: grid; gap: 6px; max-width: 440px; margin-inline: auto; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: var(--tg-sombra-fuerte); animation: tg-entra .25s ease both; }
.tg-3d[data-zoom="lejos"] .tg-3d__ficha { display: none; }
.tg-3d__ficha-titulo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; padding-right: 30px; }
.tg-3d__ficha-titulo strong { color: var(--tg-petroleo); font-size: 16px; }
.tg-3d__chip { padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #E6ECED; color: var(--tg-gris-off); }
.tg-3d__chip--disponible { background: var(--tg-ok-100); color: var(--tg-ok-tinta); }
.tg-3d__chip--elegido { background: var(--tg-petroleo); color: #fff; }
.tg-3d__chip--bloqueado { background: var(--tg-ambar-100); color: var(--tg-ambar-tinta); }
.tg-3d__chip--tuyo { background: #EEEAFB; color: #3F2F8F; box-shadow: inset 0 0 0 1px #6B55C9; }
.tg-3d__chip--cargando { background: #F1EEE8; color: #6E6657; font-style: italic; }
.tg-3d__ficha-lugar { margin: -2px 0 0; color: var(--tg-ambar-tinta); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tg-3d__ficha-medidas { margin: 0; color: var(--tg-gris); font-size: 13px; }
.tg-3d__ficha-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.tg-3d__ficha-precio { color: var(--tg-petroleo); font-size: 19px; font-weight: 800; }
/* Con el Bono Colaborador Aybar (ficha del lote, aproximado hasta que /cotizaciones confirme): el bono NO es un
   descuento, así que nada se tacha. Tres renglones que se suman a la vista: precio del lote, el bono (verde, como
   todo beneficio) y lo que tú pones, el monto que manda (en el petróleo y el tamaño del precio de siempre). */
.tg-3d__ficha-precio--trabajador { flex: 1 1 100%; display: grid; gap: 2px; margin: 0; font-size: 14px; font-weight: 600; color: var(--tg-gris-off); }
.tg-3d__ficha-precio-fila { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.tg-3d__ficha-precio-fila dt, .tg-3d__ficha-precio-fila dd { margin: 0; }
.tg-3d__ficha-precio-fila dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tg-3d__ficha-precio-fila--lote { color: var(--tg-petroleo); font-weight: 700; }
.tg-3d__ficha-precio-fila--bono { color: var(--tg-ok-tinta); }
.tg-3d__ficha-precio-fila--pones { margin-top: 2px; padding-top: 4px; border-top: 1.5px dashed #DCE3E4; color: var(--tg-petroleo); font-weight: 700; }
.tg-3d__ficha-precio-fila--pones dd { font-size: 19px; font-weight: 800; }
.tg-3d__ficha-nota { color: var(--tg-gris); font-size: 13px; }
/* Bajo «Alguien lo separó hace poco.»: cuándo vuelve a la venta (libera-lote.js). Informa, sin urgencia: mismo gris. */
.tg-3d__ficha-libera { display: block; margin-top: 2px; font-size: 12px; }
.tg-3d__elegir { width: auto; min-height: 44px; font-size: 14px; }
.tg-3d__cerrar { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--tg-gris); cursor: pointer; }
.tg-3d__cerrar:hover { background: var(--tg-petroleo-100); }
.tg-3d__satelite { position: absolute; inset: 0; z-index: 1; background: #1D2A2E; }
.tg-3d__satelite gmp-map-3d { display: block; width: 100%; height: 100%; }
.tg-3d__satelite-carga { display: grid; place-items: center; height: 100%; margin: 0; padding: 24px; color: #fff; font-size: 14px; text-align: center; }
.tg-3d.is-satelite :is(.tg-3d__etiquetas, .tg-3d__hud, .tg-3d__brujula, .tg-3d__escena, .tg-3d__pista, .tg-3d__ficha, .tg-3d__tip) { display: none; }
/* 27-oct-2026: vista "Mapa" real (Leaflet + Esri World Imagery, sin API key — pedido del cliente: ya no dibujada).
   Mismo trato que .tg-3d__satelite (Google), con sus propias teselas; el pin de cada proyecto llama a irSector(). */
.tg-3d__mapa-real { position: absolute; inset: 0; z-index: 1; background: #1D2A2E; }
.tg-3d__mapa-real .leaflet-container { width: 100%; height: 100%; background: #1D2A2E; font: inherit; }
.tg-3d__mapa-real-etq { padding: 4px 10px; border: 0; border-radius: 999px; background: rgba(2, 47, 56, .88); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.tg-3d__mapa-real-etq::before { display: none; } /* la florcita de Leaflet no pega con esta pastilla */
/* 27-oct-2026: los sitios de «Alrededores» (puerto, playa, hospital…) — pedido del cliente: un solo color (gris
   azulado, distinto del ámbar de los proyectos y el verde de las áreas comunes) y más grandes, con un ícono según
   su forma (no un punto de color por tipo). El selector compuesto (no solo .tg-3d__mapa-real-sitio) le gana en
   especificidad a ".leaflet-marker-icon { display:block }" de leaflet.css — si no, el ícono queda pegado arriba a
   la izquierda en vez de centrado, porque ese "display:block" pisa nuestro "display:flex" (misma especificidad,
   leaflet.css se inyecta después en el <head>). */
.leaflet-marker-icon.tg-3d__mapa-real-sitio { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--tg-gris); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.tg-3d__mapa-real-sitio svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tg-3d.is-mapa-real :is(.tg-3d__etiquetas, .tg-3d__hud, .tg-3d__brujula, .tg-3d__escena, .tg-3d__pista, .tg-3d__ficha, .tg-3d__tip) { display: none; }
/* ---------- Sonido y paisaje (sonido.js, paisaje.js) ---------- */
.tg-3d__escena { position: absolute; top: 106px; right: 10px; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.tg-3d__btn[hidden] { display: none; }
.tg-3d__btn--claro { background: rgba(255, 255, 255, .92); color: var(--tg-petroleo); box-shadow: 0 4px 14px rgba(3, 66, 78, .18); }
/* Calidad de imagen (calidad.js): el menú se abre a la izquierda del botón, sin tapar la brújula. */
.tg-3d__escena { align-items: flex-end; }
.tg-3d__calidad { display: grid; gap: 2px; min-width: 168px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(3, 66, 78, .22); }
.tg-3d__calidad[hidden] { display: none; }
.tg-3d__calidad-opc { min-height: 36px; padding: 6px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--tg-petroleo); font: inherit; font-size: .85rem; text-align: left; cursor: pointer; }
.tg-3d__calidad-opc:hover { background: var(--tg-petroleo-100, #E4EFF0); }
.tg-3d__calidad-opc[aria-pressed="true"] { background: var(--tg-petroleo); color: #fff; font-weight: 600; }
.tg-3d__calidad-opc:focus-visible { outline: 3px solid var(--tg-petroleo); outline-offset: 1px; box-shadow: 0 0 0 5px var(--tg-ambar); }
/* M1 (ola 0): «Plano simple (sin 3D)», cuarta opción del menú (plano3d.js la añade si la página ofrece el plano simple):
   el mismo aspecto que las otras, separada por una línea y con un icono de plano (un cuadro con su cruz) dibujado en CSS. */
.tg-3d__calidad-opc--simple { position: relative; margin-top: 6px; padding-left: 32px; }
.tg-3d__calidad-opc--simple::before { content: ''; position: absolute; left: 6px; right: 6px; top: -4px; height: 1px; background: var(--tg-petroleo-100, #E4EFF0); }
.tg-3d__calidad-opc--simple::after { content: ''; position: absolute; left: 10px; top: 50%; width: 14px; height: 14px; translate: 0 -50%; border: 1.6px solid currentColor; border-radius: 3px; background: linear-gradient(currentColor, currentColor) 50% 0 / 1.4px 100% no-repeat, linear-gradient(currentColor, currentColor) 0 50% / 100% 1.4px no-repeat; opacity: .85; }
/* Hora del día (hora-dia.js, ola 4 HD): el mismo menú que la calidad, con el ícono del momento. */
.tg-3d__hora-ico { font-size: 18px; line-height: 1; }
.tg-3d__hora-opc { display: flex; align-items: center; gap: 8px; }
.tg-3d__hora-opc .tg-3d__hora-ico { width: 20px; font-size: 16px; text-align: center; }
.tg-3d__hora-aviso { position: absolute; top: 14px; left: 50%; z-index: 3; margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(3, 66, 78, .88); color: #fff; font-size: 14px; font-weight: 600; transform: translateX(-50%); pointer-events: none; white-space: nowrap; }
.tg-3d__hora-aviso[hidden] { display: none; }
.tg-3d__btn--claro[aria-pressed="true"] { background: var(--tg-ambar); color: var(--tg-tinta); }
.tg-3d__btn--claro:focus-visible { outline: 3px solid var(--tg-ambar); outline-offset: 2px; }
.tg-3d__hud .tg-3d__hud-paisaje { color: var(--tg-ambar-tinta); font-weight: 600; }
/* ---------- Modo explorar (explorar.js) ---------- */
/* 28-oct-2026: margin-left:auto, no solo justify-content:space-between en .tg-3d__barra — sin «vistas» (se quitó,
   ver plano-3d.md), acciones quedó como único hijo de barra, y space-between con un solo hijo lo deja a la
   IZQUIERDA en vez de a la derecha. Así queda pegado a la derecha tenga o no hermanos. */
.tg-3d__acciones { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
/* 28-oct-2026 (pedido del cliente): sin recorridos con narración, .tg-3d__relato ya no recibe texto nuevo (queda
   siempre oculto) — se deja su regla (y la de .tg-3d__hud, aria-live) por si algo más la usa más adelante. */
.tg-3d__relato { margin: 6px 0 0; font-size: 12.5px; font-weight: 650; line-height: 1.35; color: var(--tg-petroleo); }
.tg-3d__explorar { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px 0 11px; border: 0; border-radius: 999px; background: var(--tg-ambar); color: var(--tg-tinta); font: 800 13px/1 var(--tg-fuente); white-space: pre; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(122, 74, 0, .6); }
.tg-3d__explorar svg { width: 18px; height: 18px; margin-right: 7px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tg-3d__explorar:hover { background: var(--tg-ambar-hover); }
.tg-3d__explorar:disabled { opacity: .7; cursor: progress; }
.tg-3d__explorar:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
html.tg-sin-scroll, html.tg-sin-scroll body { overflow: hidden; }
.tg-3d.is-explorando { position: fixed; inset: 0; z-index: 1000; height: auto; border-radius: 0; }
.tg-3d.is-explorando :is(.tg-3d__barra, .tg-3d__hud, .tg-3d__brujula, .tg-3d__escena, .tg-3d__pista, .tg-3d__ficha, .tg-3d__tip) { display: none; }
/* Hora del día (HD): en la bienvenida, a pie, en vuelo y en la visita guiada (todo en .is-explorando) queda solo su botón,
   a la derecha y debajo del radar y de los botones de explorar. */
/* 27-oct-2026 (pedido del cliente): el hueco entre Sonido y Hora del día quedaba casi el doble que entre Hora del
   día y Controles (348px fijo vs. el fin real de "sonido" a 260px = 88px de hueco, contra solo 20px del otro
   lado) — este top estaba fijo a mano y nunca se recalculó junto con .tg-3d__x-escena (abajo). +256 (mismo cálculo
   de safe-area que .tg-3d__x-escena, ahí resulta 268px) dejan exactamente 8px, el mismo gap de esa columna, en los
   dos huecos — ver también el top de .tg-3d__x-guiabtn, más abajo, recalculado igual. */
.tg-3d.is-explorando .tg-3d__escena { display: flex; top: calc(max(12px, env(safe-area-inset-top)) + 256px); right: 12px; z-index: 3; }
.tg-3d.is-explorando .tg-3d__escena > :not(.tg-3d__hora-btn):not(.tg-3d__hora) { display: none; }
.tg-3d__x { position: absolute; inset: 0; z-index: 4; pointer-events: none; outline: none; }
.tg-3d__x[hidden], .tg-3d__x [hidden] { display: none; }
.tg-3d__x svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tg-3d__x :is(button, .tg-3d__x-tarjeta, .tg-3d__x-joy) { pointer-events: auto; }
.tg-3d__x :is(button, .tg-3d__x-joy):focus-visible { outline: 3px solid var(--tg-ambar); outline-offset: 2px; }
.tg-3d__x-barra { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
/* min-width:0 para que «Explorando»/el nombre pueda ceder ante «Conectados»/«Seleccionados» (flex:none, abajo) en vez
   de forzar el ancho total; overflow:hidden como red de seguridad — si aun así no entraran los dos, se recorta en
   vez de solaparse con los botones de .tg-3d__x-derecha (ver el media query de 1023.98px, pensado para el nombre
   de lugar más largo del catálogo: con nombres más cortos hay bastante margen de sobra). */
.tg-3d__x-izquierda { display: flex; align-items: flex-start; gap: 8px; min-width: 0; overflow: hidden; }
.tg-3d__x-lugar { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; padding: 8px 14px; border-radius: 14px; background: rgba(2, 47, 56, .88); color: #fff; backdrop-filter: blur(6px); }
.tg-3d__x-lugar span { color: var(--tg-ambar-claro); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tg-3d__x-lugar strong { overflow: hidden; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
/* 28-oct-2026 (pedido del cliente): «Conectados»/«Seleccionados» al costado de «Explorando» — mismo pill oscuro
   que .tg-3d__x-lugar (mismo fondo, radio y tipografía) para leerse como de la misma familia. */
.tg-3d__x-social { display: flex; flex: none; align-items: stretch; gap: 10px; margin: 0; padding: 8px 14px; border-radius: 14px; background: rgba(2, 47, 56, .88); color: #fff; backdrop-filter: blur(6px); }
.tg-3d__x-social-dato { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.tg-3d__x-social-dato + .tg-3d__x-social-dato { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .25); }
.tg-3d__x-social-dato span { color: var(--tg-ambar-claro); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tg-3d__x-social-dato strong { font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Medido con el nombre de lugar más largo del catálogo ("Planicie de Huaral, etapa 3"): a 1024px todavía entra
   junto a «Conectados»/«Seleccionados» sin pisar los botones de la derecha; a 960px ya se solapan. Con nombres más
   cortos (la mayoría) hay bastante más margen, pero el corte se pone pensando en el peor caso, no en el típico. */
@media (max-width: 1023.98px) { .tg-3d__x-social { display: none; } }
.tg-3d__x-derecha { display: flex; flex: 0 0 auto; gap: 8px; }
/* 28-oct-2026 (pedido del cliente): agrupa los botones de modo (Vuela con Tigo, Tu auto, Áreas comunes…) para poder
   ocultarlos juntos al abordar un vehículo sin tocar el hidden propio de cada uno; mismo gap que .tg-3d__x-derecha
   para que, visible, se vea igual que antes de agruparlos (ver explorar.js, const modoBtns). */
.tg-3d__x-modobtns { display: flex; gap: 8px; }
.tg-3d__x-cuenta { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--tg-petroleo); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: 0 6px 16px rgba(2, 47, 56, .25); }
.tg-3d__x-cuenta svg { width: 18px; height: 18px; color: var(--tg-ambar-tinta); }
.tg-3d__x-salir { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: #fff; color: var(--tg-petroleo); font: 800 14px/1 var(--tg-fuente); cursor: pointer; box-shadow: 0 6px 16px rgba(2, 47, 56, .25); }
.tg-3d__x-salir svg { width: 18px; height: 18px; }
/* 27-oct-2026: durante la cinemática de presentación, hudCine() pone .tg-3d__x entero en visibility:hidden (su
   HUD propio la reemplaza) — pero «Vuela con Tigo» debe seguir disponible para saltarla (volarAhora(), explorar.js).
   Un valor propio de visibility en el hijo gana sobre el heredado del padre; [hidden] (display:none) sigue mandando.
   .tg-cine NO es hijo de .tg-3d__x: es su hermano dentro de .tg-3d (ambos con position + z-index, cada uno su propio
   contexto de apilamiento), con z-index 7 contra el 4 de .tg-3d__x — un z-index más alto *adentro* de .tg-3d__x no
   alcanza a estos botones mientras .tg-3d__x como un todo siga por debajo. Se sube el de todo .tg-3d__x en ese modo. */
.tg-3d__x.es-cine { z-index: 8; }
.tg-3d__x-volarbtn, .tg-3d__x-helibtn { visibility: visible; }
.tg-3d__x-radar { position: absolute; top: calc(max(12px, env(safe-area-inset-top)) + 60px); right: 12px; width: 132px; height: 132px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .92), 0 10px 24px rgba(2, 47, 56, .35); }
/* Bienvenida: se entra directo al mundo 3D. */
.tg-3d__intro { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-end; padding: max(20px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(2, 47, 56, .92), rgba(2, 47, 56, .78) 30%, rgba(2, 47, 56, 0) 62%); pointer-events: none; }
.tg-3d__intro[hidden] { display: none; }
.tg-3d__intro-tarjeta { display: grid; gap: 10px; max-width: 460px; color: #fff; pointer-events: auto; animation: tg-intro-sube .7s ease both; }
@keyframes tg-intro-sube { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.tg-3d__intro-eyebrow { margin: 0; color: var(--tg-ambar-claro); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tg-3d__intro-titulo { margin: 0; color: #fff; font-family: var(--tg-fuente); font-size: clamp(36px, 6vw, 58px); font-weight: 800; line-height: 1.02; letter-spacing: normal; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.tg-3d__intro-texto { margin: 0 0 4px; max-width: 38ch; color: rgba(255, 255, 255, .94); font-size: 16px; line-height: 1.5; text-shadow: 0 1px 8px rgba(2, 47, 56, .9); }
.tg-3d__intro-entrar { display: inline-flex; align-items: center; justify-content: center; gap: 10px; justify-self: start; width: auto; min-height: 56px; padding: 0 26px; font-size: 17px; }
.tg-3d__intro-entrar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tg-3d__intro-lista { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: #fff; font: 700 14px/1.2 var(--tg-fuente); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tg-3d__intro-nota { margin: 0; color: rgba(255, 255, 255, .78); font-size: 12px; }
.tg-3d__intro :focus-visible { outline: 3px solid var(--tg-ambar); outline-offset: 3px; }
/* Decisión 1 (ola 0): en «bajo» la bienvenida es un panel normal dentro de la caja del visor (.tg-3d__intro--panel, lo pone
   plano3d.js; sin inmersión ni pantalla completa): una tarjeta sólida a tamaño normal, abajo a la izquierda sobre el 3D,
   con los mismos botones «Entrar al proyecto», «Visita guiada con Tigo» y «Prefiero ver la lista», que se desplaza por
   dentro si no cabe. Sin backdrop-filter. Con la bienvenida con Tigo (.tg-bv, tigo3d: false) la columna de Tigo no
   ocupa lugar y el marco es la tarjeta (en el celular .tg-bv__panel es display: contents). bienvenida.css se carga después
   de este archivo: por eso cada regla lleva .tg-3d delante (una clase más que las suyas). */
.tg-3d .tg-3d__intro.tg-3d__intro--panel { align-items: flex-end; padding: clamp(10px, 2vw, 16px); background: rgba(2, 47, 56, .22); }
.tg-3d .tg-3d__intro--panel > .tg-3d__intro-tarjeta, .tg-3d .tg-3d__intro--panel .tg-bv__marco { box-sizing: border-box; width: min(100%, 760px); max-width: none; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; background: rgba(2, 47, 56, .95); pointer-events: auto; scrollbar-width: thin; }
.tg-3d .tg-3d__intro--panel > .tg-3d__intro-tarjeta { width: min(100%, 520px); }
.tg-3d .tg-3d__intro--panel .tg-bv__marco { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 8px; }
.tg-3d .tg-3d__intro--panel .tg-bv__tigo { display: none; }
.tg-3d .tg-3d__intro--panel .tg-bv__globo::before { display: none; }
.tg-3d .tg-3d__intro--panel .tg-bv__panel { max-height: none; overflow: visible; }
.tg-3d .tg-3d__intro--panel .tg-3d__intro-titulo { font-size: clamp(24px, 3.2vw, 32px); text-shadow: none; }
.tg-3d .tg-3d__intro--panel .tg-3d__intro-texto { font-size: 15px; text-shadow: none; }
.tg-3d .tg-3d__intro--panel .tg-3d__intro-entrar { min-height: 50px; padding: 0 22px; font-size: 16px; }
.tg-3d .tg-3d__intro--panel .tg-bv__item { flex-basis: 176px; }
@media (max-width: 639.98px) {
    /* Apilada: una sola columna; el marco (la tarjeta) sigue desplazándose por dentro de la caja. */
    .tg-3d .tg-3d__intro--panel .tg-bv__marco { padding: 12px; }
    .tg-3d .tg-3d__intro--panel .tg-3d__intro-tarjeta, .tg-3d .tg-3d__intro--panel .tg-bv__globo { grid-column: 1; grid-row: auto; align-self: auto; }
    .tg-3d .tg-3d__intro--panel .tg-bv__galeria, .tg-3d .tg-3d__intro--panel .tg-bv__acciones, .tg-3d .tg-3d__intro--panel .tg-3d__intro-nota { grid-column: 1; }
    .tg-3d .tg-3d__intro--panel .tg-3d__intro-titulo { font-size: 24px; }
    .tg-3d .tg-3d__intro--panel .tg-bv__item { flex-basis: 52vw; }
}
/* Lo que dice la gente: un globo sobre la cabeza de quien habla. */
.tg-3d__et--charla { max-width: 190px; padding: 7px 11px; border-radius: 14px; background: #fff; color: var(--tg-tinta); font-size: 12px; font-weight: 600; line-height: 1.3; white-space: normal; text-align: center; box-shadow: 0 6px 16px rgba(2, 47, 56, .28); }
.tg-3d__et--charla::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #fff; }
/* Manejar, el GPS y el mapa. */
.tg-3d__x-subir { position: absolute; left: 0; top: 0; padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--tg-petroleo); font-size: 12px; font-weight: 800; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); will-change: transform; }
.tg-3d__x-velocidad { position: absolute; left: 50%; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 52px); margin: 0; padding: 6px 18px; border-radius: 999px; background: rgba(2, 47, 56, .9); color: #fff; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; transform: translateX(-50%); }
.tg-3d__x-gps { position: absolute; top: calc(max(12px, env(safe-area-inset-top)) + 116px); left: 50%; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 16px 8px 10px; border-radius: 999px; background: rgba(2, 47, 56, .9); color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; transform: translateX(-50%); box-shadow: 0 6px 16px rgba(2, 47, 56, .3); }
.tg-3d__x .tg-3d__x-gps svg { width: 22px; height: 22px; fill: var(--tg-ambar); stroke: none; transition: transform .15s linear; }
.tg-3d__x-autobtn { position: absolute; right: 28px; bottom: calc(max(48px, env(safe-area-inset-bottom)) + 92px); display: grid; place-items: center; width: 64px; height: 64px; border: 0; border-radius: 50%; background: #fff; color: var(--tg-petroleo); box-shadow: 0 8px 20px rgba(2, 47, 56, .35); touch-action: manipulation; }
.tg-3d__x-autobtn svg { width: 30px; height: 30px; }
.tg-3d__x-autobtn.is-cerca { background: var(--tg-ambar); }
/* z-index 11, no 6 (28-oct-2026): «Filtros» en escritorio (.tg-3d__x-derecha .tg-fl, más abajo) vive con z-index 10
   dentro de este mismo contexto de apilamiento (.tg-3d__x) — con un z-index menor, este mapa lo dejaba flotando
   encima del diálogo, pedido del cliente: «aparece el botón de Filtros, debe quitarse» (en realidad no hay que
   tocar Filtros: el diálogo entero debe taparlo, como tapa a todo lo demás). */
.tg-3d__x-mapa { position: absolute; inset: 0; z-index: 11; display: grid; grid-template-columns: minmax(0, 1fr) 340px; background: #0B3039; }
/* FIX (26-oct-2026, «no puedo arrastrar/mover el mapa»): este diálogo es un <div> normal (no un <dialog> con
   showModal(), que entra a la "top layer" del navegador) colgado de .tg-3d__x, que apaga el pointer-events de TODO lo
   que cuelgue de él salvo button/.tg-3d__x-tarjeta/.tg-3d__x-joy (ver esa regla, más arriba). pointer-events se
   hereda: sin esta línea, el <div id="mapaLienzo"> que Leaflet convierte en su .leaflet-container también lo hereda
   en «none», así que ni el mousedown de arrastrar ni la rueda de hacer zoom le llegan nunca (quedan transparentes al
   puntero, el clic cae a lo que esté debajo). Los marcadores, controles y popups de Leaflet sí funcionaban igual
   (su propio leaflet.css les pone pointer-events:auto en la regla del elemento, no por herencia) — por eso solo se
   veía roto "mover el mapa", no tocar un pin o el botón de zoom. Reproducido con Playwright fuera de la maqueta (sin
   WebGL): con pointer-events:none computado, un arrastre y una rueda sobre la teja no cambiaban ni el centro ni el
   zoom; con pointer-events:auto, los dos funcionan. El mismo apagado alcanza a .tg-3d__x-alr-mapa (el mapa nuevo del
   diálogo «Alrededores», debajo): mismo arreglo, por la misma causa. */
.tg-3d__x-mapa-lienzo { display: block; width: 100%; height: 100%; background: #0B3039; pointer-events: auto; }
.tg-3d__x-mapa-lienzo .leaflet-container { font-family: inherit; background: #0B3039; }
/* Marcadores del mapa real: los mismos colores que tenía el mapa dibujado a mano. */
.tg-3d__mapa-pin { width: 18px; height: 18px; border-radius: 50%; background: #FFC46B; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.tg-3d__mapa-pin.es-elegida { width: 24px; height: 24px; background: #F6A42C; }
.tg-3d__mapa-destino { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #F6A42C; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7) inset; pointer-events: none; }
.tg-3d__mapa-auto { width: 10px; height: 10px; background: #E4EFF0; border: 1px solid #0B3039; pointer-events: none; }
.tg-3d__mapa-tu-env { pointer-events: none; }
.tg-3d__mapa-tu { width: 0; height: 0; margin: 0 auto; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 15px solid #F6A42C; filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff); transform-origin: 50% 60%; }
.tg-3d__x-mapa-panel { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding: 72px 16px 16px; background: #fff; }
/* 28-oct-2026 (pedido del cliente): se destaca como un CTA primario (mismo ámbar/tinta de .tg-btn--primario), no
   como el resto de botones blancos de este diálogo — ahora dice «Continúa», no «Cerrar». */
.tg-3d__x-mapa-cerrar { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; background: var(--tg-ambar); color: var(--tg-tinta); }
.tg-3d__x-mapa-cerrar:hover { background: var(--tg-ambar-hover); }
.tg-3d__x-mapa-titulo { margin: 0; color: var(--tg-gris); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tg-3d__x-mapa-ficha { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: var(--tg-ambar-100); }
.tg-3d__x-mapa-nombre { margin: 0; color: var(--tg-petroleo); font-size: 20px; font-weight: 800; }
.tg-3d__x-mapa-botones { display: flex; flex-wrap: wrap; gap: 8px; }
.tg-3d__x-mapa-ir { display: inline-flex; align-items: center; gap: 8px; width: auto; min-height: 44px; font-size: 14px; }
.tg-3d__x-mapa-ir svg { width: 18px; height: 18px; }
/* 28-oct-2026 (pedido del cliente): dos columnas, una de "Otros proyectos de Aybar" y otra de "Alrededores" —
   antes un grupo abajo del otro en una sola lista. Cada `<ul>` sigue siendo .tg-3d__x-mapa-lista (mismo estilo de
   siempre); se oculta entera (hidden, puesto en pintarListaMapa) si ese grupo no tiene filas — .es-una-columna
   (también puesto ahí cuando falta una de las dos) hace que la que queda ocupe el ancho entero. */
.tg-3d__x-mapa-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; align-items: start; }
.tg-3d__x-mapa-columnas.es-una-columna { grid-template-columns: 1fr; }
.tg-3d__x-mapa-lista { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
/* El encabezado de cada grupo de la lista («Este proyecto» / «Otros proyectos de Aybar» / «Sitios cercanos»): pedido
   del usuario, 26-oct-2026, que la lista muestre también los otros proyectos y los sitios cercanos, no solo las
   etapas de este. Mismo estilo que .tg-3d__x-mapa-titulo (ya usado arriba, del mismo panel), separado del grupo de
   antes con un margen propio. */
.tg-3d__x-mapa-grupo { margin: 10px 0 -2px; padding: 0; color: var(--tg-gris); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; list-style: none; }
.tg-3d__x-mapa-lista > .tg-3d__x-mapa-grupo:first-child { margin-top: 0; }
.tg-3d__x-mapa-item { display: grid; gap: 2px; width: 100%; padding: 10px 12px; border: 2px solid var(--tg-linea); border-radius: 12px; background: #fff; font-family: inherit; text-align: left; cursor: pointer; }
.tg-3d__x-mapa-item strong { color: var(--tg-petroleo); font-size: 14px; }
.tg-3d__x-mapa-item span { color: var(--tg-gris); font-size: 12px; }
.tg-3d__x-mapa-item em { color: var(--tg-ambar-tinta); font-size: 11px; font-style: normal; font-weight: 800; }
.tg-3d__x-mapa-item.es-elegida { border-color: var(--tg-ambar); background: var(--tg-ambar-100); }
.tg-3d__x-mapa-item:focus-visible { outline: 3px solid var(--tg-ambar); outline-offset: 2px; }
/* Una fila por marcador (tooltip y fila comparten el mismo contenido: nodoInfoEtapa/nodoInfoOtroProyecto/nodoInfoSitio
   en explorar.js): .tg-3d__x-mapa-info apila su nombre y su línea de detalle igual que antes hacían los hijos
   directos del botón. Las filas de «otro proyecto» y «sitio» llevan además una franja a la izquierda (un color fijo
   por grupo, no por instancia: evita depender de una variable CSS que un hijo —el contenido— no puede empujar hacia
   arriba, al <li> que la declara) para reconocer el grupo de un vistazo; el color exacto de CADA categoría de sitio
   va en el punto de .tg-3d__x-mapa-categoria (abajo), no en esta franja. */
.tg-3d__x-mapa-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* 28-oct-2026 (pedido del cliente): el video de marketing de ese sitio (si ya tiene uno real — ver nodoInfoSitio),
   reproduciéndose solo, en recorte 3:4 (las tarjetas del carrusel de «Alrededores» pasaron a 16:9 en QA TEST_TIGO_1). */
.tg-3d__x-mapa-info-video { width: 100%; max-width: 160px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; background: #000; }
.tg-3d__x-mapa-item--proyecto { border-left-width: 4px; border-left-color: var(--tg-petroleo); }
.tg-3d__x-mapa-item--sitio { border-left-width: 4px; border-left-color: var(--tg-gris-off); }
/* La línea de categoría de un sitio (nodoInfoSitio): un punto de su color real (ALR.TIPOS[tipo].color, puesto en
   línea por JS, como ya hace el punto de la leyenda) junto al texto — mismo lenguaje visual que
   .tg-3d__x-alr-leyenda-punto, pero chico e inline porque aquí va dentro de una oración, no como ítem de leyenda. */
.tg-3d__x-mapa-categoria { display: inline-flex; align-items: center; gap: 5px; }
.tg-3d__x-mapa-punto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .6); }
/* El tooltip enriquecido del mapa de «Controles» (al pasar el mouse, sin que haga falta tocar el pin): pedido del
   usuario, 26-oct-2026, «un tooltip con mucha más información». Mismas reglas de texto que .tg-3d__x-mapa-item (arriba)
   para que diga lo mismo con el mismo lenguaje visual; se quita el `white-space: nowrap` y el `padding` angostos por
   omisión de Leaflet (leaflet.css, .leaflet-tooltip) porque esta ficha tiene dos líneas y a veces un nombre largo. */
.tg-3d__mapa-tooltip { padding: 9px 12px; border: 0; border-radius: 12px; max-width: 220px; white-space: normal; box-shadow: 0 8px 20px rgba(2, 47, 56, .32); }
.tg-3d__mapa-tooltip .tg-3d__x-mapa-info { gap: 3px; }
.tg-3d__mapa-tooltip .tg-3d__x-mapa-info strong { color: var(--tg-petroleo); font-size: 13px; font-weight: 800; line-height: 1.25; }
.tg-3d__mapa-tooltip .tg-3d__x-mapa-info span { color: var(--tg-gris); font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.tg-3d__mapa-tooltip .tg-3d__x-mapa-info em { display: block; margin-top: 1px; color: var(--tg-ambar-tinta); font-size: 10.5px; font-style: normal; font-weight: 800; }
.tg-3d__mapa-tooltip--etapa { border-top: 3px solid var(--tg-ambar); }
.tg-3d__mapa-tooltip--proyecto { border-top: 3px solid var(--tg-petroleo); }
.tg-3d__mapa-tooltip--sitio { border-top: 3px solid var(--tg-gris-off); }
/* 28-oct-2026 (pedido del cliente): el popup de «Viajar ahora» junto al pin elegido — mismo contenido que el
   tooltip (nodoInfoEtapa) más el botón; closeButton:false porque elegir otro pin (o cerrar el mapa) ya lo cierra. */
.tg-3d__mapa-popup .leaflet-popup-content-wrapper { padding: 2px; border-radius: 12px; box-shadow: 0 8px 20px rgba(2, 47, 56, .32); }
.tg-3d__mapa-popup .leaflet-popup-content { margin: 9px 12px; width: auto !important; }
.tg-3d__mapa-popup-etapa { display: grid; gap: 8px; max-width: 220px; }
.tg-3d__mapa-popup-etapa .tg-3d__x-mapa-info { gap: 3px; }
.tg-3d__mapa-popup-etapa .tg-3d__x-mapa-info strong { color: var(--tg-petroleo); font-size: 13px; font-weight: 800; line-height: 1.25; }
.tg-3d__mapa-popup-etapa .tg-3d__x-mapa-info span { color: var(--tg-gris); font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.tg-3d__mapa-popup-etapa .tg-3d__x-mapa-info em { display: block; margin-top: 1px; color: var(--tg-ambar-tinta); font-size: 10.5px; font-style: normal; font-weight: 800; }
.tg-3d__mapa-popup-viajar { display: inline-flex; align-items: center; gap: 6px; width: auto; min-height: 34px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.tg-3d__mapa-popup-viajar svg { width: 16px; height: 16px; flex: none; }
.tg-3d__mapa-popup-viajar:disabled { opacity: .5; cursor: default; }
/* 28-oct-2026 (pedido del cliente): «cuando pongo el mouse encima de un alrededor, [quiero] un tooltip grande donde
   pueda ver el video, y si le doy clic se queda viendo» — el popup de un sitio (nodoPopupSitio). «Debe ocupar el
   50% de la pantalla»: el video manda su alto en 50vh (no su ancho en 50vw — a 3:4 un video de medio ANCHO de
   pantalla sale más alto que la pantalla entera) y el ancho lo sigue por su propio aspect-ratio; maxWidth generoso
   en bindPopup (más arriba) para que Leaflet no lo recorte antes que este CSS. */
.tg-3d__mapa-popup-sitio { display: grid; gap: 8px; width: max-content; max-width: min(90vw, 480px); }
.tg-3d__mapa-popup-sitio .tg-3d__x-mapa-info { gap: 3px; }
.tg-3d__mapa-popup-sitio .tg-3d__x-mapa-info strong { color: var(--tg-petroleo); font-size: 15px; font-weight: 800; line-height: 1.25; }
.tg-3d__mapa-popup-sitio .tg-3d__x-mapa-info span { color: var(--tg-gris); font-size: 13px; font-weight: 600; line-height: 1.3; }
/* 28-oct-2026 (pedido del cliente): «amplíalo más» (50vh -> 60vh) y «no está centrado» — el video, con alto fijo y
   aspect-ratio (no replaced de verdad para el motor de grid), no se estira a lo ancho de su columna como si lo
   hace el resto (la ficha de texto, el botón «Ir allí»): queda con su propio ancho, pegado al borde. justify-self
   centra solo este hijo del grid, sin tocar el stretch de los demás (el botón, por ejemplo, debe seguir a lo ancho). */
.tg-3d__mapa-popup-sitio-video { display: block; justify-self: center; height: min(60vh, 520px); max-width: 100%; width: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: #000; }
/* «Alrededores»: el mismo mapa satelital real (Leaflet/Esri), ahora dentro del menú, con el proyecto y los sitios de
   interés. Marcadores propios (tg-3d__alr-*) para no afectar al mapa de «Controles» (tg-3d__mapa-*) si cambian de
   tamaño o color. */
/* Mismo FIX que .tg-3d__x-mapa-lienzo (arriba): este mapa también cuelga de .tg-3d__x (dentro del <dialog> de
   «Alrededores», que no lo libra: la "top layer" de showModal() solo cambia el orden de pintado, no la herencia de
   pointer-events por el árbol del DOM) y sin esto heredaría pointer-events:none — arrastrar y la rueda no le
   llegarían, aunque sus marcadores sí (leaflet.css les pone pointer-events:auto en la propia regla). */
/* 27-oct-2026 (pedido del cliente): más grande (antes 300px) — el cuerpo del diálogo desplaza (overflow-y:auto),
   así que crecer acá no rompe nada. flex-shrink:0 porque .tg-3d__x-menu-cuerpo es flex-column: sin esto, flexbox
   comprime el mapa para que todo quepa sin scroll en vez de respetar su alto (se veía achicado a ~186px). */
/* 29-oct-2026: ahora vive DENTRO de .tg-3d__x-alr-escenario (ver más abajo), a la par del video — ya no a 420px
   fijos de alto, sino al 100% de lo que el escenario le da (mismo alto que el video, lado a lado). */
.tg-3d__x-alr-mapa { position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; border-radius: 14px; background: #0B3039; pointer-events: auto; }
.tg-3d__x-alr-mapa .leaflet-container { font-family: inherit; background: #0B3039; }
.tg-3d__alr-proyecto { width: 26px; height: 26px; border-radius: 50%; background: var(--tg-petroleo, #03424E); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); cursor: pointer; }
.tg-3d__alr-pin-env { pointer-events: auto; cursor: pointer; }
/* 27-oct-2026 (pedido del cliente): un solo color de marca (var(--tg-gris)) y el ícono de la forma del sitio
   (ALR.ICONOS, el <svg> lo arma explorar.js), ya no un color por categoría con su abreviatura en letras. */
.tg-3d__alr-pin { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; background: var(--tg-gris, #4A6268); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.tg-3d__alr-pin svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tg-3d__alr-pin.es-elegida { box-shadow: 0 0 0 4px rgba(246, 164, 44, .55), 0 1px 4px rgba(0, 0, 0, .5); }
.tg-3d__x-alr-ficha { margin-top: 4px; }
/* La leyenda (un punto por categoría, el mismo color e ícono que su pin en el mapa). */
.tg-3d__x-alr-leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; padding: 0; list-style: none; }
.tg-3d__x-alr-leyenda-item { display: inline-flex; align-items: center; gap: 6px; color: var(--tg-gris); font-size: 12px; font-weight: 700; }
.tg-3d__x-alr-leyenda-punto { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); flex: none; }
.tg-3d__x-alr-leyenda-punto svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* 29-oct-2026 (propuesta visual, reconstrucción): el eyebrow + titular grande que reemplaza a la descripción
   genérica de siempre («Mapa satelital real…») — primera línea del diálogo, copia real (nunca inventada). */
.tg-3d__x-alr-titulo { margin: 0 0 10px; max-width: 48ch; color: var(--tg-petroleo); font-size: clamp(19px, 2.4vw, 25px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
/* Lo que Tigo dice de «Alrededores» (pedido del usuario, 26-oct-2026): protagonismo con el mismo patrón de voz que
   abordar/saltar/aterrizar (hablar/voz en explorar.js), pero el texto va aquí dentro del diálogo (un <dialog> modal
   tapa el aviso flotante de siempre). */
.tg-3d__x-alr-tigo { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 10px; padding: 10px 14px; border-radius: 14px; background: var(--tg-ambar-100); color: var(--tg-tinta); font-size: 13px; font-weight: 700; }
.tg-3d__x-alr-tigo::before { content: 'Tigo dice'; flex: none; padding: 2px 8px; border-radius: 999px; background: var(--tg-ambar); color: var(--tg-tinta); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
/* 29-oct-2026 (rehecho siguiendo la propuesta visual al pie): «Recorrido automático» — una tira horizontal de
   miniaturas compactas (ya no 2 columnas verticales) que se reproducen solas; oculta por completo si el proyecto
   no tiene ningún video real (ALR.videosDe/videosDeSitio/videosDeZona vacíos), así que el resto del diálogo queda
   igual que siempre. */
/* align-items:flex-start (no el stretch de siempre): con el alto del renglón recién determinado por el contenido,
   estirar cada tarjeta la dejaba en 0 (el aspect-ratio de la portada, dos niveles flex adentro, no alcanza a
   calcularse antes del estirado). flex-shrink:0 — mismo bug que ya mordió a .tg-3d__x-alr-mapa (ver su comentario):
   con overflow-x:auto el alto automático mínimo de un hijo flex pasa a ser 0 (no el de su contenido), así que
   .tg-3d__x-menu-cuerpo (flex-column) lo aplastaba a los 8px del padding cuando el escenario pedía más alto.
   Verificado con Playwright: 0px/8px de alto real hasta estos dos fixes. */
/* QA TEST_TIGO_1 (3-nov-2026), punto 3: cada tarjeta lleva su marco y más aire entre una y otra, y la portada es 16:9
   como el video (antes 3:4: recortaba los costados y el titular quemado en la imagen se leía a medias). scroll-snap
   obligatorio con scroll-padding: la tarjeta de la izquierda siempre queda entera, nunca cortada por el borde. */
.tg-3d__x-alr-videos { display: flex; flex-shrink: 0; align-items: flex-start; gap: 16px; margin: 0 0 16px; padding: 4px 4px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; }
.tg-3d__x-alr-video { position: relative; flex: none; display: flex; flex-direction: column; gap: 8px; width: 216px; box-sizing: border-box; border: 1px solid var(--tg-linea); border-radius: 16px; background: #fff; padding: 8px 8px 10px; box-shadow: 0 6px 16px -12px rgba(3, 66, 78, .45); cursor: pointer; scroll-snap-align: start; text-align: left; transition: border-color .18s ease, box-shadow .18s ease, transform .16s cubic-bezier(.23, 1, .32, 1); }
.tg-3d__x-alr-video:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .tg-3d__x-alr-video:hover { border-color: #B7CDD1; box-shadow: 0 10px 22px -14px rgba(3, 66, 78, .55); } }
.tg-3d__x-alr-video:focus-visible { outline: 3px solid var(--tg-ambar); outline-offset: 2px; }
.tg-3d__x-alr-video.es-activo { border-color: var(--tg-ambar); box-shadow: 0 0 0 1px var(--tg-ambar), 0 12px 24px -14px rgba(3, 66, 78, .6); }
.tg-3d__x-alr-video-portada { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--tg-petroleo); }
.tg-3d__x-alr-video-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tg-3d__x-alr-video-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(2, 47, 56, 0) 55%, rgba(2, 47, 56, .68) 100%); }
.tg-3d__x-alr-video-play svg { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .92); fill: var(--tg-petroleo); stroke: none; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
/* «EN VIVO»: solo el que está sonando en el video grande de al lado (marcarAlrVideoActivo en explorar.js). */
.tg-3d__x-alr-video-vivo { position: absolute; left: 6px; top: 6px; display: none; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .03em; }
.tg-3d__x-alr-video.es-activo .tg-3d__x-alr-video-vivo { display: inline-flex; }
.tg-3d__x-alr-video-vivo-punto { width: 5px; height: 5px; border-radius: 50%; background: #ff5b5b; animation: tgPulseRed 1.4s ease-out infinite; }
.tg-3d__x-alr-video-duracion:not(:empty) { position: absolute; right: 6px; top: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .42); color: #fff; font-size: 9.5px; font-weight: 700; }
/* Barra de progreso REAL (video.currentTime/duration, ver reproducirAlrVideoInline): 0% salvo en el activo. */
.tg-3d__x-alr-video-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0, 0, 0, .25); width: 0%; transition: width .2s linear; }
.tg-3d__x-alr-video.es-activo .tg-3d__x-alr-video-portada::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0, 0, 0, .25); }
.tg-3d__x-alr-video-texto { display: flex; flex-direction: column; gap: 1px; }
.tg-3d__x-alr-video-texto { padding: 0 2px; }
.tg-3d__x-alr-video-titulo { color: var(--tg-tinta); font-size: 12.5px; font-weight: 700; line-height: 1.3; text-wrap: pretty; }
.tg-3d__x-alr-video-categoria { color: var(--tg-gris); font-size: 11px; font-weight: 600; }
@media (max-width: 719.98px) { .tg-3d__x-alr-video { width: 184px; } .tg-3d__x-alr-videos { gap: 12px; } }
/* 29-oct-2026 (rehecho siguiendo la propuesta visual): video grande + mapa grande EN PARALELO, ya no el video
   «arriba del carrusel» y el mapa aparte más abajo (ver .tg-3d__x-alr-escenario, el contenedor de ambos). Sin
   ningún video (proyecto sin marketing todavía), alrVideoInline queda hidden y el mapa, único hijo flex, crece
   solo para llenar el ancho — nada especial que hacer en CSS para ese caso. */
.tg-3d__x-alr-video-inline { position: relative; height: 100%; min-height: 0; border-radius: 14px; overflow: hidden; background: #000; flex: 1 1 420px; min-width: 280px; }
.tg-3d__x-alr-video-inline-el { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.tg-3d__x-alr-video-inline__cerrar { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(2, 10, 12, .6); color: #fff; cursor: pointer; }
.tg-3d__x-alr-video-inline__cerrar svg { width: 16px; height: 16px; }
/* 28-oct-2026 (carrusel: autoreproducir el siguiente al acabar, y poder ir y volver): el mismo botón-círculo que
   «cerrar», a los costados y centrado en alto; «anterior» reusa el svg de «siguiente» volteado, sin duplicar el ícono. */
.tg-3d__x-alr-video-inline__nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(2, 10, 12, .6); color: #fff; cursor: pointer; }
.tg-3d__x-alr-video-inline__nav:hover { background: rgba(2, 10, 12, .8); }
.tg-3d__x-alr-video-inline__nav svg { width: 18px; height: 18px; }
.tg-3d__x-alr-video-inline__nav--prev { left: 10px; }
.tg-3d__x-alr-video-inline__nav--prev svg { transform: scaleX(-1); }
.tg-3d__x-alr-video-inline__nav--next { right: 10px; }
/* El pie, superpuesto en degradé (como la propuesta): categoría + duración real arriba, nombre abajo. */
.tg-3d__x-alr-video-inline__pie { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 28px 14px 12px; background: linear-gradient(0deg, rgba(0, 0, 0, .72), transparent); }
.tg-3d__x-alr-video-inline__fila { display: flex; align-items: center; gap: 8px; }
.tg-3d__x-alr-video-inline__categoria { padding: 3px 9px; border-radius: 999px; background: var(--tg-ambar); color: var(--tg-tinta); font-size: 11px; font-weight: 800; }
.tg-3d__x-alr-video-inline__duracion:not(:empty) { color: rgba(255, 255, 255, .78); font-size: 12px; font-weight: 600; }
.tg-3d__x-alr-video-inline__titulo { margin: 0; color: #fff; font-size: 18px; font-weight: 800; }
.tg-3d__x-alr-video-inline__ir { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin-top: 4px; padding: 7px 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font: 700 12px/1 var(--tg-fuente); cursor: pointer; }
.tg-3d__x-alr-video-inline__ir:hover { background: rgba(255, 255, 255, .26); }
.tg-3d__x-alr-video-inline__ir svg { width: 14px; height: 14px; flex: none; }
/* Barra de progreso REAL del video grande (mismo dato que la mini del carrusel, nunca inventada). */
.tg-3d__x-alr-video-inline__progreso { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .22); }
.tg-3d__x-alr-video-inline__progreso-relleno { height: 100%; width: 0%; background: var(--tg-ambar); transition: width .2s linear; }
/* El escenario: video grande a la izquierda, mapa grande a la derecha, EN PARALELO — pedido del cliente, 29-oct-2026
   («video grande a la izquierda y mapa grande a la derecha, no uno dentro del otro»). Misma altura para los dos
   (align-items:stretch); en angosto, flex-wrap los apila sin que haga falta una media query aparte. */
.tg-3d__x-alr-escenario { display: flex; flex-wrap: wrap; align-items: stretch; gap: 18px; height: min(56vh, 480px); margin: 0 0 14px; }
.tg-3d__x-alr-escenario .tg-3d__x-alr-mapa { flex: 1 1 420px; min-width: 280px; }
@media (max-width: 719.98px) { .tg-3d__x-alr-escenario { height: auto; } .tg-3d__x-alr-video-inline, .tg-3d__x-alr-escenario .tg-3d__x-alr-mapa { height: 320px; flex-basis: 100%; } }
/* 29-oct-2026 (propuesta visual): sustento de valorización del lote en «Alrededores» — EJEMPLO, ver
   ALR_VALORIZACION_EJEMPLO/ALR_VALORIZACION_CONSOLIDADO_EJEMPLO en explorar.js: nunca cifras reales, por eso el
   aviso en ámbar queda siempre visible en los dos bloques. «Lo que dice el estudio de este punto» es una FILA
   horizontal (ícono + nota + el aporte a la derecha), no apilado. */
.tg-3d__x-alr-estudio-punto { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1.5px solid var(--tg-linea, #D5E1E3); }
.tg-3d__x-alr-estudio-punto-icono { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--tg-petroleo-100); color: var(--tg-petroleo); }
.tg-3d__x-alr-estudio-punto-icono svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tg-3d__x-alr-estudio-punto-texto { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tg-3d__x-alr-estudio-aviso { width: fit-content; padding: 3px 9px; border-radius: 999px; background: var(--tg-ambar-100); color: var(--tg-ambar-tinta); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tg-3d__x-alr-estudio-punto-nota { margin: 0; color: var(--tg-tinta-suave); font-size: 13px; font-weight: 600; line-height: 1.4; }
.tg-3d__x-alr-estudio-punto-aporte { flex: none; padding: 8px 14px; border-radius: 12px; background: var(--tg-ambar-100); color: var(--tg-ambar-tinta); font-size: 13px; font-weight: 800; white-space: nowrap; }
/* El resultado consolidado, al final del diálogo (no un bloque aparte a todo lo ancho: ya todo el cuerpo lo es). */
.tg-3d__x-alr-estudio { display: grid; gap: 14px; margin-top: 10px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(160deg, var(--tg-petroleo) 0%, #042D37 55%, #021F26 100%); color: #fff; }
.tg-3d__x-alr-estudio .tg-3d__x-alr-estudio-aviso { background: rgba(246, 164, 44, .16); color: var(--tg-ambar-claro); }
.tg-3d__x-alr-estudio-titulo { margin: 0; max-width: 56ch; color: #fff; font-size: 17px; font-weight: 800; line-height: 1.25; }
.tg-3d__x-alr-estudio-filas { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px; }
.tg-3d__x-alr-estudio-col { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100px; }
.tg-3d__x-alr-estudio-barra { position: relative; display: flex; align-items: flex-end; width: 52px; height: 120px; border-radius: 12px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.tg-3d__x-alr-estudio-barra-relleno { width: 100%; height: 0; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, #4F7C87, #2C5A64); transition: height 1s cubic-bezier(.23, 1, .32, 1); }
.tg-3d__x-alr-estudio-barra-relleno--ambar { background: linear-gradient(180deg, var(--tg-ambar-claro), var(--tg-ambar)); }
.tg-3d__x-alr-estudio-cifra { color: #fff; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tg-3d__x-alr-estudio-cifra--ambar { color: var(--tg-ambar-claro); }
.tg-3d__x-alr-estudio-rotulo { color: rgba(255, 255, 255, .62); font-size: 11px; font-weight: 600; text-align: center; line-height: 1.3; }
.tg-3d__x-alr-estudio-badge { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 16px; border-radius: 14px; background: rgba(246, 164, 44, .14); border: 1px solid rgba(246, 164, 44, .35); }
.tg-3d__x-alr-estudio-badge strong { color: var(--tg-ambar-claro); font-size: 21px; font-weight: 800; }
.tg-3d__x-alr-estudio-badge span { color: rgba(255, 255, 255, .78); font-size: 11.5px; font-weight: 600; }
.tg-3d__x-alr-estudio-nota { margin: 0; color: rgba(255, 255, 255, .5); font-size: 11px; font-style: italic; line-height: 1.4; }
/* «Repetir» y «Continuar explorando» (propuesta visual): a la derecha, el segundo con más peso (es la salida natural). */
.tg-3d__x-alr-estudio-botones { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.tg-3d__x-alr-estudio-repetir { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 999px; background: transparent; color: #fff; font: 700 13px/1 var(--tg-fuente); cursor: pointer; }
.tg-3d__x-alr-estudio-repetir:hover { background: rgba(255, 255, 255, .08); }
.tg-3d__x-alr-estudio-repetir svg { width: 15px; height: 15px; flex: none; }
.tg-3d__x-alr-estudio-continuar { width: auto; min-height: 44px; padding: 0 20px; gap: 8px; }
.tg-3d__x-alr-estudio-continuar svg { width: 16px; height: 16px; flex: none; }
@media (prefers-reduced-motion: reduce) { .tg-3d__x-alr-estudio-barra-relleno, .tg-3d__x-alr-video-barra, .tg-3d__x-alr-video-inline__progreso-relleno { transition: none; } .tg-3d__x-alr-video-vivo-punto { animation: none; } }
.tg-3d__x-escena { position: absolute; top: calc(max(12px, env(safe-area-inset-top)) + 204px); right: 12px; display: flex; flex-direction: column; gap: 8px; }
.tg-3d__x-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--tg-petroleo); cursor: pointer; box-shadow: 0 6px 16px rgba(2, 47, 56, .25); }
.tg-3d__x-btn svg { width: 20px; height: 20px; }
.tg-3d__x-btn[aria-pressed="true"] { background: var(--tg-ambar); color: var(--tg-tinta); }
.tg-3d__x-yo { position: absolute; left: 0; top: 0; padding: 3px 9px; border-radius: 999px; background: var(--tg-ambar); color: var(--tg-tinta); font-size: 11px; font-weight: 800; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); will-change: transform; }
.tg-3d__x-pista { position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 24px); margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(2, 47, 56, .85); color: #fff; font-size: 12px; font-weight: 600; text-align: center; transform: translateX(-50%); transition: opacity .5s ease; }
.tg-3d__x-pista.is-oculta, .tg-3d__x:has(.tg-3d__x-tarjeta:not([hidden])) .tg-3d__x-pista { opacity: 0; }
.tg-3d__x-tarjeta { position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); width: min(420px, calc(100% - 24px)); box-sizing: border-box; display: grid; gap: 6px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: var(--tg-sombra-fuerte); transform: translateX(-50%); animation: tg-x-sube .25s ease both; }
@keyframes tg-x-sube { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.tg-3d__x-plantar { display: inline-flex; align-items: center; gap: 8px; width: auto; min-height: 44px; font-size: 14px; }
.tg-3d__x-plantar svg { width: 18px; height: 18px; }
.tg-3d__x-plantar kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 6px; background: rgba(15, 42, 48, .14); font: 800 12px/1 var(--tg-fuente); }
/* QA3 (2026-10-11): bajo la nota legal (+64), «Continuar compra» (+62…+110) y el GPS (+116…+154); a +64 los tapaba. */
.tg-3d__x-aviso { position: absolute; z-index: 4; top: calc(max(12px, env(safe-area-inset-top)) + 168px); left: 50%; width: max-content; max-width: min(380px, calc(100% - 172px)); margin: 0; padding: 10px 16px; border-radius: 14px; background: var(--tg-ambar); color: var(--tg-tinta); font-size: 14px; font-weight: 800; text-align: center; transform: translateX(-50%); box-shadow: 0 10px 24px rgba(122, 74, 0, .35); animation: tg-x-aviso 2.6s ease both; }
@keyframes tg-x-aviso { 0% { opacity: 0; transform: translate(-50%, -8px) scale(.96); } 10%, 85% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -4px); } }
.tg-3d__x-vivo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tg-3d__x-joy { position: absolute; left: 20px; bottom: max(24px, env(safe-area-inset-bottom)); width: 128px; height: 128px; border-radius: 50%; background: rgba(2, 47, 56, .35); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); touch-action: none; }
.tg-3d__x-perilla { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: 0 6px 14px rgba(0, 0, 0, .3); will-change: transform; }
.tg-3d__x-accion { position: absolute; right: 20px; bottom: max(48px, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 80px; height: 80px; border: 0; border-radius: 50%; background: var(--tg-ambar); color: var(--tg-tinta); box-shadow: 0 8px 20px rgba(122, 74, 0, .45); touch-action: manipulation; }
.tg-3d__x-accion.es-quitar { background: #fff; color: var(--tg-petroleo); }
.tg-3d__x-accion svg { width: 34px; height: 34px; }
.tg-3d__x-accion:disabled { background: rgba(255, 255, 255, .7); color: var(--tg-gris-off); box-shadow: none; }
/* Manejando en el celular: el freno (grande, rojo) ocupa el lugar del banderín y el freno de mano va a su izquierda. */
.tg-3d__x-accion--freno { width: 88px; height: 88px; background: #C8102E; color: #fff; box-shadow: 0 8px 20px rgba(120, 8, 28, .5); }
.tg-3d__x-accion--freno svg { width: 40px; height: 40px; }
.tg-3d__x-accion--mano { right: 120px; width: 64px; height: 64px; background: #fff; color: var(--tg-petroleo); box-shadow: 0 8px 20px rgba(2, 47, 56, .35); }
.tg-3d__x-accion--mano svg { width: 30px; height: 30px; }
.tg-3d__x-accion--freno.is-pulsado, .tg-3d__x-accion--mano.is-pulsado { transform: scale(.92); filter: brightness(1.12); }
/* El velocímetro: sin partirse en dos líneas en el celular, y en ámbar dentro de un proyecto (tope de 40 km/h). */
.tg-3d__x-velocidad { white-space: nowrap; }
.tg-3d__x-velocidad--limite { background: rgba(122, 74, 0, .94); }
.tg-3d__x.es-tactil :is(.tg-3d__x-tarjeta, .tg-3d__x-pista) { bottom: calc(max(24px, env(safe-area-inset-bottom)) + 144px); }
@media (max-width: 639.98px) {
    .tg-3d__explorar-largo { display: none; }
    .tg-3d__x-radar { width: 104px; height: 104px; }
    /* QA3 (2026-10-11): a 375 px «Explorando» se salía de su caja (pisaba «Controles») y el nombre quedaba en «San An…».
       Letra y márgenes más chicos y el nombre en hasta dos líneas. */
    .tg-3d__x-lugar { padding: 6px 10px; }
    .tg-3d__x-lugar span { font-size: 9px; letter-spacing: .06em; }
    .tg-3d__x-lugar strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12px; line-height: 1.15; white-space: normal; }
    .tg-3d__x-cuenta { gap: 4px; padding: 0 8px; }
    /* QA3: en táctil la pista no pasa por debajo de los botones redondos de la derecha (helicóptero, auto, banderín). */
    .tg-3d__x.es-tactil .tg-3d__x-pista { left: 12px; right: 96px; width: auto; max-width: none; transform: none; }
    /* QA3: con la ficha del lote abierta, el helicóptero y el auto (redondos, a la derecha) tapaban «Quitar mi banderín» y
       las medidas. Se ocultan mientras la ficha está abierta; el banderín (abajo) sigue. */
    .tg-3d__x.es-tactil:has(.tg-3d__x-tarjeta:not([hidden])) .tg-3d__x-autobtn { visibility: hidden; pointer-events: none; }
    .tg-3d__x-salir span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .tg-3d__x-salir { width: 44px; padding: 0; justify-content: center; }
    .tg-3d__x-aviso { top: calc(max(12px, env(safe-area-inset-top)) + 176px); max-width: calc(100% - 140px); }
    .tg-3d__x-escena { top: calc(max(12px, env(safe-area-inset-top)) + 176px); }
    .tg-3d__x-gps { top: calc(max(12px, env(safe-area-inset-top)) + 122px); left: 12px; max-width: calc(100% - 150px); overflow: hidden; text-overflow: ellipsis; transform: none; }
    .tg-3d__x-velocidad { bottom: calc(max(24px, env(safe-area-inset-bottom)) + 150px); font-size: 20px; }
    .tg-3d__x-mapa { grid-template-columns: 1fr; grid-template-rows: 46% 54%; }
    .tg-3d__x-mapa-panel { padding-top: 16px; }
    .tg-3d__intro-texto { font-size: 15px; }
    .tg-3d__intro { background: linear-gradient(to top, rgba(2, 47, 56, .96), rgba(2, 47, 56, .88) 38%, rgba(2, 47, 56, 0) 72%); }
}
@media (prefers-reduced-motion: reduce) {
    .tg-3d__x-tarjeta, .tg-3d__x-aviso, .tg-3d__intro-tarjeta { animation: none; }
}
@media (max-width: 639.98px) {
    /* La barra pasa a dos filas si hace falta (el salto de fila es el ::after de ancho completo). Por eso el HUD baja. */
    .tg-3d__barra { flex-wrap: wrap; justify-content: flex-start; row-gap: 8px; }
    .tg-3d__barra::after { content: ""; flex-basis: 100%; height: 0; order: 1; }
    .tg-3d__acciones { display: contents; }
    .tg-3d__hud { top: 106px; padding: 6px 10px; }
    .tg-3d__hud strong { font-size: 12px; }
    .tg-3d__hud span, .tg-3d__hud small { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .tg-3d__et--etapa, .tg-plano3d__giro { animation: none; }
}
/* ---------- Turbo de la camioneta (explorar.js, EX): tablero, velocímetro en arco, botón y ráfaga ----------
   Copia de ESTILOS_TURBO de explorar.js, que hoy los inyecta desde JS: con estas reglas aquí, EX puede quitar la inyección. */
.tg-3d__x-tablero { position: absolute; left: 50%; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 52px); display: flex; align-items: center; gap: 10px; transform: translateX(-50%); }
.tg-3d__x-tablero .tg-3d__x-velocidad { position: static; display: inline-flex; align-items: center; gap: 6px; padding: 4px 16px 4px 6px; transform: none; transition: background-color .3s ease; }
.tg-3d__x-tablero .tg-3d__x-velocidad[hidden] { display: none; }
.tg-3d__x .tg-3d__x-varco { width: 40px; height: 40px; flex: none; fill: none; stroke-width: 5; }
.tg-3d__x .tg-3d__x-varco-pista { stroke: rgba(255, 255, 255, .22); }
.tg-3d__x .tg-3d__x-varco-valor { stroke: var(--tg-ambar, #F6A42C); }
.tg-3d__x-velocidad.es-turbo { background: linear-gradient(90deg, rgba(120, 16, 8, .95), rgba(196, 64, 0, .95)); }
.tg-3d__x .tg-3d__x-velocidad.es-turbo .tg-3d__x-varco-valor { stroke: #FFD27A; }
.tg-3d__x-vcifra { min-width: 2.1em; text-align: right; }
.tg-3d__x-vunidad, .tg-3d__x-vnota { font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.tg-3d__x-vunidad { opacity: .8; }
.tg-3d__x-vnota:empty { display: none; }
.tg-3d__x-turbo { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: #fff; color: var(--tg-petroleo, #03424E); font: 800 13px/1 var(--tg-fuente, system-ui, sans-serif); white-space: nowrap; cursor: pointer; pointer-events: auto; touch-action: manipulation; box-shadow: 0 6px 16px rgba(2, 47, 56, .3); }
.tg-3d__x-turbo[hidden] { display: none; }
.tg-3d__x .tg-3d__x-turbo svg { width: 20px; height: 20px; }
.tg-3d__x-turbo[aria-pressed="true"] { background: #C8102E; color: #fff; box-shadow: 0 6px 18px rgba(200, 16, 46, .45); }
.tg-3d__x-turbo:focus-visible { outline: 3px solid var(--tg-tinta, #0F2A30); outline-offset: 0; box-shadow: 0 0 0 6px var(--tg-ambar, #F6A42C); }
.tg-3d__x-turbo.es-tactil { position: absolute; right: 120px; bottom: calc(max(48px, env(safe-area-inset-bottom)) + 92px); justify-content: center; width: 64px; height: 64px; padding: 0; border-radius: 50%; }
.tg-3d__x .tg-3d__x-turbo.es-tactil svg { width: 30px; height: 30px; }
/* Nitro (ola 4, CA): mismo botón que el turbo; la carga (--carga, 0 a 1) llena el fondo de ámbar desde abajo. */
.tg-3d__x-nitro { background: linear-gradient(to top, rgba(246, 164, 44, .38) calc(var(--carga, 1) * 100%), #fff 0); }
.tg-3d__x-nitro[aria-pressed="true"] { background: var(--tg-ambar, #F6A42C); color: var(--tg-tinta, #0F2A30); box-shadow: 0 6px 18px rgba(246, 164, 44, .5); }
.tg-3d__x-nitro.es-tactil { bottom: calc(max(48px, env(safe-area-inset-bottom)) + 166px); }
.tg-3d__x-nitro.is-pulsado { transform: scale(.92); }
.tg-3d__x-rafaga { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tg-3d__x-vineta { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 50% 52%, rgba(2, 20, 24, 0) 48%, rgba(2, 20, 24, .5) 100%); }
.tg-3d__x-rafaga[hidden], .tg-3d__x-vineta[hidden] { display: none; }
@media (max-width: 639.98px) { .tg-3d__x-tablero { bottom: calc(max(24px, env(safe-area-inset-bottom)) + 150px); } }
@media (prefers-reduced-motion: reduce) { .tg-3d__x-tablero .tg-3d__x-velocidad { transition: none; } }

/* ---------- Visita guiada (ola 4, C: visita-guiada.js) ---------- */
.tg-3d__atajo--visita { background: var(--tg-ambar); color: var(--tg-tinta); box-shadow: 0 8px 18px -10px rgba(246, 164, 44, .95); }
.tg-3d__atajo--visita:hover { background: var(--tg-ambar-hover); }
.tg-3d__visita-cta { position: absolute; z-index: 4; right: 12px; bottom: 12px; display: grid; gap: 8px; width: min(340px, calc(100% - 24px)); padding: 16px 16px 14px; border-radius: 18px; background: #fff; box-shadow: var(--tg-sombra-fuerte); font-family: var(--tg-fuente); color: var(--tg-tinta); animation: tg-entra .3s ease both; }
.tg-3d__visita-cta[hidden] { display: none; }
.tg-3d__visita-titulo { padding-right: 32px; font: 700 17px/1.25 var(--tg-fuente); color: var(--tg-petroleo); }
.tg-3d__visita-texto { margin: 0; font: 500 14px/1.45 var(--tg-fuente); color: var(--tg-tinta-suave); }
.tg-3d__visita-todos { justify-self: center; border: 0; background: none; color: var(--tg-petroleo); font: 600 13px/1.2 var(--tg-fuente); text-decoration: underline; cursor: pointer; padding: 6px; }
.tg-3d.is-visita .tg-3d__visita-cta { display: none; }

.tg-visita { position: absolute; inset: 0; z-index: 6; pointer-events: none; font-family: var(--tg-fuente); color: #fff; }
.tg-visita[hidden] { display: none; }
.tg-visita :is(button, .tg-visita__panel, .tg-visita__tercio) { pointer-events: auto; }
.tg-visita__banda { position: absolute; left: 0; right: 0; height: 0; background: #000; transition: height .9s cubic-bezier(.2, .7, .2, 1); }
.tg-visita__banda--arriba { top: 0; }
.tg-visita__banda--abajo { bottom: 0; }
.tg-visita.is-cine .tg-visita__banda { height: 9vh; }
.tg-visita__fundido { position: absolute; inset: 0; background: #021F25; opacity: 0; transition: opacity .35s ease; }
.tg-visita__fundido.is-cerrado { opacity: 1; }
.tg-visita__titulo { position: absolute; top: calc(9vh + 18px); left: 0; right: 0; margin: 0; text-align: center; font: 700 clamp(20px, 3.2vw, 34px)/1.15 var(--tg-fuente); letter-spacing: .02em; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); animation: tg-entra .8s ease both; }
.tg-visita__titulo[hidden] { display: none; }
.tg-visita__tercio { position: absolute; left: clamp(12px, 4vw, 48px); bottom: calc(9vh + 86px); display: grid; gap: 6px; max-width: min(420px, 80vw); padding: 12px 16px 12px 18px; border-left: 4px solid var(--tg-ambar); border-radius: 4px 14px 14px 4px; background: rgba(2, 37, 44, .78); backdrop-filter: blur(4px); animation: tg-entra .5s ease both; }
.tg-visita__tercio[hidden] { display: none; }
.tg-visita__nombre { font: 700 clamp(18px, 2.4vw, 26px)/1.15 var(--tg-fuente); }
.tg-visita__datos { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0; font: 600 14px/1.3 var(--tg-fuente); color: #DCEBED; }
.tg-visita__dato--precio { color: var(--tg-ambar-claro); }
.tg-visita__elegir-aqui { justify-self: start; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--tg-ambar); color: var(--tg-tinta); font: 700 13px/1 var(--tg-fuente); cursor: pointer; }
.tg-visita__subtitulo { position: absolute; left: 50%; bottom: calc(9vh + 18px); transform: translateX(-50%); width: max-content; max-width: min(860px, 92vw); margin: 0; padding: 8px 14px; border-radius: 10px; background: rgba(0, 0, 0, .62); text-align: center; font: 600 clamp(15px, 1.8vw, 19px)/1.4 var(--tg-fuente); }
.tg-visita__subtitulo[hidden], .tg-visita__subtitulo:empty { display: none; }
.tg-visita__palabra { background: none; color: var(--tg-ambar-claro); }
.tg-visita__aviso { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 6px; width: fit-content; max-width: min(860px, calc(100% - 24px)); margin: 0 auto; padding: 3px 10px; border-radius: 8px; background: rgba(2, 37, 44, .72); text-align: center; font: 500 11px/1.3 var(--tg-fuente); color: rgba(255, 255, 255, .9); }
/* QF1 (N6 del QA4): la nota legal del pie va sobre un fondo propio y por encima del panel; el panel queda arriba de ella. */
.tg-visita__aviso:empty { display: none; }
.tg-visita__controles { position: absolute; top: calc(9vh + 10px); right: 12px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.tg-visita:not(.is-cine) .tg-visita__controles { top: 12px; }
.tg-visita:not(.is-cine) .tg-visita__titulo { display: none; }
.tg-visita__ctl { min-height: 40px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: rgba(2, 37, 44, .72); color: #fff; font: 700 13px/1 var(--tg-fuente); cursor: pointer; }
.tg-visita__ctl:hover { background: var(--tg-petroleo); }
.tg-visita__ctl[hidden] { display: none; }
.tg-visita__ctl[aria-pressed="true"] { background: var(--tg-ambar); color: var(--tg-tinta); border-color: transparent; }
.tg-visita :is(.tg-visita__ctl, .tg-visita__elegir-aqui, .tg-visita__chip, .tg-visita__sugerencia, .tg-visita__enlace):focus-visible { outline: 3px solid var(--tg-ambar); outline-offset: 2px; }
.tg-visita.is-pausada .tg-visita__subtitulo { opacity: .7; }
.tg-visita__panel { position: absolute; left: 12px; right: 12px; bottom: calc(18px + 70px); margin-inline: auto; display: grid; gap: 10px; max-width: 560px; max-height: 60vh; overflow: auto; padding: 16px; border-radius: 18px; background: #fff; color: var(--tg-tinta); box-shadow: var(--tg-sombra-fuerte); animation: tg-entra .3s ease both; }
.tg-visita__panel[hidden] { display: none; }
.tg-visita:not(.is-cine) .tg-visita__subtitulo { bottom: auto; top: 64px; }
.tg-visita__pregunta { margin: 0; font: 700 17px/1.3 var(--tg-fuente); color: var(--tg-petroleo); }
.tg-visita__nota { margin: 0; font: 500 13px/1.4 var(--tg-fuente); color: var(--tg-gris); }
.tg-visita__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tg-visita__chip { display: grid; gap: 2px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--tg-linea); border-radius: 14px; background: var(--tg-fondo); color: var(--tg-tinta); font: 700 14px/1.2 var(--tg-fuente); text-align: left; cursor: pointer; }
.tg-visita__chip small { font: 600 12px/1.2 var(--tg-fuente); color: var(--tg-ambar-tinta); }
.tg-visita__chip:hover, .tg-visita__sugerencia:hover { border-color: var(--tg-ambar); }
.tg-visita__sugerencias { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.tg-visita__sugerencia { display: grid; gap: 3px; padding: 10px 12px; border: 1.5px solid var(--tg-linea); border-radius: 14px; background: var(--tg-fondo); color: var(--tg-tinta); text-align: left; cursor: pointer; font-family: var(--tg-fuente); }
.tg-visita__sugerencia small { font: 700 11px/1.2 var(--tg-fuente); text-transform: uppercase; letter-spacing: .04em; color: var(--tg-ambar-tinta); }
.tg-visita__sugerencia strong { font: 700 15px/1.2 var(--tg-fuente); color: var(--tg-petroleo); }
.tg-visita__sugerencia span { font: 500 13px/1.3 var(--tg-fuente); color: var(--tg-tinta-suave); }
.tg-visita__enlace { justify-self: center; border: 0; background: none; color: var(--tg-petroleo); font: 600 13px/1.2 var(--tg-fuente); text-decoration: underline; cursor: pointer; padding: 6px; }
.tg-visita__comprar { width: 100%; }
@media (max-width: 640px) {
    .tg-visita.is-cine .tg-visita__banda { height: 6vh; }
    .tg-visita__titulo { top: calc(6vh + 52px); }
    .tg-visita__controles { top: calc(6vh + 8px); left: 8px; right: 8px; justify-content: center; }
    .tg-visita__ctl { min-height: 38px; padding: 0 11px; font-size: 12px; }
    .tg-visita__tercio { bottom: calc(6vh + 96px); left: 10px; right: 10px; max-width: none; }
    .tg-visita__subtitulo { bottom: calc(6vh + 22px); }
    .tg-visita__panel { bottom: 62px; max-height: 56vh; }
    .tg-visita:not(.is-cine) .tg-visita__controles { top: 8px; }
    .tg-visita:not(.is-cine) .tg-visita__subtitulo { top: 58px; }
}
@media (prefers-reduced-motion: reduce) {
    .tg-visita__banda, .tg-visita__titulo, .tg-visita__tercio, .tg-visita__panel, .tg-3d__visita-cta { transition: none; animation: none; }
}
/* La pista inicial del panel «Controles» (B2) va como segunda línea de la pista del HUD. */
.tg-3d__pista:has(.tg-3d__pista-ayuda) { white-space: normal; border-radius: 14px; text-align: center; }
.tg-3d__pista-ayuda { display: block; margin-top: 2px; color: var(--tg-ambar-claro); }
/* El subtítulo de la visita lo llena guia.locutor() (frente B) con la palabra en curso: respaldo si guia.css no está. */
.tg-visita__subtitulo .is-actual { color: var(--tg-ambar-claro); }

/* ==========================================================================
   Ola 5 · La cinemática de cada proyecto (cinematica.js)
   Barras de cine, viñeta cálida de hora dorada, título de tráiler y subtítulos. Solo opacidad y transform.
   ========================================================================== */
.tg-cine { position: absolute; inset: 0; z-index: 7; overflow: hidden; color: #fff; font-family: var(--tg-fuente); cursor: pointer; }
.tg-cine[hidden] { display: none; }
.tg-cine__grado { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s ease;
    background: radial-gradient(120% 90% at 50% 45%, rgba(255, 190, 110, 0) 45%, rgba(120, 52, 8, .30) 82%, rgba(40, 14, 0, .55) 100%),
                linear-gradient(to bottom, rgba(255, 165, 70, .22), rgba(255, 170, 80, .06) 45%, rgba(255, 120, 40, .16)); }
/* Mientras dura la cinemática, el resto del HUD de la maqueta (hora del día, calidad) no se ve. */
.tg-3d:has(> .tg-cine:not([hidden])) > :not(.tg-cine, .tg-3d__lienzo, .tg-3d__x, .tg-3d__etiquetas) { visibility: hidden; }
.tg-cine__fundido { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity 1.3s ease; }
.tg-cine.is-negro .tg-cine__fundido { opacity: 1; transition: none; }
.tg-cine.is-corte .tg-cine__fundido { opacity: 1; transition: opacity .25s ease; }
.tg-cine__banda { position: absolute; left: 0; right: 0; height: 11vh; background: #000; pointer-events: none; transform: scaleY(0); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.tg-cine__banda--arriba { top: 0; transform-origin: top; }
.tg-cine__banda--abajo { bottom: 0; transform-origin: bottom; }
.tg-cine.is-cine .tg-cine__banda { transform: scaleY(1); }
.tg-cine.is-cine .tg-cine__grado { opacity: 1; }
.tg-cine.is-saliendo .tg-cine__banda { transform: scaleY(0); transition-duration: .5s; }
.tg-cine.is-saliendo :is(.tg-cine__grado, .tg-cine__titulo, .tg-cine__cierre, .tg-cine__subtitulo, .tg-cine__saltar, .tg-cine__pista, .tg-cine__aviso) { opacity: 0; transition: opacity .4s ease; }

/* El título de tráiler: ceja espaciada, el nombre grande y una línea dorada que se abre. */
.tg-cine__titulo { position: absolute; left: 50%; top: 50%; width: min(92vw, 1100px); display: grid; justify-items: center; gap: 14px; text-align: center; pointer-events: none;
    transform: translate(-50%, -50%); opacity: 0; }
.tg-cine__ceja { margin: 0; font-size: clamp(11px, 1.4vw, 15px); font-weight: 600; letter-spacing: .5em; text-transform: uppercase; color: #FFE2B8; padding-left: .5em;
    opacity: 0; transform: translateY(8px); transition: opacity 1.1s ease .15s, transform 1.4s cubic-bezier(.2, .7, .2, 1) .15s; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.tg-cine__nombre { margin: 0; font-size: clamp(38px, 8.4vw, 112px); font-weight: 600; line-height: .98; letter-spacing: .08em; text-transform: uppercase; color: #fff;
    text-shadow: 0 4px 30px rgba(60, 20, 0, .55), 0 1px 2px rgba(0, 0, 0, .4); opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease .35s, transform 4.8s cubic-bezier(.15, .6, .2, 1) .35s; }
.tg-cine__linea { display: block; width: min(320px, 46vw); height: 2px; background: linear-gradient(90deg, rgba(255, 196, 107, 0), #FFC46B 25%, #FFA726 50%, #FFC46B 75%, rgba(255, 196, 107, 0));
    transform: scaleX(0); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1) .9s; }
.tg-cine__titulo.is-visible { opacity: 1; }
.tg-cine__titulo.is-visible .tg-cine__ceja { opacity: 1; transform: none; }
.tg-cine__titulo.is-visible .tg-cine__nombre { opacity: 1; transform: scale(1); }
.tg-cine__titulo.is-visible .tg-cine__linea { transform: scaleX(1); }
.tg-cine__titulo.is-saliendo { opacity: 0; transition: opacity 1.2s ease; }

/* El cierre sobre los lotes libres: el nombre chico, el dato y la invitación. */
.tg-cine__cierre { position: absolute; left: 50%; bottom: calc(11vh + 70px); display: grid; justify-items: center; gap: 6px; width: min(92vw, 720px); text-align: center; pointer-events: none;
    opacity: 0; transform: translate(-50%, 12px); transition: opacity 1s ease, transform 1.3s cubic-bezier(.2, .7, .2, 1); }
.tg-cine__cierre.is-visible { opacity: 1; transform: translate(-50%, 0); }
.tg-cine__cierre-nombre { margin: 0; font-size: clamp(20px, 3vw, 34px); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 3px 18px rgba(0, 0, 0, .55); }
.tg-cine__cierre-dato { margin: 0; padding: 5px 14px; border-radius: 999px; background: rgba(255, 167, 38, .92); color: #1F1300; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tg-cine__cierre-dato[hidden] { display: none; }
.tg-cine__cierre-texto { margin: 0; font-size: clamp(14px, 1.6vw, 18px); font-weight: 600; color: #FFE2B8; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }

/* Subtítulos (aria-live) sobre la barra de abajo, y lo ilustrativo dentro de la barra. */
.tg-cine__subtitulo { position: absolute; left: 50%; bottom: calc(11vh + 14px); width: max-content; max-width: min(860px, calc(100% - 32px)); margin: 0; padding: 7px 14px; border-radius: 10px;
    background: rgba(0, 0, 0, .55); color: #fff; font-size: clamp(14px, 1.6vw, 18px); font-weight: 600; line-height: 1.35; text-align: center; transform: translateX(-50%); pointer-events: none; }
.tg-cine__subtitulo[hidden] { display: none; }
.tg-cine__subtitulo .tg-voz-palabra, .tg-cine__subtitulo mark { background: none; color: #FFC46B; }
.tg-cine__aviso { position: absolute; left: 16px; right: 16px; bottom: max(6px, calc(5.5vh - 9px)); margin: 0; color: rgba(255, 255, 255, .62); font-size: 11px; font-weight: 500; text-align: center; pointer-events: none; }
.tg-cine__saltar { position: absolute; z-index: 2; top: calc(max(10px, env(safe-area-inset-top)) + 2.5vh); right: max(16px, env(safe-area-inset-right)); display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; padding: 0 14px 0 18px; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff;
    font: 700 14px/1 var(--tg-fuente); letter-spacing: .06em; cursor: pointer; }
.tg-cine__saltar:hover { background: rgba(0, 0, 0, .65); }
.tg-cine__saltar:focus-visible { outline: 3px solid #FFA726; outline-offset: 3px; }
.tg-cine__saltar-icono { font-size: 22px; line-height: 0; transform: translateY(-1px); }
.tg-cine__pista { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 2.5vh + 12px); left: max(16px, env(safe-area-inset-left)); margin: 0; color: rgba(255, 255, 255, .7); font-size: 12px; font-weight: 600; letter-spacing: .04em; pointer-events: none; }
@media (max-width: 639.98px) {
    .tg-cine__banda { height: 8vh; }
    .tg-cine__cierre { bottom: calc(8vh + 74px); }
    .tg-cine__subtitulo { bottom: calc(8vh + 12px); }
    .tg-cine__aviso { bottom: 4px; font-size: 10px; }
    .tg-cine__saltar { top: calc(max(8px, env(safe-area-inset-top)) + 1.5vh); }
    .tg-cine__nombre { letter-spacing: .05em; }
}
@media (prefers-reduced-motion: reduce) {
    .tg-cine__banda, .tg-cine__titulo, .tg-cine__ceja, .tg-cine__nombre, .tg-cine__linea, .tg-cine__cierre { transition: opacity .4s ease; transform: none; }
    .tg-cine.is-cine .tg-cine__banda { transform: none; }
    .tg-cine__banda { transform: none; }
    .tg-cine__titulo { transform: translate(-50%, -50%); }
    .tg-cine__cierre, .tg-cine__cierre.is-visible { transform: translateX(-50%); }
}

/* El pie del panel «Controles»: «Ver cinemática». */
.tg-ayuda__acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.tg-ayuda__acciones[hidden], .tg-ayuda__accion-btn[hidden] { display: none; }
.tg-ayuda__accion-btn { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: #FFA726; color: #1F1300; font: 800 14px/1 var(--tg-fuente, inherit); cursor: pointer; }
.tg-ayuda__accion-btn:hover { background: #FFB547; }

/* ==========================================================================
   QA3 · Q3-16 · Leyenda de los estados de los lotes (plano3d.js). Los mismos colores y tramas de las losas:
   libre claro con borde verde, separado ámbar con rayas suaves «\», no está a la venta gris con rayas «/».
   Distinguibles sin color (luminancia y patrón).
   ========================================================================== */
.tg-3d__leyenda { position: absolute; left: 10px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; gap: 3px; max-width: calc(100% - 84px); margin: 0; padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(3, 66, 78, .18); color: var(--tg-tinta); font-size: 11px; font-weight: 700; list-style: none; pointer-events: none; }
.tg-3d__leyenda-i { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.tg-3d__leyenda-i::before { content: ""; width: 14px; height: 11px; border-radius: 3px; box-sizing: border-box; }
.tg-3d__leyenda-i--disponible::before { background: #E6F6E2; border: 2px solid #2E8B57; }
.tg-3d__leyenda-i--bloqueado::before { background: repeating-linear-gradient(-45deg, #FDEFD8 0 3px, #D9C9AF 3px 4.5px); border: 1.5px solid #E7A84A; }
.tg-3d__leyenda-i--vendido::before { background: repeating-linear-gradient(45deg, #959DA1 0 3px, #626A6E 3px 4.5px); border: 1.5px solid #6F787C; }
.tg-3d__leyenda-i--elegido::before { background: #03424E; border: 2px solid #F6A42C; }
/* No se ve: en la bienvenida, en la vista Mapa (lejos), con la ficha de la maqueta abierta, ni con el mapa o el GPS de
   explorar encima. En la cinemática la oculta la regla de .tg-cine. */
.tg-3d:has(.tg-3d__intro:not([hidden])) .tg-3d__leyenda,
.tg-3d[data-zoom="lejos"]:not(.is-explorando) .tg-3d__leyenda,
.tg-3d:not(.is-explorando):has(.tg-3d__ficha:not([hidden])) .tg-3d__leyenda,
.tg-3d:has(.tg-3d__x-mapa:not([hidden])) .tg-3d__leyenda { display: none; }
/* Explorando: arriba a la izquierda, bajo la nota legal y sobre la capa de explorar. */
/* 27-oct-2026 (pedido del cliente): grilla fija de 2 columnas, no 3+1 (lo que salía con flex-wrap: el ancho de "No
   está a la venta" dejaba solo 3 por fila, nunca parejo). */
.tg-3d.is-explorando .tg-3d__leyenda { top: calc(max(12px, env(safe-area-inset-top)) + 98px); bottom: auto; left: 12px; z-index: 5; display: grid; grid-template-columns: repeat(2, auto); gap: 4px 10px; max-width: min(360px, calc(100% - 180px)); }
@media (max-width: 639.98px) {
    .tg-3d__leyenda { bottom: 52px; gap: 2px; padding: 5px 8px; font-size: 10px; }
    .tg-3d.is-explorando .tg-3d__leyenda { gap: 3px 8px; }
    /* En la maqueta del celular la pista inicial ocupa el pie: la leyenda aparece cuando se va (al primer toque). */
    .tg-3d:not(.is-explorando):has(.tg-3d__pista:not(.is-oculta)) .tg-3d__leyenda { display: none; }
    .tg-3d.is-explorando .tg-3d__leyenda { top: calc(max(12px, env(safe-area-inset-top)) + 142px); max-width: calc(100% - 140px); }
    /* Con el GPS (mismo sitio en el celular) o la ficha del lote abiertos, la leyenda se aparta. */
    .tg-3d.is-explorando:has(.tg-3d__x-gps:not([hidden])) .tg-3d__leyenda { display: none; }
}

/* ---------- Pedidos del cliente (2026-10-16, frente MENU; explorar.js): la barra con «Tu auto», «Áreas comunes» y
   «Continúa», y los menús de personajes y de áreas comunes (<dialog> modales en la capa superior, como el panel
   «Controles»). ---------- */
/* Con ocho botones la barra no cabe con todos sus nombres en una pantalla mediana: los de navegación quedan solo con su
   ícono (el nombre sigue en el árbol de accesibilidad) y «Continúa» y la cuenta de banderines conservan el texto.
   Desde el 22-oct-2026 son diez («Alrededores» y «¿Cómo quedará?»): solo ícono hasta 1600 px (a 1366 px se salía
   «Continúa» por la derecha). */
@media (min-width: 640px) and (max-width: 1599.98px) {
    /* Sin «>» (ya no son hijos directos de .tg-3d__x-derecha: 28-oct-2026 los agrupó en .tg-3d__x-modobtns, ver arriba). */
    .tg-3d__x:not(.es-tactil) .tg-3d__x-derecha .tg-3d__x-salir:not(.tg-3d__x-salida) { width: 44px; padding: 0; justify-content: center; }
    .tg-3d__x:not(.es-tactil) .tg-3d__x-derecha .tg-3d__x-salir:not(.tg-3d__x-salida) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* En una ventana angosta sin pantalla táctil (los celulares van por es-tactil), la barra baja a una segunda fila en vez
   de salirse por el costado. */
@media (max-width: 639.98px) {
    .tg-3d__x:not(.es-tactil) .tg-3d__x-derecha { flex: 0 1 auto; }
    /* modoBtns ya no son botones sueltos de .tg-3d__x-derecha (van agrupados): mismo flex-wrap/justify-content que
       derecha, para que también puedan partirse en más de una fila en vez de forzar el ancho del grupo de una vez. */
    .tg-3d__x:not(.es-tactil) .tg-3d__x-derecha, .tg-3d__x:not(.es-tactil) .tg-3d__x-modobtns { flex-wrap: wrap; justify-content: flex-end; }
}
/* En el celular, «Personaje» y «Áreas comunes» van con el sonido y el paisaje bajo el radar, en dos columnas: así no
   bajan hasta el botón de la hora del día. */
.tg-3d__x.es-tactil .tg-3d__x-escena { display: grid; grid-template-columns: repeat(2, 44px); }

/* Los menús */
.tg-3d__x-menu {
    box-sizing: border-box; width: min(560px, calc(100vw - 24px)); max-height: min(84vh, 720px); margin: auto; padding: 0;
    border: 0; border-radius: 20px; background: #fff; color: var(--tg-tinta, #0F2A30);
    font-family: var(--tg-fuente, 'TgMontserrat', system-ui, sans-serif);
    box-shadow: var(--tg-sombra-fuerte, 0 18px 36px -16px rgba(3, 66, 78, .55)), 0 24px 60px rgba(2, 47, 56, .35);
    overflow: hidden; pointer-events: auto;
}
.tg-3d__x-menu[open] { display: flex; flex-direction: column; animation: tg-x-menu-entra .22s ease-out; }
.tg-3d__x-menu::backdrop { background: rgba(2, 30, 36, .55); }
@keyframes tg-x-menu-entra { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.tg-3d__x-menu-caja { display: flex; flex-direction: column; gap: 12px; min-height: 0; padding: 20px 20px 16px; }
.tg-3d__x-menu-cabeza { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tg-3d__x-menu-titulo { margin: 0; color: var(--tg-petroleo, #03424E); font-size: 20px; font-weight: 800; line-height: 1.25; }
.tg-3d__x-menu-cerrar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: -6px -6px 0 0; padding: 0; border: 0; border-radius: 50%; background: var(--tg-petroleo-100, #E4EFF0); color: var(--tg-petroleo, #03424E); cursor: pointer; }
.tg-3d__x-menu-cerrar:hover { background: #D3E4E6; }
.tg-3d__x-menu-cerrar svg { width: 20px; height: 20px; }
.tg-3d__x-menu-cuerpo { display: flex; flex-direction: column; gap: 12px; min-height: 0; margin: 0 -6px; padding: 2px 6px 6px; overflow-y: auto; overscroll-behavior: contain; }
.tg-3d__x-menu-desc { margin: 0; color: var(--tg-gris, #4A6268); font-size: 13px; font-weight: 500; line-height: 1.45; }
.tg-3d__x-menu-pie { flex: none; }
.tg-3d__x-menu-nota { margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--tg-ambar-100, #FEF1DC); color: var(--tg-ambar-tinta, #7A4A00); font-size: 12px; font-weight: 700; line-height: 1.4; }
.tg-3d__x .tg-3d__x-menu button:focus-visible { outline: 3px solid var(--tg-tinta, #0F2A30); outline-offset: 2px; box-shadow: 0 0 0 6px var(--tg-ambar, #F6A42C); }
/* 29-oct-2026 (rehecho de punta a punta siguiendo la propuesta visual aprobada — el cliente la mandó de vuelta:
   «esta completamente mal lo que hiciste, debes rehacerlo como se muestra en el artefacto»). YA NO es un grid de
   2 columnas (el wireframe del 27-oct, con el carrusel a la izquierda y el mapa aparte a la derecha): ahora es un
   flujo vertical simple — .tg-3d__x-menu-cuerpo vuelve a su flex-column de base, sin ninguna regla propia acá — y
   lo que va lado a lado (video grande + mapa grande) es SOLO .tg-3d__x-alr-escenario, un hijo más de ese flujo
   (ver su regla en el bloque de «Alrededores» de más arriba).
   29-oct-2026 (2ª corrección, pedido del cliente: «el modal no parece modal, aparece una página»): a página
   completa (100vw/100vh, sin radio) se perdía todo lo que hace ver a un modal como modal — el fondo oscurecido
   alrededor (::backdrop ya existe para TODOS los menús, pero sin margen no se le veía ni un borde), las esquinas
   redondeadas y la sombra de .tg-3d__x-menu (base, más arriba). Ahora es grande pero CONTENIDO, con esas tres
   cosas de vuelta — solo más ancho/alto que el modal chico de los demás diálogos. */
.tg-3d__x-menu--alrededores {
    width: min(96vw, 1440px); max-width: min(96vw, 1440px);
    height: min(92vh, 920px); max-height: min(92vh, 920px);
    margin: auto;
}
.tg-3d__x-menu--alrededores .tg-3d__x-menu-caja { height: 100%; box-sizing: border-box; padding: 20px 24px 16px; }
.tg-3d__x-menu--alrededores .tg-3d__x-menu-cabeza { max-width: 1320px; width: 100%; margin: 0 auto; }
.tg-3d__x-menu--alrededores .tg-3d__x-menu-cuerpo { max-width: 1320px; width: 100%; margin: 0 auto; }
/* Barras de scroll de marca (cuerpo vertical, carrusel horizontal) — pedido del cliente, 29-oct-2026: la nativa del
   sistema (gruesa, con flechas) se veía tosca/antigua. QA TEST_TIGO_1 (3-nov-2026), punto 4: la vertical del cuerpo
   casi no se veía (pulgar #E4EFF0 sobre blanco): ahora es petróleo sobre un riel tenue, más ancha (12 px) y ámbar al
   pasar el mouse, para que se note que hay más contenido abajo. La del carrusel sigue fina y clara: es secundaria. */
.tg-3d__x-menu--alrededores .tg-3d__x-menu-cuerpo { scrollbar-width: auto; scrollbar-color: var(--tg-petroleo) rgba(3, 66, 78, .1); scrollbar-gutter: stable; }
.tg-3d__x-menu--alrededores .tg-3d__x-menu-cuerpo::-webkit-scrollbar { width: 12px; }
.tg-3d__x-menu--alrededores .tg-3d__x-menu-cuerpo::-webkit-scrollbar-track { background: rgba(3, 66, 78, .1); border-radius: 999px; }
.tg-3d__x-menu--alrededores .tg-3d__x-menu-cuerpo::-webkit-scrollbar-thumb { background: var(--tg-petroleo); border: 2px solid transparent; border-radius: 999px; background-clip: padding-box; min-height: 48px; }
.tg-3d__x-menu--alrededores .tg-3d__x-menu-cuerpo::-webkit-scrollbar-thumb:hover { background-color: var(--tg-ambar); }
.tg-3d__x-alr-videos { scrollbar-width: thin; scrollbar-color: #B7CDD1 transparent; }
.tg-3d__x-alr-videos::-webkit-scrollbar { height: 8px; }
.tg-3d__x-alr-videos::-webkit-scrollbar-track { background: transparent; }
.tg-3d__x-alr-videos::-webkit-scrollbar-thumb { background: #B7CDD1; border-radius: 999px; }
.tg-3d__x-alr-videos::-webkit-scrollbar-thumb:hover { background: var(--tg-gris); }
/* Personajes: una grilla de fotos (dos columnas en el celular). */
.tg-3d__x-personajes { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tg-3d__x-personaje { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; box-sizing: border-box; width: 100%; height: 100%; min-height: 44px; padding: 8px 8px 10px; border: 2px solid var(--tg-linea, #D5E1E3); border-radius: 16px; background: #fff; color: var(--tg-tinta, #0F2A30); font-family: inherit; text-align: center; cursor: pointer; touch-action: manipulation; }
.tg-3d__x-personaje:hover { border-color: var(--tg-ambar, #F6A42C); }
.tg-3d__x-personaje[aria-pressed="true"] { border-color: var(--tg-ambar, #F6A42C); background: var(--tg-ambar-100, #FEF1DC); }
.tg-3d__x-personaje-foto { display: grid; place-items: center; width: 84px; height: 111px; margin-bottom: 4px; border-radius: 12px; background: radial-gradient(circle at 50% 36%, #fff, var(--tg-petroleo-100, #E4EFF0) 72%); color: var(--tg-petroleo, #03424E); overflow: hidden; }
.tg-3d__x-personaje-foto img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tg-3d__x .tg-3d__x-personaje-foto svg { width: 40px; height: 40px; opacity: .5; }
.tg-3d__x-personaje-nombre { color: var(--tg-petroleo, #03424E); font-size: 13px; font-weight: 800; line-height: 1.25; }
.tg-3d__x-personaje-nota { color: var(--tg-gris, #4A6268); font-size: 11px; font-weight: 600; }
.tg-3d__x-personaje-ahora { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; background: var(--tg-ambar, #F6A42C); color: var(--tg-tinta, #0F2A30); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
/* Áreas comunes: la lista, de la más cercana a la más lejana. */
.tg-3d__x-areas { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tg-3d__x-area { display: flex; align-items: center; gap: 12px; box-sizing: border-box; width: 100%; min-height: 52px; padding: 8px 12px; border: 2px solid var(--tg-linea, #D5E1E3); border-radius: 14px; background: #fff; color: var(--tg-petroleo, #03424E); font-family: inherit; text-align: left; cursor: pointer; touch-action: manipulation; }
.tg-3d__x-area:hover { border-color: var(--tg-ambar, #F6A42C); background: var(--tg-ambar-100, #FEF1DC); }
.tg-3d__x .tg-3d__x-area > svg { flex: none; box-sizing: content-box; width: 22px; height: 22px; padding: 8px; border-radius: 50%; background: var(--tg-petroleo-100, #E4EFF0); }
.tg-3d__x-area-texto { display: grid; gap: 2px; min-width: 0; }
.tg-3d__x-area-texto strong { font-size: 14px; font-weight: 800; line-height: 1.25; }
.tg-3d__x-area-texto span { color: var(--tg-gris, #4A6268); font-size: 12px; font-weight: 500; }
.tg-3d__x-areas-vacio { padding: 14px 4px; color: var(--tg-gris, #4A6268); font-size: 13px; }
@media (max-width: 639.98px) {
    .tg-3d__x-menu-caja { padding: 16px 14px 12px; }
    .tg-3d__x-menu-titulo { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .tg-3d__x-menu[open] { animation: none; } }

/* Ligero (D4 + J', ola 0): con el visor en nivel bajo (html[data-tg-calidad="bajo"]: lo pone compra.js antes de crear el visor
   y lo actualiza plano3d.js al cambiar de nivel) el DOM del visor no pide capas de composición, sombras ni desenfoques:
   las etiquetas sin will-change ni box-shadow, la etapa sin faro y los paneles traslúcidos con fondo sólido (alfa .92)
   en vez de backdrop-filter. En medio y alto todo sigue como arriba. */
html[data-tg-calidad="bajo"] .tg-3d__et { will-change: auto; }
html[data-tg-calidad="bajo"] :is(.tg-3d__et--via, .tg-3d__et--lote, .tg-3d__et--comun, .tg-3d__et--medida, .tg-3d__et--area) { box-shadow: none; }
html[data-tg-calidad="bajo"] .tg-3d__et--etapa { animation: none; }
html[data-tg-calidad="bajo"] .tg-3d__x-lugar { background: rgba(2, 47, 56, .92); backdrop-filter: none; }
html[data-tg-calidad="bajo"] .tg-visita__tercio { background: rgba(2, 37, 44, .92); backdrop-filter: none; }

/* Obs. n.º 8 (22-oct-2026): «¿Cómo quedará en el futuro?» prendido (los árboles crecidos) se ve como un interruptor activo. */
.tg-3d__x-futurobtn.is-activo { background: var(--tg-ambar); color: var(--tg-petroleo); }
.tg-3d__x-futurobtn.is-activo svg { color: var(--tg-petroleo); }
/* Obs. n.º 4: el botón «Ver/Ocultar los nombres en el paisaje» del pie del menú «Alrededores». */
.tg-3d__x-alr-ver { margin: 0 0 8px; }

/* navegacion-guia */
/* Punto 1 (23-oct-2026, «navegación intuitiva»): la guía visual de la primera vez a pie (navegacion-guia.js) y su botón «?».
   No es modal: el lienzo sigue recibiendo el arrastre (solo la tarjeta capta el puntero) y se cierra al primer movimiento. */
.tg-navguia { position: absolute; inset: auto 0 0 0; z-index: 6; display: flex; justify-content: center; padding: 0 16px max(64px, calc(env(safe-area-inset-bottom) + 56px)); pointer-events: none; }
.tg-navguia[hidden] { display: none; }
/* Solo los botones captan el puntero: arrastrar sobre la tarjeta ya mira alrededor (y la cierra). */
.tg-navguia__caja { box-sizing: border-box; width: min(600px, 100%); padding: 14px 18px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; background: rgba(2, 47, 56, .9); color: #fff; font-family: var(--tg-fuente); box-shadow: 0 18px 40px rgba(2, 20, 24, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: none; animation: tg-navguia-sube .42s cubic-bezier(.2, .8, .2, 1) both; }
.tg-3d__x .tg-navguia__titulo, .tg-navguia__titulo { margin: 0; color: #fff; font-family: var(--tg-fuente); font-size: 17px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.tg-navguia__desc { margin: 2px 0 10px; color: rgba(255, 255, 255, .78); font-size: 13px; }
.tg-navguia__pasos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tg-navguia__paso { display: grid; justify-items: center; gap: 6px; padding: 10px 8px; border-radius: 14px; background: rgba(255, 255, 255, .07); text-align: center; }
.tg-navguia__icono { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tg-ambar); color: var(--tg-petroleo); }
.tg-3d__x .tg-navguia__icono svg, .tg-navguia__icono svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tg-navguia__paso[data-paso="mirar"] .tg-navguia__icono svg { animation: tg-navguia-mira 2.4s ease-in-out infinite; }
.tg-navguia__texto { display: grid; gap: 3px; }
.tg-navguia__texto strong { font-size: 14px; font-weight: 800; line-height: 1.25; }
.tg-navguia__texto span { color: rgba(255, 255, 255, .8); font-size: 12px; line-height: 1.35; }
.tg-navguia__pie { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.tg-navguia__pie button { pointer-events: auto; }
.tg-navguia__listo { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--tg-ambar); color: var(--tg-tinta, #1D2B2F); font: 800 14px/1 var(--tg-fuente); cursor: pointer; touch-action: manipulation; }
.tg-navguia__listo:hover { background: #FFB94F; }
.tg-navguia__ver { min-height: 44px; padding: 0 6px; border: 0; background: none; color: #fff; font: 700 13px/1 var(--tg-fuente); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tg-navguia__nota { margin: 6px 0 0; color: rgba(255, 255, 255, .62); font-size: 11px; }
.tg-navguia :is(button):focus-visible, .tg-navguia__abrir:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px rgba(246, 164, 44, .7); }
.tg-3d__x .tg-navguia__abrir svg { width: 22px; height: 22px; stroke-width: 2.4; }
/* En escritorio, el «?» va bajo el botón de la hora del día (.tg-3d.is-explorando .tg-3d__escena, ver arriba), en
   la misma columna que el sonido: 100px bajo el borde de arriba de esa columna (216px) deja sonido → hora → «?»
   con el mismo gap de 8px entre los tres — ojo, .tg-3d__hora-btn mide 40px (.tg-3d__btn), no 44px como .tg-3d__x-btn
   (antes el top era 196px, dejando 20px de hueco con la hora y 88px con el sonido — ninguno de los dos números se
   había recalculado junto con el otro). */
.tg-3d__x:not(.es-tactil) .tg-3d__x-escena > .tg-3d__x-guiabtn { position: absolute; top: 100px; right: 0; }
.tg-navguia__abrir[aria-expanded="true"] { background: var(--tg-ambar); color: var(--tg-tinta, #1D2B2F); }
@keyframes tg-navguia-sube { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes tg-navguia-mira { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@media (max-width: 639.98px) {
    /* En el celular: sobre el joystick y el botón del banderín, en una columna compacta. */
    .tg-navguia { padding-bottom: max(250px, calc(env(safe-area-inset-bottom) + 238px)); }
    .tg-navguia__caja { padding: 12px 12px 10px; }
    .tg-navguia__desc, .tg-navguia__nota { display: none; }
    .tg-navguia__titulo { margin-bottom: 8px; }
    .tg-navguia__pie { margin-top: 8px; }
    .tg-navguia__titulo { font-size: 16px; }
    .tg-navguia__pasos { grid-template-columns: 1fr; gap: 6px; }
    .tg-navguia__paso { grid-template-columns: 44px 1fr; justify-items: start; align-items: center; gap: 10px; padding: 8px 10px; text-align: left; }
    .tg-navguia__icono { width: 44px; height: 44px; }
    .tg-navguia__icono svg { width: 24px; height: 24px; }
}
@media (max-height: 520px) and (orientation: landscape) {
    .tg-navguia { padding-bottom: 12px; }
    .tg-navguia__paso { padding: 8px; }
    .tg-navguia__desc, .tg-navguia__nota { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .tg-navguia__caja, .tg-navguia__paso[data-paso="mirar"] .tg-navguia__icono svg { animation: none; }
}
.tg-navguia.es-quieto .tg-navguia__caja, .tg-navguia.es-quieto .tg-navguia__icono svg { animation: none; }
html[data-tg-calidad="bajo"] .tg-navguia__caja { background: rgba(2, 47, 56, .96); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* filtros-lotes */
/* Mejora 7 (23-oct-2026): filtros de lotes por precio desde–hasta, área y «solo disponibles» (filtros-lotes.js). El
   mismo panel sirve en la maqueta 3D (.tg-3d .tg-fl) y fuera de ella (plano 2D y lista, .tg-fl suelto). Botones y
   controles de 44 px como mínimo. Lo de fuera del filtro se atenúa en el 2D y en la lista igual que en el 3D. */
.tg-fl { --tg-fl-alto: 44px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-family: var(--tg-fuente); color: var(--tg-tinta); }
.tg-fl > .tg-fl__abrir { order: 3; }
.tg-fl > .tg-fl__resumen { order: 2; }
.tg-fl > .tg-fl__panel { order: 1; }
.tg-fl__abrir { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tg-fl-alto); padding: 0 16px 0 12px; border: 2px solid var(--tg-petroleo); border-radius: 999px; background: #fff; color: var(--tg-petroleo); font: 700 14px/1 var(--tg-fuente); cursor: pointer; box-shadow: 0 4px 14px rgba(3, 66, 78, .18); touch-action: manipulation; }
.tg-fl__abrir svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.tg-fl__abrir.is-activo { background: var(--tg-petroleo); color: #fff; }
.tg-fl__abrir:focus-visible, .tg-fl :is(button, input):focus-visible { outline: 3px solid var(--tg-ambar); outline-offset: 2px; }
.tg-fl__panel { box-sizing: border-box; width: min(340px, calc(100vw - 32px)); max-height: min(560px, calc(100% - 80px)); overflow: auto; overscroll-behavior: contain; padding: 14px 16px 12px; border-radius: 16px; background: #fff; box-shadow: var(--tg-sombra-fuerte); animation: tg-entra .2s ease both; }
.tg-fl__panel[hidden], .tg-fl__resumen[hidden], .tg-fl__grupo[hidden], .tg-fl__atajos[hidden] { display: none; }
.tg-fl__cabeza { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--tg-petroleo); font-size: 16px; }
.tg-fl__cerrar { display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -10px -8px 0; border: 0; border-radius: 50%; background: none; color: var(--tg-petroleo); font: 400 28px/1 var(--tg-fuente); cursor: pointer; }
.tg-fl__atajos { display: grid; gap: 6px; margin-bottom: 10px; }
.tg-fl__atajo { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: var(--tg-fl-alto); padding: 0 14px; border: 2px solid var(--tg-linea); border-radius: 12px; background: #fff; color: var(--tg-petroleo); font: 700 14px/1.2 var(--tg-fuente); text-align: left; cursor: pointer; touch-action: manipulation; }
.tg-fl__atajo small { color: var(--tg-gris); font-size: 12px; font-weight: 600; }
.tg-fl__atajo:hover { border-color: var(--tg-ambar); }
.tg-fl__atajo[aria-pressed="true"] { border-color: var(--tg-petroleo); background: var(--tg-petroleo); color: #fff; }
.tg-fl__atajo[aria-pressed="true"] small { color: #CFE4E6; }
.tg-fl__grupo { min-width: 0; margin: 0 0 10px; padding: 0; border: 0; }
.tg-fl__leyenda { padding: 0; margin-bottom: 2px; color: var(--tg-tinta-suave); font-size: 13px; font-weight: 800; }
/* El doble deslizador: dos range sobre la misma pista; solo los pulgares reciben el toque. */
.tg-fl__pista { position: relative; height: var(--tg-fl-alto); }
.tg-fl__pista::before { content: ""; position: absolute; left: 11px; right: 11px; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--tg-linea); }
.tg-fl__tramo { position: absolute; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--tg-petroleo); }
.tg-fl__rango { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; background: none; -webkit-appearance: none; appearance: none; pointer-events: none; }
.tg-fl__rango::-webkit-slider-runnable-track { height: 100%; background: none; }
.tg-fl__rango::-moz-range-track { background: none; }
.tg-fl__rango::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: 8px; border: 3px solid var(--tg-petroleo); border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(3, 66, 78, .3); pointer-events: auto; cursor: grab; }
.tg-fl__rango::-moz-range-thumb { width: 22px; height: 22px; border: 3px solid var(--tg-petroleo); border-radius: 50%; background: #fff; pointer-events: auto; cursor: grab; }
.tg-fl__rango:focus-visible { outline: none; }
.tg-fl__rango:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--tg-ambar); outline-offset: 2px; }
.tg-fl__rango:focus-visible::-moz-range-thumb { outline: 3px solid var(--tg-ambar); outline-offset: 2px; }
.tg-fl__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tg-fl__campo { display: grid; gap: 2px; color: var(--tg-gris); font-size: 12px; font-weight: 700; }
.tg-fl__num { box-sizing: border-box; width: 100%; min-height: var(--tg-fl-alto); padding: 0 10px; border: 2px solid var(--tg-linea); border-radius: 10px; background: #fff; color: var(--tg-tinta); font: 700 15px/1 var(--tg-fuente); user-select: text; -webkit-user-select: text; }
.tg-fl__solo { display: flex; align-items: center; gap: 10px; min-height: var(--tg-fl-alto); color: var(--tg-tinta); font-size: 14px; font-weight: 700; cursor: pointer; }
.tg-fl__check { width: 22px; height: 22px; margin: 0; accent-color: var(--tg-petroleo); }
/* Ubicación (AYB-0001): niveles en tres columnas (cualquiera) y ventajas en chips (todas), cada uno con su conteo. */
.tg-fl__ubic[hidden], .tg-fl__defs[hidden], .tg-fl__accion[hidden] { display: none; }
.tg-fl__ubic { padding-top: 10px; border-top: 1px solid var(--tg-linea-suave); }
.tg-fl__niveles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tg-fl__ventajas { display: flex; flex-wrap: wrap; gap: 6px; }
.tg-fl__chip { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tg-fl-alto); padding: 0 12px; border: 2px solid var(--tg-linea); border-radius: 12px; background: #fff; color: var(--tg-petroleo); font: 700 14px/1.2 var(--tg-fuente); text-align: left; cursor: pointer; touch-action: manipulation; transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .1s ease; }
.tg-fl__chip--nivel { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 56px; padding: 6px 10px; }
.tg-fl__chip small { color: var(--tg-gris); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tg-fl__chip:hover { border-color: var(--tg-ambar); }
.tg-fl__chip:active { transform: scale(.97); }
.tg-fl__chip[aria-pressed="true"] { border-color: var(--tg-petroleo); background: var(--tg-petroleo); color: #fff; }
.tg-fl__chip[aria-pressed="true"] small { color: #CFE4E6; }
.tg-fl__chip.is-cero { border-style: dashed; color: var(--tg-gris); }
.tg-fl__regla { margin: 8px 0 0; color: var(--tg-gris); font-size: 13px; font-weight: 500; line-height: 1.45; }
.tg-fl__enlace { display: inline-flex; align-items: center; min-height: var(--tg-fl-alto); padding: 0; border: 0; background: none; color: #065665; font: 700 14px/1.2 var(--tg-fuente); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tg-fl__defs { display: grid; gap: 6px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--tg-fondo); font-size: 13px; line-height: 1.4; }
.tg-fl__defs dt { display: inline; color: var(--tg-petroleo); font-weight: 800; }
.tg-fl__defs dt::after { content: ", "; }
.tg-fl__defs dd { display: inline; margin: 0; color: var(--tg-tinta-suave); }
/* Ningún lote cumple: la causa bajo el título y la salida en ámbar. */
.tg-fl__causa { display: block; margin-top: 4px; color: var(--tg-tinta-suave); font-size: 13px; font-weight: 600; }
.tg-fl.is-vacio .tg-fl__accion--ubic { border-color: var(--tg-ambar); background: var(--tg-ambar); color: var(--tg-tinta); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .tg-fl__chip { transition: none; } .tg-fl__chip:active { transform: none; } }
/* La insignia de la clasificación (ficha y lista): Premium con dos puntos en ámbar claro, Plus con uno en turquesa
   claro; siempre escrita. Contraste: Premium 6.6:1, Plus 7:1. Estándar no lleva nada. */
.tg-ub-insignia { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 800 12px/1.3 var(--tg-fuente); white-space: nowrap; }
.tg-ub-insignia svg { flex: none; fill: currentColor; }
.tg-ub-insignia--premium { background: var(--tg-ambar-100); color: var(--tg-ambar-tinta); }
.tg-ub-insignia--plus { background: #D9F1EF; color: #00574F; }
.tg-ub-porque { display: grid; gap: 6px; }
.tg-ub-porque__titulo { margin: 0; color: var(--tg-tinta); font: 800 13px/1.3 var(--tg-fuente); }
.tg-ub-porque__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tg-ub-porque__chips li { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--tg-petroleo-100); color: var(--tg-petroleo); font: 700 13px/1.2 var(--tg-fuente); }
.tg-fl__nota { margin: 6px 0 0; color: var(--tg-gris); font-size: 11px; font-weight: 500; line-height: 1.35; }
.tg-fl__resumen { box-sizing: border-box; max-width: min(420px, calc(100vw - 32px)); padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .96); box-shadow: 0 4px 14px rgba(3, 66, 78, .2); }
.tg-fl__contador { margin: 0 0 8px; color: var(--tg-petroleo); font-size: 14px; font-weight: 800; line-height: 1.3; }
.tg-fl__acciones { display: flex; flex-wrap: wrap; gap: 6px; }
.tg-fl__accion { min-height: var(--tg-fl-alto); padding: 0 14px; border: 2px solid var(--tg-petroleo); border-radius: 999px; background: #fff; color: var(--tg-petroleo); font: 700 13px/1 var(--tg-fuente); cursor: pointer; touch-action: manipulation; }
.tg-fl__accion:first-child { border-color: var(--tg-ambar); background: var(--tg-ambar); color: var(--tg-tinta); }
.tg-fl__accion[aria-pressed="true"] { background: var(--tg-petroleo); color: #fff; }
.tg-fl__accion--quitar { border-color: transparent; text-decoration: underline; }
.tg-fl__accion:disabled { opacity: .45; cursor: default; }

/* En la maqueta: arriba a la derecha, bajo la barra y a la izquierda de la brújula y los botones redondos (el pie es de
   la pista, la ficha y la leyenda). El botón arriba; el contador y el panel, debajo. */
.tg-3d .tg-fl { position: absolute; top: 106px; right: 58px; z-index: 4; flex-direction: column; max-height: calc(100% - 118px); pointer-events: none; }
.tg-3d .tg-fl > * { pointer-events: auto; }
.tg-3d:not(.is-explorando) .tg-fl > * { order: 0; }
.tg-3d:not(.is-explorando) .tg-fl__resumen { max-width: 360px; }
.tg-3d:not(.is-explorando) .tg-fl__panel { max-height: calc(100% - 200px); min-height: 200px; }
/* 28-oct-2026 (pedido del cliente): «Filtros» va al costado de «Experiencia inmersiva»/«Visita guiada» (la fila
   `acciones`, ver plano3d.js: crearPanel(acciones, …)), no suelto sobre la maqueta como la regla de arriba. Mismo
   patrón que el de explorando/`.tg-3d__x-derecha` (más abajo): ancla relativa, no absoluta sobre toda la caja, así
   el botón mide lo mismo que sus hermanos de fila y no la estira; el resumen/panel flotan debajo sin empujar nada.
   quitarFiltros() (explorar.js) lo devuelve aquí mismo al salir (ctx.filtrosHogar), no a `caja` suelto. */
.tg-3d__acciones .tg-fl { position: relative; top: auto; right: auto; bottom: auto; left: auto; display: block; max-height: none; z-index: 10; }
.tg-3d__acciones .tg-fl > * { order: 0; }
.tg-3d__acciones .tg-fl__resumen, .tg-3d__acciones .tg-fl__panel { position: absolute; top: calc(100% + 8px); right: 0; left: auto; }
.tg-3d__acciones .tg-fl__panel { max-height: min(70vh, 560px); }
/* AYB-0001: en la fila de acciones, la regla de la maqueta de arriba (.tg-3d:not(.is-explorando) .tg-fl__panel, más
   específica) dejaba el panel en su min-height de 200 px (el 100 % es el alto del botón) y el resumen al ancho del
   botón. Con la sección Ubicación el panel crece: alto por viewport y resumen a su ancho natural. */
.tg-3d:not(.is-explorando) .tg-3d__acciones .tg-fl__panel { max-height: min(70vh, 560px); min-height: 0; }
.tg-3d__acciones .tg-fl__resumen { width: max-content; max-width: min(360px, calc(100vw - 32px)); }
/* Dentro del panel abierto, el resumen es el pie fijo (sticky, más abajo): sin el top/right del resumen flotante, que
   lo empujaban fuera de la vista y escondían el contador y «Ningún lote cumple.». */
.tg-3d__acciones .tg-fl__panel .tg-fl__resumen { top: auto; right: auto; width: auto; }
/* Con el panel abierto, la barra (z-index 2) queda sobre la ficha del lote (z-index 3): el panel es un diálogo. */
.tg-3d__barra:has(.tg-fl.is-abierto) { z-index: 6; }
/* Explorando: abajo a la izquierda (en táctil, sobre el joystick). */
.tg-3d.is-explorando .tg-fl { top: auto; right: auto; left: 12px; bottom: 64px; align-items: flex-start; z-index: 5; }
@media (pointer: coarse) { .tg-3d.is-explorando .tg-fl { bottom: calc(max(24px, env(safe-area-inset-bottom)) + 150px); } }
/* 27-oct-2026 (pedido del cliente, solo escritorio — ponerFiltros() en explorar.js no lo muda en táctil): «Filtros»
   pasa a la fila de «Vuela con Tigo». Ancla relativa (no absoluta sobre toda la caja, como arriba): así el botón
   mide lo mismo que sus hermanos de fila y no la estira, y el resumen/panel flotan debajo sin empujar nada. El
   `order: 0` en todos sus hijos abre hacia abajo (como en la maqueta, línea 882) — acá, al revés que al pie, el
   botón queda arriba, no abajo. Se resetea el `max-height` heredado de la línea 880 (calc(100% - 118px)): con
   .tg-fl de alto chico (solo el botón, 44px, porque el panel ya no está en flujo), ese 100% se vuelve casi 0 y
   colapsaba el panel a unos 26px. El panel pide su propio tope en viewport (no en % del padre), como una hoja
   flotante bajo el botón. */
.tg-3d.is-explorando .tg-3d__x:not(.es-tactil) .tg-3d__x-derecha .tg-fl { position: relative; top: auto; right: auto; bottom: auto; left: auto; display: block; max-height: none; z-index: 10; }
.tg-3d.is-explorando .tg-3d__x:not(.es-tactil) .tg-3d__x-derecha .tg-fl > * { order: 0; }
.tg-3d.is-explorando .tg-3d__x:not(.es-tactil) .tg-3d__x-derecha .tg-fl__resumen,
.tg-3d.is-explorando .tg-3d__x:not(.es-tactil) .tg-3d__x-derecha .tg-fl__panel { position: absolute; top: calc(100% + 8px); left: 0; }
.tg-3d.is-explorando .tg-3d__x:not(.es-tactil) .tg-3d__x-derecha .tg-fl__panel { max-height: min(70vh, 560px); }
/* 28-oct-2026 (pedido del cliente): Filtros se muda a la barra de vuelo.js en libre (ver crearVuelo, filtros) —
   mismo patrón «miembro de fila flex» que .tg-3d__x-derecha .tg-fl, de arriba. .tg-vuelo es HERMANO de .tg-3d__x,
   no su hijo (ambos cuelgan de .tg-3d.is-explorando) — por eso el selector no pasa por .tg-3d__x; tactil no hace
   falta excluirlo aquí tampoco, porque explorar.js ya no pasa `filtros` a crearVuelo() en táctil. Con
   [data-modo="libre"] en el selector (no solo .tg-vuelo__acciones .tg-fl): sin eso, su `display: block` le gana
   en especificidad al `display: none` de la regla tg-vuelo__l de guiado (arriba, en vuelo.js) y Filtros no se
   llega a ocultar ahí. */
.tg-3d.is-explorando .tg-vuelo[data-modo="libre"] .tg-vuelo__acciones .tg-fl { position: relative; top: auto; right: auto; bottom: auto; left: auto; display: block; max-height: none; z-index: 10; }
.tg-3d.is-explorando .tg-vuelo[data-modo="libre"] .tg-vuelo__acciones .tg-fl > * { order: 0; }
.tg-3d.is-explorando .tg-vuelo[data-modo="libre"] .tg-vuelo__acciones .tg-fl__resumen,
.tg-3d.is-explorando .tg-vuelo[data-modo="libre"] .tg-vuelo__acciones .tg-fl__panel { position: absolute; top: calc(100% + 8px); left: 0; }
.tg-3d.is-explorando .tg-vuelo[data-modo="libre"] .tg-vuelo__acciones .tg-fl__panel { max-height: min(70vh, 560px); }
/* AYB-0001: igual que en la maqueta, dentro del panel abierto el resumen vuelve a ser el pie fijo. */
.tg-3d.is-explorando .tg-3d__x:not(.es-tactil) .tg-3d__x-derecha .tg-fl__panel .tg-fl__resumen,
.tg-3d.is-explorando .tg-vuelo[data-modo="libre"] .tg-vuelo__acciones .tg-fl__panel .tg-fl__resumen { top: auto; left: auto; }
/* No se ve en la bienvenida, en la cinemática (ya la oculta .tg-cine) ni con el mapa de explorar encima. */
.tg-3d:has(.tg-3d__intro:not([hidden])) .tg-fl,
.tg-3d:has(.tg-3d__x-mapa:not([hidden])) .tg-fl { display: none; }
/* Los números de los lotes fuera del filtro se apagan; los de dentro se ven siempre. */
.tg-3d__et--lote[data-filtro="fuera"] { opacity: .3 !important; }
.tg-3d__et--lote[data-filtro="dentro"] { border-color: #00897B; }

/* Celular: el botón queda abajo y el panel sale como hoja desde abajo, a todo el ancho. */
@media (max-width: 639.98px) {
    .tg-3d:not(.is-explorando) .tg-fl { top: auto; right: 10px; bottom: 52px; flex-direction: column-reverse; }
    /* AYB-0001: estas reglas del celular son de cuando el botón flotaba suelto sobre la maqueta. En la fila de acciones
       (position: relative, desde el 28-oct) su bottom (52 o 92 px) y su top (150 px) lo desplazaban fuera de la caja,
       bajo la barra de progreso. Ahí no se desplaza (!important: las de abajo son más específicas). */
    .tg-3d__acciones .tg-fl { top: auto !important; right: auto !important; bottom: auto !important; left: auto !important; }
    /* La hoja desde abajo: sin el top: calc(100% + 8px) del panel flotante de la fila de acciones (ya venía de dev),
       que la dejaba fuera de la pantalla. */
    .tg-3d .tg-3d__acciones .tg-fl__panel { top: auto; right: 0; left: 0; bottom: 0; }
    .tg-3d .tg-fl__panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; width: auto; max-height: 72vh !important; min-height: 0 !important; padding-bottom: max(14px, env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
    .tg-3d:not(.is-explorando):has(.tg-3d__ficha:not([hidden])) .tg-fl { top: 150px; bottom: auto; flex-direction: column; }
    .tg-3d .tg-fl__resumen { max-width: calc(100vw - 20px) !important; }
    .tg-3d .tg-fl__contador { font-size: 13px; }
    /* La pista inicial ocupa el pie: el botón queda encima de ella. */
    .tg-3d:not(.is-explorando):has(.tg-3d__pista:not(.is-oculta)) .tg-fl:not(.is-abierto) { bottom: 92px; }
}
@media (prefers-reduced-motion: reduce) { .tg-fl__panel { animation: none; } }
html[data-tg-calidad="bajo"] .tg-fl__abrir, html[data-tg-calidad="bajo"] .tg-fl__resumen { box-shadow: none; }

/* El plano 2D (compra.js, svg.plano-svg) y la lista de lotes: lo de fuera, tenue; lo de dentro, con borde marcado. */
.plano-svg path.lote[data-filtro="fuera"] { opacity: .22; }
.plano-svg path.lote[data-filtro="dentro"] { stroke: #00897B; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.plano-svg text.num[data-filtro="fuera"] { opacity: .25; }
[data-lote][data-filtro="fuera"]:not([aria-pressed="true"]) { filter: grayscale(1) opacity(.4); } /* filter: la entrada de los botones anima opacity */
[data-lote][data-filtro="dentro"] { box-shadow: inset 0 0 0 2px #00897B; }
/* El panel fuera de la maqueta (sobre el plano 2D o la lista): un bloque en el flujo. */
.tg-fl--suelto { align-items: stretch; margin: 0 0 12px; }
.tg-fl--suelto .tg-fl__abrir { align-self: flex-start; }
.tg-fl--suelto .tg-fl__panel { width: 100%; }
.tg-fl--suelto > * { order: 0 !important; }
/* El contador y sus acciones, al pie del panel abierto. */
.tg-fl__panel .tg-fl__resumen { position: sticky; bottom: -12px; max-width: none !important; margin: 8px -16px -12px; padding: 10px 16px 12px; border-radius: 0; border-top: 1px solid var(--tg-linea); box-shadow: none; background: #fff; }
/* Explorando en el celular, con el panel cerrado: solo el contador, corto (las acciones están en el panel). */
@media (max-width: 639.98px) {
    .tg-3d.is-explorando .tg-fl:not(.is-abierto) .tg-fl__acciones { display: none; }
    .tg-3d.is-explorando .tg-fl:not(.is-abierto) .tg-fl__resumen { max-width: calc(100vw - 110px) !important; padding: 6px 10px; }
    .tg-3d.is-explorando .tg-fl:not(.is-abierto) .tg-fl__contador { margin: 0; font-size: 12px; }
}
/* Maqueta del celular con la ficha del lote abierta: el contador se guarda (la ficha manda); en el recorrido solo
   queda «Detener recorrido». */
@media (max-width: 639.98px) {
    .tg-3d:not(.is-explorando):has(.tg-3d__ficha:not([hidden])) .tg-fl:not(.is-abierto):not([data-recorriendo]) .tg-fl__resumen { display: none; }
    .tg-3d:not(.is-explorando):has(.tg-3d__ficha:not([hidden])) .tg-fl[data-recorriendo]:not(.is-abierto) :is(.tg-fl__contador, .tg-fl__accion:not([aria-pressed="true"])) { display: none; }
    .tg-3d:not(.is-explorando):has(.tg-3d__ficha:not([hidden])) .tg-fl[data-recorriendo]:not(.is-abierto) .tg-fl__resumen { padding: 6px; }
}
