/* ═══════════════════════════════════════════════════════════════
   SOS SKANLIFE · sos.skanlife.com
   Identidad heredada del paquete original. No se cambio ni un color.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --paper: #f4f0e8;
  --paper-2: #ebe6db;
  --card: #fffdf8;
  --ink: #1a1916;
  --muted: #5c6573;
  --subtle: #8a93a3;
  --line: #e2dcd0;
  --sos: #c1121f;
  --ok: #1b7a3d;
  --warn: #9a6700;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { text-wrap: balance; font-family: var(--font-display); }
p { text-wrap: pretty; }
a { color: var(--sos); }
button { cursor: pointer; font: inherit; }

.page { max-width: 36rem; margin: 0 auto; padding: 3.5rem 1.5rem 2rem; text-align: center; }
.brand {
  display: inline-flex; gap: .4rem; align-items: baseline;
  font-family: var(--font-display); font-weight: 700; font-size: 2rem;
  letter-spacing: -.04em; color: var(--ink); text-decoration: none;
}
.brand em { font-style: normal; color: var(--sos); }
.rule { color: var(--sos); letter-spacing: .45em; font-size: 11px; margin: 10px 0 36px; }
.disc {
  width: 160px; height: 160px; margin: 0 auto; border-radius: 50%;
  background: var(--sos); color: var(--card);
  display: grid; place-items: center; text-align: center;
  box-shadow: 0 18px 40px rgba(193,18,31,.28);
}
.disc small { display: block; font-size: 9px; letter-spacing: .16em; opacity: .9; font-weight: 600; }
.disc b { display: block; margin-top: 6px; font-family: var(--font-display); font-size: 14px; }
.disc span { display: block; margin-top: 4px; font-size: 11px; opacity: .9; }

h1.hero { font-size: clamp(1.7rem, 6vw, 2.15rem); line-height: 1.15; letter-spacing: -.03em; margin: 2rem 0 1rem; font-weight: 650; }
.lead { color: var(--muted); font-size: 1.05rem; line-height: 1.55; max-width: 36rem; margin: 0 auto 1rem; }
.close { font-weight: 650; margin: 1rem 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; border: 0;
}
.btn-sos { background: var(--sos); color: var(--card); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.steps { text-align: left; margin: 3.5rem 0 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.ico {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: rgba(193,18,31,.1); color: var(--sos);
  font-family: var(--font-display); font-weight: 700;
}
.steps h2 { font-size: 1.125rem; margin: 0; letter-spacing: -.02em; }
.steps p { margin: .25rem 0 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.note { margin-top: 2.5rem; font-size: .875rem; line-height: 1.6; color: var(--muted); }
footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
         font-size: .8125rem; color: var(--subtle); line-height: 1.7; }

/* ── formulario ────────────────────────────────────────────── */
.form { max-width: 34rem; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.back { display: inline-block; margin-bottom: 1.5rem; text-decoration: none; font-weight: 600; }
.form h1 { font-size: 1.6rem; letter-spacing: -.02em; margin: 0 0 .5rem; }
.form > p { color: var(--muted); line-height: 1.55; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.25rem 1.25rem; margin: 1.5rem 0 0; background: var(--card); }
legend { font-family: var(--font-display); font-weight: 700; font-size: .95rem; padding: 0 .4rem; }
label { display: block; margin: 1rem 0 .35rem; font-size: .8125rem; font-weight: 700;
        letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: .7rem .8rem; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sos); outline-offset: 1px; }
textarea { resize: vertical; }
.hint { font-size: .8125rem; color: var(--muted); line-height: 1.55; }
.error { background: #fdecec; border: 1px solid #f5c2c2; color: #8f1520;
         padding: .7rem .9rem; border-radius: 10px; font-size: .9rem; }

/* ── medidor de capacidad del chip ─────────────────────────── */
.medidor { margin-top: 1.25rem; background: var(--card); border: 1px solid var(--line);
           border-radius: 14px; padding: 1rem 1.25rem; }
.medidor h3 { margin: 0 0 .6rem; font-size: 1rem; }
.barra { height: 10px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.barra > i { display: block; height: 100%; background: var(--ok); transition: width .2s; }
.barra.lleno > i { background: var(--sos); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.chip { font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px;
        border: 1px solid var(--line); color: var(--muted); background: var(--paper); }
.chip.si { color: var(--ok); border-color: rgba(27,122,61,.35); background: rgba(27,122,61,.08); }
.chip.no { color: var(--sos); border-color: rgba(193,18,31,.3); background: rgba(193,18,31,.07); }

.salida { margin-top: 1.5rem; }
.salida textarea { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; line-height: 1.5; }
.qr { display: grid; place-items: center; padding: 1rem; background: #fff;
      border: 1px solid var(--line); border-radius: 14px; margin-top: 1rem; }
.qr canvas, .qr img { max-width: 100%; height: auto; }

/* ── enlace para skanlife.com ──────────────────────────────── */
.modulo-sos {
  display: flex; align-items: center; gap: .75rem; justify-content: center;
  padding: 1rem 1.25rem; border-top: 1px solid var(--line);
  font-family: var(--font-sans); font-size: .95rem;
}
.modulo-sos b { font-family: var(--font-display); }

/* ═══════════════════════════════════════════════════════════════
   LA FICHA · lo que ve quien llega al accidente
   Botones grandes, contraste alto, alergias primero.
   Esta pantalla no carga tipografias de internet a proposito:
   tiene que pintarse con mala senal.
   ═══════════════════════════════════════════════════════════════ */
.ficha-head { background: var(--sos); color: var(--card); padding: 1.5rem 1.25rem 1.75rem; }
.ficha-head .inner { max-width: 34rem; margin: 0 auto; display: flex; gap: 1rem;
                     align-items: flex-start; justify-content: space-between; }
.ficha-head small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.ficha-head h1 { font-size: 1.6rem; line-height: 1.15; margin: .35rem 0 0; letter-spacing: -.02em; }
.ficha-head .meta { font-size: .9rem; opacity: .9; margin-top: .25rem; }
.ficha-head .badge { flex-shrink: 0; text-align: center; font-size: 10px; font-weight: 700;
                     letter-spacing: .1em; line-height: 1.6; background: rgba(255,255,255,.16);
                     border-radius: 12px; padding: .5rem .7rem; }

.wrap { max-width: 34rem; margin: 0 auto; padding: 1.25rem 1.25rem 3rem; }

.alerta { background: #fdecec; border: 2px solid var(--sos); border-radius: 14px;
          padding: .9rem 1.1rem; margin-bottom: 1rem; }
.alerta .label { color: var(--sos); }
.alerta strong { display: block; margin-top: .2rem; font-size: 1.2rem; line-height: 1.35; }
.alerta.vacia { background: var(--card); border-color: var(--line); }
.alerta.vacia strong { font-size: 1rem; font-weight: 600; color: var(--muted); }

.call { display: block; text-align: center; text-decoration: none; font-weight: 700;
        font-size: 1.05rem; padding: 1rem; border-radius: 14px; margin-bottom: .6rem; }
.call.red { background: var(--sos); color: var(--card); }
.call.white { background: var(--card); color: var(--ink); border: 2px solid var(--ink); }
.call.muted { background: var(--paper-2); color: var(--muted); font-weight: 600; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px;
        padding: .35rem 1.1rem 1rem; margin: 1rem 0; }
.row { padding: .8rem 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.label { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--subtle);
         text-transform: uppercase; padding-top: .8rem; }
.card > .label:first-child { padding-top: 1rem; }
.row .label { padding-top: 0; margin-bottom: .2rem; }
.row .ok { color: var(--ok); }
.contact { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
           padding: .8rem 0; border-top: 1px solid var(--line); }
.contact .rel { font-size: 14px; color: var(--muted); }
.btn.chico { min-height: 40px; padding: 0 1rem; font-size: 14px; }
.vacio { color: var(--muted); }
.legal { font-size: .78rem; color: var(--subtle); line-height: 1.7; text-align: center; margin-top: 1.5rem; }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
          max-width: 34rem; margin: 0 auto; padding: 1rem 1.25rem; }
.topbar a { font-weight: 700; text-decoration: none; }
.banner { background: var(--paper-2); color: var(--muted); text-align: center;
          font-size: .85rem; padding: .6rem 1rem; margin: 0; }
