/* Barlow (OFL), latin subsets, self-hosted. Semi Condensed is for short labels only. */
@font-face { font-family: 'Barlow'; src: url('assets/barlow-400-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('assets/barlow-600-latin.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('assets/barlow-800-latin.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('assets/barlow-semi-condensed-600-latin.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

/* Asfalto tokens (DESIGN.md). The page is light-only. */
:root {
  --asfalto: #2b2f33;
  --ink: #1f2326;            /* Asfalto profundo */
  --vereda: #e9e9e6;
  --blanco: #f7f7f5;         /* Blanco vía */
  --cemento: #dedfdb;
  --junta: #d3d3ce;
  --gravilla: #5f656b;
  --control-border: #7f848a;
  --noche: #16191b;
  --noche-raised: #22262a;
  --noche-sunken: #2a2f33;
  --noche-line: #33383d;
  --tiza: #ededea;
  --gravilla-dark: #a3a8ad;
  /* Signals: alert meaning only. */
  --critical: #c8372a;
  --critical-text: #b22f24;
  --critical-tint: #f3ddd9;
  --on-critical-tint: #8e2219;
  --caution: #f2a900;
  --info: #2b66c9;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(1rem, 4vw, 3rem);
  --header-h: 4.75rem;
  --font: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --font-label: 'Barlow Semi Condensed', 'Arial Narrow', Arial, sans-serif;
  color-scheme: dark;
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-color: var(--noche-line) var(--noche); }
body {
  margin: 0;
  color: var(--tiza);
  background: var(--noche);
  overflow-x: clip;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--asfalto); color: var(--blanco); }
:focus-visible { outline: 3px solid var(--tiza); outline-offset: 4px; border-radius: .4rem; }
.launch :focus-visible, .site-footer :focus-visible { outline-color: var(--tiza); }
h1, h2, p, ul, ol { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-f { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; stroke: none; }
.icon-sm { width: 1em; height: 1em; }

.skip-link {
  position: fixed; z-index: 50; top: 1rem; left: 1rem;
  padding: .75rem 1rem; border-radius: 999px;
  background: var(--asfalto); color: var(--blanco); font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
  transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* Wordmark: the eye mark and the "sapea" name (assets/sapea-*.svg, Tiza on Noche). */
.wordmark { display: inline-grid; justify-items: start; align-content: center; gap: .3rem; min-height: 44px; padding-block: .25rem; color: inherit; text-decoration: none; }
.wm-word { display: inline-flex; align-items: center; gap: .5rem; height: 2.4rem; }
.wm-eye { height: 100%; width: auto; }
.wm-name { height: 62%; width: auto; }
.wm-tagline { font-family: var(--font-label); font-size: .875rem; font-weight: 600; letter-spacing: .01em; color: var(--gravilla-dark); }

/* Header */
.site-header {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-inline: var(--gutter);
  max-width: 88rem; margin-inline: auto;
}
.header-date {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem .95rem; border-radius: 999px;
  background: rgb(43 47 51 / 80%); color: var(--blanco);
  border: 1px solid var(--noche-line);
  backdrop-filter: blur(6px);
  font-family: var(--font-label); font-size: .9rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
}
.header-dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--blanco); }

/* Tour layout */
.tour {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 5vw, 5rem);
  max-width: 88rem; margin-inline: auto;
  padding-inline: var(--gutter);
}
.step { grid-column: 1; min-height: 88svh; display: flex; align-items: center; padding-block: 4rem; }
.step-body { max-width: 34rem; }
.intro { min-height: calc(100svh - var(--header-h)); padding-block: 2rem 5rem; }
.intro .step-body { max-width: 40rem; }

h1 {
  font-size: clamp(3rem, 6.4vw, 6rem);
  font-weight: 800; line-height: .96; letter-spacing: -.03em;
  text-wrap: balance;
}
/* A solid amber underline marks the key words. */
h1 mark {
  background: none; color: inherit;
  padding-bottom: .1em;
  background-image: linear-gradient(var(--caution), var(--caution));
  background-size: 100% .075em; background-repeat: no-repeat; background-position: 0 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.intro-line {
  margin-top: 1.6rem;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 600; line-height: 1.2; letter-spacing: -.01em;
  text-wrap: balance;
}
.intro-lead { margin-top: 1rem; max-width: 33rem; font-size: 1.125rem; line-height: 1.5; color: var(--gravilla-dark); text-wrap: pretty; }
.intro-hint {
  margin-top: 2.75rem;
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .95rem; font-weight: 600; color: var(--gravilla-dark);
}
.intro-hint .icon { transform: rotate(90deg); animation: nudge 2.2s var(--ease-out) 1s 3; }
@keyframes nudge { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 .3rem; } }

/* Store pills: deliberately not links until the store URLs exist */
.stores { list-style: none; padding: 0; margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.store {
  display: grid; gap: 0; min-width: 10.5rem;
  padding: .65rem 1.6rem .7rem; border-radius: 999px;
  background: rgb(247 247 245 / 10%);
  color: var(--blanco);
  line-height: 1.25;
  backdrop-filter: blur(6px);
}
.store-name { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.store-state { font-family: var(--font-label); font-size: .82rem; font-weight: 600; color: var(--tiza); }
.stores-dark .store { background: rgb(247 247 245 / 10%); color: var(--blanco); }
.stores-dark .store-state { color: var(--tiza); }

.step h2 {
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  font-weight: 800; line-height: 1; letter-spacing: -.025em;
  text-wrap: balance;
}
.step h2 + p { margin-top: 1.25rem; font-size: 1.15rem; line-height: 1.5; color: var(--gravilla-dark); max-width: 30rem; text-wrap: pretty; }

/* Stage: sticky panel holding the phone */
.stage {
  grid-column: 2; grid-row: 1 / span 7;
  align-self: start;
  position: sticky; top: 1rem;
  height: calc(100svh - 2rem);
  padding-block: .5rem;
}
.stage-inner {
  position: relative; height: 100%;
  border-radius: 2.5rem;
  background: rgb(43 47 51 / 88%);
  border: 1px solid var(--noche-line);
  box-shadow: 0 2rem 4rem rgb(0 0 0 / 45%);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.tour-index {
  position: absolute; top: 1.5rem; left: 1.5rem; z-index: 3;
  list-style: none; padding: 0;
  display: grid; gap: .45rem;
  counter-reset: step;
}
.tour-index li {
  counter-increment: step;
  position: relative;
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-label); font-size: .88rem; font-weight: 600; color: rgb(247 247 245 / 64%);
  transition: color .4s var(--ease-out);
}
.tour-index li::before {
  content: counter(step);
  width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid rgb(247 247 245 / 34%);
  font-family: var(--font); font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out), color .4s var(--ease-out);
}
.tour-index li span { position: relative; }
.tour-index li span::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.15rem; height: 3px; border-radius: 2px;
  background: var(--caution); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s var(--ease-out);
}
.tour-index li.is-on { color: var(--blanco); }
.tour-index li.is-on span::after { transform: none; }
.tour-index li.is-on::before { background: var(--blanco); border-color: var(--blanco); color: var(--ink); }
.tour-index li.is-done::before { border-color: rgb(247 247 245 / 70%); color: var(--blanco); }
.stage-note {
  position: absolute; bottom: 1.1rem; left: 0; right: 0; z-index: 3;
  text-align: center; font-family: var(--font-label); font-size: .8rem; font-weight: 600; color: rgb(247 247 245 / 70%);
}

.phone-wrap {
  position: relative;
  height: min(42rem, calc(100% - 6rem));
  aspect-ratio: 9 / 18;
}
.frog {
  position: absolute; z-index: 0;
  width: min(36%, 15rem); right: 3%; bottom: 0;
  transform-origin: 50% 100%;
  transition: translate .6s var(--ease-out), rotate .6s var(--ease-out);
}
.phone {
  position: relative; z-index: 1;
  height: 100%;
  border-radius: 13% / 6.3%;
  padding: 3.2%;
  background: #0b0d0e;
  box-shadow:
    inset 0 0 0 2px var(--noche-line),
    0 2.5rem 4rem -1rem rgb(0 0 0 / 45%),
    0 .5rem 1rem rgb(0 0 0 / 25%);
}
.phone-notch {
  position: absolute; z-index: 9; top: 3.2%; left: 50%;
  width: 30%; height: 3.4%; translate: -50% 0;
  border-radius: 0 0 1rem 1rem; background: #0b0d0e;
}
.screens {
  position: relative; height: 100%;
  border-radius: 10.5% / 5%;
  overflow: hidden;
  background: var(--vereda);
  container-type: inline-size;
}

/* ===== In-phone UI =====
   Scaled from the phone's width: 1em is 16 app pixels on a 390-point screen. */
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 0 1.25em;
  font-size: calc(100cqw / 24.375);
  line-height: 1.3;
  color: var(--ink);
  background: var(--vereda);
  overflow: hidden;
  opacity: 0; visibility: hidden;
  translate: 0 4%;
  transition: opacity .45s var(--ease-out), translate .6s var(--ease-out), visibility 0s linear .6s;
}
.screen.is-active { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .45s var(--ease-out), translate .6s var(--ease-out), visibility 0s; }
.screen.is-leaving { translate: 0 -3%; }
.screen .icon, .screen .icon-f { width: 1.5em; height: 1.5em; }

.status {
  position: relative; z-index: 4; flex: none;
  display: flex; justify-content: space-between; align-items: center;
  height: 3em; padding: .3em .6em 0;
  font-size: .95em; font-weight: 600; font-variant-numeric: tabular-nums;
}
.status-light { color: #fff; }
.status-icons { display: flex; gap: .3em; }
.status-icons i { width: 1.1em; height: .6em; border-radius: .15em; background: currentColor; }
.status-icons i:first-child { width: .9em; }
.status-icons i:last-child { width: 1.6em; border-radius: .25em; }

.sample {
  flex: none;
  padding: .2em .6em; border-radius: 999px;
  background: var(--cemento); color: var(--ink);
  font-family: var(--font-label); font-size: .72em; font-weight: 600; letter-spacing: .04em; line-height: 1.4;
}
.sample-dark { background: rgb(247 247 245 / 16%); color: #fff; }

/* Bottom navigation: floating Asfalto bar and the Publicar circle */
.nav {
  position: absolute; z-index: 5; left: .75em; right: .75em; bottom: 1.15em;
  display: flex; gap: .55em; align-items: center;
}
.nav-bar {
  flex: 1; height: 3.6em; padding: 0 .3em;
  display: grid; grid-template-columns: repeat(4, 1fr); place-items: center;
  border-radius: 999px; background: var(--asfalto);
  box-shadow: 0 .4em 1.2em rgb(31 35 38 / 20%);
}
.nav-tab { position: relative; width: 3em; height: 3em; display: grid; place-items: center; border-radius: 50%; color: var(--gravilla-dark); }
.nav-tab .icon-f { width: 1.55em; height: 1.55em; }
.nav-tab.is-on { background: var(--blanco); color: var(--ink); }
/* A solid amber shadow that drops only below the active circle, as in the app. */
.nav-tab.is-on { box-shadow: 0 .2em 0 var(--caution); }
.nav-badge {
  position: absolute; top: .1em; right: .05em;
  min-width: 1.1em; height: 1.1em; padding: 0 .25em; display: grid; place-items: center;
  border-radius: 999px; background: var(--critical); color: #fff;
  font-style: normal; font-size: .78em; font-weight: 800; font-variant-numeric: tabular-nums;
}
.nav-publish { flex: none; width: 3.6em; height: 3.6em; display: grid; place-items: center; border-radius: 50%; background: var(--asfalto); color: var(--blanco); box-shadow: 0 .4em 1.2em rgb(31 35 38 / 20%); }
.nav-publish .icon { width: 1.75em; height: 1.75em; stroke-width: 2.6; }

/* Feed (Inicio, Entérate) */
.screen-feed { padding: 0; background: var(--noche); color: #fff; }
.feed-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen-feed::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgb(0 0 0 / 40%) 0, transparent 20%, transparent 52%, rgb(0 0 0 / 78%) 90%);
}
.feed-top {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: .9em;
  padding: .2em 1.25em 0 1.1em;
}
.feed-logo { width: auto; height: 2.1em; color: #fff; }
.feed-scope { margin-left: auto; font-family: var(--font-label); font-size: 1.05em; font-weight: 600; text-shadow: 0 0 .3em rgb(0 0 0 / 50%); }
.feed-place {
  display: inline-flex; align-items: center; gap: .3em;
  height: 2.5em; padding: 0 .75em 0 .65em; border-radius: 999px;
  background: var(--blanco); color: var(--ink);
  font-family: var(--font-label); font-size: 1em; font-weight: 600;
}
.feed-place .icon-f { width: 1.1em; height: 1.1em; }
.feed-place .icon { width: 1em; height: 1em; stroke-width: 2.6; }
.feed-search { margin-left: auto; width: 1.6em !important; height: 1.6em !important; stroke-width: 2.6; }
.feed-sample { position: absolute; z-index: 3; top: 10.4em; left: 1.6em; }
.feed-bottom {
  position: absolute; z-index: 3; left: 1.1em; right: .9em; bottom: 5.9em;
  display: flex; align-items: flex-end; gap: .75em;
}
.feed-info { flex: 1; min-width: 0; text-shadow: 0 0 .25em rgb(0 0 0 / 55%); }
.feed-author { display: flex; align-items: center; gap: .55em; }
.feed-author b { font-size: 1.05em; font-weight: 600; }
.feed-avatar {
  width: 2.25em; height: 2.25em; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--blanco); color: var(--ink); font-weight: 800; text-shadow: none;
}
.feed-avatar .icon-f { width: 1.2em; height: 1.2em; }
.follow { padding: .15em .7em; border-radius: 999px; border: 1px solid rgb(255 255 255 / 70%); font-size: .82em; font-weight: 600; }
.feed-text { margin-top: .35em; font-size: 1.05em; line-height: 1.35; }
.feed-meta { margin-top: .3em; display: flex; flex-wrap: wrap; gap: .3em .7em; font-size: .8em; color: rgb(255 255 255 / 80%); }
.feed-meta span { display: inline-flex; align-items: center; gap: .2em; }
.feed-meta .icon { width: 1.1em; height: 1.1em; }
.rail { display: grid; justify-items: center; gap: .95em; }
.rail-item { display: grid; justify-items: center; gap: .1em; font-size: .85em; font-weight: 800; font-variant-numeric: tabular-nums; filter: drop-shadow(0 0 .2em rgb(0 0 0 / 50%)); }
.rail-item .icon, .rail-item .icon-f { width: 2em; height: 2em; stroke-width: 1.8; }

/* Entérate: the alert's map fills the media area */
.alert-media { position: absolute; inset: 0 0 0 0; }
.alert-map { position: absolute; inset: 0; width: 100%; height: 100%; filter: brightness(.6) saturate(0); }
.alert-zone {
  position: absolute; left: 50%; top: 36%; width: 9em; height: 9em; translate: -50% -50%;
  border-radius: 50%; border: .15em solid var(--critical); background: rgb(200 55 42 / 22%);
}
.alert-zone::after { content: ''; position: absolute; left: 50%; top: 50%; width: 1em; height: 1em; translate: -50% -50%; border-radius: 50%; background: var(--critical); border: .18em solid #fff; }
.view-alert {
  position: absolute; z-index: 2; left: 50%; top: 58%; translate: -50% 0;
  display: inline-flex; align-items: center; gap: .55em;
  height: 3em; padding: 0 1.9em; border-radius: 999px;
  background: var(--blanco); color: var(--ink); font-size: 1.05em; font-weight: 600; white-space: nowrap;
}
.view-alert .icon { width: 1.3em; height: 1.3em; }
.osm {
  position: absolute; z-index: 2; left: 50%; top: calc(58% + 3.9em); translate: -50% 0;
  padding: .1em .4em; border-radius: .25em; background: rgb(222 223 219 / 90%); color: var(--ink);
  font-size: .6em; white-space: nowrap;
}

/* Reporta: publish options */
.screen-publish { padding-inline: 1.15em; }
.publish-wordmark {
  align-self: center; margin-top: .1em;
  display: block; height: 1.45em; width: auto; color: var(--ink);
}
.publish-head { display: flex; align-items: center; gap: .6em; margin-top: 1em; }
.publish-title { font-size: 2.15em; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.publish-lead { margin-top: .45em; font-size: .95em; line-height: 1.35; color: var(--ink); }
.publish-art { flex: none; width: 7.4em; height: 7.4em; display: grid; place-items: center; border-radius: 1.6em; background: var(--cemento); }
.rings {
  position: relative; width: 4.2em; height: 4.2em; display: grid; place-items: center; border-radius: 50%;
  border: .16em solid var(--control-border); color: var(--asfalto);
  box-shadow: 0 0 0 .5em var(--cemento), 0 0 0 .62em #b9bbb6;
}
.publish-art .rings { width: 4.4em; height: 4.4em; }
.publish-art .rings .icon-f { width: 2.1em; height: 2.1em; }
.lane-bar { width: 4.9em; height: .55em; margin-top: 1.1em; border-radius: 999px; background: var(--asfalto); flex: none; }
.option {
  display: flex; align-items: center; gap: .9em;
  margin-top: .85em; padding: .8em 1em .8em .85em;
  border-radius: 1.3em; border: 1px solid var(--junta); background: var(--blanco);
}
.option > .icon { margin-left: auto; width: 1.6em; height: 1.6em; stroke-width: 2.6; }
.option-art { flex: none; width: 5.2em; height: 5.2em; display: grid; place-items: center; border-radius: 1.1em; background: var(--cemento); }
.option-art .rings { width: 3.2em; height: 3.2em; box-shadow: 0 0 0 .35em var(--cemento), 0 0 0 .47em #b9bbb6; }
.option-art .rings .icon-f, .option-art .rings .icon { width: 1.6em; height: 1.6em; }
.option-text { display: grid; gap: .3em; min-width: 0; }
.option-text b { font-size: 1.15em; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.option-text small { font-size: .85em; line-height: 1.35; color: var(--gravilla); letter-spacing: .01em; }
.option-alert { background: var(--critical-tint); border-color: #e0938a; }
.rings-critical { border-color: #d1675d; color: var(--critical); box-shadow: 0 0 0 .35em var(--cemento), 0 0 0 .47em #e3aba4 !important; }
.publish-section { margin-top: 1.5em; font-size: 1.2em; font-weight: 800; letter-spacing: -.01em; }
.publish-section-lead { margin-top: .3em; font-size: .85em; color: var(--gravilla); }
.option-live { align-items: center; }
.option-live em { display: inline-flex; align-items: center; gap: .35em; font-style: normal; font-size: .8em; font-weight: 600; color: var(--gravilla); }
.option-live em .icon { width: 1.2em; height: 1.2em; }
.option-live strong { justify-self: start; position: relative; margin-top: .2em; font-size: .95em; font-weight: 600; }
.option-live strong::after { content: ''; position: absolute; left: 0; bottom: -.4em; width: 70%; height: .1875em; border-radius: 1px; background: var(--caution); }

/* Mapa */
.screen-map, .screen-detail { padding: 0; }
.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.dept-strip { position: relative; z-index: 4; display: flex; gap: .5em; padding: .25em 1em 0; overflow: hidden; white-space: nowrap; }
.dept {
  display: inline-flex; align-items: center; gap: .3em; flex: none;
  height: 2.3em; padding: 0 .95em; border-radius: 999px;
  background: var(--blanco); color: var(--ink);
  font-family: var(--font-label); font-size: .92em; font-weight: 600;
  box-shadow: 0 .2em .6em rgb(31 35 38 / 14%);
}
.dept.is-on { background: var(--asfalto); color: var(--blanco); }
.dept .icon { width: 1.1em !important; height: 1.1em !important; stroke-width: 2.6; }
.map-fabs { position: absolute; z-index: 4; right: 1em; top: 6.2em; display: grid; gap: .5em; }
.fab { width: 2.5em; height: 2.5em; display: grid; place-items: center; border-radius: .9em; background: var(--blanco); color: var(--ink); box-shadow: 0 .3em .9em rgb(31 35 38 / 18%); }
.fab .icon { width: 1.35em; height: 1.35em; }

.mk { position: absolute; z-index: 2; left: var(--x); top: var(--y); translate: -50% -50%; --ring: var(--asfalto); }
.mk-ring {
  position: relative; width: 3.3em; height: 3.3em; display: grid; place-items: center; border-radius: 50%;
  background: var(--cemento); border: .24em solid var(--ring);
  font-size: 1em; font-weight: 800; color: var(--ink);
  box-shadow: 0 .25em .5em rgb(31 35 38 / 25%);
}
.mk-badge {
  position: absolute; right: -.45em; top: 1.75em;
  width: 1.55em; height: 1.55em; display: grid; place-items: center; border-radius: 50%;
  background: var(--ring); color: #fff; border: .14em solid var(--blanco);
}
.mk-badge .icon-f { width: 1em; height: 1em; }
.mk-time {
  position: absolute; left: 50%; top: 2.85em; translate: -50% 0;
  padding: .12em .4em; border-radius: .4em;
  background: rgb(43 47 51 / 94%); color: var(--blanco);
  font-family: var(--font-label); font-size: .72em; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.mk-critical { --ring: var(--critical); }
.mk-caution { --ring: var(--caution); }
.mk-caution .mk-badge { color: var(--ink); }
.mk-info { --ring: var(--info); }
.mk-community { --ring: var(--asfalto); }
.mk-resolved { --ring: var(--gravilla); }
.mk-check { position: absolute; right: -.4em; top: -.45em; width: 1.4em; height: 1.4em; display: grid; place-items: center; border-radius: 50%; background: var(--gravilla); color: #fff; border: .14em solid var(--blanco); }
.mk-check .icon { width: .9em; height: .9em; stroke-width: 3; }
.mk-live .mk-ring { border-color: var(--asfalto); }
.mk-live-tag, .live-tag {
  padding: .1em .45em; border-radius: .35em;
  background: var(--caution); color: var(--ink);
  font-family: var(--font-label); font-size: .72em; font-weight: 600; letter-spacing: .08em; line-height: 1.35;
}
.mk-live-tag { position: absolute; left: 50%; top: 2.75em; translate: -50% 0; }
/* Every active alert pulses in its family colour; critical at full strength,
   the rest at about half so a robbery still stands out. Resolved and LIVE stay still. */
.mk-critical, .mk-caution, .mk-info, .mk-community { --pulse: color-mix(in srgb, var(--ring) 28%, transparent); }
.mk-critical { --pulse: color-mix(in srgb, var(--ring) 50%, transparent); }
.screen.is-active :is(.mk-critical, .mk-caution, .mk-info, .mk-community) .mk-ring { animation: alertpulse 1.8s var(--ease-out) infinite; }
.screen.is-active .mk-caution .mk-ring { animation-delay: -.5s; }
.screen.is-active .mk-info .mk-ring { animation-delay: -1s; }
.screen.is-active .mk-community .mk-ring { animation-delay: -1.3s; }
@keyframes alertpulse {
  0% { box-shadow: 0 .25em .5em rgb(31 35 38 / 25%), 0 0 0 0 var(--pulse); }
  80%, 100% { box-shadow: 0 .25em .5em rgb(31 35 38 / 25%), 0 0 0 1.1em transparent; }
}

.nearby {
  position: absolute; z-index: 3; left: .875em; right: .875em; top: 55%; bottom: 0;
  padding: .9em 0 0 1.25em;
  border-radius: 1em 1em 0 0;
  background: linear-gradient(180deg, var(--vereda) 0, var(--blanco) 32%);
  box-shadow: 0 -.25em 1.25em rgb(0 0 0 / 14%);
}
.sheet-handle { display: block; width: 2.6em; height: .3em; margin: 0 auto .8em; border-radius: 999px; background: rgb(95 101 107 / 55%); }
.nearby .sheet-handle { margin-left: calc(50% - 1.3em - .625em); }
.nearby-head { display: flex; align-items: center; gap: .5em; padding-right: 1.25em; }
.nearby-head b { font-size: 1.3em; font-weight: 800; line-height: 1.1; letter-spacing: -.015em; }
.cards { display: flex; gap: .7em; margin-top: .8em; }
.card-alert, .card-live { position: relative; flex: none; height: 8em; border-radius: 1em; overflow: hidden; }
.card-alert { width: 6.4em; background: var(--noche); color: #fff; }
.card-map { position: absolute; inset: 0; width: 100%; height: 100%; filter: brightness(.78) saturate(0); }
.card-alert::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(0 0 0 / 70%)); }
.ca-avatar { position: absolute; z-index: 1; left: .6em; top: .6em; width: 1.9em; height: 1.9em; display: grid; place-items: center; border-radius: 50%; background: var(--blanco); color: var(--ink); font-size: .9em; font-weight: 800; }
.ca-foot { position: absolute; z-index: 1; left: .7em; right: .6em; bottom: .7em; display: flex; align-items: center; gap: .35em; font-family: var(--font-label); font-size: .75em; font-weight: 600; line-height: 1.1; }
.ca-pin { flex: none; width: 1.65em; height: 1.65em; display: grid; place-items: center; border-radius: 50%; border: .12em solid #fff; color: #fff; }
.ca-pin .icon-f { width: 1.05em !important; height: 1.05em !important; }
.ca-critical { background: var(--critical); }
.ca-caution { background: var(--caution); color: var(--ink); }
.ca-info { background: var(--info); }
.card-live { width: 4.5em; padding: .55em; display: flex; flex-direction: column; background: var(--cemento); }
.cl-top { display: flex; align-items: center; justify-content: space-between; gap: .2em; }
.cl-avatar { width: 1.8em; height: 1.8em; display: grid; place-items: center; border-radius: 50%; background: var(--asfalto); color: var(--blanco); font-size: .85em; font-weight: 800; }
.card-live .live-tag { font-size: .6em; }
.card-live b { margin-top: auto; font-size: .78em; font-weight: 600; line-height: 1.15; }
.card-live small { margin-top: .2em; font-size: .62em; color: #555b61; }

/* Colabora: alert detail sheet over the map */
.detail-zone {
  position: absolute; z-index: 1; left: 52%; top: 16%; width: 9em; height: 9em; translate: -50% -50%;
  border-radius: 50%; border: .15em solid var(--critical); background: rgb(200 55 42 / 14%);
}
.detail-zone::after { content: ''; position: absolute; left: 50%; top: 50%; width: 1em; height: 1em; translate: -50% -50%; border-radius: 50%; background: var(--critical); border: .18em solid #fff; }
.detail-sheet {
  position: absolute; z-index: 3; left: 0; right: 0; top: 29%; bottom: 0;
  display: flex; flex-direction: column;
  padding: .8em 1em 1.4em;
  border-radius: 1.4em 1.4em 0 0; background: var(--blanco);
  box-shadow: 0 -.25em 1.25em rgb(0 0 0 / 14%);
}
.detail-head { display: flex; align-items: center; gap: .65em; }
.cat-tile { flex: none; width: 2.25em; height: 2.25em; display: grid; place-items: center; border-radius: .75em; background: var(--critical); color: #fff; }
.cat-tile .icon-f { width: 1.15em; height: 1.15em; }
.detail-title { display: grid; gap: .15em; min-width: 0; flex: 1; }
.detail-title b { font-size: 1.06em; font-weight: 600; letter-spacing: -.01em; }
.status-pill {
  justify-self: start; display: inline-flex; align-items: center; gap: .4em;
  padding: .05em .55em; border-radius: .4em;
  background: var(--critical-tint); color: var(--on-critical-tint);
  font-size: .7em; line-height: 1.45; white-space: nowrap;
}
.status-pill i { width: .45em; height: .45em; border-radius: 50%; background: var(--critical); }
.btn-contribute {
  flex: none; display: inline-flex; align-items: center; gap: .35em;
  height: 2.25em; padding: 0 .75em; border-radius: .75em;
  background: var(--asfalto); color: var(--blanco);
  font-size: .82em; font-weight: 600;
}
.btn-contribute .icon { width: 1.2em !important; height: 1.2em !important; }
.btn-more { flex: none; width: 2.25em; height: 2.25em; display: grid; place-items: center; border-radius: .75em; border: 1px solid var(--junta); background: var(--blanco); }
.btn-more .icon-f { width: 1.1em; height: 1.1em; }
.published-by { display: flex; align-items: center; gap: .5em; margin-top: .55em; font-size: .75em; color: var(--gravilla); }
.published-by .sample { margin-left: auto; font-size: .9em; }
.mini-avatar { width: 1.6em; height: 1.6em; display: grid; place-items: center; border-radius: 50%; background: var(--cemento); color: var(--ink); font-size: .8em; font-weight: 800; }
.detail-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .2em;
  margin-top: .8em; padding: .3em; border-radius: .75em;
  border: 1px solid var(--junta); background: var(--blanco);
  font-size: .82em; text-align: center;
}
.detail-tabs span { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .55em 0; border-radius: .55em; }
.detail-tabs .is-on { background: var(--critical-text); color: #fff; font-weight: 600; }
.detail-tabs i { padding: 0 .45em; border-radius: .4em; background: var(--cemento); font-style: normal; font-size: .85em; font-weight: 600; font-variant-numeric: tabular-nums; }
.comments { list-style: none; padding: 0; margin: .9em 0 0; display: grid; gap: .9em; }
.comment { display: flex; gap: .6em; align-items: flex-start; }
.avatar { width: 2.2em; height: 2.2em; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--cemento); color: var(--ink); font-size: .85em; font-weight: 800; }
.comment-body { display: grid; gap: .15em; font-size: .85em; line-height: 1.35; }
.comment-body b { font-weight: 600; }
.comment-body small { font-weight: 400; color: var(--gravilla); margin-left: .25em; }
.comment-actions { display: flex; gap: 1.1em; margin-top: .15em; font-size: .88em; font-weight: 600; color: var(--gravilla); }
.comment-actions span { display: inline-flex; align-items: center; gap: .25em; }
.comment-actions .icon { width: 1.1em !important; height: 1.1em !important; }
.screen.is-active .comment { animation: rise .6s var(--ease-out) both; }
.screen.is-active .comment:nth-child(2) { animation-delay: .35s; }
.screen.is-active .comment:nth-child(3) { animation-delay: .7s; }
.screen.is-active .comment:nth-child(4) { animation-delay: 1.05s; }
@keyframes rise { from { opacity: 0; translate: 0 .8em; } to { opacity: 1; translate: 0 0; } }
.composer, .chat-compose {
  display: flex; align-items: center; gap: .6em;
  border-radius: 999px; background: var(--blanco); border: 1px solid var(--control-border);
  color: var(--gravilla);
}
.composer { margin-top: auto; padding: .3em .3em .3em 1em; font-size: .9em; }
.send { margin-left: auto; width: 2.3em; height: 2.3em; display: grid; place-items: center; border-radius: 50%; background: var(--asfalto); color: var(--blanco); }
.send .icon-f { width: 1.2em !important; height: 1.2em !important; }

/* El topo: chat conversation */
.screen-chat { padding: 0; }
.chat-bar { display: flex; align-items: center; gap: .6em; padding: .4em 1em .2em .8em; }
.chat-bar b { font-size: 1.12em; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-bar .sample { margin-left: auto; }
.chat-note { display: flex; align-items: center; gap: .4em; padding: .55em 1.5em 0; font-size: .78em; color: var(--gravilla); }
.chat-note .icon { width: 1.25em !important; height: 1.25em !important; }
.chat { display: grid; gap: .9em; align-content: end; flex: 1; padding: 0 1em .8em; }
.msg { display: grid; gap: .3em; }
.msg-who { display: inline-flex; align-items: center; gap: .3em; padding-left: .2em; font-size: .78em; font-weight: 800; }
.msg-who .icon-f { width: 1.15em !important; height: 1.15em !important; }
.bubble { max-width: 86%; padding: .6em .95em; border-radius: 1.25em; font-size: .9em; line-height: 1.4; }
.msg-topo .bubble { justify-self: start; background: var(--blanco); border: 1px solid var(--junta); }
.msg-me .bubble { justify-self: end; background: var(--asfalto); color: var(--blanco); border-radius: 1.25em 1.25em .35em 1.25em; }
.msg-time { padding-inline: .3em; font-size: .68em; color: var(--gravilla); font-variant-numeric: tabular-nums; }
.msg-me .msg-time { justify-self: end; }
.msg-report { padding-left: .3em; font-size: .7em; color: var(--gravilla); }
.sources { display: grid; gap: .3em; margin-top: .6em; }
.sources b { font-size: .85em; font-weight: 600; }
.source {
  display: flex; align-items: center; gap: .45em;
  padding: .55em .6em; border-radius: .75em; background: var(--cemento);
  font-size: .8em; font-weight: 600; text-decoration: underline; text-underline-offset: .15em;
}
.source .icon { width: 1.15em !important; height: 1.15em !important; }
.quick { display: flex; flex-wrap: wrap; gap: .4em; }
.quick span { padding: .5em .9em; border-radius: 999px; border: 1px solid var(--junta); background: var(--blanco); font-size: .82em; font-weight: 800; }
.screen.is-active .msg { animation: rise .6s var(--ease-out) both; }
.screen.is-active .msg:nth-child(2) { animation-delay: .45s; }
.screen.is-active .msg:nth-child(3) { animation-delay: .95s; }
.chat-foot { border-top: 1px solid var(--junta); padding: .6em 1em 1.5em; }
.chat-private { display: flex; align-items: center; gap: .4em; padding: 0 .4em; font-size: .72em; color: var(--gravilla); }
.chat-private .icon { width: 1.25em !important; height: 1.25em !important; }
.chat-compose { margin-top: .5em; padding: .3em .3em .3em 1.2em; font-size: .95em; }
.send-lg { width: 2.5em; height: 2.5em; }

/* Tu espacio: profile */
.screen-space { padding-inline: 1.25em; }
.space-head { display: flex; align-items: center; gap: .6em; margin-top: .3em; }
.space-head b { font-size: 1.85em; font-weight: 800; letter-spacing: -.03em; }
.space-bell { margin-left: auto; width: 2.9em; height: 2.9em; display: grid; place-items: center; border-radius: .8em; border: 1px solid var(--junta); background: var(--blanco); }
.trial, .profile-card, .content-card { border: 1px solid var(--junta); background: var(--blanco); }
.trial { display: grid; gap: .45em; margin-top: .9em; padding: 1em 1.2em 1.1em; border-radius: 1.25em; }
.trial-tag { justify-self: start; padding: .2em .7em; border-radius: 999px; background: var(--cemento); font-size: .75em; font-weight: 600; }
.trial b { font-size: 1.12em; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.trial p { font-size: .8em; line-height: 1.4; color: var(--gravilla); }
.trial-bar { height: .25em; margin-top: .2em; border-radius: 999px; background: #bdbfba; }
.trial small { font-size: .7em; color: var(--gravilla); }
.btn-outline { margin-top: .3em; padding: .6em; border-radius: 999px; border: 1px solid var(--control-border); text-align: center; font-size: .9em; font-weight: 600; }
.profile-card { margin-top: .9em; border-radius: 1.25em; }
.profile-row { display: flex; align-items: center; gap: .9em; padding: .8em 1.1em; border-bottom: 1px solid var(--junta); }
.profile-row > .icon { margin-left: auto; width: 1.3em !important; height: 1.3em !important; stroke-width: 2.6; }
.profile-avatar { width: 3.2em; height: 3.2em; display: grid; place-items: center; border-radius: 50%; background: var(--cemento); border: 1px solid var(--junta); font-size: 1.05em; font-weight: 800; }
.profile-name { display: grid; }
.profile-name b { font-size: 1.05em; font-weight: 800; }
.profile-name small { font-size: .82em; color: var(--gravilla); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: .7em 0; text-align: center; }
.stats span { display: grid; font-size: .72em; color: var(--gravilla); }
.stats span + span { border-left: 1px solid var(--junta); }
.stats b { font-size: 1.45em; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.credits { display: flex; align-items: center; gap: .8em; margin-top: .9em; padding: .8em 1em; border-radius: 1.25em; border: 1px solid var(--control-border); background: var(--cemento); }
.credits-icon { flex: none; width: 2.75em; height: 2.75em; display: grid; place-items: center; border-radius: .7em; background: var(--asfalto); color: var(--blanco); }
.credits > span:last-child { display: grid; }
.credits b { font-size: .95em; font-weight: 600; letter-spacing: .01em; }
.credits small { font-size: .78em; color: #555b61; } /* Gravilla nudged to 4.5:1 on Cemento */
.space-label { margin-top: 1.2em; font-size: .9em; font-weight: 600; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; margin-top: .55em; }
.content-card { display: grid; gap: .25em; align-content: start; padding: .9em .9em 1.1em; border-radius: 1.25em; }
.content-icon { width: 2.6em; height: 2.6em; margin-bottom: .45em; display: grid; place-items: center; border-radius: .75em; background: var(--cemento); }
.content-card b { font-size: .95em; font-weight: 600; line-height: 1.2; }
.content-card small { font-size: .75em; color: var(--gravilla); }

/* Frog peeks a little higher on every screen change */
.stage-inner.is-peeking .frog { translate: 0 -7%; rotate: -3deg; }

/* ===== Launch close ===== */
.launch {
  position: relative;
  margin-top: 4rem;
  background: rgb(43 47 51 / 92%); color: var(--blanco);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  column-gap: 2rem;
  padding: clamp(4rem, 9vw, 7.5rem) max(var(--gutter), calc((100% - 88rem) / 2 + var(--gutter))) 0;
}
/* The road edge: a 3px amber mark along the top of the band. */
.launch::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--caution); }
.launch-copy { max-width: 40rem; width: 100%; padding-bottom: clamp(4rem, 8vw, 7rem); }
.launch h2 {
  font-size: clamp(3.4rem, 9vw, 6rem);
  font-weight: 800; line-height: .9; letter-spacing: -.03em;
}
.launch h2 span { display: block; }
.launch p { margin-top: 1.5rem; max-width: 30rem; font-size: 1.2rem; font-weight: 400; line-height: 1.5; color: var(--tiza); }
.launch strong { font-weight: 800; color: var(--blanco); text-decoration: underline; text-decoration-thickness: .1em; text-underline-offset: .2em; }
.launch-frog { width: min(100%, 26rem); justify-self: start; margin-bottom: -1px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--noche); color: var(--tiza);
  padding: 2.5rem var(--gutter) 3rem;
  display: grid; justify-items: center; gap: .6rem; text-align: center;
}
.site-footer p { font-size: .95rem; font-weight: 600; }
.site-footer .footer-fine { font-size: .82rem; font-weight: 400; color: var(--gravilla-dark); }


/* ===== Content additions (SEO pass) ===== */
/* Emergency notice: plain fact, not an alert signal */
.emergency {
  margin-top: 1.25rem; max-width: 33rem;
  display: flex; gap: .55rem; align-items: flex-start;
  font-size: 1rem; line-height: 1.45; color: var(--tiza);
}
.emergency .icon { margin-top: .2rem; color: var(--gravilla-dark); }
.emergency a, .step-links a, .faq a, .site-footer a { color: inherit; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.emergency a { font-weight: 800; }

.step-links { list-style: none; padding: 0; margin-top: 1.25rem; display: grid; gap: .5rem; }
.step-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--tiza); text-decoration-color: var(--caution); text-decoration-thickness: 2px; }

/* FAQ */
.faq {
  max-width: 88rem; margin: 2rem auto 0;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
}
.faq h2 {
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  font-weight: 800; line-height: 1; letter-spacing: -.025em;
}
.faq-list {
  margin-top: 2.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
}
.faq-item {
  padding: 1.5rem 1.6rem 1.7rem; border-radius: 1.25rem;
  background: rgb(34 38 42 / 92%); border: 1px solid var(--noche-line);
}
.faq-item h3 { margin: 0; font-size: 1.25rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--blanco); }
.faq-item p { margin-top: .6rem; font-size: 1.02rem; line-height: 1.55; color: var(--gravilla-dark); }

/* ===== Night city backdrop: fixed vector skyline behind the page ===== */
.city {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
  contain: strict;
  background: linear-gradient(180deg, #0b0e10 0%, #12171a 55%, #1d2328 100%);
}
.city svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.city-layer { will-change: transform; }
/* Keeps the reading column dark enough for body text on top of the lights. */
.city::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(22 25 27 / 88%) 0%, rgb(22 25 27 / 62%) 42%, rgb(22 25 27 / 18%) 100%);
}
.c-star { fill: #ededea; animation: twinkle 4s ease-in-out infinite; }
/* Window colour comes from the building group; only flicker is styled here. */
.c-win.flick { animation: flick 7s steps(1, end) infinite; }
.c-beacon { fill: #ededea; animation: beacon 2.4s ease-in-out infinite; }
/* Hidden tab: stop every loop. */
.city.is-paused * { animation-play-state: paused !important; }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
@keyframes flick { 0%, 62% { opacity: 1; } 63%, 78% { opacity: .08; } 79%, 100% { opacity: 1; } }
@keyframes beacon { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
@media (max-width: 899px) {
  /* Blur over a moving layer is the costliest paint on phones; use solid panels instead. */
  .header-date, .store, .stage-inner { backdrop-filter: none; }
  /* The steps scroll under the sticky stage on phones, so it must be opaque. */
  .stage-inner { background: var(--asfalto); }
  .header-date { background: var(--asfalto); }
  .store { background: var(--noche-raised); }
  .faq { margin-top: 0; }
  .city::after { background: linear-gradient(180deg, rgb(22 25 27 / 35%) 0%, rgb(22 25 27 / 78%) 55%, rgb(22 25 27 / 86%) 100%); }
}

/* ===== Mobile: stage sticks to the top, steps scroll beneath ===== */
@media (max-width: 899px) {
  :root { --header-h: 4rem; }
  .wm-word { height: 2.1rem; }
  .wm-tagline { display: none; }
  .header-date { font-size: .82rem; padding: .45rem .8rem; }

  .tour { grid-template-columns: minmax(0, 1fr); padding-inline: 0; }
  .intro, .step { grid-column: 1; padding-inline: var(--gutter); }
  .intro { min-height: auto; padding-block: 1.5rem 3rem; }
  .stage {
    grid-column: 1; grid-row: auto;
    top: 0; z-index: 4;
    height: 62svh; padding: 0;
  }
  .stage-inner { border-radius: 0 0 2rem 2rem; }
  /* Room under the phone so the step pills do not touch its nav bar. */
  .stage-inner { padding-block: 2rem 4.75rem; }
  .phone-wrap { height: 100%; }
  .frog { width: 34%; right: -2%; }
  .tour-index { top: auto; bottom: 1rem; left: 50%; translate: -50% 0; grid-auto-flow: column; gap: .5rem; }
  .tour-index li { gap: 0; }
  .tour-index li span { display: none; }
  .tour-index li::before { width: 1.5rem; height: 1.5rem; font-size: .72rem; }
  .tour-index li.is-on::after { content: ''; position: absolute; left: 50%; bottom: -.4rem; width: 1rem; height: 3px; translate: -50% 0; border-radius: 2px; background: var(--caution); }
  .stage-note { bottom: auto; top: .6rem; font-size: .72rem; }
  .step { min-height: 60svh; align-items: flex-start; padding-block: 2.25rem 3rem; }
  .step h2 { font-size: 2.25rem; }
  .step h2 + p { font-size: 1.05rem; }

  .launch { grid-template-columns: minmax(0, 1fr); padding-top: 4rem; margin-top: 0; }
  .launch-copy { padding-bottom: 2rem; }
  .launch-frog { width: min(75%, 18rem); justify-self: end; }
}

@media (max-width: 380px) {
  .hd-lead { display: none; }
  .store { min-width: 0; flex: 1 1 9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  .screen { translate: none; }
  .stage-inner.is-peeking .frog { translate: none; rotate: none; }
}

/* ===== Legal pages, Libro de Reclamaciones and checkout (shared) ===== */
.legal-top { padding: 1.25rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 88rem; margin-inline: auto; }
.legal-top a.back { color: var(--tiza); font-weight: 600; text-underline-offset: .18em; min-height: 44px; display: inline-flex; align-items: center; }
.legal { max-width: 46rem; margin: 0 auto; padding: 1.5rem var(--gutter) 4rem; }
.legal h1 { font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; margin-bottom: .75rem; color: var(--blanco); }
.legal .lead { color: var(--gravilla-dark); font-size: 1.1rem; }
.legal .meta { color: var(--gravilla-dark); font-size: .9rem; margin-top: .75rem; }
.legal section { margin-top: 2.25rem; }
.legal h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: .6rem; color: var(--blanco); }
.legal h3 { font-size: 1.05rem; font-weight: 800; margin: 1.25rem 0 .4rem; color: var(--blanco); }
.legal p + p, .legal p + ul, .legal ul + p, .legal ol + p, .legal p + ol, .legal p + .table-wrap, .legal .table-wrap + p { margin-top: .75rem; }
.legal ul, .legal ol { padding-left: 1.25rem; display: grid; gap: .4rem; }
.legal a { color: var(--blanco); text-decoration-thickness: .08em; text-underline-offset: .18em; }
.legal strong { color: var(--blanco); }
.legal .toc { margin-top: 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--noche-line); border-radius: 1rem; background: var(--noche-raised); }
.legal .toc ol { margin-top: .4rem; }
.legal .note { margin-top: 1rem; padding: .9rem 1.1rem; border-left: 3px solid var(--caution); background: var(--noche-raised); border-radius: 0 .75rem .75rem 0; }
.table-wrap { overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .55rem .6rem; border-bottom: 1px solid var(--noche-line); }
.legal th { color: var(--blanco); font-weight: 600; }
/* Data the owner still has to supply. Grep for class="pending" before publishing. */
mark.pending { background: var(--caution); color: var(--ink); padding: 0 .3em; border-radius: .25em; font-weight: 600; }

/* Footer legal links, present on every page (Ley 32495: permanent Libro de Reclamaciones link). */
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.25rem; list-style: none; padding: 0; margin: .25rem 0 0; font-size: .9rem; }
.footer-legal a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.footer-libro { display: inline-flex; align-items: center; gap: .6rem; margin-top: .5rem; padding: .55rem 1rem; border: 1px solid var(--noche-line); border-radius: .9rem; background: var(--noche-raised); text-decoration: none !important; }
.footer-libro b { font-weight: 800; color: var(--blanco); }
.footer-libro small { display: block; font-size: .78rem; color: var(--gravilla-dark); }

/* Forms */
.form { display: grid; gap: 1.5rem; margin-top: 2rem; }
.form fieldset { margin: 0; padding: 1.25rem; border: 1px solid var(--noche-line); border-radius: 1rem; background: var(--noche-raised); display: grid; gap: 1rem; min-width: 0; }
.form legend { padding: 0 .4rem; font-weight: 800; color: var(--blanco); }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.field label, .field .label { font-weight: 600; color: var(--blanco); }
.field .hint { font-size: .85rem; color: var(--gravilla-dark); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  border: 1px solid var(--control-border); border-radius: .75rem;
  background: var(--noche); color: var(--tiza); font: inherit;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--tiza); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--critical); }
.field .error { font-size: .88rem; color: #ff9b91; }
.choice { display: flex; align-items: flex-start; gap: .7rem; min-height: 44px; padding: .6rem .8rem; border: 1px solid var(--control-border); border-radius: .75rem; cursor: pointer; }
.choice input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; flex: none; accent-color: var(--blanco); }
.choice span small { display: block; color: var(--gravilla-dark); font-size: .85rem; }
.choice:has(input:checked) { border-color: var(--blanco); background: var(--noche-sunken); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.4rem; border: 0; border-radius: 999px;
  background: var(--blanco); color: var(--ink); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
}
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--tiza); border: 1px solid var(--control-border); }
.form-status { padding: .9rem 1.1rem; border-radius: .75rem; background: var(--noche-raised); border: 1px solid var(--noche-line); }
.form-status[data-kind="error"] { border-color: var(--critical); }
.receipt { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--noche-line); border-radius: 1rem; background: var(--noche-raised); }
.receipt dl { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: .4rem 1rem; margin: 1rem 0 0; }
@media (max-width: 520px) { .receipt dl { grid-template-columns: minmax(0, 1fr); gap: .1rem; } .receipt dd { margin-bottom: .5rem; } }
.receipt dt { color: var(--gravilla-dark); }
.receipt dd { margin: 0; color: var(--blanco); overflow-wrap: anywhere; }

@media print {
  body { background: #fff; color: #000; }
  .legal-top, .site-footer, .no-print { display: none !important; }
  .legal h1, .legal h2, .legal strong, .receipt dd { color: #000; }
  .receipt { border-color: #000; background: #fff; }
  .receipt dt { color: #333; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.legal .note-list { list-style: none; padding-left: 1.1rem; }

/* ===== Planes (/planes/): plan cards, period toggle, cart and cancel dialog ===== */
.pl-page { max-width: 64rem; }
.pl-page > section > p + p, .pl-page > section > p + .form { margin-top: .75rem; }
.pl-fine { font-size: .9rem; color: var(--gravilla-dark); }
.pl-fine + .pl-fine { margin-top: .5rem; }
.pl-period { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: .5rem 0 1.25rem; }
.pl-period .label { font-weight: 600; color: var(--blanco); }
.pl-toggle { display: inline-flex; padding: .25rem; border: 1px solid var(--control-border); border-radius: 999px; background: var(--noche-raised); }
.pl-toggle label { position: relative; display: inline-flex; }
.pl-toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pl-toggle span { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; font-weight: 600; color: var(--tiza); }
.pl-toggle small { font-size: .78rem; font-weight: 600; color: var(--gravilla-dark); }
.pl-toggle input:checked + span { background: var(--blanco); color: var(--ink); }
.pl-toggle input:checked + span small { color: var(--asfalto); }
.pl-toggle input:focus-visible + span { outline: 3px solid var(--tiza); outline-offset: 2px; }
.pl-plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.pl-plan { display: flex; flex-direction: column; gap: .5rem; min-width: 0; padding: 1.25rem; border: 1px solid var(--noche-line); border-radius: 1.25rem; background: var(--noche-raised); }
.pl-plan.is-on { border-color: var(--blanco); box-shadow: inset 0 3px 0 var(--caution); }
.pl-plan h3 { margin: 0; font-size: 1.35rem; }
.pl-plan ul { margin: .25rem 0 .5rem; flex: 1; }
.pl-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; }
.pl-amount { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; color: var(--blanco); }
.pl-amount mark.pending { font-size: 1.5rem; }
/* Confirmed fallback prices keep the <mark> hook for period switching but read as plain text. */
.pl-amount mark:not(.pending) { background: none; color: inherit; padding: 0; }
.pl-per, .pl-sub { color: var(--gravilla-dark); font-size: .92rem; }
.pl-tag { font-weight: 600; color: var(--gravilla-dark); }
.pl-pick { margin-top: auto; font-weight: 800; color: var(--blanco); }
.pl-session { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.25rem; padding: 1rem 1.25rem; border: 1px solid var(--noche-line); border-radius: 1rem; background: var(--noche-raised); }
#mi-membresia .receipt, #pagar .receipt { margin-top: 1rem; }
#mi-membresia:focus, #pl-result:focus, #pl-mine-status:focus { outline: none; }
.pl-total { font-size: 1.15rem; font-weight: 800; }
.pl-disclosure { margin-top: 1rem; padding: .85rem 1rem; border-left: 3px solid var(--caution); background: var(--noche); border-radius: 0 .75rem .75rem 0; color: var(--blanco); }
.receipt .pl-fine { margin-top: .75rem; }
.pl-pay { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.pl-dialog { width: min(32rem, calc(100vw - 2rem)); padding: 1.5rem; border: 1px solid var(--noche-line); border-radius: 1.25rem; background: var(--noche-raised); color: var(--tiza); }
.pl-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.pl-dialog h2 { margin: 0 0 .75rem; font-size: 1.25rem; color: var(--blanco); }
.pl-dialog p + p { margin-top: .6rem; }
.pl-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; margin-top: 1.25rem; }
.pl-page .btn:focus-visible, .pl-page .choice:has(input:focus-visible) { outline: 3px solid var(--tiza); outline-offset: 3px; }
#pl-result { margin-top: 2.25rem; padding: 1.25rem; border: 1px solid var(--blanco); border-radius: 1rem; background: var(--noche-raised); }
