@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;800&family=Inter:wght@400;500;600;700&display=swap");

:root,
html[data-theme="light"] {
  --bg: #f3f2f2;
  --ink: #201e1d;
  --muted: #605d5d;
  --line: color-mix(in srgb, #201e1d 18%, transparent);
  --accent: #ec3013;
  --accent-deep: #ae1800;
  --paper: #faf8f6;
  --on-accent: #f3f2f2;
  --glass: color-mix(in srgb, #ffffff 46%, transparent);
  --glass-strong: color-mix(in srgb, #ffffff 62%, transparent);
  --glass-edge: color-mix(in srgb, #ffffff 58%, transparent);
  --glass-ink: color-mix(in srgb, #201e1d 8%, transparent);
  --glass-blur: 18px;
  --max: 42rem;
  --pad: clamp(1.15rem, 4.6vw, 1.6rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-t: env(safe-area-inset-top);
  --safe-b: env(safe-area-inset-bottom);
  --chrome-h: calc(136px + var(--safe-t));

  --color-bg: var(--bg);
  --color-text: var(--ink);
  --color-accent: var(--accent);
  --color-accent-700: var(--accent-deep);
  --color-divider: var(--line);
  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-900: #2d2b2b;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --font-heading: Archivo, system-ui, sans-serif;
  --font-body: Archivo, system-ui, sans-serif;
}

html[data-theme="dark"] {
  --bg: #121110;
  --ink: #f3f1ee;
  --muted: #b3aea8;
  --line: color-mix(in srgb, #f3f1ee 16%, transparent);
  --accent: #ff4a2a;
  --accent-deep: #ff8a72;
  --paper: #1b1918;
  --on-accent: #fff8f5;
  --glass: color-mix(in srgb, #1c1918 52%, transparent);
  --glass-strong: color-mix(in srgb, #1c1918 70%, transparent);
  --glass-edge: color-mix(in srgb, #ffffff 14%, transparent);
  --glass-ink: color-mix(in srgb, #000 28%, transparent);
  --color-neutral-100: #2a2726;
  --color-neutral-200: #353230;
  --color-neutral-300: #4a4543;
  --color-neutral-400: #6d6865;
  --color-neutral-500: #8f8a86;
  --color-neutral-600: #b3aea8;
  --color-neutral-700: #d2cdc8;
  --color-neutral-900: #f3f1ee;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Archivo, system-ui, sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: var(--accent-deep); }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 50;
  transform-origin: left;
}

.chrome {
  position: sticky;
  top: 0;
  z-index: 35;
}

.letrero {
  background: #1a0906;
  color: #ffd4c8;
  border-bottom: 2px solid var(--accent);
}
.letrero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1rem;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: calc(0.8rem + var(--safe-t)) var(--pad) 0.85rem;
  text-decoration: none;
  color: inherit;
}
.letrero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff2a2a;
  box-shadow: 0 0 0 0 color-mix(in srgb, #ff2a2a 70%, transparent);
  animation: live-pulse 1.6s ease-out infinite;
  flex: none;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, #ff2a2a 70%, transparent); }
  70% { box-shadow: 0 0 0 7px color-mix(in srgb, #ff2a2a 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, #ff2a2a 0%, transparent); }
}
.letrero-msg {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.letrero-msg strong {
  color: #fff6f3;
  font-weight: 800;
}

.bar {
  position: relative;
  top: auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 8px var(--pad);
  background: var(--glass);
  backdrop-filter: saturate(1.45) blur(var(--glass-blur));
  -webkit-backdrop-filter: saturate(1.45) blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-edge);
  box-shadow: 0 10px 30px var(--glass-ink);
}
.here {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
}
.here[hidden] { display: none; }

.theme {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.78;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.theme svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme .foco-body,
.theme .foco-cup { fill: none; }
.theme .foco-beam { opacity: 0.35; }
html[data-theme="dark"] .theme { opacity: 0.9; }
html[data-theme="dark"] .theme .foco-cup { fill: currentColor; }
html[data-theme="dark"] .theme .foco-beam { opacity: 1; }

a.toc-btn { text-decoration: none; color: inherit; }
.toc-btn {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.toc-btn[aria-expanded="true"] {
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  color: var(--bg);
  border-color: color-mix(in srgb, var(--ink) 40%, transparent);
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) calc(4rem + var(--safe-b));
}

.hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 1.35rem 0 0;
  text-align: center;
  background: var(--bg);
  overflow: hidden;
}
.hero .eyebrow,
.hero .place,
.hero h1 {
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.eyebrow,
.place {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.eyebrow {
  font-size: clamp(14px, 3.6vw, 17px);
  color: var(--muted);
}
.place {
  margin-top: 0.35rem;
  font-size: clamp(13px, 3.3vw, 15px);
  color: color-mix(in srgb, var(--muted) 80%, transparent);
}
.eyebrow s {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
}
.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0.55rem auto 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 11.5vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.96;
  color: var(--ink);
}
.hero .fuente {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2 * var(--pad)), 500px);
  margin-top: 1.35rem;
  margin-bottom: 1.6rem;
}
.hero-stage {
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  background: transparent;
}
.hero-stage img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
}
@media (min-width: 720px) {
  .hero-stage.overlap { margin-top: -3.4rem; }
}

.hero.press {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 1.4rem 0 1.5rem;
  text-align: left;
  overflow: visible;
}
.hero.press h1 {
  max-width: 22ch;
  margin: 0;
  padding: 0;
  font-size: clamp(1.65rem, 6.8vw, 2.45rem);
  line-height: 1.14;
  letter-spacing: -0.038em;
  text-align: left;
}
.hero.press .place {
  margin-top: 0.85rem;
  padding: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.15rem;
  margin-top: 1.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 0;
}
.btn:hover { background: var(--accent-deep); }
.btn-ghost {
  background: var(--glass);
  color: var(--ink);
  border: 1px solid var(--glass-edge);
}
.btn-ghost:hover { background: var(--glass-strong); }

.manifiesto-body {
  margin-top: 1rem;
}
.manifiesto-body p {
  margin: 0 0 1.05em;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4.6vw, 1.45rem);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.02em;
}
.manifiesto-body p:last-child { margin-bottom: 0; }
#pedido { scroll-margin-top: calc(var(--chrome-h) + 20px); }
.manifiesto-nota {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
}

.linea {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  border-top: 2px solid var(--line);
}
.linea li {
  display: grid;
  grid-template-columns: 7.6rem 1fr;
  gap: 14px;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.linea time {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.linea p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}
@media (max-width: 420px) {
  .linea li { grid-template-columns: 1fr; gap: 4px; }
}

.share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.15rem;
}
.share .btn { margin-top: 0; flex: 1 1 8.5rem; }
.share-x {
  align-self: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.subhead {
  margin: 1.6rem 0 0;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}
.tags, .kit {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}
.tags li, .kit li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.4;
}
.tags span, .kit span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}
.todo {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.contactos {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}
.contactos li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.4;
}
.cierre {
  width: 100%;
  margin: 0;
  background: var(--bg);
}
.cierre img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center bottom;
}
.medical-link {
  margin: 0.4rem 0 1.3rem;
  text-align: center;
  font-size: 14px;
}
.medical-link a { color: var(--muted); }

.fuente { margin-top: 1.2rem; }
.fb-fallback img {
  width: 100%;
  height: auto;
  display: block;
}

.toc {
  position: sticky;
  top: var(--chrome-h);
  z-index: 29;
  margin: 0 var(--pad);
  padding: 0.35rem 0.85rem 0.55rem;
  background: var(--glass-strong);
  backdrop-filter: saturate(1.4) blur(22px);
  -webkit-backdrop-filter: saturate(1.4) blur(22px);
  border: 1px solid var(--glass-edge);
  border-radius: 18px;
  box-shadow: 0 16px 40px var(--glass-ink);
}
.toc[hidden] { display: none; }
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc a {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 48px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: 16px;
}
.toc li:last-child a { border-bottom: 0; }
.toc a em {
  font-style: normal;
  font-weight: 800;
  color: var(--accent);
  width: 1.6rem;
  flex: none;
}
.toc a.is-here {
  color: var(--accent-deep);
  font-weight: 700;
}
.toc a.is-here em {
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
}

section.block,
article.block {
  margin: 0 0 0.9rem;
  padding: 1.35rem 1.15rem 1.45rem;
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: saturate(1.4) blur(var(--glass-blur));
  -webkit-backdrop-filter: saturate(1.4) blur(var(--glass-blur));
  box-shadow: 0 12px 32px var(--glass-ink);
  scroll-margin-top: calc(var(--chrome-h) + 16px);
}
.block.is-current {
  background: var(--glass-strong);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--glass-edge));
  box-shadow: 0 16px 36px var(--glass-ink);
}
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker b {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--glass-edge));
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}
.block.is-current .kicker { color: var(--accent); }
.block.is-current .kicker b {
  background: var(--accent);
  color: var(--on-accent);
}
.block h2 {
  margin: 0.7rem 0 0;
  font-size: clamp(1.45rem, 6.4vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.lead, .block p {
  font-size: 17px;
  line-height: 1.5;
}
.lead { margin: 1rem 0 0; }
.note { color: var(--muted); font-size: 15px; }
.fuente {
  width: min(100%, 500px);
  margin-left: auto;
  margin-right: auto;
  line-height: 0;
  overflow: hidden;
}
.fuente iframe {
  display: block;
  width: 100%;
  max-width: 500px;
  border: 0;
  overflow: hidden;
  background: transparent;
}

@media print {
  .progress, .chrome, .toc, .lift, .theme, .toc-btn { display: none !important; }
  body { background: #fff; color: #111; }
  .block, .footer, .fuente { break-inside: avoid; box-shadow: none; }
  .letrero { display: block !important; }
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem 1.1rem;
  margin-top: 1.5rem;
}
.stat {
  border-top: 2px solid var(--line);
  padding-top: 0.7rem;
}
.stat b {
  display: block;
  font-size: clamp(1.7rem, 7vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat p { margin: 0.55rem 0 0; font-size: 15px; line-height: 1.35; }
.stat.wide { grid-column: 1 / -1; }
.accent { color: var(--accent); }

.facts {
  margin-top: 1.4rem;
  border-top: 2px solid var(--line);
}
.facts > div {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.4;
}
.checks { margin-top: 1.4rem; border-top: 2px solid var(--line); }
.check {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  cursor: pointer;
}
.check i {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid var(--ink);
  flex: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.check.is-on i {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3px var(--bg);
}

.mapa { margin-top: 1.1rem; }
.mapa svg { width: 100%; }
.hit { cursor: pointer; }
.leyenda { margin-top: 1rem; border-top: 2px solid var(--line); }
.mark {
  width: 100%;
  display: flex;
  gap: 14px;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  cursor: pointer;
  font-size: 17px;
  line-height: 1.4;
}
.mark b {
  color: var(--accent);
  width: 1.1rem;
  flex: none;
}
.mark.is-on { color: var(--accent-deep); }

.cards { display: grid; gap: 1.15rem; margin-top: 1.4rem; }
.card {
  border-top: 2px solid var(--line);
  padding-top: 0.7rem;
}
.card h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.card p { margin: 0.4rem 0 0; font-size: 16px; }
.card.alert { border-top-color: var(--accent); }
.card.alert h3 { color: var(--accent-deep); }

.steps { display: grid; gap: 0.7rem; margin-top: 1.35rem; }
.step {
  border: 1px solid var(--glass-edge);
  background: var(--glass);
  backdrop-filter: saturate(1.25) blur(16px);
  -webkit-backdrop-filter: saturate(1.25) blur(16px);
  overflow: hidden;
}
.step summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 800;
}
.step summary::-webkit-details-marker { display: none; }
.step summary span {
  color: var(--accent);
  width: 1.2rem;
}
.step .body {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  padding: 0 14px 16px;
  align-items: start;
}
.step svg { width: 132px; }
@media (max-width: 420px) {
  .step .body { grid-template-columns: 1fr; }
  .step svg { width: 148px; }
}

.callout {
  background: color-mix(in srgb, var(--accent) 88%, transparent);
  color: var(--on-accent);
  padding: 1.15rem 1.1rem;
  margin-top: 1.3rem;
  border: 1px solid color-mix(in srgb, #fff 28%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.callout p { margin: 0; font-weight: 600; font-size: 18px; line-height: 1.4; }

.footer {
  margin-top: 0.15rem;
  background: color-mix(in srgb, var(--accent) 90%, transparent);
  color: var(--on-accent);
  padding: 1.8rem 1.2rem 2rem;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, #fff 26%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.footer p { margin: 0; }
.footer .big {
  font-size: clamp(1.45rem, 6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.footer .fine { margin-top: 1.2rem; font-size: 15px; line-height: 1.5; opacity: 0.92; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s var(--ease) forwards;
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 360px) {
  .stats { grid-template-columns: 1fr; }
}

.lift {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 64px;
  padding: 8px 6px 7px;
  border: 1px solid var(--glass-edge);
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: saturate(1.3) blur(16px);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  cursor: pointer;
  z-index: 25;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 12px 28px var(--glass-ink);
  transition: opacity 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.lift.is-on {
  opacity: 0.9;
  pointer-events: auto;
}
.lift img {
  width: 46px;
  height: 68px;
  object-fit: contain;
  object-position: center bottom;
}
.lift span {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1;
}
.lift:active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .live { animation: none; }
  * { transition: none !important; }
}
