/* ==========================================================================
   VRTICE 360° — TOUR & MICROSITE STYLES (ESTILO EDITORIAL SUIZO + VIP FLUTED GLASS)
   Visor 360° Nítido, Bottom Sheets, Silos #t y #h, Micrositio #r, Mapas y Candado VIP
   ========================================================================== */

/* ==================== MICRO-SITIO (#r/:realtorId) ==================== */
.microsite-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: rgba(242, 242, 240, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  padding: calc(12px + var(--safe-top)) max(20px, calc((100% - 1120px) / 2)) 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-primary);
}
.microsite-brand {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.microsite-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 20px 12px;
}

.profile-hero {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface-card);
  border: var(--border-hairline);
  box-shadow: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.profile-id {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 660px;
}
.profile-id img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(17, 17, 17, 0.16);
  flex-shrink: 0;
}
.profile-eyebrow {
  display: inline-block;
  font-size: 0.71rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}
.profile-id h1 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
}
.profile-id .sub {
  font-size: 0.84rem;
  color: var(--ink-secondary);
  margin: 3px 0 6px;
}
.profile-id .bio {
  font-size: 0.86rem;
  color: var(--ink-secondary);
  line-height: 1.50;
}
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 210px;
}

.op-pills {
  display: inline-flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px;
  margin-bottom: 18px;
  background: var(--switch-bg);
  border: var(--border-hairline);
  border-radius: var(--radius-card);
  max-width: 100%;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.op-pills::-webkit-scrollbar {
  display: none;
}
.op-pill {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--radius-btn);
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.op-pill:hover:not(.active) {
  color: var(--ink-primary);
}
.op-pill.active {
  background: var(--accent-primary);
  color: #FFFFFF;
  box-shadow: none;
  font-weight: 600;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.space-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface-card);
  border: var(--border-hairline);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.space-card.clickable {
  cursor: pointer;
}
.space-card.clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 17, 17, 0.28);
}
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-subtle);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge-360 {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #FFFFFF;
  background: var(--accent-vermilion);
  border: 0;
  box-shadow: none;
}
.badge-top-right {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}
.badge-cat {
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--ink-primary);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 17, 17, 0.10);
  box-shadow: none;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.card-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.card-title-row h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-primary);
}
.card-price {
  font-size: 0.96rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
}
.card-loc {
  font-size: 0.81rem;
  color: var(--ink-secondary);
}
.card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.79rem;
  color: var(--ink-secondary);
}
.card-cta-link {
  color: var(--ink-primary);
  font-weight: 600;
  transition: color 0.18s ease;
}
.space-card.clickable:hover .card-cta-link {
  color: var(--accent-vermilion);
}
.microsite-foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: var(--border-hairline);
  display: flex;
  justify-content: center;
}

/* ==================== SILO DE TOUR DIRECTO (#t/... y #h/...) ==================== */
#directTourRoot {
  display: none;
}
body.silo-tour #directTourRoot {
  display: block;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  z-index: var(--z-tour-root, 500);
}

.dt-viewer-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #10151C;
}
.dt-viewer-canvas iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.pano-canvas {
  position: absolute;
  inset: 0;
  background-size: auto 120%;
  background-repeat: repeat-x;
  background-position: 50% 50%;
  cursor: grab;
  touch-action: none;
}
.pano-canvas:active {
  cursor: grabbing;
}
.pano-webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #141412;
  filter: none;
}
.pano-zoom-controls {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 18;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pano-zoom-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-primary);
  background: rgba(242, 242, 240, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(17, 17, 17, 0.14);
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.12);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.pano-zoom-btn:hover {
  background: #FFFFFF;
  border-color: var(--ink-primary);
  color: var(--accent-vermilion);
}
.pano-drag-hint {
  position: absolute;
  left: 50%;
  bottom: calc(136px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 16;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(17, 17, 17, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.pano-drag-hint.is-hidden {
  opacity: 0;
  transform: translate(-50%, 6px);
}
.pano-webgl-canvas.is-placing {
  cursor: crosshair !important;
}

/* ==================== CAPA 3D -> 2D DE HOTSPOTS Y TARJETA EDITORIAL ==================== */
.pano-hotspots-layer {
  position: absolute;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  overflow: hidden;
}
.pano-fade-veil {
  position: absolute;
  inset: 0;
  z-index: 15;
  background: #141412;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}
.pano-fade-veil.is-fading {
  opacity: 0.78;
}
.pano-hotspot {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
  touch-action: none;
  font-family: inherit;
  will-change: transform;
}
.pano-hotspot.is-editable {
  cursor: grab;
}
.pano-hotspot.is-editable.is-dragging {
  cursor: grabbing;
  z-index: 8;
}
.pano-hotspot-nav {
  min-width: 44px;
  min-height: 44px;
  padding: 4px 6px;
  gap: 2px;
  background: transparent;
  border: none;
}
.pano-hotspot-nav-ring {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.38), inset 0 1px 4px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: perspective(180px) rotateX(var(--floor-tilt, 62deg)) scale(var(--depth-scale, 0.88));
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.pano-hotspot-nav-ring-inner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  transition: border-color 180ms ease, transform 180ms ease;
}
.pano-hotspot-nav-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-vermilion);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}
.pano-hotspot-nav:hover .pano-hotspot-nav-ring,
.pano-hotspot-nav:focus-visible .pano-hotspot-nav-ring,
.pano-hotspot-nav.is-selected .pano-hotspot-nav-ring {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.44), 0 0 0 3px rgba(238, 66, 34, 0.28);
  transform: perspective(180px) rotateX(var(--floor-tilt, 62deg)) scale(calc(var(--depth-scale, 0.88) * 1.14));
}
.pano-hotspot-nav:hover .pano-hotspot-nav-ring-inner,
.pano-hotspot-nav:focus-visible .pano-hotspot-nav-ring-inner,
.pano-hotspot-nav.is-selected .pano-hotspot-nav-ring-inner {
  border-color: var(--accent-vermilion);
}
.pano-hotspot-nav:hover .pano-hotspot-nav-dot,
.pano-hotspot-nav:focus-visible .pano-hotspot-nav-dot,
.pano-hotspot-nav.is-selected .pano-hotspot-nav-dot {
  opacity: 1;
  transform: scale(1);
}
.pano-hotspot-label {
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.44);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
  white-space: nowrap;
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.22);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.pano-hotspot-nav:hover .pano-hotspot-label,
.pano-hotspot-nav:focus-visible .pano-hotspot-label,
.pano-hotspot-nav.is-selected .pano-hotspot-label {
  background: rgba(17, 17, 17, 0.88);
  color: #FFFFFF;
  border-color: var(--accent-vermilion);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.pano-hotspot-info {
  width: 44px;
  height: 44px;
  gap: 0;
}
.pano-hs-info-pin {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.50);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 10px rgba(17, 17, 17, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.pano-hotspot-info:hover .pano-hs-info-pin,
.pano-hotspot-info:focus-visible .pano-hs-info-pin,
.pano-hotspot-info.is-selected .pano-hs-info-pin {
  background: rgba(17, 17, 17, 0.84);
  border-color: var(--accent-vermilion);
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.34), 0 0 0 3px rgba(238, 66, 34, 0.22);
  transform: scale(1.12);
}
.pano-hs-info-label {
  position: absolute;
  top: calc(50% + 16px);
  left: 50%;
  transform: translate(-50%, 3px);
  opacity: 0;
  pointer-events: none;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(17, 17, 17, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.70rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.20);
  transition: opacity 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}
.pano-hotspot-info:hover .pano-hs-info-label,
.pano-hotspot-info:focus-visible .pano-hs-info-label,
.pano-hotspot-info.is-editable .pano-hs-info-label,
.pano-hotspot-info.is-selected .pano-hs-info-label {
  opacity: 1;
  transform: translate(-50%, 0);
}
.pano-hotspot-info.is-selected .pano-hs-info-label {
  border-color: var(--accent-vermilion);
}

.pano-info-card {
  position: absolute;
  left: 50%;
  bottom: calc(136px + var(--safe-bottom));
  transform: translate(-50%, 10px);
  z-index: 26;
  width: min(370px, calc(100% - 28px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  box-shadow: 0 20px 44px rgba(17, 17, 17, 0.24);
  color: var(--ink-primary);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.pano-info-card.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.pano-info-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pano-info-card-titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.pano-info-card-titles h3 {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink-primary);
}
.pano-info-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent-vermilion);
  color: #FFFFFF;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pano-info-desc {
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-secondary);
}
.pano-info-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: var(--bg-canvas);
  color: var(--ink-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.pano-info-close:hover {
  background: var(--ink-primary);
  color: #FFFFFF;
  border-color: var(--ink-primary);
}

@media (prefers-reduced-motion: reduce) {
  .pano-fade-veil,
  .pano-info-card,
  .pano-hotspot-nav-ring,
  .pano-hotspot-nav-ring-inner,
  .pano-hotspot-nav-dot,
  .pano-hotspot-label,
  .pano-hs-info-pin {
    transition: none;
  }
}

/* ==================== CANDADO VIP CON FLUTED GLASS PANTALLA COMPLETA ==================== */
.pano-canvas.vip-locked-bg {
  cursor: default;
  transform: scale(1.04);
}
.vip-fluted-backdrop {
  position: absolute;
  inset: 0;
  z-index: 22;
  pointer-events: none;
  backdrop-filter: blur(12px) contrast(1.08) saturate(1.12);
  -webkit-backdrop-filter: blur(12px) contrast(1.08) saturate(1.12);
  background-image:
    linear-gradient(180deg, rgba(17, 17, 17, 0.24) 0%, rgba(17, 17, 17, 0.14) 50%, rgba(17, 17, 17, 0.34) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.24) 0px,
      rgba(255, 255, 255, 0.08) 3px,
      rgba(255, 255, 255, 0.02) 7px,
      rgba(17, 17, 17, 0.16) 11px,
      rgba(17, 17, 17, 0.26) 13px,
      rgba(255, 255, 255, 0.20) 14px
    );
}
.vip-gate {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px 24px;
  text-align: center;
  background: var(--surface-card);
  border: 1px solid rgba(17, 17, 17, 0.15);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.28);
  width: min(440px, calc(100vw - 32px));
}
.vip-gate h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}
.vip-gate p {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  max-width: 340px;
  line-height: 1.48;
}
.vip-pin-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  align-items: center;
}
.vip-pin-input {
  width: 136px;
  text-align: center;
  letter-spacing: 0.28em;
  font-size: 16px;
  font-weight: 600;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  background: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.22);
  color: var(--ink-primary);
  outline: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.vip-pin-input:focus {
  border-color: var(--accent-vermilion);
  box-shadow: 0 0 0 3px rgba(238, 66, 34, 0.14);
}
.vip-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
  max-width: 260px;
}

/* ==================== HUD FLOTANTE DEL TOUR ==================== */
.dt-top {
  position: absolute;
  top: calc(12px + var(--safe-top));
  left: 12px;
  right: 12px;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.dt-top > * {
  pointer-events: auto;
}
.dt-top-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.dt-title-pill {
  padding: 10px 16px;
  border-radius: var(--radius-card);
  background: rgba(242, 242, 240, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(17, 17, 17, 0.14);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.12);
  max-width: 440px;
}
.dt-title-pill h1 {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-primary);
}
.dt-title-sub {
  font-size: 0.76rem;
  color: var(--ink-secondary);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.dt-top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.dt-top-right-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.qr-public-icon-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-primary);
  background: rgba(242, 242, 240, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(17, 17, 17, 0.14);
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.10);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.qr-public-icon-btn:hover {
  background: #FFFFFF;
  border-color: var(--ink-primary);
  color: var(--accent-vermilion);
}
.microsite-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.microsite-topbar .qr-public-icon-btn {
  background: #FFFFFF;
  box-shadow: none;
}

.dt-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
  background: rgba(242, 242, 240, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(17, 17, 17, 0.14);
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.10);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.dt-icon-btn:hover {
  background: #FFFFFF;
  border-color: var(--ink-primary);
  color: var(--accent-vermilion);
}
.dt-pres-trigger-btn[hidden] {
  display: none !important;
}
.dt-admin-shortcut-row {
  display: flex;
  justify-content: flex-end;
}
.dt-admin-studio-btn {
  background: rgba(17, 17, 17, 0.88);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.76rem;
  min-height: 36px;
  padding: 6px 12px;
}
.dt-admin-studio-btn:hover {
  background: var(--accent-vermilion);
  border-color: var(--accent-vermilion);
  color: #FFFFFF;
}

/* ==================== MODO PRESENTACIÓN / TV ==================== */
.presentation-mode .dt-top,
.presentation-mode .dt-bottom,
.presentation-mode .pano-zoom-controls,
.presentation-mode .pano-drag-hint,
.presentation-mode .pano-info-card {
  display: none !important;
}
.pres-fade-veil {
  position: absolute;
  inset: 0;
  z-index: 28;
  background: #141412;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.pres-fade-veil.is-fading {
  opacity: 0.82;
}
.pres-bar {
  position: absolute;
  left: 50%;
  bottom: calc(20px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 32;
  width: min(760px, calc(100% - 24px));
  padding: 10px 14px;
  border-radius: var(--radius-card);
  background: rgba(17, 17, 17, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #FFFFFF;
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.pres-bar.is-idle {
  opacity: 0.14;
}
.pres-bar:hover,
.pres-bar:focus-within {
  opacity: 1;
}
.pres-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.pres-title {
  font-size: 0.90rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pres-scene {
  font-size: 0.76rem;
  color: rgba(242, 242, 240, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pres-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pres-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 13px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.80rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.pres-btn:hover,
.pres-btn:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.48);
}
.pres-btn-icon {
  width: 44px;
  padding: 0;
}
.pres-btn-exit {
  background: var(--accent-vermilion);
  border-color: var(--accent-vermilion);
  color: #FFFFFF;
}
.pres-btn-exit:hover,
.pres-btn-exit:focus-visible {
  background: var(--accent-vermilion-hover);
  border-color: var(--accent-vermilion-hover);
}
@media (prefers-reduced-motion: reduce) {
  .pres-fade-veil,
  .pres-bar {
    transition: none;
  }
}

.dt-bottom {
  position: absolute;
  bottom: calc(14px + var(--safe-bottom));
  left: 12px;
  right: 12px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  pointer-events: none;
}
.dt-bottom > * {
  pointer-events: auto;
}
.dt-scenes-bar {
  display: flex;
  gap: 7px;
  max-width: 100%;
  overflow-x: auto;
  padding: 3px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.dt-scenes-bar::-webkit-scrollbar {
  display: none;
}
.dt-scene-chip {
  scroll-snap-align: center;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: rgba(242, 242, 240, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink-primary);
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.08);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.dt-scene-chip:hover:not(.active) {
  background: #FFFFFF;
  color: var(--ink-primary);
  border-color: rgba(17, 17, 17, 0.28);
}
.dt-scene-chip.active {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.24);
  font-weight: 600;
}
.dt-scene-chip.active::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-vermilion);
  flex-shrink: 0;
}

.dt-cta-dock {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: var(--radius-card);
  background: rgba(242, 242, 240, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(17, 17, 17, 0.14);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.16);
  justify-content: center;
}
.dt-advisor-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 4px;
}
.dt-advisor-mini img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(17, 17, 17, 0.16);
}
.dt-advisor-mini div {
  line-height: 1.2;
}
.dt-advisor-mini strong {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-primary);
}
.dt-advisor-mini span {
  font-size: 0.7rem;
  color: var(--ink-secondary);
}

/* ==================== BOTTOM SHEETS / DRAWERS ==================== */
.dt-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer-backdrop, 520);
  background: rgba(17, 17, 17, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
}
.dt-drawer-backdrop.open {
  display: block;
}

.dt-drawer {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: min(420px, calc(100vw - 32px));
  z-index: var(--z-drawer, 530);
  border-radius: var(--radius-window);
  padding: 24px;
  overflow-y: auto;
  background: var(--surface-card);
  border: var(--border-hairline);
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.18);
  transform: translateX(calc(100% + 28px));
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  color: var(--ink-primary);
}
.dt-drawer.open {
  transform: translateX(0);
}

.sheet-grabber {
  display: none;
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: rgba(17, 17, 17, 0.18);
  margin: 0 auto 14px;
  flex-shrink: 0;
}

.dt-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-backdrop, 600);
  background: rgba(17, 17, 17, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.dt-modal-backdrop.open {
  display: flex;
}
.dt-modal {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-window);
  padding: 24px 24px calc(24px + var(--safe-bottom));
  background: var(--surface-card);
  border: var(--border-hairline);
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.22);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeSlide 0.24s ease;
  -webkit-overflow-scrolling: touch;
  color: var(--ink-primary);
}
/* Prevenir colapso vertical por Flexbox de cualquier hijo directo (ej. .op-pills) */
.dt-modal > * {
  flex-shrink: 0;
}
.dt-modal.has-scroll-body {
  overflow: hidden;
  padding-bottom: calc(18px + var(--safe-bottom));
}
.dt-modal-body,
.dt-modal.has-scroll-body > .dt-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 2px;
}
.dt-modal-footer {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: var(--border-hairline);
}
.dt-modal-type-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.dt-modal .op-pills {
  flex-shrink: 0;
  overflow: visible;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.dt-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: var(--border-hairline);
}
.dt-modal-head h2 {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}
.dt-modal-head p {
  font-size: 0.83rem;
  color: var(--ink-secondary);
  margin-top: 3px;
  line-height: 1.4;
}

/* ==================== FORMULARIOS EN TOUR ==================== */
.choice-group label,
.quote-field label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
  margin-bottom: 6px;
  font-weight: 600;
}
.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice-pill {
  min-height: 38px;
  padding: 7px 14px;
  border-radius: var(--radius-btn);
  border: var(--border-hairline);
  background: var(--surface-subtle);
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.choice-pill:hover:not(.active) {
  background: rgba(17, 17, 17, 0.08);
  color: var(--ink-primary);
}
.choice-pill.active {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
  box-shadow: none;
  font-weight: 600;
}

.neutral-hint {
  padding: 10px 12px;
  border-radius: var(--radius-btn);
  background: var(--bg-canvas);
  border: 1px dashed rgba(17, 17, 17, 0.18);
  font-size: 0.78rem;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 14px;
}
.spec-chip {
  padding: 5px 11px;
  border-radius: var(--radius-btn);
  font-size: 0.78rem;
  background: var(--bg-canvas);
  border: var(--border-hairline);
  color: var(--ink-primary);
  font-weight: 500;
}
.detail-desc {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* ==================== MAPA & ANTI-SCROLL-JACKING ==================== */
.map-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: var(--border-hairline);
}
.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.map-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-primary);
}
.map-note {
  font-size: 0.72rem;
  color: var(--ink-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-btn);
  background: var(--bg-canvas);
  border: var(--border-hairline);
}
.map-open-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-vermilion);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: var(--radius-btn);
  background: var(--accent-vermilion-soft);
  border: 1px solid rgba(238, 66, 34, 0.25);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.map-open-link:hover {
  background: var(--accent-vermilion);
  color: #FFFFFF;
}
.map-frame-wrap {
  position: relative;
  width: 100%;
  height: 210px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-canvas);
  border: var(--border-hairline);
}
.map-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Capa anti-scroll-jacking */
.map-touch-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-card);
  transition: opacity 0.2s;
  user-select: none;
}
.map-touch-overlay span {
  padding: 6px 14px;
  border-radius: var(--radius-btn);
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.2);
}
.map-touch-overlay.dismissed {
  opacity: 0;
  pointer-events: none;
}

/* ==================== PANTALLA PAUSADA ==================== */
.tour-paused-screen {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--bg-canvas);
  color: var(--ink-primary);
}

/* ==================== RESPONSIVE TOUR (<= 768px) ==================== */
@media (max-width: 768px) {
  .microsite-topbar {
    padding: calc(10px + var(--safe-top)) 14px 10px;
  }
  .microsite-container {
    padding: 14px 14px 12px;
  }
  .profile-hero {
    padding: 16px;
  }
  .profile-id {
    align-items: flex-start;
  }
  .profile-id img {
    width: 58px;
    height: 58px;
  }
  .profile-actions {
    width: 100%;
  }
  .op-pill {
    min-height: 44px;
    padding: 8px 14px;
  }
  .dt-icon-btn {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 0.80rem;
  }
  .dt-pres-trigger-btn {
    width: 44px;
    min-width: 44px;
    padding: 0;
    justify-content: center;
  }
  .dt-pres-label {
    display: none;
  }
  .dt-admin-studio-btn {
    min-height: 44px;
    padding: 8px 12px;
  }
  .pres-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    bottom: calc(12px + var(--safe-bottom));
  }
  .pres-controls {
    width: 100%;
    justify-content: space-between;
  }
  .pres-controls .pres-btn:not(.pres-btn-icon) {
    flex: 1 1 auto;
    padding: 0 10px;
  }
  .pano-zoom-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .pano-hs-info-pin {
    width: 24px;
    height: 24px;
  }
  .dt-scene-chip {
    min-height: 44px;
    padding: 8px 14px;
    font-size: 0.81rem;
  }
  .choice-pill {
    min-height: 44px;
    padding: 8px 14px;
  }
  .vip-pin-input {
    min-height: 44px;
    font-size: 16px;
  }
  .map-open-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
  }

  /* Drawer y Modales se convierten en Bottom Sheets nativas en móvil */
  .sheet-grabber {
    display: block;
  }
  .dt-drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 88vh;
    max-height: 88dvh;
    border-radius: 16px 16px 0 0;
    padding: 12px 18px calc(24px + var(--safe-bottom));
    transform: translateY(105%);
    background: var(--surface-card);
  }
  .dt-drawer.open {
    transform: translateY(0);
  }

  .dt-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .dt-modal {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 12px 18px calc(22px + var(--safe-bottom));
    animation: sheetUp 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  }
  @keyframes sheetUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  /* Tour Directo optimizado para pulgar */
  .dt-advisor-mini {
    display: none;
  }
  .dt-title-pill {
    padding: 8px 12px;
    border-radius: var(--radius-card);
  }
  .dt-title-pill h1 {
    font-size: 0.88rem;
  }
  .dt-title-sub {
    font-size: 0.72rem;
  }
  .dt-cta-dock {
    width: 100%;
    border-radius: var(--radius-window);
    padding: 7px;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 7px;
  }
  .dt-cta-dock.single-cta {
    grid-template-columns: 1fr;
  }
  .dt-cta-dock .btn-pill {
    width: 100%;
    font-size: 0.8rem;
    padding: 10px 10px;
    min-height: 44px;
  }
}

@media (max-width: 520px) {
  .dt-hide-xs {
    display: none;
  }
}

@media (max-width: 375px) {
  .quote-grid {
    grid-template-columns: 1fr;
  }
}
