@font-face {
  font-family: "Geist";
  src: url("/fuentes/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fuentes/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Mismos colores que la app del evento (estilo Vercel). */
:root {
  --fondo: oklch(1 0 0);
  --texto: oklch(0.141 0.005 285.823);
  --tarjeta: oklch(1 0 0);
  --suave: oklch(0.967 0.001 286.375);
  --apagado: oklch(0.552 0.016 285.938);
  --borde: oklch(0.92 0.004 286.32);
  --boton: oklch(0.21 0.006 285.885);
  --boton-texto: oklch(0.985 0 0);
  --exito: oklch(0.627 0.17 149.2);
  --aviso: oklch(0.666 0.179 58.318);
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: oklch(0.13 0.004 285.8);
    --texto: oklch(0.985 0 0);
    --tarjeta: oklch(0.165 0.005 285.8);
    --suave: oklch(0.24 0.006 286.033);
    --apagado: oklch(0.705 0.015 286.067);
    --borde: oklch(1 0 0 / 10%);
    --boton: oklch(0.985 0 0);
    --boton-texto: oklch(0.141 0.005 285.823);
    --exito: oklch(0.765 0.177 163.2);
    --aviso: oklch(0.828 0.189 84.429);
  }
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-tap-highlight-color: transparent; }
body {
  background: var(--fondo);
  color: var(--texto);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100dvh;
}
b { font-weight: 600; }
a { color: inherit; }
code, .mono { font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.85em; }
[hidden] { display: none !important; }
svg.i { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Encabezado y menú ---------- */
header { border-bottom: 1px solid var(--borde); }
.barra { max-width: 40rem; margin: 0 auto; padding: 12px 16px 0; display: flex; flex-direction: column; gap: 10px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.logo img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 0 1px var(--borde); }
nav { display: flex; gap: 2px; margin: 0 -10px; }
nav a {
  padding: 6px 10px 10px; font-size: 0.875rem; color: var(--apagado); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
nav a:hover { color: var(--texto); }
nav a[aria-current="page"] { color: var(--texto); border-bottom-color: var(--texto); }

/* ---------- Contenido ---------- */
main { max-width: 40rem; margin: 0 auto; padding: 28px 16px 48px; display: flex; flex-direction: column; gap: 20px; }
.portada { display: flex; flex-direction: column; gap: 8px; padding-bottom: 4px; }
.portada.centro { align-items: center; text-align: center; }
.portada img { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 8px; }
h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.portada p { color: var(--apagado); font-size: 0.95rem; max-width: 30rem; }
h2 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
h2 .i { color: var(--apagado); }
.subtitulo { font-size: 0.875rem; color: var(--apagado); margin-top: 4px; }

.tarjeta { border: 1px solid var(--borde); border-radius: 14px; background: var(--tarjeta); padding: 20px; }
.tarjeta > h2 + .pasos, .tarjeta > .subtitulo + .pasos, .tarjeta > h2 + p { margin-top: 14px; }
.pie-tarjeta { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--borde); font-size: 0.8rem; color: var(--apagado); }

ol.pasos { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
ol.pasos > li { display: flex; gap: 12px; font-size: 0.875rem; line-height: 1.6; }
ol.pasos > li::before {
  counter-increment: paso; content: counter(paso);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 999px; border: 1px solid var(--borde);
  font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.75rem; color: var(--apagado);
}
ol.pasos { counter-reset: paso; }
ol.pasos > li > div { flex: 1; padding-top: 1px; min-width: 0; }
ul.lista { padding-left: 18px; font-size: 0.875rem; display: flex; flex-direction: column; gap: 6px; }
ul.lista li::marker { color: var(--apagado); }

/* ---------- Botones ---------- */
.boton {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; width: 100%; border-radius: 10px; border: 0;
  background: var(--boton); color: var(--boton-texto);
  font: inherit; font-size: 1rem; font-weight: 500; text-decoration: none; cursor: pointer;
}
.boton .i { width: 20px; height: 20px; }
.boton[aria-disabled="true"] { background: var(--suave); color: var(--apagado); cursor: default; }
.boton.chico { height: 36px; width: auto; padding: 0 14px; font-size: 0.875rem; display: inline-flex; }
.boton.chico .i { width: 16px; height: 16px; }
.detalle { text-align: center; font-size: 0.8rem; color: var(--apagado); font-family: "Geist Mono", ui-monospace, monospace; margin-top: 10px; min-height: 1.2em; }

/* ---------- Avisos ---------- */
.nota {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--borde); border-radius: 10px; padding: 12px 14px;
  font-size: 0.875rem; background: var(--suave);
}
.nota .i { width: 18px; height: 18px; margin-top: 2px; color: var(--aviso); }
.nota code { white-space: nowrap; }

/* ---------- Dirección para copiar ---------- */
.copiable {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
  border: 1px solid var(--borde); border-radius: 8px; background: var(--suave);
  padding: 4px 4px 4px 12px;
}
.copiable code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 0.8rem; }
.copiable button {
  flex-shrink: 0; height: 30px; padding: 0 10px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--borde); background: var(--tarjeta); color: var(--texto); font: inherit; font-size: 0.75rem;
}

/* ---------- Tarjetas para elegir ---------- */
.opciones { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
a.opcion {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  border: 1px solid var(--borde); border-radius: 14px; background: var(--tarjeta); padding: 18px;
  transition: border-color 0.15s;
}
a.opcion:hover { border-color: var(--apagado); }
.opcion .fila { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.opcion .titulo { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.opcion .titulo .i { width: 18px; height: 18px; }
.opcion p { font-size: 0.875rem; color: var(--apagado); }
.etiqueta {
  font-size: 0.7rem; font-weight: 500; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--borde); color: var(--apagado); white-space: nowrap;
}
.etiqueta.lista { color: var(--exito); border-color: color-mix(in oklch, var(--exito) 40%, transparent); }

/* ---------- Cómo funciona ---------- */
.flujo { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); counter-reset: paso; }
.flujo li { border: 1px solid var(--borde); border-radius: 12px; padding: 14px; font-size: 0.85rem; display: flex; flex-direction: column; gap: 8px; }
.flujo li .i { width: 20px; height: 20px; color: var(--apagado); }

.siguiente { display: flex; flex-wrap: wrap; gap: 8px; }

footer { text-align: center; font-size: 0.75rem; color: var(--apagado); padding: 0 16px 32px; }
