/* ============================================================================
   Recorrido 360° · Terreno Comercial · DOMAX
   Interfaz oscura tipo "vidrio" sobre el visor. Móvil primero.
   ========================================================================== */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #1b75bc;
  --brand-2: #4fa3e3;
  --gold: #f0b64a;
  --gold-2: #ffd36e;
  --bg: #0b1017;
  --ink: #f3f6fa;
  --muted: rgba(243, 246, 250, 0.68);
  --glass: rgba(10, 14, 20, 0.58);
  --glass-strong: rgba(10, 14, 20, 0.82);
  --line: rgba(255, 255, 255, 0.14);
  --radius: 14px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
a { color: inherit; }
svg { display: block; }

.noscript {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center;
  text-align: center; padding: 24px; background: var(--bg);
}

/* --- Visor --------------------------------------------------------------- */
#pano {
  position: fixed; inset: 0;
  background: var(--bg);
  touch-action: none;
}
#pano .pnlm-container { background: var(--bg); font-family: inherit; }
#pano .pnlm-load-box, #pano .pnlm-load-button { display: none !important; }
#pano .pnlm-about-msg { display: none !important; }
#pano .pnlm-preview-img { filter: blur(6px) brightness(0.85); transform: scale(1.04); }
#pano .pnlm-error-msg {
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--glass-strong); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; max-width: 320px;
}
#pano .pnlm-hotspot-base { cursor: default; }

/* Flechas para caminar (hotspots propios) */
.hs {
  position: absolute; width: 0; height: 0; z-index: 3; cursor: pointer;
  pointer-events: auto;
}
.hs__inner {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -26px); /* el anillo (52px) queda centrado en el punto */
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 160px; text-align: center;
}
.hs__ring {
  position: relative; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(27, 117, 188, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: grid; place-items: center;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.hs__ring::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  animation: hsPulse 2.2s ease-out infinite;
}
.hs__ring svg { width: 24px; height: 24px; fill: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.hs__label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.01em;
  color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  background: rgba(10, 14, 20, 0.55); padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}
.hs__dist { font-weight: 500; opacity: 0.75; margin-left: 4px; }
.hs:hover .hs__ring, .hs:active .hs__ring { transform: scale(1.1); background: rgba(27, 117, 188, 0.6); }
@keyframes hsPulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* --- Botones ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--glass); color: var(--ink); font-weight: 700; font-size: 14px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s, transform 0.2s var(--ease), border-color 0.2s;
}
.btn:hover { background: rgba(255, 255, 255, 0.14); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn--icon { width: 42px; padding: 0; }
.btn--wa { background: #1f9d55; border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.btn--wa:hover { background: #22ad5e; }
.btn--brand { background: var(--brand); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.btn--brand:hover { background: #2384d1; }
.btn--lg { height: 50px; padding: 0 22px; font-size: 15px; }
.btn--ctrl { height: 40px; font-size: 13px; }
.btn.is-on { background: #fff; color: #0b1017; border-color: #fff; }
.btn.is-disabled { opacity: 0.5; }
.btn:focus-visible, .seg__btn:focus-visible, .point:focus-visible {
  outline: 2px solid var(--brand-2); outline-offset: 2px;
}

/* --- Barra superior ------------------------------------------------------ */
.topbar {
  position: fixed; z-index: 10; left: 0; right: 0; top: 0;
  padding: calc(12px + var(--sat)) calc(14px + var(--sar)) 14px calc(14px + var(--sal));
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  background: linear-gradient(to bottom, rgba(5, 8, 12, 0.72), rgba(5, 8, 12, 0));
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__logo {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); border: 2px solid rgba(255, 255, 255, 0.25);
}
.brand__text { min-width: 0; }
.brand__kicker {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-2); text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.brand__title {
  margin: 2px 0 0; font-size: 17px; font-weight: 800; line-height: 1.15;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand__kicker { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-short { display: none; }
.topbar__actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* --- Minimapa ------------------------------------------------------------ */
.minimap {
  position: fixed; z-index: 9;
  right: calc(14px + var(--sar)); top: calc(78px + var(--sat));
  width: 200px; height: 120px; border-radius: 12px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.minimap svg { width: 100%; height: 100%; }
.mm-road { stroke: rgba(255, 255, 255, 0.22); stroke-width: 9; stroke-linecap: round; fill: none; }
.mm-road-line { stroke: rgba(255, 255, 255, 0.55); stroke-width: 1; stroke-dasharray: 5 4; fill: none; }
.mm-path { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; stroke-dasharray: 3 4; fill: none; }
.mm-cone { fill: rgba(79, 163, 227, 0.4); }
.mm-pt { fill: rgba(255, 255, 255, 0.55); stroke: rgba(11, 16, 23, 0.9); stroke-width: 1.5; cursor: pointer; }
.mm-pt.is-active { fill: var(--brand-2); stroke: #fff; }
.mm-pt-hit { fill: transparent; cursor: pointer; }
.mm-label { font-size: 9.5px; font-weight: 700; fill: rgba(255, 255, 255, 0.85); pointer-events: none; }
.mm-label.is-active { fill: #fff; }
.mm-road-label { font-size: 8px; font-weight: 600; fill: rgba(255, 255, 255, 0.55); letter-spacing: 0.02em; }
.mm-north { font-size: 9px; font-weight: 800; fill: rgba(255, 255, 255, 0.6); }

/* --- Insignia modo propuesta --------------------------------------------- */
.mode-badge {
  position: fixed; z-index: 9; left: 50%; top: calc(84px + var(--sat));
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(10, 14, 20, 0.72); border: 1px solid rgba(240, 182, 74, 0.6);
  color: var(--gold-2); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.4s var(--ease);
}
.mode-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(240, 182, 74, 0.25); }

/* --- Pista --------------------------------------------------------------- */
.hint {
  position: fixed; z-index: 8; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 20px; border-radius: 16px; text-align: center;
  background: var(--glass-strong); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  pointer-events: none; max-width: min(92vw, 420px);
  animation: fadeIn 0.5s var(--ease);
}
.hint strong { font-size: 15px; }
.hint span { font-size: 12.5px; color: var(--muted); }
.hint em { color: var(--gold-2); font-style: normal; font-weight: 700; }
.hint.is-leaving { animation: fadeOut 0.6s var(--ease) forwards; }

/* --- Barra inferior ------------------------------------------------------ */
.bottombar {
  position: fixed; z-index: 10; left: 0; right: 0; bottom: 0;
  padding: 14px calc(14px + var(--sar)) calc(14px + var(--sab)) calc(14px + var(--sal));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(to top, rgba(5, 8, 12, 0.8), rgba(5, 8, 12, 0));
}
.points { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.points::-webkit-scrollbar { display: none; }
.point {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 40px; padding: 0 14px 0 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass); color: var(--ink);
  font-weight: 700; font-size: 13.5px; cursor: pointer;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s, border-color 0.2s;
}
.point__num {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12); font-size: 12px; font-weight: 800;
}
.point:hover { background: rgba(255, 255, 255, 0.14); }
.point.is-active { background: var(--brand); border-color: rgba(255, 255, 255, 0.35); }
.point.is-active .point__num { background: rgba(255, 255, 255, 0.22); }
.point__prop { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px rgba(240,182,74,.25); }

.controls { display: flex; align-items: center; gap: 8px; }
.seg {
  display: inline-flex; padding: 2px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.seg__btn {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent;
  color: var(--muted); font-weight: 700; font-size: 13.5px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.seg__btn.is-active { background: rgba(255, 255, 255, 0.92); color: #0b1017; }
.seg__btn[data-mode="propuesta"].is-active { background: var(--gold); color: #1a1205; }
.seg.is-disabled .seg__btn[data-mode="propuesta"] { opacity: 0.45; cursor: not-allowed; }

/* --- Cargando ------------------------------------------------------------ */
.loader {
  position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  background: rgba(5, 8, 12, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  pointer-events: none; opacity: 1; transition: opacity 0.35s, visibility 0s 0.35s;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__ring { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.loader__ring::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: var(--brand-2);
  animation: spin 1s linear infinite;
}
.loader__ring img { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 8px 30px rgba(0,0,0,.5); animation: pulse 1.6s ease-in-out infinite; }
.loader__text { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* --- Puerta de entrada --------------------------------------------------- */
.gate {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center;
  overflow: hidden; padding: 24px;
}
.gate__bg {
  position: absolute; inset: -6%; background-size: cover; background-position: center;
  background-image: url("../img/frente-thumb.jpg");
  filter: blur(12px) brightness(0.58) saturate(1.15); transform: scale(1.05);
  animation: gateDrift 26s ease-in-out infinite alternate;
}
.gate::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(11, 16, 23, 0.2), rgba(11, 16, 23, 0.8) 75%);
}
.gate__content {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
  text-align: center; max-width: 560px; animation: riseIn 0.8s var(--ease) both;
}
.gate.is-leaving .gate__content { animation: zoomDive 0.75s cubic-bezier(0.55, 0, 1, 0.45) forwards; }
.gate.is-leaving .gate__bg { animation: gateOut 0.75s ease-in forwards; }
.gate__logo { width: 88px; height: 88px; border-radius: 50%; box-shadow: 0 10px 40px rgba(0,0,0,.5); border: 2px solid rgba(255,255,255,.3); margin-bottom: 20px; }
.gate__kicker { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-2); }
.gate__title { margin: 0; font-size: clamp(28px, 6vw, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.gate__sub { margin: 14px 0 0; font-size: 15.5px; color: var(--muted); max-width: 460px; }
.gate__cta {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 28px 0 12px; border-radius: 999px; border: 0;
  background: var(--brand); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer;
  box-shadow: 0 12px 40px rgba(27, 117, 188, 0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.gate__cta:hover { transform: translateY(-1px); box-shadow: 0 16px 48px rgba(27, 117, 188, 0.6); }
.gate__cta:active { transform: scale(0.98); }
.gate__cta-icon {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center;
  animation: pulse 1.8s ease-in-out infinite;
}
.gate__cta-icon svg { width: 20px; height: 20px; fill: #fff; }
.gate__loc { margin: 22px 0 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.gate__loc::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.gate__tip { margin: 6px 0 0; font-size: 12px; color: rgba(243, 246, 250, 0.62); }

/* --- Panel de información ------------------------------------------------ */
.sheet { position: fixed; inset: 0; z-index: 40; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(5, 8, 12, 0.6); animation: fadeIn 0.25s; }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; max-height: 88dvh;
  background: #0f151d; border-radius: 22px 22px 0 0; border: 1px solid var(--line); border-bottom: 0;
  width: min(760px, 100%); margin: 0 auto;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.sheet__panel::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25);
}
.sheet__close {
  position: absolute; right: 12px; top: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #0f151d; cursor: pointer; display: grid; place-items: center;
}
.sheet__close svg { width: 20px; height: 20px; fill: currentColor; }
.sheet__scroll { overflow-y: auto; overscroll-behavior: contain; padding: 30px 22px calc(26px + var(--sab)); -webkit-overflow-scrolling: touch; }
.sheet__kicker { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-2); }
.sheet__title { margin: 0 44px 0 0; font-size: 24px; font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; }
.sheet__loc { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.sheet__loc a { text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,.35); }
.sheet__desc { margin: 16px 0 0; font-size: 15px; color: rgba(243,246,250,.86); }
.highlights { display: grid; gap: 10px; margin-top: 20px; }
.hl { display: flex; gap: 14px; padding: 14px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.hl__icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: rgba(27,117,188,.22); display: grid; place-items: center; }
.hl__icon svg { width: 22px; height: 22px; fill: var(--brand-2); }
.hl h4 { margin: 0; font-size: 15px; font-weight: 800; }
.hl p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.proposal-card {
  margin-top: 22px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, rgba(240,182,74,.14), rgba(240,182,74,.04));
  border: 1px solid rgba(240, 182, 74, 0.35);
}
.proposal-card__media { position: relative; aspect-ratio: 2 / 1; overflow: hidden; }
.proposal-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; }
.proposal-card__tag {
  position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(10,14,20,.7); color: var(--gold-2); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid rgba(240,182,74,.5);
}
.proposal-card__body { padding: 16px 16px 18px; }
.proposal-card__body h3 { margin: 0; font-size: 18px; font-weight: 800; }
.proposal-card__body p { margin: 8px 0 14px; font-size: 14px; color: rgba(243,246,250,.82); }
.sheet__cta { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sheet__phone { font-size: 13px; color: var(--muted); }
.sheet__legal { margin: 22px 0 0; font-size: 12.5px; color: rgba(243,246,250,.62); }
.sheet__footer { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.sheet__footer a { text-decoration: none; }

@media (min-width: 761px) {
  .sheet__panel { bottom: 4vh; border-radius: 22px; border-bottom: 1px solid var(--line); max-height: 90vh; }
  .sheet__scroll { padding: 34px 32px 30px; }
}

/* --- Aviso breve --------------------------------------------------------- */
.pill {
  position: fixed; z-index: 49; left: 50%; bottom: calc(118px + var(--sab)); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: var(--glass-strong); color: var(--ink);
  font-size: 12.5px; font-weight: 700; border: 1px solid var(--line); pointer-events: none;
  animation: fadeIn 0.25s;
}
.pill::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2); border-top-color: var(--brand-2); animation: spin 0.9s linear infinite;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.topbar, .bottombar, .sheet__panel, .minimap, .gate__cta { touch-action: manipulation; }
.toast {
  position: fixed; z-index: 50; left: 50%; bottom: calc(166px + var(--sab)); transform: translateX(-50%);
  padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.92); color: #0b1017;
  font-size: 13px; font-weight: 700; box-shadow: 0 8px 30px rgba(0,0,0,.4); max-width: 90vw; text-align: center;
  animation: riseIn 0.3s var(--ease);
}

/* En táctiles (móvil/tablet) el desenfoque de fondo sobre un canvas que se
   redibuja cada fotograma cuesta caro: se deja solo en minimapa y pista. */
@media (hover: none) {
  .btn, .point, .seg, .hs__ring, .hs__label, .mode-badge, .pill {
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .btn, .point, .seg { background: rgba(10, 14, 20, 0.74); }
  .btn--wa { background: #1f9d55; }
  .btn--brand { background: var(--brand); }
  .btn.is-on { background: #fff; }
  .point.is-active { background: var(--brand); }
  .hs__ring { background: rgba(27, 117, 188, 0.55); }
}

/* --- Animaciones --------------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes zoomDive { 0% { transform: scale(1); opacity: 1; } 60% { opacity: 1; } 100% { transform: scale(7); opacity: 0; filter: blur(3px); } }
@keyframes gateOut { to { opacity: 0; transform: scale(1.25); } }
@keyframes gateDrift { from { transform: scale(1.05) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, 1%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* --- Móvil --------------------------------------------------------------- */
@media (max-width: 640px) {
  .topbar .btn--wa span { display: none; }
  .topbar .btn--wa { width: 42px; padding: 0; }
  .brand__logo { width: 38px; height: 38px; }
  .brand__title { font-size: 15px; }
  .t-long { display: none; }
  .t-short { display: inline; }
  .minimap { width: 132px; height: 84px; top: calc(70px + var(--sat)); }
  .mm-label { font-size: 14px; }
  .mm-road-label { display: none; }
  .mode-badge { top: auto; bottom: calc(118px + var(--sab)); font-size: 11px; padding: 7px 12px; }
  .bottombar { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 10px; flex-wrap: nowrap; }
  .points { justify-content: flex-start; min-width: 0; max-width: 100%; }
  .controls { justify-content: space-between; }
  .btn--ctrl span { display: none; }
  .btn--ctrl { width: 40px; padding: 0; }
  .sheet__panel { max-height: 92vh; max-height: 92dvh; }
  .sheet__title { font-size: 21px; }
}
@media (max-width: 640px) and (orientation: landscape) {
  .bottombar { flex-direction: row; align-items: center; flex-wrap: nowrap; }
  .minimap { display: none; }
  .mode-badge { bottom: auto; top: calc(66px + var(--sat)); }
  .hint { top: 42%; }
}
@media (min-width: 641px) and (max-height: 520px) {
  .minimap { display: none; }
}
