@font-face { font-family: Geist; src: url(/fonts/geist-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/geist-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(/fonts/geist-mono-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Bricolage; src: url(/fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b1114; --surface: #121b20; --surface-2: #19242a; --line: #24323a;
  --text: #e8ecee; --text-2: #a9b5bb; --text-3: #7a8a92;
  --brand: #a99cff; --brand-ink: #0b1114;
  --m-micro: #6a8ba8; --m-minor: #4fb3bf; --m-light: #9bd66b; --m-mod: #f2c14e; --m-strong: #ff8a5b;
  --contour: #31434c; --contour-strong: #4d636b;
  --radius: 20px; --max: 1120px;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f4f1ea; --surface: #fbf9f4; --surface-2: #ebe6db; --line: #ddd6c8;
    --text: #13202a; --text-2: #46565f; --text-3: #5f6e76;
    --brand: #5b4bd6; --brand-ink: #fff;
    --m-micro: #44566a; --m-minor: #1a7d88; --m-light: #46801f; --m-mod: #94690a; --m-strong: #9d2c1d;
    --contour: #d3cbbb; --contour-strong: #b9ae99;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 Geist, system-ui, sans-serif; }
a { color: var(--brand); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.top { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 20px/1 Bricolage, Geist, sans-serif; letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { color: var(--text-2); text-decoration: none; }
.top nav a:hover { color: var(--text); }

h1, h2, h3 { font-family: Bricolage, Geist, sans-serif; letter-spacing: -.02em; line-height: 1.08; margin: 0 0 .4em; }
h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 650; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); max-width: 34ch; }
.eyebrow { font: 500 13px/1 'Geist Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }

/* Página de sismo compartido */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.note { font-size: 14px; color: var(--text-3); }

/* ── Portada ─────────────────────────────────────────────────────────────── */
.nav-cta { color: var(--text) !important; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; }
.nav-cta:hover { border-color: var(--brand); }

.hero { display: grid; gap: 28px; align-items: center; max-width: var(--max); margin: 0 auto; padding: 16px 20px 64px; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; padding-block: 24px 96px; } }
/* La pregunta que todo el mundo hace cuando tiembla. */
.hero h1 { font-size: clamp(72px, 7.4vw, 112px); line-height: .88; letter-spacing: -0.055em; font-weight: 800; margin: 0; }
.hero .lead { margin: 24px 0 0; max-width: 30ch; }
.hero__text { position: relative; z-index: 1; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { filter: brightness(1.06); }
.btn:focus-visible, .nav-cta:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.soon { font-size: 15px; color: var(--text-3); }

/* El mapa vivo: la pieza memorable de la página. */
.live { margin: 0; position: relative; }
.live__map { width: 100%; height: auto; display: block; overflow: hidden; }
/* Las isolíneas: curvas de nivel reales cada 250 m, las de cada 1000 m más marcadas. */
.live__contours { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.live__contours .c250 { stroke: var(--contour); stroke-width: .7; }
.live__contours .c1000 { stroke: var(--contour-strong); stroke-width: 1; }
.live__neighbor { fill: none; }
.live__land { fill: var(--surface-2); stroke: var(--line); stroke-width: 1; }
.live__border { fill: none; stroke: var(--text-3); stroke-width: 1.6; stroke-linejoin: round; }
.q { color: var(--m-micro); }
.q--minor { color: var(--m-minor); } .q--light { color: var(--m-light); } .q--mod { color: var(--m-mod); } .q--strong { color: var(--m-strong); }
.q__ring { fill: none; stroke: currentColor; stroke-width: 1; }
.q__core { fill: currentColor; }
.q__core--hollow { fill: none; stroke: currentColor; stroke-width: 1.6; }
.q__pulse { fill: none; stroke: var(--brand); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s cubic-bezier(.22, 1, .36, 1) infinite; opacity: 0; }
.q--in { transform-box: fill-box; transform-origin: center; animation: q-in 700ms cubic-bezier(.22, 1, .36, 1) both; }
@keyframes q-in { from { opacity: 0; transform: scale(.2); } 60% { opacity: 1; } to { opacity: 1; transform: scale(1); } }
.q__burst { fill: currentColor; fill-opacity: .25; stroke: currentColor; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: burst 1.6s cubic-bezier(.22, 1, .36, 1); }
@keyframes burst { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(7); } }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(6); opacity: 0; } }
.live__caption { display: flex; gap: 10px; align-items: baseline; margin-top: 12px; font-size: 15px; color: var(--text-2); }
.live__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--m-light); transform: translateY(-1px); }

.band { padding-block: 72px; border-top: 1px solid var(--line); }
.band h2 { max-width: 18ch; }

.tiers { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tiers li { display: grid; justify-items: start; gap: 2px; }
.tiers svg { width: 72px; height: 72px; margin-bottom: 8px; }
.tier-name { font: 600 17px/1.3 Bricolage, Geist, sans-serif; color: var(--text); }
.tier-range { font-size: 14px; color: var(--text-3); }
@media (max-width: 640px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } }
.depth { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px 32px; color: var(--text-2); font-size: 15px; }
.depth li { display: flex; align-items: center; gap: 8px; }
.depth svg { width: 28px; height: 28px; }

.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); } }
.phone { justify-self: center; width: min(320px, 78vw); border-radius: 42px; padding: 9px; background: var(--surface-2); border: 1px solid var(--line); }
.phone img { border-radius: 33px; width: 100%; }
.points { margin: 28px 0 0; display: grid; gap: 22px; }
.points dt { font: 600 18px/1.3 Bricolage, Geist, sans-serif; color: var(--text); }
.points dd { margin: 4px 0 0; color: var(--text-2); max-width: 52ch; }

.band .lead { max-width: 44ch; margin: 0; }

/* Cuando tiembla: una línea de tiempo real, de segundos antes a horas después. */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 36px; position: relative; }
.step { position: relative; padding-left: 28px; }
.step::before { content: ''; position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.step::after { content: ''; position: absolute; left: 5px; top: 22px; bottom: -36px; width: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step--other::before { background: var(--bg); border: 1.5px dashed var(--text-3); box-shadow: none; width: 9px; height: 9px; }
.step__time { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.step--other .step__time { color: var(--text-3); }
.step h3 { margin: 0 0 6px; font-size: 22px; }
.step > p:not(.step__time) { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.55; max-width: 34ch; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .step { padding: 30px 0 0; }
  .step::before { top: 0; left: 0; }
  .step::after { left: 18px; right: -28px; top: 5px; bottom: auto; width: auto; height: 1px; }
}
.mock { margin-top: 18px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--text); max-width: 34ch; }
.mock strong { font-weight: 600; }
.mock--muted { flex-direction: column; align-items: flex-start; gap: 2px; border-style: dashed; background: transparent; color: var(--text-3); }
.mock__label { font-weight: 600; color: var(--text-2); }
.mock--felt { flex-direction: column; align-items: stretch; background: color-mix(in srgb, var(--brand) 13%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.mock__btn { align-self: flex-start; padding: 7px 12px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.mock--notice > span:last-child { display: grid; gap: 2px; }
.mock--notice > span:last-child > span { color: var(--text-2); }
.mock__disc { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--m-light); color: var(--bg); font-weight: 600; font-variant-numeric: tabular-nums; }
.mock--context { border-left: 3px solid var(--brand); }
.cne { margin: 40px 0 0; color: var(--text-2); }

.where { list-style: none; padding: 0; margin: 28px 0 0; display: grid; }
.where li { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.where strong { font: 600 18px/1.3 Bricolage, Geist, sans-serif; }
.where span { color: var(--text-2); }
.where a { font-weight: 600; }
@media (max-width: 640px) { .where li { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .q__pulse, .q__burst { display: none; } .q--in { animation: none; } }

.prose { max-width: 760px; padding-block: 32px 80px; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); }
.prose h2 { font-size: 24px; margin-top: 2em; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }
.meta { font: 500 13px/1.4 'Geist Mono', monospace; color: var(--text-3); }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--text-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--text-2); }

@media (max-width: 520px) { .top nav a:not(:last-child) { display: none; } }
