/* Motor del mapa 3D (el mismo de la Guía digital del huésped) */
.mapa-demo { --oro: #E7B94F; --noche: #0B1D24; --sans: "Instrument Sans", system-ui, sans-serif; font-variant-numeric: lining-nums; }
.m-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.m-svg text { font-family: var(--sans); }
.m-etq { font-size: 2.3px; font-weight: 600; letter-spacing: .32px; fill: rgba(236,229,214,.8); paint-order: stroke; stroke: #0C1F26; stroke-width: .7px; stroke-linejoin: round; }
.m-etq-chica { font-size: 1.7px; fill: rgba(236,229,214,.5); }
.m-num { font-size: 2px; font-weight: 500; fill: rgba(236,229,214,.55); }
.m-num.resaltado { fill: var(--oro); font-weight: 700; }
.m-chev { fill: none; stroke: #FFF6DE; stroke-width: .55; stroke-linecap: round; stroke-linejoin: round; }
.m-chev.animado { animation: marcha 1.5s linear infinite; animation-delay: calc(var(--i) * 110ms); opacity: .25; }
@keyframes marcha { 0%, 100% { opacity: .2; } 30% { opacity: 1; } }
.m-pulso { transform-box: fill-box; transform-origin: center; animation: pulso 2s ease-out infinite; }
@keyframes pulso { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(3.2); opacity: 0; } }

/* ---------------- VISTA AEREA 3D ---------------- */
.a-escena {
  position: relative; width: 100%; aspect-ratio: 1 / 1.1;
  perspective: 1600px; perspective-origin: 50% 50%;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
}
.a-pila {
  --rx: 60deg;
  position: absolute; left: 50%; top: calc(50% + var(--desf, 0px));
  width: var(--tam, 64%); aspect-ratio: 1;
  transform: translate(-50%, -50%) rotateX(var(--rx)) rotateZ(var(--rz, -32deg));
  transform-style: preserve-3d;
}
.a-capa {
  position: absolute; inset: 0;
  transform: translateZ(var(--z));
  transform-style: preserve-3d;
  opacity: .28; filter: saturate(.5);
  transition: opacity .4s;
}
.a-capa.activa { opacity: 1; filter: none; }
.a-capa > .m-svg { filter: drop-shadow(0 18px 18px rgba(0,0,0,.35)); }
.a-etq {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  transform: rotateZ(calc(-1 * var(--rz, -32deg))) rotateX(calc(-1 * var(--rx)));
  transform-style: preserve-3d;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(236,229,214,.7); white-space: nowrap;
}
.a-etq::before { content: attr(data-t); position: absolute; right: 10px; top: -8px; }
.a-capa.activa .a-etq { color: var(--oro); }
.a-punto {
  position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%;
  background: var(--oro); box-shadow: 0 0 8px var(--oro);
  transform: translateZ(var(--z));
}
.a-marca {
  position: absolute; width: 0; height: 0;
  transform: translateZ(calc(var(--z) + 2px)) rotateZ(calc(-1 * var(--rz, -32deg))) rotateX(calc(-1 * var(--rx)));
  transform-style: preserve-3d;
}
.a-marca span {
  position: absolute; bottom: 6px; left: 0; transform: translateX(-50%);
  white-space: nowrap; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
.a-marca span:empty { display: none; }
.a-marca::after { content: ""; position: absolute; width: 2px; height: 6px; left: -1px; bottom: 0; }
.a-aqui span { background: #fff; color: var(--noche); }
.a-aqui::after { background: #fff; }
.a-destino span { background: var(--oro); color: var(--noche); }
.a-destino::after { background: var(--oro); }



.a-piso span { background: none; box-shadow: none; padding: 0; bottom: 4px; left: -6px; transform: translateX(-100%);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(236,229,214,.55); }
.a-piso::after { display: none; }
.a-capa.activa .a-piso span { color: var(--oro); }
.a-letrero { position: absolute; width: 0; height: 0; transform: rotateZ(calc(-1 * var(--rz, -32deg))) rotateX(calc(-1 * var(--rx))); transform-style: preserve-3d; }
.a-letrero span {
  position: absolute; bottom: 7px; left: 0; transform: translateX(-50%);
  width: 22px; height: 22px; border-radius: 6px; background: #0B1D24; border: 1px solid rgba(231,185,79,.65);
  color: var(--oro); display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0,0,0,.4);
}
.a-letrero span svg { width: 14px; height: 14px; }
.a-letrero::after { content: ""; position: absolute; left: -.5px; bottom: 0; width: 1px; height: 7px; background: rgba(231,185,79,.65); }
.a-letrero span { pointer-events: auto; cursor: pointer; transition: transform .2s, background .2s; }
.a-letrero.elegido span { background: var(--oro); color: var(--noche); transform: translateX(-50%) scale(1.35); }
.a-escena { aspect-ratio: auto; height: 100%; }
