/* Preparadok · identidad de marca
   Verde #6DC7A3 y naranja #EFA850 (logo), texto #333333 y tipografía Gabiant. El rojo se reserva para lo urgente (llamar, alertas). */
@font-face{font-family:"Gabiant";src:url(fonts/Gabiant-Regular.otf) format("opentype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Gabiant";src:url(fonts/Gabiant-Italic.otf) format("opentype");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Gabiant";src:url(fonts/Gabiant-SemiBold.otf) format("opentype");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Gabiant";src:url(fonts/Gabiant-Bold.otf) format("opentype");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Gabiant";src:url(fonts/Gabiant-ExtraBold.otf) format("opentype");font-weight:800;font-style:normal;font-display:swap}

:root{
  --green:#6DC7A3;--green-2:#58b690;--orange:#EFA850;--orange-2:#e19a38;--ink:#333333;
  --bg:#f5faf8;--card:#fff;--fg:#333333;--muted:#586560;--line:#d9e6e0;
  --brand:#1b7658;--brand-fg:#1f2b26;--brand-2:#125c44;--tint:#e0f4ea;
  --sos:#c62828;--sos-2:#9f1d1d;--sos-fg:#fff;--sos-tint:#fde8e6;--sos-text:#b3261e;
  --ok:#1b7658;--ok-tint:#e0f4ea;--warn:#8a5100;--warn-tint:#fdeed6;--info:#0b57d0;--info-tint:#e6eefb;
  --hdr-bg:var(--green);--hdr-fg:#1f2b26;
  --r:18px;--r-sm:12px;
  --shadow:0 1px 2px rgba(31,43,38,.06),0 6px 18px rgba(31,43,38,.07);
  --font:"Gabiant",ui-rounded,"Avenir Next Rounded","Nunito","Segoe UI Variable Display","Segoe UI",system-ui,-apple-system,Roboto,sans-serif;
  --font-body:"Gabiant",ui-rounded,"Avenir Next","Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,Roboto,sans-serif;
  --nav-h:66px;
  --badge-bg:#fff;--badge-fg:#1b7658;--top-line:transparent;
  --hero-bg:linear-gradient(160deg,var(--sos) 0%,var(--sos-2) 100%);--hero-fg:#fff;
  --sosm-bg:#fff;--sosm-fg:#8f1a1a;--sosm-sub:#6b3b3b;--chk:#fff;
  color-scheme:light dark;
}
:root[data-theme=light]{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark;
    --bg:#1c2220;--card:#262d2a;--fg:#eef3f0;--muted:#a9b8b1;--line:#37423d;
    --brand:#6DC7A3;--brand-fg:#16211c;--brand-2:#9fdcc3;--tint:#22372e;
    --sos:#ff8a80;--sos-2:#ff6f64;--sos-fg:#2b0000;--sos-tint:#3a1e1c;--sos-text:#ff8a80;
    --ok:#7fd9a7;--ok-tint:#1f3a2c;--warn:#EFA850;--warn-tint:#3b2f1b;--info:#a8c7fa;--info-tint:#162338;
    --hdr-bg:var(--card);--hdr-fg:var(--fg);
    --shadow:0 1px 2px rgba(0,0,0,.3),0 6px 18px rgba(0,0,0,.25);
    --badge-bg:var(--tint);--badge-fg:var(--brand);--top-line:var(--line);
    --hero-bg:linear-gradient(160deg,#5a1f1b,#3a1311);--hero-fg:#ffe9e6;
    --sosm-bg:#2a1e1d;--sosm-fg:#ffb4ab;--sosm-sub:#d9b5b0;--chk:#04200f}
@media (prefers-color-scheme:dark){
  :root:not([data-theme=light]){
    --bg:#1c2220;--card:#262d2a;--fg:#eef3f0;--muted:#a9b8b1;--line:#37423d;
    --brand:#6DC7A3;--brand-fg:#16211c;--brand-2:#9fdcc3;--tint:#22372e;
    --sos:#ff8a80;--sos-2:#ff6f64;--sos-fg:#2b0000;--sos-tint:#3a1e1c;--sos-text:#ff8a80;
    --ok:#7fd9a7;--ok-tint:#1f3a2c;--warn:#EFA850;--warn-tint:#3b2f1b;--info:#a8c7fa;--info-tint:#162338;
    --hdr-bg:var(--card);--hdr-fg:var(--fg);
    --shadow:0 1px 2px rgba(0,0,0,.3),0 6px 18px rgba(0,0,0,.25);
    --badge-bg:var(--tint);--badge-fg:var(--brand);--top-line:var(--line);
    --hero-bg:linear-gradient(160deg,#5a1f1b,#3a1311);--hero-fg:#ffe9e6;
    --sosm-bg:#2a1e1d;--sosm-fg:#ffb4ab;--sosm-sub:#d9b5b0;--chk:#04200f}
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--fg);font:1.125rem/1.55 var(--font-body);font-weight:400;-webkit-font-smoothing:antialiased}
a{color:var(--brand)}
h1,h2,h3{font-family:var(--font);letter-spacing:-.015em}
h2{font-size:1.65rem;line-height:1.15;margin:.35em 0 .45em;font-weight:800}
h3{font-size:1.05rem;margin:1.6em 0 .55em;font-weight:800;text-transform:none}
h3.eyebrow,.eyebrow{font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:800}
p{margin:.55em 0}
.muted{color:var(--muted);font-size:.93rem;line-height:1.4}
.lead{font-size:1.12rem}
.skip{position:absolute;left:-999px}.skip:focus{left:8px;top:8px;background:var(--card);padding:10px 14px;z-index:80;border-radius:10px}
:focus-visible{outline:3px solid var(--info);outline-offset:2px;border-radius:6px}
::selection{background:var(--tint)}

/* ---- estructura ---- */
.shell{min-height:100dvh}
.col{min-width:0}
main{max-width:760px;margin:0 auto;padding:18px 16px 28px}
main:focus,main:focus-visible{outline:none}
main.enter>*{animation:rise .2s ease-out both}
main.enter>*:nth-child(2){animation-delay:.02s}main.enter>*:nth-child(3){animation-delay:.04s}
main.enter>*:nth-child(4){animation-delay:.06s}main.enter>*:nth-child(5){animation-delay:.08s}
main.enter>*:nth-child(n+6){animation-delay:.1s}
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.foot{max-width:760px;margin:0 auto;padding:6px 16px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom));color:var(--muted);font-size:.82rem;line-height:1.4}
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px;background:var(--hdr-bg);color:var(--hdr-fg);padding:8px 16px;padding-top:calc(8px + env(safe-area-inset-top));min-height:60px;border-bottom:1px solid var(--top-line)}

.top h1{flex:1;font-size:1.15rem;margin:0;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.badge{font-size:.75rem;font-weight:700;padding:3px 10px;border-radius:99px;background:var(--badge-bg);color:var(--badge-fg);white-space:nowrap}.badge:empty{display:none}

.call{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;background:var(--sos);color:var(--sos-fg);font-weight:800;text-decoration:none;border-radius:99px;white-space:nowrap;box-shadow:0 2px 0 rgba(0,0,0,.18)}
.call svg{width:18px;height:18px}
.themebtn{display:inline-grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;background:transparent;color:var(--hdr-fg);border:1.5px solid color-mix(in srgb,var(--hdr-fg) 40%,transparent)}
.themebtn:hover{border-color:var(--hdr-fg);background:color-mix(in srgb,var(--hdr-fg) 12%,transparent)}
.themebtn svg{width:20px;height:20px}
.call:active{transform:translateY(1px)}

/* ---- navegación inferior (móvil) ---- */
.tabs{position:fixed;bottom:0;left:0;right:0;z-index:30;display:flex;background:var(--card);border-top:1px solid var(--line);padding:0 2px env(safe-area-inset-bottom);box-shadow:0 -4px 18px rgba(23,38,43,.07)}
.tabs a{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px 0 4px;font-size:.73rem;font-weight:700;text-decoration:none;color:var(--muted);min-height:var(--nav-h);letter-spacing:.01em}
.tabs .ti{display:grid;place-items:center;width:52px;height:30px;border-radius:99px;transition:background .2s,color .2s}
.tabs .ti svg{width:22px;height:22px}
.tabs a[aria-current=page]{color:var(--brand)}
.tabs a[aria-current=page] .ti{background:var(--tint)}
.tabs .brand{display:none}

/* ---- componentes ---- */
.btn,button{font:inherit;font-weight:700;min-height:48px;padding:10px 18px;border-radius:var(--r-sm);border:1.5px solid var(--line);background:var(--card);color:var(--fg);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;transition:transform .12s,border-color .15s,background .15s}
.btn:hover,button:hover{border-color:var(--brand)}
.btn:active,button:active{transform:scale(.98)}
.btn.primary,button.primary{background:var(--green);color:var(--ink);border-color:var(--green)}
.btn.primary:hover,button.primary:hover{background:var(--green-2);border-color:var(--green-2)}
.btn.sos,button.sos{background:var(--sos);color:var(--sos-fg);border-color:var(--sos)}
.btn.block{display:flex;width:100%}
button.danger{border-color:var(--sos);color:var(--sos-text)}
button:disabled{opacity:.7;cursor:default}
.btn svg,button svg{width:20px;height:20px;flex:none}
.back{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:-6px 0 0;text-decoration:none;font-weight:700;color:var(--brand)}
.back svg{width:18px;height:18px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:16px;margin:14px 0;box-shadow:var(--shadow)}
.card>h3:first-child{margin-top:0}
.card.center{text-align:center}
details.card summary{font-weight:800;cursor:pointer;min-height:44px;padding:9px 0;list-style-position:inside}
.rowlink>a{flex:1;display:flex;align-items:center;min-height:44px;color:var(--brand);font-weight:700}
.src a{display:inline-block;padding:8px 0}
.note{background:var(--warn-tint);border-left:5px solid var(--warn);border-radius:var(--r-sm);padding:12px 14px;margin:14px 0}
.note.disclaimer{background:var(--info-tint);border-color:var(--info)}
.foot a{color:var(--brand);font-weight:700}
.note.info{background:var(--info-tint);border-color:var(--info)}
.tag{font-size:.75rem;padding:1px 9px;border-radius:99px;border:1px solid var(--line);color:var(--muted);display:inline-block}
.pill{display:inline-flex;align-items:center;gap:4px;font-size:.76rem;font-weight:800;padding:4px 11px;border-radius:99px;white-space:nowrap}
.lv-call{background:var(--sos-tint);color:var(--sos-text)}
.lv-doctor{background:var(--warn-tint);color:var(--warn)}
.lv-home{background:var(--ok-tint);color:var(--ok)}

/* ---- inicio: tarjeta de emergencia ---- */
.hero{position:relative;overflow:hidden;border-radius:24px;padding:20px 18px 22px;margin:2px 0 6px;color:var(--hero-fg);background:var(--hero-bg);box-shadow:var(--shadow)}
.hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:70px;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' fill-opacity='.13' d='M0 80V48l45-26 38 22 62-38 72 52 48-28 62 34 73-30v46z'/%3E%3Cpath fill='%23fff' fill-opacity='.09' d='M0 80V62l62-24 58 28 82-36 88 36 110-26v40z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat}
.hero>*{position:relative;z-index:1}
.hero h2{margin:0 0 2px;font-size:1.5rem}
.hero p{margin:0 0 14px;opacity:.95}
.sos-main{display:flex;align-items:center;gap:14px;background:var(--sosm-bg);color:var(--sosm-fg);border-radius:18px;padding:14px 18px;text-decoration:none;box-shadow:0 3px 0 rgba(0,0,0,.18);min-height:76px}
.sos-main:active{transform:translateY(2px);box-shadow:0 1px 0 rgba(0,0,0,.18)}
.sos-main svg{width:34px;height:34px;flex:none}
.sos-main b{font-size:2.5rem;line-height:1;letter-spacing:-.02em}
.sos-main span{display:flex;flex-direction:column;font-weight:800;line-height:1.2}
.sos-main small{font-weight:600;color:var(--sosm-sub);font-size:.82rem}
.phones{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px;padding-bottom:30px}
.phone{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:14px;background:rgba(255,255,255,.18);color:#fff;text-decoration:none;min-height:52px;border:1px solid rgba(255,255,255,.28)}
.phone:hover{background:rgba(255,255,255,.28)}
.phone b{font-size:1.2rem;line-height:1;flex:none;min-width:2.1em}
.phone span{display:flex;flex-direction:column;line-height:1.15;font-weight:700;font-size:.88rem;min-width:0}
.phone small{font-weight:500;font-size:.72rem;opacity:.92}
.phone span{overflow-wrap:anywhere}
@media (max-width:379px){.phones{grid-template-columns:minmax(0,1fr)}.phone{min-height:56px}}
.phone.long{grid-column:1/-1}
.phone.long b{font-size:1.05rem;min-width:0}
.prep .txt .muted{display:block;margin-top:2px}
}

/* ---- inicio: preparación ---- */
.prep{display:flex;align-items:center;gap:16px}
.ring{position:relative;width:84px;height:84px;flex:none}
.ring svg{width:84px;height:84px;transform:rotate(-90deg)}
.ring circle{fill:none;stroke-width:9;stroke-linecap:round}
.ring .bg{stroke:var(--line)}.ring .fg{stroke:var(--ok);transition:stroke-dasharray .6s ease}
.ring b{position:absolute;inset:0;display:grid;place-items:center;font-size:1.15rem}
.prep .txt{flex:1;min-width:0}
.prep strong{display:block;font-size:1.05rem}

/* ---- mosaicos y listas ---- */
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tile{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px;border:1px solid var(--line);border-radius:var(--r);background:var(--card);color:var(--fg);text-decoration:none;box-shadow:var(--shadow);text-align:left;font:inherit;font-weight:500;min-height:112px;justify-content:flex-start;position:relative}
.tiles>.tile{animation:rise .22s ease-out both}
.tiles>.tile:nth-child(2){animation-delay:.02s}.tiles>.tile:nth-child(3){animation-delay:.04s}.tiles>.tile:nth-child(4){animation-delay:.06s}
.tiles>.tile:nth-child(5){animation-delay:.08s}.tiles>.tile:nth-child(6){animation-delay:.1s}.tiles>.tile:nth-child(n+7){animation-delay:.12s}
.tile:hover{border-color:var(--brand)}
.tile:active{transform:scale(.98)}
.tile .ico,.rowlink .ico{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:var(--tint);color:var(--brand);font-size:1.5rem;line-height:1;flex:none}
.tile .ico svg,.rowlink .ico svg{width:28px;height:28px}
.tile strong{line-height:1.25;font-weight:800}
.tile .muted{line-height:1.3}
.tile.static{cursor:default}.tile.static:hover{border-color:var(--line)}
.tile.sos-t .ico{background:var(--sos-tint);color:var(--sos-text)}
.tile.go::after{content:"";position:absolute;right:12px;top:14px;width:18px;height:18px;opacity:.35;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat}
.rows{list-style:none;padding:0;margin:0;background:var(--card);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow)}
.rows li+li{border-top:1px solid var(--line)}
.rowlink{display:flex;align-items:center;gap:12px;padding:12px 14px;text-decoration:none;color:var(--fg);min-height:68px}
.rowlink:hover{background:var(--tint)}
.rl-text{flex:1;display:flex;flex-direction:column;min-width:0}
.rl-text strong{font-weight:800}
.rowlink .pill{flex:none;align-self:flex-start;margin-top:2px}
@media (max-width:599px){
  .rowlink.withpill{display:grid;grid-template-columns:46px minmax(0,1fr);gap:6px 12px;align-items:start}
  .rowlink.withpill .ico{grid-row:1/3}
  .rowlink.withpill .pill{grid-column:2;justify-self:start;margin:0}
}

ul.list{list-style:none;padding:0;margin:0}
ul.list li{border-bottom:1px solid var(--line)}ul.list li:last-child{border:0}
.row{display:flex;gap:12px;align-items:center;padding:10px 0;min-height:48px}
.row label{flex:1;cursor:pointer}
input[type=checkbox]{appearance:none;-webkit-appearance:none;width:28px;height:28px;flex:none;border:2px solid var(--muted);border-radius:9px;background:var(--card);display:grid;place-items:center;cursor:pointer;transition:background .15s,border-color .15s}
input[type=checkbox]:checked{background:var(--ok);border-color:var(--ok)}
input[type=checkbox]:checked::after{content:"";width:14px;height:8px;border-left:3px solid var(--chk);border-bottom:3px solid var(--chk);transform:rotate(-45deg) translate(1px,-1px)}

input[type=text],input[type=tel],input[type=search],input[type=number],input[type=date],textarea,select{font:inherit;width:100%;min-height:50px;padding:10px 14px;border-radius:var(--r-sm);border:1.5px solid var(--line);background:var(--card);color:var(--fg);margin:6px 0}
input:focus,textarea:focus{border-color:var(--brand)}
textarea{min-height:92px}
label.f{display:block;margin:12px 0 2px;font-weight:800;font-size:.95rem}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bar{height:12px;border-radius:99px;background:var(--line);overflow:hidden;margin:8px 0}
.bar i{display:block;height:100%;background:var(--ok);border-radius:99px;transition:width .4s ease}
.seg{display:flex;gap:6px;flex-wrap:wrap;padding:4px;background:var(--line);border-radius:16px}
.seg .btn,.seg button{flex:1;min-width:0;white-space:nowrap;padding:10px 6px;border:0;background:transparent;box-shadow:none}
.seg [aria-current=page],.seg [aria-pressed=true]{background:var(--card);color:var(--brand);box-shadow:var(--shadow)}
.cols{display:grid;grid-template-columns:1fr;gap:0 14px}

/* pasos numerados */
ol.steps{list-style:none;counter-reset:s;padding:0;margin:.4em 0}
ol.steps>li{counter-increment:s;position:relative;padding:5px 0 14px 46px;min-height:42px}
ol.steps>li::before{content:counter(s);position:absolute;left:0;top:3px;width:32px;height:32px;border-radius:50%;background:var(--green);color:var(--ink);font-weight:800;display:flex;align-items:center;justify-content:center}
ol.steps>li:not(:last-child)::after{content:"";position:absolute;left:15px;top:38px;bottom:2px;width:2px;background:var(--line)}
ol.steps.big{font-size:1.07rem}
ul.steps{padding-left:1.3em}ul.steps li{margin:.45em 0}
ul.steps.plain{list-style:disc}
.phase{border-left:5px solid var(--sos);padding-left:14px;margin:20px 0}
.phase.during{border-color:var(--warn)}.phase.after{border-color:var(--ok)}
.phase h3{margin-top:0}
.donts{background:var(--sos-tint);border-radius:var(--r);padding:2px 16px 12px;margin:18px 0}
.donts h3{color:var(--sos-text);margin-top:14px}
.donts ul{list-style:none;padding:0;margin:0}
.donts li{position:relative;padding:5px 0 5px 30px}
.donts li::before{content:"✕";position:absolute;left:0;color:var(--sos-text);font-weight:900}
.src{border-top:2px dashed var(--line);margin-top:24px;padding-top:2px}
.src ul{padding-left:1.2em}

/* barra de llamada fija en temas urgentes */
.callbar{position:sticky;bottom:calc(var(--nav-h) + 10px + env(safe-area-inset-bottom));z-index:15;margin:18px 0 0;padding:0}
.callbar .btn{width:100%;min-height:56px;font-size:1.05rem;box-shadow:0 6px 20px rgba(159,29,29,.35)}

/* juegos */
.score{font-weight:800}
.big{font-size:1.25rem;font-weight:800}
.emoji{font-size:4rem;line-height:1.1;margin:.1em 0}
.good{color:var(--ok);font-weight:800}.bad{color:var(--sos-text);font-weight:800}
.opts{display:grid;gap:10px;margin:12px 0}
.opts button{text-align:left;justify-content:flex-start;min-height:58px}
.opts button.correct{background:var(--ok-tint);border-color:var(--ok)}
.opts button.wrong{background:var(--sos-tint);border-color:var(--sos)}
.mem{display:grid;gap:10px;max-width:420px;margin:12px auto}
.mcard{aspect-ratio:1;min-height:0;padding:0;font-size:2rem;background:var(--info-tint);border-radius:16px}
.mcard.up{background:var(--card);border-color:var(--brand)}.mcard.ok{background:var(--ok-tint);border-color:var(--ok)}
.ttt{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:320px;margin:12px auto}
.cell{aspect-ratio:1;min-height:0;padding:0;font-size:2.2rem;border-radius:16px}
.globe{font-size:6rem;line-height:1;display:inline-block;transition:transform 4s ease-in-out}
.globe.in{transform:scale(1.7)}
.story{font-size:1.15rem;line-height:1.8}
.story p{margin:1em 0}
.story p:first-child::first-letter{font-size:2.6em;font-weight:800;float:left;line-height:.9;margin:.06em .1em 0 0;color:var(--brand)}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
}

.overlay{position:fixed;inset:0;z-index:60;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#fff;color:#000}
.overlay[hidden]{display:none}
.overlay button{background:#000;color:#fff;border-color:#000}

.status-actions{display:grid;gap:10px;margin-top:12px}
.status-actions .block{width:100%}
#st-text{min-height:120px}
.ficha{max-width:520px;width:100%;max-height:100%;overflow:auto;padding:22px;text-align:left}
.ficha h2{margin-top:0}
.ficha-row{font-size:1.25rem;line-height:1.4;margin:.45em 0}
.ficha a{color:#0b57d0;font-weight:800}
.opts button[aria-checked=true]{font-weight:800}
/* ---- mapa y brújula ---- */
.mapbox{position:relative;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:var(--tint);box-shadow:var(--shadow);margin:10px 0}
.mapcanvas{display:block;width:100%;height:min(62vh,520px);min-height:320px;touch-action:none;cursor:grab;outline-offset:-3px}
.mapcanvas:active{cursor:grabbing}
.mapctl{position:absolute;right:10px;top:10px;display:flex;flex-direction:column;gap:8px}
.mapbtn{width:46px;height:46px;min-height:46px;padding:0;border-radius:14px;font-size:1.5rem;line-height:1;background:var(--card);box-shadow:var(--shadow)}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.chip{min-height:44px;padding:6px 14px;border-radius:99px;font-size:.88rem;background:var(--card)}
.chip[aria-pressed=true]{background:var(--tint);border-color:var(--brand);color:var(--brand)}
.poi-dot{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;color:#fff;font-weight:800;font-size:.85rem;flex:none}
.rowlink>a.mini{flex:none;min-height:44px;color:var(--brand);font-weight:700}
.mini{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:12px;border:1.5px solid var(--line);font-weight:700;text-decoration:none;color:var(--brand);flex:none}
.rowlink button{min-height:44px;flex:none}
details.card .rows{margin-top:10px}
.compass{display:block;width:min(86vw,320px);height:auto;margin:6px auto}
.compass .cmp-bg{fill:var(--card);stroke:var(--line);stroke-width:2}
.compass .tick{stroke:var(--muted);stroke-width:1.5}.compass .tick.major{stroke:var(--fg);stroke-width:2.5}
.compass .cardinal{fill:var(--fg);font:800 24px var(--font-body)}
.compass .cardinal.north{fill:var(--sos-text)}
.compass .inter{fill:var(--muted);font:700 12px var(--font-body)}
.compass .needle-n{fill:var(--sos)}.compass .needle-s{fill:var(--muted);opacity:.55}
.compass .hub{fill:var(--card);stroke:var(--fg);stroke-width:2}
.compass .lubber{fill:var(--brand)}
.compass-read{font:800 2.2rem var(--font);letter-spacing:-.02em;margin:.1em 0}
/* ---- tablet ---- */
@media (min-width:600px){
  main{padding:24px 24px 28px}
  .tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  .phones{grid-template-columns:repeat(3,minmax(0,1fr))}
  .phone.long{grid-column:span 2}
  .tabs a{font-size:.8rem}
  .cols{grid-template-columns:1fr 1fr}
  .hero{padding:24px}
}

/* ---- escritorio: menú lateral ---- */
@media (min-width:900px){
  body{font-size:1.125rem}
  .shell{display:grid;grid-template-columns:260px 1fr}
  .tabs{position:sticky;top:0;bottom:auto;height:100dvh;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;padding:18px 14px;border-top:0;border-right:1px solid var(--line);overflow-y:auto;box-shadow:none}
  .tabs a{flex:none;flex-direction:row;justify-content:flex-start;gap:12px;padding:6px 14px 6px 8px;font-size:1rem;border-radius:14px;min-height:50px}
  .tabs a:hover{background:var(--tint)}
  .tabs a[aria-current=page]{background:var(--tint)}
  .tabs .ti{width:38px;height:38px;border-radius:12px}
  .tabs a[aria-current=page] .ti{background:var(--green);color:var(--ink)}
  .tabs .brand{display:flex;margin-bottom:14px;font-weight:800;color:var(--brand);font-size:1.15rem;padding-left:8px;gap:10px;align-items:center}
  .tabs .brand img{border-radius:10px}
  main{max-width:980px;margin:0;padding:12px 36px 40px}
  .foot{margin:0;max-width:980px;padding:0 36px 40px}
  .tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  .top{position:static;background:var(--bg);color:var(--fg);padding:22px 36px 0;border-bottom:0}
  .top h1{font-size:2rem}
  .badge{background:var(--line);color:var(--muted)}
  .hero{padding:28px}
  .hero::after{height:90px}
  .phones{grid-template-columns:repeat(3,minmax(0,1fr));padding-bottom:40px}
  .callbar{bottom:18px}
  .col{width:100%;max-width:1100px;margin:0 auto;min-width:0}
}
@media (min-width:1280px){main,.foot{max-width:1100px}.tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (forced-colors:active){.btn,button,.tile,.card{border:1px solid CanvasText}.tabs a[aria-current=page]{outline:2px solid Highlight}}
@media print{.top,.tabs,button,.btn,.call,.callbar,.foot{display:none!important}.shell{display:block}body{background:#fff;color:#000}main{padding:0}.hero{display:none}}

.donate-btns{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:12px 0}
.donate-btns .btn{flex:1 1 220px}

/* ---- juegos de arcade (Viborita y Bloques) ---- */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.arc-canvas{display:block;width:100%;max-width:360px;aspect-ratio:1;margin:12px auto;border-radius:14px;border:2px solid var(--line);background:var(--card);touch-action:none;user-select:none;-webkit-user-select:none}
.arc-canvas.arc-tall{aspect-ratio:1/2;width:auto;max-width:100%;height:max(240px,min(calc(100vh - 318px),640px));height:max(240px,min(calc(100dvh - 318px),640px));margin:0}
.arc-hud{display:flex;justify-content:space-between;gap:12px;max-width:360px;margin:8px auto 0;font-weight:700}
.arc-board{display:flex;gap:14px;justify-content:center;align-items:flex-start;margin:12px 0}
.arc-side{display:flex;flex-direction:column;gap:6px;min-width:84px}
.arc-side p{margin:0;font-size:.85rem;color:var(--muted);line-height:1.25}
.arc-side .score{font-size:1.15rem;color:var(--fg)}
.arc-next{display:block;width:80px;height:80px;border-radius:10px;margin-top:4px}
.dpad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:300px;margin:8px auto}
.dpad5{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;max-width:420px;margin:8px auto}
.pad{min-height:58px;padding:0;font-size:1.4rem;border-radius:16px;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.dpad .primary{min-height:58px;padding:0 4px;font-size:.95rem}

.arc-side .primary{min-height:46px;padding:0 8px;font-size:.95rem}

/* ---- seguro de llamadas (deslizar para llamar) ---- */
.callsheet{position:fixed;inset:0;z-index:90;display:flex;align-items:flex-end;justify-content:center;background:rgba(0,0,0,.6);padding:16px}
.callsheet-card{width:100%;max-width:420px;background:var(--card);color:var(--fg);border-radius:22px;padding:22px 18px calc(18px + env(safe-area-inset-bottom));box-shadow:0 10px 40px rgba(0,0,0,.4);text-align:center;display:flex;flex-direction:column;gap:10px}
.callsheet-card p{margin:0}
.callsheet-title{font-weight:800;font-size:1.15rem}
.callsheet-num{font-weight:800;font-size:2.6rem;line-height:1.1;letter-spacing:.02em;color:var(--sos-text)}
.callsheet-card .small{font-size:.8rem}
.slidewrap{position:relative;margin:8px 0 4px}
.slidehint{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding-left:56px;font-weight:700;color:var(--sos-text);pointer-events:none}
.slide{--p:0%;display:block;width:100%;height:60px;margin:0;background:transparent;-webkit-appearance:none;appearance:none;touch-action:pan-y;cursor:grab}
.slide:focus-visible{outline:3px solid var(--info);outline-offset:3px;border-radius:30px}
.slide::-webkit-slider-runnable-track{height:60px;border-radius:30px;background:linear-gradient(to right,var(--sos) var(--p),var(--sos-tint) var(--p));border:2px solid var(--sos)}
.slide::-moz-range-track{height:56px;border-radius:30px;background:var(--sos-tint);border:2px solid var(--sos)}
.slide::-moz-range-progress{height:56px;border-radius:30px;background:var(--sos)}
.slide::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:56px;height:56px;margin-top:-2px;border-radius:50%;border:0;background:var(--sos-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/28px no-repeat;box-shadow:0 2px 8px rgba(0,0,0,.35)}
.slide::-moz-range-thumb{width:52px;height:52px;border-radius:50%;border:0;background:var(--sos-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/28px no-repeat}
@media (min-width:700px){.callsheet{align-items:center}}
.slidewrap .slidehint{transition:opacity .15s}.slidewrap.moving .slidehint{opacity:0}

/* ---- respaldo, lugares, revisión ---- */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.chip{min-height:40px;padding:6px 12px;border-radius:99px;font-size:.9rem;background:var(--tint);border-color:transparent}
.review{font-size:.85rem}
.hero-note{margin:10px 0 0;font-size:.82rem;opacity:.9}
textarea{width:100%}

/* ---- íconos sintéticos ---- */
.h-ico{display:flex;align-items:center;gap:12px}
.hico{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:var(--tint);color:var(--brand);flex:none}
.hico svg{width:28px;height:28px}
.pill svg{width:16px;height:16px;margin-right:6px;vertical-align:-3px}
.btn svg{flex:none}

/* Bloques: título y datos compactos para que el tablero ocupe casi toda la pantalla */
.arc-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px}
.arc-head .back{margin:0}
.arc-head h2{margin:0;font-size:1.25rem}
.arc-head .hico{width:34px;height:34px;border-radius:11px}
.arc-head .hico svg{width:22px;height:22px}
.arc-hud2{display:flex;align-items:center;gap:6px;margin:4px 0 8px}
.arc-hud2 .stat{display:flex;flex-direction:column;flex:1 1 0;min-width:0;line-height:1.1}
.arc-hud2 .stat small{font-size:.66rem;color:var(--muted)}
.arc-hud2 .stat .score{font-size:1.05rem}
.arc-hud2 .arc-next{width:52px;height:52px;margin:0;flex:none}
.arc-hud2 .primary{min-height:44px;padding:0 10px;font-size:.85rem;flex:none}
.arc-stage{display:flex;justify-content:center}
.dpad5 .pad{min-height:52px}
.arc-hud2{margin:2px 0 6px}
.arc-head .back{padding:0}
@media (min-width:900px){.arc-canvas.arc-tall{height:max(300px,min(calc(100vh - 270px),700px));height:max(300px,min(calc(100dvh - 270px),700px))}}
.tile strong,.tile .muted,.rowlink .rl-text{overflow-wrap:anywhere;hyphens:auto}

/* Celular horizontal (poco alto): encabezado y menú más bajos para dejar más lugar al contenido */
@media (max-height:480px) and (orientation:landscape) and (max-width:899px){
  :root{--nav-h:46px}
  .top{min-height:46px;padding-top:calc(4px + env(safe-area-inset-top));padding-bottom:4px}
  .tabs a{flex-direction:row;gap:6px;padding:0 4px}
  .tabs .ti{width:30px;height:30px}
  .tabs a{font-size:.78rem}
  main{padding-top:10px}
}

/* Texto grande (ajuste de accesibilidad del teléfono): el menú inferior y los textos largos no deben desbordar */
.tabs a{font-size:min(.73rem,12px)}
.tabs .tl{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tabs .ti{max-width:100%}
main{overflow-wrap:anywhere}

/* ---- marca: wordmark en minúsculas y énfasis naranja ---- */
.tabs .brand span,.top h1#title{text-transform:lowercase}
.tabs .brand{color:var(--brand)}
.tabs .brand img{border-radius:9px}
.ring .fg{stroke:var(--orange)}
.note:not(.disclaimer){border-left-color:var(--orange)}
.pill{font-weight:700}
.tile.kid .ico{background:var(--warn-tint);color:var(--warn)}
.tile.kid:hover{border-color:var(--orange)}
