/* Halo, pagina publica.
   Los colores y la letra son los de la app (Theme.kt): noche, no negro;
   un solo acento, el ambar del intermitente del porton; Barlow, una
   grotesca de senaletica. La pagina tiene que parecer la app, no un
   folleto sobre ella. */

@font-face { font-family: Barlow; src: url(fonts/barlow-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Barlow; src: url(fonts/barlow-semibold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Barlow; src: url(fonts/barlow-extrabold.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --night: #0E1726;
  --night-deep: #09101C;
  --surface: #18243C;
  --edge: #243352;
  --signal: #F5A524;
  --refused: #E5484D;
  --ink: #EEF3FA;
  --muted: #8FA2C0;

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 1.125rem/1.5 Barlow, system-ui, sans-serif;
  overflow-x: hidden;
}
h1, h2, h3, p, dl, dd, figure, ul { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--signal); color: var(--night); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0;
  background: var(--signal); color: var(--night);
  font-weight: 800; font-size: 1.0625rem; letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(245, 165, 36, .5), 0 10px 30px -12px rgba(245, 165, 36, .6);
  transition: transform .18s var(--ease-spring), box-shadow .3s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(245, 165, 36, .14), 0 16px 34px -12px rgba(245, 165, 36, .7); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--edge); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 1rem; }

.tag {
  display: inline-block; padding: 2px 10px 3px;
  border-radius: 999px; border: 1px solid var(--edge);
  color: var(--muted); font-size: .875rem; font-weight: 600; line-height: 1.4;
  white-space: nowrap;
}
.tag-now { color: var(--signal); border-color: rgba(245, 165, 36, .45); }
.tag-plan { color: var(--ink); background: var(--surface); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

/* ---------- Cabecera ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(14, 23, 38, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--edge); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.375rem; letter-spacing: .01em; }
.brand svg { width: 26px; height: 26px; color: var(--signal); }
.top nav { display: flex; gap: 26px; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 600; transition: color .2s; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .top nav { display: none; }
  .top .btn-small { margin-left: auto; }
}

/* ---------- Portada ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(40px, 6vw, 72px);
  display: grid; gap: clamp(40px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.75rem, 6vw, 5.25rem);
  line-height: .94;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.lede { margin-top: 26px; max-width: 30em; color: var(--muted); font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* El escenario: un porton de verdad con la pantalla de la app delante */
.stage {
  --open: 0;
  position: relative;
  aspect-ratio: .96 / 1;
  width: 100%;
  max-width: 620px;
  justify-self: end;
}
.garage {
  position: absolute; inset: 3% 44px 7% 27%;
  display: grid; grid-template-rows: 12% 1fr;
}
.lintel {
  position: relative;
  background: linear-gradient(#1d2a45, #152037);
  border-radius: 14px 14px 0 0;
  box-shadow: inset 0 -1px 0 var(--edge);
}
.lamp {
  position: absolute; right: 9%; top: 50%;
  width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%;
  background: #5b4520;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25);
}
.stage.moving .lamp { animation: blink .62s steps(1) infinite alternate; }
@keyframes blink {
  0% { background: #5b4520; box-shadow: none; }
  50%, 100% { background: var(--signal); box-shadow: 0 0 18px 6px rgba(245, 165, 36, .55), 0 0 60px 14px rgba(245, 165, 36, .18); }
}
.bay {
  position: relative; overflow: hidden;
  border: 10px solid #152037; border-top: 0;
  background: var(--night-deep);
}
.interior { position: absolute; inset: 0; background: linear-gradient(#0b1322, #111c30 70%, #0b1322); }
.parked {
  position: absolute; left: 60%; bottom: 12%; width: 70%;
  transform: translateX(-50%);
  opacity: calc(.15 + var(--open) * .85);
}
.bulb {
  position: absolute; left: 50%; top: 10%;
  width: 70%; height: 70%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(245, 190, 110, .28), transparent 70%);
  opacity: calc(.25 + var(--open) * .75);
}
.floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: radial-gradient(70% 90% at 50% 100%, rgba(245, 165, 36, .22), transparent 70%);
  opacity: var(--open);
}
/* La hoja: lamas horizontales. Sube con --open, que mueve main.js */
.door {
  position: absolute; inset: 0;
  transform: translateY(calc(var(--open) * -94%));
  background:
    linear-gradient(90deg, rgba(0,0,0,.18), transparent 12%, transparent 88%, rgba(0,0,0,.2)),
    repeating-linear-gradient(180deg,
      #2a3a5c 0, #26365a 40%, #1f2d4b 78%, #121b2e 80%, #121b2e 84%, #34466b 86%, #2a3a5c 100%);
  background-size: 100% 100%, 100% 11.2%;
  box-shadow: 0 10px 0 0 #121b2e, 0 18px 30px rgba(0, 0, 0, .45);
}
.door::after {
  content: ""; position: absolute; left: 50%; bottom: 4%;
  width: 16%; height: 2.2%; transform: translateX(-50%);
  border-radius: 6px; background: #121b2e; box-shadow: inset 0 1px 0 #3b4f78;
}
.gauge {
  position: absolute; right: -34px; top: 16%; bottom: 4%;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.gauge-track { position: relative; flex: 1; width: 6px; border-radius: 6px; background: var(--edge); overflow: hidden; }
.gauge-fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--open) * 100%);
  background: var(--signal); border-radius: 6px;
}
.gauge-val { font-size: .8125rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 3.5ch; text-align: center; }
.spill {
  position: absolute; left: -10%; right: -10%; bottom: -12%; height: 22%;
  background: radial-gradient(50% 60% at 50% 0%, rgba(245, 165, 36, .32), transparent 75%);
  opacity: var(--open);
  pointer-events: none;
}

/* ---------- El movil (pantalla Abrir, fiel a OpeningScreen.kt) ---------- */
.phone {
  position: absolute; left: 0; bottom: 0;
  height: 100%; aspect-ratio: 9 / 19;
  padding: 9px;
  border-radius: 44px;
  background: linear-gradient(145deg, #3a4660, #1a2234 40%, #0b111c);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 40px 60px -20px rgba(0, 0, 0, .7),
    0 0 0 1px #05080e;
  animation: rise 1s var(--ease-out) .1s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
.phone-screen {
  position: relative; height: 100%;
  border-radius: 36px; overflow: hidden;
  background: var(--night);
}
.app {
  display: flex; flex-direction: column;
  padding: 12px 7% 7%;
}
/* Medidas de la app en dp, sobre un ancho de 360: 1em = 16dp */
.phone { container-type: inline-size; }
.app { font-size: 4.9cqw; }
.app-bar { display: flex; justify-content: space-between; align-items: center; font-size: .82em; font-weight: 600; color: var(--ink); padding: 0 4px; }
.app-bar-icons { display: flex; gap: 3px; }
.app-bar-icons i { width: 5px; height: 9px; border-radius: 1px; background: var(--muted); }
.app-bar-icons i:nth-child(3) { width: 14px; border-radius: 2px; background: var(--ink); }
.app-door { margin-top: 1.4em; font-weight: 600; font-size: 1.03em; color: var(--muted); }
.app-status {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  gap: .6em; text-align: center; padding-bottom: 1.9em;
}
.app-head { font-weight: 800; font-size: 2.05em; line-height: 1.08; letter-spacing: -.005em; color: var(--ink); min-height: 1.08em; }
.app-head:empty { display: none; }
.app-head.signal { color: var(--signal); }
.app-detail { color: var(--muted); font-size: 1.05em; line-height: 1.35; }

/* El boton redondo. Anillo de 6dp sobre 212dp, como en la app */
.ring {
  --ring: rgba(143, 162, 192, .45);
  --size: 12em;
  position: relative; align-self: center;
  width: var(--size); height: var(--size); flex: none;
  padding: 0; border: 0; border-radius: 50%;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s var(--ease-spring);
}
.ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 calc(var(--size) * .028) var(--ring);
  transition: box-shadow .25s;
}
.ring-face {
  position: absolute; inset: 6.6%;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--surface);
  font-weight: 800; font-size: calc(var(--size) * .142); letter-spacing: .02em; color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 6px 18px -6px rgba(0, 0, 0, .6);
  transition: background .2s, box-shadow .2s;
}
.ring:hover .ring-face { background: #1c2a46; }
.ring:active, .ring.pressed { transform: scale(.955); }
.ring:active .ring-face, .ring.pressed .ring-face { box-shadow: inset 0 3px 10px rgba(0, 0, 0, .5); }
.ring[aria-disabled="true"] { cursor: default; }
.ring.working { --ring: var(--ink); }
.ring.signal { --ring: var(--signal); }
.ring.working::before, .ring.signal::before { animation: pulse .62s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: .15; } to { opacity: 1; } }
/* «Pruébalo», encima del propio boton, y una invitacion lenta a pulsar.
   Se apaga en cuanto alguien pulsa (.used). */
.ring-hint {
  position: absolute; left: 50%; bottom: 17%;
  transform: translateX(-50%);
  padding: .15em .7em .2em; border-radius: 999px;
  background: var(--signal); color: var(--night);
  font-weight: 800; font-size: calc(var(--size) * .072); letter-spacing: .01em; white-space: nowrap;
  box-shadow: 0 4px 14px -4px rgba(245, 165, 36, .7);
  transition: opacity .3s, transform .3s var(--ease-out);
}
.stage.used .ring-hint { opacity: 0; transform: translate(-50%, 6px); }
.stage:not(.used) .ring { animation: nudge 3.6s var(--ease-out) 1.6s infinite; }
.stage:not(.used) .ring::after {
  content: ""; position: absolute; inset: -3%; border-radius: 50%; pointer-events: none;
  animation: breathe 3.6s ease-in-out 1.6s infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0); }
  45% { box-shadow: 0 0 34px 6px rgba(245, 165, 36, .28), inset 0 0 0 2px rgba(245, 165, 36, .55); }
}
@keyframes nudge {
  0%, 62%, 100% { transform: none; }
  70% { transform: scale(1.03); }
  78% { transform: scale(.99); }
  86% { transform: scale(1.01); }
}

/* Onda al pulsar: el "clic" que se ve */
.ring .wave {
  position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--signal);
  animation: wave .7s var(--ease-out) forwards; pointer-events: none;
}
@keyframes wave { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }

.app-foot { border-top: 1px solid var(--edge); padding-top: 1em; margin-top: 2.2em; }
.app-key { font-weight: 600; color: var(--ink); }
.app-valid { color: var(--muted); font-size: .92em; }
.app-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: .8em; padding: .7em 1em;
  border-radius: .75em; background: var(--surface); border: 1px solid var(--edge);
  font-weight: 600;
}
.app-nav span:last-child { color: var(--muted); font-size: 1.5em; line-height: .8; }

@keyframes fadein { from { opacity: 0; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .stage { justify-self: center; max-width: 520px; }
}
@media (max-width: 480px) {
  .garage { inset: 3% 30px 7% 30%; }
  .gauge { right: -24px; }
  .phone { height: 95%; }
}

/* ---------- Lo basico ---------- */
.truths {
  max-width: var(--max); margin: 0 auto;
  padding: 28px var(--gutter);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 48px;
  border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge);
  color: var(--muted);
}
.truths strong { display: block; color: var(--ink); font-weight: 600; font-size: 1.1875rem; }
@media (max-width: 760px) { .truths { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Dispositivos ---------- */
.devices { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--gutter) 40px; }
h2 {
  font-weight: 800; font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1; letter-spacing: -.02em; text-wrap: balance;
}
.shelf {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; gap: 48px 40px;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, .8fr);
  align-items: end;
}
.dev { display: flex; flex-direction: column; gap: 22px; }
.dev figcaption { color: var(--muted); max-width: 26em; }
.dev figcaption strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .shelf { grid-template-columns: 1fr 1fr; }
  .dev-car { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .shelf { grid-template-columns: 1fr; }
  .dev-home .handset { width: 62%; }
  .dev-watch .watch { width: 50%; }
  /* En una sola columna, el movil y el reloj van centrados */
  .dev-home .handset, .dev-watch .watch { margin-inline: auto; }
}

/* Coche: la pantalla del salpicadero */
.car {
  padding: 12px 12px 18px;
  border-radius: 22px 22px 30px 30px;
  background: linear-gradient(#232b3a, #0c1119);
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255,255,255,.08);
}
.car-screen {
  position: relative; aspect-ratio: 16 / 7.4; overflow: hidden;
  display: grid; grid-template-columns: 9% 1fr 38%;
  border-radius: 12px; background: var(--night);
  font-size: clamp(9px, 1.25vw, 15px);
}
@media (max-width: 900px) { .car-screen { font-size: clamp(9px, 2.4vw, 15px); } }
.car-rail { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.2em; background: #0a1220; }
.car-rail i { width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--edge); }
.car-rail i.on { background: var(--signal); }
.car-map { position: relative; background: #101b2e; }
.car-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.car.running .car-route { animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -16; } }
.car-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7em;
  padding: 0 .8em; text-align: center; background: var(--night);
  border-left: 1px solid var(--edge);
}
.car-dist { font-weight: 600; font-size: .95em; color: var(--muted); }
.car-dist span { color: var(--ink); font-variant-numeric: tabular-nums; }
.ring-sm { --size: 7.6em; }
.car-note { font-size: .9em; color: var(--muted); min-height: 1.4em; }
.car-note.signal { color: var(--signal); font-weight: 600; }

/* Movil: pantalla de inicio con el widget */
.handset {
  width: 100%; max-width: 240px; aspect-ratio: 9 / 18.5; padding: 7px;
  border-radius: 34px;
  background: linear-gradient(145deg, #3a4660, #1a2234 40%, #0b111c);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 50px -24px rgba(0,0,0,.8);
}
.home {
  height: 100%; border-radius: 28px; overflow: hidden;
  display: flex; flex-direction: column; gap: 9%;
  padding: 16% 10% 8%;
  background:
    radial-gradient(120% 60% at 80% 0%, rgba(245, 165, 36, .16), transparent 60%),
    linear-gradient(170deg, #1b2946, #0E1726 60%);
  font-size: clamp(10px, 1.3vw, 14px);
}
@media (max-width: 900px) { .home { font-size: clamp(11px, 3.2vw, 15px); } }
.home-clock { font-size: 3.2em; font-weight: 400; letter-spacing: -.02em; line-height: 1; text-align: center; }
.widget {
  display: flex; align-items: center; gap: .9em;
  padding: .9em; border-radius: 1.6em;
  background: rgba(24, 36, 60, .85); border: 1px solid var(--edge);
}
.ring-xs { --size: 4.6em; flex: none; }
.ring-xs .ring-face { font-size: 1em; }
.widget-label { font-weight: 600; font-size: .95em; line-height: 1.2; }
.widget-label.signal { color: var(--signal); }
.home-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12% 14%; padding: 0 4%; }
.home-apps i, .home-dock i { aspect-ratio: 1; border-radius: 30%; background: rgba(143, 162, 192, .16); }
.home-dock { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14%; padding: 7% 8%; border-radius: 1.4em; background: rgba(143,162,192,.08); }

/* Reloj. Todo se mide en cqw del contenedor .watch, que solo tiene
   ancho: la caja es un cuadrado de 100cqw x 100cqw, asi que es un circulo
   perfecto a cualquier ancho, lo estire o no la rejilla. */
.watch {
  width: 100%; max-width: 172px;
  container-type: inline-size;
  display: flex; flex-direction: column; align-items: center;
}
.strap {
  position: relative; flex: none; width: 58cqw; height: 50cqw;
  background: linear-gradient(90deg, #111827, #1f2a3e 50%, #111827);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.strap-top { border-radius: 22cqw 22cqw 4cqw 4cqw / 14cqw 14cqw 4cqw 4cqw; margin-bottom: -8cqw; }
.strap-bottom {
  border-radius: 4cqw 4cqw 22cqw 22cqw / 4cqw 4cqw 14cqw 14cqw; margin-top: -8cqw;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5cqw; padding-bottom: 9cqw;
}
.strap-bottom i { width: 3.6cqw; height: 3.6cqw; border-radius: 50%; background: #0a0f19; box-shadow: inset 0 1px 1px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.05); }
.watch-case {
  position: relative; z-index: 1; flex: none;
  width: 100cqw; height: 100cqw;
  border-radius: 50%;
  background: linear-gradient(145deg, #5a6680, #1f283b 45%, #0b111c);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 -3px 8px rgba(0,0,0,.5), 0 24px 40px -18px rgba(0,0,0,.8);
}
.crown {
  position: absolute; right: -3.6cqw; top: 50%; width: 6cqw; height: 15cqw; margin-top: -7.5cqw;
  border-radius: 1.8cqw; background: linear-gradient(90deg, #2b3448, #4d5970);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.watch-face {
  position: absolute; top: 7cqw; left: 7cqw; width: 86cqw; height: 86cqw;
  border-radius: 50%; background: #03060b;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.ring-watch { --size: 62cqw; }
.ring-watch .ring-face { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6cqw; }
.ring-watch .rf-main { font-size: 10cqw; line-height: 1; }
.ring-watch .rf-status {
  font-weight: 600; font-size: 4.6cqw; line-height: 1.15; letter-spacing: 0;
  color: var(--ink); max-width: 38cqw; text-align: center;
}
.ring-watch .rf-status:empty { display: none; }
.ring-watch .rf-status.signal { color: var(--signal); }
.ring-watch.signal .rf-main, .ring-watch.working .rf-main { font-size: 8cqw; }

/* ---------- Invitados ---------- */
.guests {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px;
  /* Arriba y no centrado: asi nada de la izquierda depende de la altura
     de la llave, que ademas se mantiene fija en todos sus estados. */
  align-items: start;
}
.guests-copy p { margin-top: 20px; max-width: 28em; color: var(--muted); font-size: 1.1875rem; }
.guests-copy .fine { font-size: 1rem; color: var(--signal); font-weight: 600; }
@media (max-width: 860px) { .guests { grid-template-columns: 1fr; } }

.pass-wrap { display: flex; flex-direction: column; gap: 18px; max-width: 440px; width: 100%; justify-self: center; }
.kinds { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--edge); }
.kinds button {
  flex: 1; min-height: 42px; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font-weight: 600; font-size: 1rem;
  transition: background .25s var(--ease-out), color .2s;
}
.kinds button[aria-checked="true"] { background: var(--ink); color: var(--night); }
.kinds button:hover:not([aria-checked="true"]) { color: var(--ink); }

.pass {
  position: relative; overflow: hidden;
  padding: 28px 28px 22px;
  border-radius: 26px;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(245, 165, 36, .16), transparent 60%),
    var(--surface);
  border: 1px solid var(--edge);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  transition: transform .5s var(--ease-spring), filter .4s, opacity .4s;
}
/* La muesca de ticket en los laterales */
.pass::before, .pass::after {
  content: ""; position: absolute; top: 62%; width: 22px; height: 22px; border-radius: 50%;
  background: var(--night); border: 1px solid var(--edge);
}
.pass::before { left: -12px; }
.pass::after { right: -12px; }
.pass-top { display: flex; align-items: center; gap: 12px; }
.pass-ring { width: 28px; height: 28px; color: var(--signal); }
.pass-for { font-size: 1.0625rem; color: var(--muted); }
.pass-for b { color: var(--ink); font-weight: 600; }
.pass-when { margin-top: 26px; font-weight: 800; font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.05; letter-spacing: -.01em; min-height: 2.1em; }
.pass-sub { margin-top: 8px; color: var(--muted); min-height: 3em; }
.pass-meter { display: flex; gap: 6px; margin-top: 16px; height: 8px; }
.pass-meter i { flex: 1; border-radius: 4px; background: var(--signal); transition: background .3s; }
.pass-meter i.spent { background: var(--edge); }
.pass-meter[hidden] { display: flex; visibility: hidden; }
.pass-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--edge);
}
.pass-state { min-height: 3em; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.pass-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.pass-revoke {
  min-height: 42px; padding: 0 18px; border-radius: 999px;
  background: transparent; border: 1.5px solid var(--refused); color: var(--refused); white-space: nowrap;
  font-weight: 600; transition: background .2s, color .2s;
}
.pass-revoke:hover { background: var(--refused); color: var(--night); }
.pass-stamp {
  position: absolute; right: 22px; top: 74px;
  padding: 4px 14px; border: 3px solid var(--refused); border-radius: 10px;
  color: var(--refused); font-weight: 800; font-size: 1.5rem; letter-spacing: .02em;
  transform: rotate(-9deg) scale(1.8); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease-spring), opacity .2s;
}
.pass.revoked .pass-stamp { opacity: 1; transform: rotate(-9deg) scale(1); }
.pass.revoked .pass-when, .pass.revoked .pass-sub, .pass.revoked .pass-meter, .pass.revoked .pass-ring { filter: grayscale(1); opacity: .45; }
.pass.revoked .pass-state::before { background: var(--refused); box-shadow: none; }
.pass.revoked .pass-revoke { border-color: var(--edge); color: var(--ink); }
.pass.revoked .pass-revoke:hover { background: var(--ink); color: var(--night); }
.pass.swap { animation: swap .45s var(--ease-out); }
@keyframes swap { 0% { transform: translateY(0); } 35% { transform: translateY(6px) rotate(-.6deg); } 100% { transform: none; } }

/* ---------- Tranquilidad ---------- */
.start { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 10vw, 140px); }
/* Tres pasos: marca pegada a cada paso y una linea que los une. Al entrar
   en pantalla la linea se llena de ambar hasta el ultimo, que late una vez. */
.steps {
  list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.steps li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.step-mark {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 50%; border: 2px solid var(--edge); background: var(--night);
  font-weight: 600; font-size: 1rem; color: var(--ink); font-variant-numeric: tabular-nums;
}
.step-mark svg { width: 20px; height: 20px; }
.step-t { font-weight: 800; font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.1; letter-spacing: -.015em; white-space: nowrap; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 19px; left: 52px; right: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(var(--signal), var(--signal)) left / 0% 100% no-repeat, var(--edge);
  transition: background-size .6s var(--ease-out);
}
.steps li:nth-child(2)::after { transition-delay: .45s; }
.steps.go li:not(:last-child)::after { background-size: 100% 100%; }
.step-last .step-mark { border-color: var(--signal); color: var(--signal); }
.step-last .step-t { color: var(--signal); }
.steps.go .step-last .step-mark { animation: arrive .7s var(--ease-spring) 1.05s both; }
@keyframes arrive {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 165, 36, 0); }
  45% { transform: scale(1.18); box-shadow: 0 0 0 8px rgba(245, 165, 36, .18); }
  100% { transform: scale(1); box-shadow: 0 0 18px 2px rgba(245, 165, 36, .35); }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { flex-direction: row; align-items: center; gap: 18px; padding: 12px 0; }
  .step-t { white-space: normal; text-wrap: balance; font-size: clamp(1.5rem, 5.6vw, 2rem); }
  .steps li:not(:last-child)::after {
    top: 52px; bottom: -12px; left: 19px; right: auto; width: 2px; height: auto;
    background: linear-gradient(var(--signal), var(--signal)) top / 100% 0% no-repeat, var(--edge);
  }
}

/* ---------- Planes ---------- */
.plans { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 10vw, 140px); }
.plans-unit { margin-top: 14px; color: var(--muted); }
.plan-row { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 16px; align-items: stretch; }
@media (max-width: 760px) { .plan-row { grid-template-columns: 1fr; } }
.plan {
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 28px; border: 1px solid var(--edge);
}
.plan h3 { font-weight: 600; font-size: 1.25rem; color: var(--muted); }
.plan .price .per { display: block; margin-top: .45em; font-weight: 600; font-size: 1.0625rem; letter-spacing: 0; line-height: 1.2; color: var(--muted); }
.plan .price { font-weight: 800; font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -.02em; }
.plan ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan li { position: relative; padding-left: 28px; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 13px; height: 13px; border-radius: 50%; border: 3px solid var(--muted);
}
.plan li .tag { margin-left: 4px; vertical-align: 1px; }
.plan .btn { align-self: flex-start; margin-top: 8px; }
.plan-connect {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(245, 165, 36, .16), transparent 65%),
    var(--surface);
  border-color: rgba(245, 165, 36, .4);
}
.plan-connect h3 { color: var(--signal); }
.plan-connect li::before { border-color: var(--signal); }

/* Halo Community: todas las plazas se encienden a la vez */
.community {
  margin-top: 16px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center;
  padding: clamp(26px, 4vw, 48px);
  border-radius: 28px; border: 1px solid var(--edge);
  background: linear-gradient(120deg, #121d31, var(--night));
}
.community h3 { font-weight: 800; font-size: clamp(1.875rem, 3.6vw, 2.75rem); line-height: 1; letter-spacing: -.02em; }
.community p { margin-top: 14px; max-width: 30em; color: var(--muted); font-size: 1.1875rem; }
.community .btn { margin-top: 26px; }
.community .community-price { margin-top: 10px; font-weight: 600; font-size: 1.125rem; color: var(--signal); }
.lots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.lots i {
  aspect-ratio: 1 / 1.35; border-radius: 8px;
  border: 1.5px solid var(--edge);
  position: relative;
  transition: border-color .35s ease calc(var(--i) * 45ms), background .35s ease calc(var(--i) * 45ms);
}
.lots i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 2.5px solid var(--edge);
  transition: border-color .35s ease calc(var(--i) * 45ms), box-shadow .35s ease calc(var(--i) * 45ms);
}
.lots.lit i { border-color: rgba(245, 165, 36, .45); background: rgba(245, 165, 36, .06); }
.lots.lit i::after { border-color: var(--signal); box-shadow: 0 0 10px rgba(245, 165, 36, .45); }
@media (max-width: 760px) {
  .community { grid-template-columns: 1fr; }
  .lots { gap: 6px; }
}

/* ---------- Apuntate ---------- */
.join {
  position: relative; overflow: hidden;
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  background: linear-gradient(180deg, var(--night), #121d31);
  border-top: 1px solid var(--edge);
}
.join > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.join::before {
  content: ""; position: absolute; right: -12vw; top: -14vw;
  width: 46vw; height: 46vw; min-width: 320px; min-height: 320px; border-radius: 50%;
  box-shadow: inset 0 0 0 clamp(18px, 3vw, 40px) rgba(245, 165, 36, .12);
  pointer-events: none;
}
.join h2 { font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: .95; }
.join > p { margin-top: 18px; color: var(--muted); font-size: 1.1875rem; }
.join-form {
  position: relative;
  margin-top: 40px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, .6fr) auto;
  gap: 14px; align-items: end;
}
.join-form label { display: flex; flex-direction: column; gap: 8px; }
.join-form label span { font-size: .9375rem; font-weight: 600; color: var(--muted); }
.join-form input {
  min-height: 52px; width: 100%; padding: 0 16px;
  border-radius: 14px; border: 1.5px solid var(--edge); background: var(--night);
  transition: border-color .2s;
}
.join-form input::placeholder { color: #5f7090; }
.join-form input:focus { outline: none; border-color: var(--signal); }
.join-form input[aria-invalid="true"] { border-color: var(--refused); }
.join-form .check { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; cursor: pointer; }
.join-form .check input { width: 22px; height: 22px; min-height: 0; margin: 0; accent-color: var(--signal); flex: none; }
.join-form .check span { color: var(--ink); font-size: 1rem; font-weight: 400; }
.join-note { grid-column: 1 / -1; color: var(--muted); font-size: .9375rem; }
.join-note.error { color: var(--refused); }
@media (max-width: 960px) {
  .join-form { grid-template-columns: 1fr 1fr; }
  .join-form .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 560px) { .join-form { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 28px var(--gutter); border-top: 1px solid var(--edge); color: var(--muted);
}
.bottom .brand { font-size: 1.125rem; color: var(--ink); }
.bottom .brand svg { width: 22px; height: 22px; }

/* ---------- Sin movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ring.working::before, .ring.signal::before { animation: none; opacity: 1; }
  .stage.moving .lamp { animation: none; background: var(--signal); }
}
