/* =========================================================
   FenReport · tema oscuro, pensado primero para celular
   ========================================================= */
:root {
  /* Tema claro (por defecto). 3 colores: azul (acción), grises (texto y fondos) y escala de alerta (amarillo → naranja → rojo) */
  --bg: #f5f7fa;
  --bg2: #eef2f6;
  --panel: #ffffff;
  --panel2: #f4f6f9;
  --panel3: #e9eef4;
  --line: #e3e8ef;
  --line2: #cfd8e3;
  --ink: #0f172a;
  --ink2: #475569;
  --ink3: #64748b;
  --acc: #0369a1;
  --acc2: #0369a1;
  --acc-rgb: 3, 105, 161;
  --on-acc: #ffffff;
  --fg: 15, 23, 42;
  --verde: #0369a1;
  --n2: #b45309; --n2b: #fef3c7;
  --n3: #c2410c; --n3b: #ffedd5;
  --n4: #b91c1c; --n4b: #fee2e2;
  --sombra: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 8px rgba(15, 23, 42, .04);
  --r: 18px;
  --navh: 72px;
  --safe-b: env(safe-area-inset-bottom);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "tnum" 1;
}
html[data-tema="oscuro"] {
  --bg: #070b11; --bg2: #0b1119; --panel: #101823; --panel2: #151f2d; --panel3: #1b2738;
  --line: #1e2a3a; --line2: #2a3a50; --ink: #edf2f8; --ink2: #a3b1c4; --ink3: #7d8ca2;
  --acc: #38bdf8; --acc2: #38bdf8; --acc-rgb: 56, 189, 248; --on-acc: #04121d; --fg: 255, 255, 255; --verde: #38bdf8;
  --n2: #facc15; --n2b: rgba(250, 204, 21, .12); --n3: #fb923c; --n3b: rgba(251, 146, 60, .13); --n4: #f43f5e; --n4b: rgba(244, 63, 94, .14);
  --sombra: none; color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; font-size: 16px; line-height: 1.5;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(var(--acc-rgb), .08), transparent 60%),
    radial-gradient(900px 500px at -20% 10%, rgba(var(--acc-rgb), .07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  padding-bottom: calc(var(--navh) + 28px + var(--safe-b));
}
a { color: var(--acc); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h2 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--ink2); margin: 0 0 12px; }
.mini { font-size: .85rem; }
.tit { font-size: 1.7rem; font-weight: 800; letter-spacing: -.025em; display: flex; align-items: center; gap: 10px; }
.sec-h { display: flex; justify-content: space-between; align-items: flex-end; margin: 6px 2px 14px; }
.sec-h .muted { margin: 4px 0 0; }
::selection { background: rgba(var(--acc-rgb), .35); }

/* ---------- Cabecera ---------- */
.top { position: sticky; top: 0; z-index: 1000; padding-top: env(safe-area-inset-top);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(var(--fg), .05); }
.top-in { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
.marca { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.marca img { border-radius: 10px; box-shadow: 0 4px 18px rgba(var(--acc-rgb), .25); }
.marca-t { display: flex; flex-direction: column; line-height: 1.1; }
.marca-t b { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.marca-t small { font-size: .7rem; color: var(--ink3); font-weight: 600; }
.zona { display: flex; align-items: center; gap: 6px; max-width: 48vw; border: 1px solid var(--line2); background: var(--panel); color: var(--ink);
  border-radius: 999px; padding: 8px 12px; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.zona span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zona .ic { width: 16px; height: 16px; color: var(--acc); }
.zona .chev { color: var(--ink3); }

.franja { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; font-size: .85rem; text-align: center; font-weight: 600; }
.franja .ic { width: 16px; height: 16px; }
.franja.n4 { background: linear-gradient(90deg, #9f1239, #e11d48); color: #fff; }
.franja.n3 { background: linear-gradient(90deg, #9a3412, #ea580c); color: #fff; }
.franja.n2 { background: linear-gradient(90deg, #a16207, #ca8a04); color: #fff; }
.offline { background: #2a2f38; color: #fff; text-align: center; font-size: .82rem; padding: 6px 12px; }

/* ---------- Distribución ---------- */
.layout { max-width: 1320px; margin: 0 auto; }
main { padding: 14px 14px 0; max-width: 760px; margin: 0 auto; }
.panel { position: relative; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; margin: 0 0 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-h h2 { display: flex; align-items: center; gap: 8px; }
.tag { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); background: rgba(var(--fg), .06); border: 1px solid var(--line2);
  border-radius: 999px; padding: 3px 9px; }
.tag.ok { color: var(--verde); background: rgba(var(--acc-rgb), .1); border-color: rgba(var(--acc-rgb), .25); }
.link { font-size: .85rem; font-weight: 700; text-decoration: none; }
.h3 { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--ink3); margin: 18px 0 10px; }
.fuente { font-size: .76rem; color: var(--ink3); margin: 12px 0 0; line-height: 1.45; }
.fuente a { color: var(--ink2); }
.fuentes { font-size: .76rem; color: var(--ink3); margin: 16px 4px; }
.fuentes a { color: var(--ink2); }
.aviso-legal { border-top: 1px solid var(--line); padding-top: 12px; }
.vacio { color: var(--ink2); margin: 0; font-size: .92rem; }
.en-vivo { width: 9px; height: 9px; border-radius: 50%; background: var(--n4); box-shadow: 0 0 0 0 rgba(244, 63, 94, .7); animation: vivo 1.8s infinite; flex: none; }
@keyframes vivo { 70% { box-shadow: 0 0 0 9px rgba(244, 63, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); } }

/* ---------- Héroe ---------- */
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 20px 16px 16px; margin: 0 0 12px; border: 1px solid var(--line2);
  background: radial-gradient(500px 260px at 90% -20%, rgba(var(--acc-rgb), .22), transparent 70%), linear-gradient(160deg, #111c2b, #0b121c); }
.hero[data-n="2"] { background: radial-gradient(520px 280px at 90% -20%, rgba(250, 204, 21, .26), transparent 70%), linear-gradient(160deg, #141a22, #0b121c); }
.hero[data-n="3"] { background: radial-gradient(520px 280px at 90% -20%, rgba(251, 146, 60, .32), transparent 70%), linear-gradient(160deg, #18161c, #0b121c); }
.hero[data-n="4"] { background: radial-gradient(520px 280px at 90% -20%, rgba(244, 63, 94, .34), transparent 70%), linear-gradient(160deg, #1a1219, #0b121c); }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.hero-eyebrow { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ink3); }
.hero-lugar { font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 3px 0 5px; }
.hero-fecha { font-size: .82rem; color: var(--ink2); }
.hero-acc { display: flex; gap: 8px; }
.btn-h { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(var(--fg), .06); border: 1px solid var(--line2); color: var(--ink); cursor: pointer; }
.btn-h .ic { width: 18px; height: 18px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kpi { background: rgba(var(--fg), .045); border: 1px solid rgba(var(--fg), .08); border-radius: 16px; padding: 12px; min-height: 100px; display: flex; flex-direction: column; }
.kpi-k { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink3); }
.kpi-v { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 8px 0 2px; }
.kpi-v small { font-size: .85rem; font-weight: 600; color: var(--ink2); }
.kpi-s { font-size: .76rem; color: var(--ink2); line-height: 1.3; margin-top: auto; }
.kpi .chip-nivel { font-size: .9rem; padding: 4px 11px; }
.kpi.k-n2 { box-shadow: inset 0 2px 0 var(--n2); } .kpi.k-n3 { box-shadow: inset 0 2px 0 var(--n3); } .kpi.k-n4 { box-shadow: inset 0 2px 0 var(--n4); } .kpi.k-n1 { box-shadow: inset 0 2px 0 var(--verde); }

/* ---------- Chips de nivel ---------- */
.chip-nivel { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; }
.chip-nivel.n1 { background: rgba(var(--acc-rgb), .14); color: var(--verde); }
.chip-nivel.n2 { background: var(--n2); color: #2b2100; }
.chip-nivel.n3 { background: var(--n3); color: #2a1200; }
.chip-nivel.n4 { background: var(--n4); color: #fff; }

/* ---------- Aviso oficial ---------- */
.nivel { overflow: hidden; }
.nivel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--line2); }
.nivel.n2::before { background: var(--n2); } .nivel.n3::before { background: var(--n3); } .nivel.n4::before { background: var(--n4); } .nivel.n1::before { background: var(--verde); }
.meta-aviso { font-size: .74rem; color: var(--ink3); font-weight: 700; }
.aviso-top { display: flex; align-items: center; gap: 14px; margin: 2px 0 16px; }
.aviso-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: none; background: rgba(var(--acc-rgb), .14); color: var(--verde); }
.aviso-ic .ic { width: 28px; height: 28px; stroke-width: 2.1; }
.aviso-ic.n2 { background: var(--n2b); color: var(--n2); box-shadow: 0 0 30px rgba(250, 204, 21, .2); }
.aviso-ic.n3 { background: var(--n3b); color: var(--n3); box-shadow: 0 0 30px rgba(251, 146, 60, .25); }
.aviso-ic.n4 { background: var(--n4b); color: var(--n4); box-shadow: 0 0 30px rgba(244, 63, 94, .3); }
.aviso-t { font-size: 1.55rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.aviso-s { font-size: .86rem; color: var(--ink2); margin-top: 3px; }
.escala { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 14px 0 16px; }
.esc { position: relative; }
.esc i { display: block; height: 8px; border-radius: 99px; opacity: .25; }
.esc span { display: block; font-size: .68rem; color: var(--ink3); margin-top: 6px; text-align: center; font-weight: 700; }
.esc.e1 i { background: var(--verde); } .esc.e2 i { background: var(--n2); } .esc.e3 i { background: var(--n3); } .esc.e4 i { background: var(--n4); }
.esc.on i { opacity: 1; height: 12px; margin-top: -2px; box-shadow: 0 0 16px currentColor; }
.esc.on span { color: var(--ink); font-size: .76rem; }
.esc.on::before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); }
.esc.e1.on { color: var(--verde); } .esc.e2.on { color: var(--n2); } .esc.e3.on { color: var(--n3); } .esc.e4.on { color: var(--n4); }
.riesgos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.riesgos-k { font-size: .76rem; color: var(--ink3); font-weight: 700; margin-right: 2px; }
.riesgo, .motivo { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(var(--fg), .05); border: 1px solid var(--line2); font-size: .8rem; font-weight: 700; }
.riesgo .ic, .motivo .ic { width: 15px; height: 15px; color: var(--ink2); }
.nivel.n3 .riesgo { background: var(--n3b); border-color: rgba(251, 146, 60, .35); } .nivel.n3 .riesgo .ic { color: var(--n3); }
.nivel.n4 .riesgo { background: var(--n4b); border-color: rgba(244, 63, 94, .35); } .nivel.n4 .riesgo .ic { color: var(--n4); }
.nivel.n2 .riesgo { background: var(--n2b); border-color: rgba(250, 204, 21, .3); } .nivel.n2 .riesgo .ic { color: var(--n2); }
.consejos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consejo { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(var(--fg), .03); font-size: .86rem; font-weight: 600; line-height: 1.25; }
.consejo .ic { width: 24px; height: 24px; color: var(--acc); flex: none; }
.aviso-pie { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .8rem; }
.aviso-pie a { color: var(--ink2); }
.aviso-pie .ver-mapa { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--acc); text-decoration: none; }
.aviso-pie .ver-mapa .ic { width: 16px; height: 16px; }

/* ---------- Análisis ---------- */
.riesgo-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.riesgo-k { font-size: .86rem; color: var(--ink2); font-weight: 600; }
.riesgo-v { font-size: 1.65rem; font-weight: 800; letter-spacing: -.025em; }
.r1 .riesgo-v { color: var(--verde); } .r2 .riesgo-v { color: var(--n2); } .r3 .riesgo-v { color: var(--n3); } .r4 .riesgo-v { color: var(--n4); }
.probs { display: grid; gap: 9px; }
.prob { display: grid; grid-template-columns: 104px 1fr 44px; align-items: center; gap: 10px; font-size: .84rem; }
.prob span { color: var(--ink2); font-weight: 600; }
.pb { height: 10px; background: rgba(var(--fg), .06); border-radius: 99px; overflow: hidden; }
.pb i { display: block; height: 100%; border-radius: 99px; background: var(--acc); }
.prob:nth-child(2) .pb i { background: linear-gradient(90deg, #ea580c, var(--n3)); } .prob:nth-child(3) .pb i { background: linear-gradient(90deg, #e11d48, var(--n4)); }
.prob b { text-align: right; }
.rango { font-size: .88rem; margin: 12px 0 0; color: var(--ink2); }
.rango b { color: var(--ink); }
.motivos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* ---------- Lluvia medida ---------- */
.resumen-redes { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--ink3); margin: 0 0 8px; }
.barras { display: grid; gap: 2px; }
.barra-f { display: grid; grid-template-columns: 120px 1fr 60px; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.barra-f.sel { background: rgba(var(--acc-rgb), .08); box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .25); }
.bn { font-weight: 700; font-size: .88rem; line-height: 1.15; }
.bn small { display: block; font-weight: 500; font-size: .7rem; color: var(--ink3); margin-top: 2px; }
.bb { height: 8px; background: rgba(var(--fg), .06); border-radius: 99px; overflow: hidden; }
.bb i { display: block; height: 100%; border-radius: 99px; }
.bv { text-align: right; font-weight: 800; font-size: 1rem; }
.bv small { font-weight: 500; color: var(--ink3); font-size: .7rem; }
.punto-lluvia { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 10px var(--acc); }
.nota-est { font-size: .84rem; background: rgba(var(--fg), .03); border: 1px dashed var(--line2); border-radius: 12px; padding: 10px 12px; margin: 10px 0 0; color: var(--ink2); }

/* ---------- Ríos ---------- */
.rios { display: grid; gap: 8px; }
.rio { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(var(--fg), .02); }
.rio .chip-nivel { min-width: 78px; justify-content: center; }
.rio-t b { display: block; font-size: .94rem; }
.rio-t small { color: var(--ink3); font-size: .76rem; }
.rio.n4 { background: var(--n4b); border-color: rgba(244, 63, 94, .3); } .rio.n3 { background: var(--n3b); border-color: rgba(251, 146, 60, .3); } .rio.n2 { background: var(--n2b); border-color: rgba(250, 204, 21, .25); }

/* ---------- Pronóstico ---------- */
.prono-txt { margin: 0 0 12px; font-size: 1.02rem; font-weight: 700; }
.grafico { width: 100%; height: 130px; display: block; }
.grafico text { font-size: 10px; fill: var(--ink3); font-family: inherit; }
.grafico .eje { stroke: var(--line2); }
.dias { width: 100%; border-collapse: collapse; font-size: .9rem; }
.dias td { padding: 9px 4px; border-top: 1px solid var(--line); vertical-align: middle; }
.dias tr:first-child td { border-top: 0; }
.dias .d { font-weight: 700; width: 72px; }
.dias .barra { width: 34%; }
.dias .barra div { height: 7px; border-radius: 99px; background: rgba(var(--fg), .06); overflow: hidden; }
.dias .barra i { display: block; height: 100%; border-radius: 99px; }
.dias .mm { text-align: right; font-weight: 800; white-space: nowrap; }
.dias .pr, .dias .tmp { text-align: right; color: var(--ink3); white-space: nowrap; font-size: .8rem; }
.nota, .guia { border-top: 1px solid var(--line); padding: 11px 0 0; margin-top: 11px; font-size: .9rem; }
.nota summary, .guia summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.nota summary::-webkit-details-marker, .guia summary::-webkit-details-marker { display: none; }
.nota summary::after, .guia summary::after { content: "+"; color: var(--ink3); font-size: 1.2rem; font-weight: 400; }
.nota[open] summary::after, .guia[open] summary::after { content: "–"; }
.nota p { color: var(--ink2); margin: 8px 0 0; }
.guia ol { margin: 8px 0 2px; padding-left: 20px; color: var(--ink2); } .guia li { margin: 3px 0; }
.enfen-f { display: flex; gap: 12px; align-items: center; }
.enfen-f .ic { width: 26px; height: 26px; color: var(--n3); flex: none; }
.enfen-f b { display: block; }
.enfen-f span { color: var(--ink2); font-size: .88rem; }
.enfen .fuente { margin-top: 8px; }

/* ---------- Listas, reportes ---------- */
.lista { display: grid; gap: 10px; }
.item { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: rgba(var(--fg), .025); }
.rep { position: relative; padding-left: 16px; }
.rep::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--n2); }
.rep.naranja::before { background: var(--n3); } .rep.rojo::before { background: var(--n4); }
.rep-h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.rep-h b { font-size: .98rem; }
.rep-h .cuando { color: var(--ink3); font-size: .76rem; white-space: nowrap; }
.rep .lug { color: var(--ink2); font-size: .82rem; }
.rep p { margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rep-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; margin: 8px 0; }
.rep-media img, .rep-media video { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; background: var(--panel2); display: block; }
.rep-pie { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.voto { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line2); background: rgba(var(--fg), .03); border-radius: 999px; padding: 6px 11px; font: inherit; font-size: .78rem; font-weight: 700; color: var(--ink2); cursor: pointer; }
.voto .ic { width: 14px; height: 14px; }
.voto.hecho { color: var(--verde); border-color: rgba(var(--acc-rgb), .35); background: rgba(var(--acc-rgb), .1); }

/* ---------- Ayuda ---------- */
.sos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.sos-btn { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 16px; border-radius: 18px; text-decoration: none; color: #fff; min-height: 86px;
  background: linear-gradient(145deg, #e11d48, #9f1239); box-shadow: 0 10px 26px rgba(225, 29, 72, .25); border: 1px solid rgba(var(--fg), .12); }
.sos-btn.naranja { background: linear-gradient(145deg, #f97316, #c2410c); box-shadow: 0 10px 26px rgba(249, 115, 22, .22); }
.sos-btn b { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.sos-btn span { font-size: .86rem; font-weight: 700; opacity: .92; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; margin: 0 -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line2); background: rgba(var(--fg), .03); color: var(--ink2); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips.sel { flex-wrap: wrap; overflow: visible; }
.ay { display: flex; gap: 12px; }
.ay-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.ay-ic .ic { width: 20px; height: 20px; }
.ay.necesito .ay-ic { background: var(--n4b); color: var(--n4); } .ay.ofrezco .ay-ic { background: rgba(var(--acc-rgb), .12); color: var(--verde); }
.ay-c { flex: 1; min-width: 0; }
.ay-c p { margin: 4px 0 6px; overflow-wrap: anywhere; }
.ay-m { font-size: .76rem; color: var(--ink3); }
.ay-acc { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--ink2); }
.check input { width: 18px; height: 18px; accent-color: var(--acc); }
.ver { display: flex; gap: 12px; align-items: flex-start; }
.ver-v { flex: none; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 5px 9px; border-radius: 8px; }
.ver-v.falso { background: var(--n4b); color: var(--n4); } .ver-v.cierto { background: rgba(var(--acc-rgb), .12); color: var(--verde); }
.ver-v.enganoso { background: var(--n3b); color: var(--n3); } .ver-v.sin_confirmar { background: rgba(var(--acc-rgb), .12); color: var(--acc); }
.ver b { display: block; }
.ver p { margin: 4px 0 0; color: var(--ink2); font-size: .88rem; }

/* ---------- Contactos ---------- */
.grupo-t { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink3); margin: 14px 0 4px; }
.grupo-t:first-child { margin-top: 0; }
.contacto { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); }
.contacto:first-child, .grupo-t + .contacto { border-top: 0; }
.contacto .info b { display: block; font-size: .94rem; }
.contacto .info span { color: var(--ink3); font-size: .82rem; }
.llamar { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: rgba(var(--acc-rgb), .14); color: var(--verde);
  border: 1px solid rgba(var(--acc-rgb), .3); text-decoration: none; font-weight: 800; font-size: .95rem; }
.llamar .ic { width: 15px; height: 15px; }
.llamar.wa { background: transparent; }
.filas .contacto a.ir { display: inline-flex; gap: 4px; align-items: center; font-weight: 700; font-size: .85rem; white-space: nowrap; text-decoration: none; }
.filas .ir .ic { width: 14px; height: 14px; }
.verif { font-size: .72rem; font-weight: 800; color: var(--verde); }

/* ---------- Formularios y botones ---------- */
.form { display: grid; gap: 10px; }
input, textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line2); background: var(--bg2); color: var(--ink); width: 100%; }
input::placeholder, textarea::placeholder { color: var(--ink3); }
input:focus, textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line2); border-radius: 14px; padding: 12px 16px; background: var(--panel3);
  color: var(--ink); font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; min-height: 48px; transition: transform .12s, filter .12s; }
.btn:active { transform: scale(.98); }
.btn.sec { background: rgba(var(--fg), .04); }
.btn.brillo { border: 0; color: var(--on-acc); background: linear-gradient(135deg, var(--acc), var(--acc2)); box-shadow: 0 10px 26px rgba(var(--acc-rgb), .28); }
.btn.chico { padding: 7px 12px; min-height: 36px; font-size: .84rem; border-radius: 12px; }
.btn.chico .ic { width: 16px; height: 16px; }
.btn.grande { width: 100%; min-height: 56px; font-size: 1.05rem; border-radius: 16px; margin: 0 0 12px; }
.btn:disabled { opacity: .55; cursor: wait; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(var(--fg), .04); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.paso-b { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: .95rem; }
.paso-b small { color: var(--ink3); font-weight: 500; }
.paso { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--acc), var(--acc2)); color: var(--on-acc); font-size: .78rem; font-weight: 800; flex: none; }
.hoja { animation: sube .25s ease-out; }
@keyframes sube { from { opacity: 0; transform: translateY(14px); } }
.tipos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tipo { text-align: left; border: 1px solid var(--line2); background: rgba(var(--fg), .03); border-radius: 14px; padding: 12px; font: inherit; font-size: .86rem; font-weight: 700; color: var(--ink);
  cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 54px; }
.tipo i { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--n2); box-shadow: 0 0 10px var(--n2); }
.tipo.naranja i { background: var(--n3); box-shadow: 0 0 10px var(--n3); } .tipo.rojo i { background: var(--n4); box-shadow: 0 0 10px var(--n4); }
.tipo[aria-pressed="true"] { border-color: var(--acc); background: rgba(var(--acc-rgb), .1); box-shadow: inset 0 0 0 1px var(--acc); }
.aviso-vida { display: flex; gap: 10px; background: var(--n4b); color: var(--n4); border: 1px solid rgba(244, 63, 94, .35); padding: 10px 12px; border-radius: 12px; margin: 0; font-size: .88rem; }
.aviso-vida a { color: #fff; font-weight: 800; }
.previews { display: flex; gap: 8px; flex-wrap: wrap; }
.prev { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--panel2); }
.prev img, .prev video { width: 100%; height: 100%; object-fit: cover; }
.prev button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #000b; color: #fff; cursor: pointer; }
.progreso { position: relative; height: 34px; border-radius: 12px; background: rgba(var(--fg), .05); overflow: hidden; }
.progreso div { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, rgba(var(--acc-rgb), .35), rgba(var(--acc-rgb), .35)); transition: width .2s; }
.progreso span { position: relative; display: block; text-align: center; line-height: 34px; font-weight: 700; font-size: .84rem; }
.seg { display: inline-flex; background: rgba(var(--fg), .04); border: 1px solid var(--line2); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; font: inherit; font-size: .78rem; font-weight: 700; padding: 6px 11px; color: var(--ink2); cursor: pointer; border-radius: 999px; }
.seg button.on { background: var(--ink); color: var(--bg); }
.seg.ancho { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-bottom: 10px; }
.seg.ancho button { padding: 9px; font-size: .86rem; }

/* ---------- Mapa general ---------- */
.mapa-h { padding: 4px 2px 10px; }
.mapa-h .muted { margin: 2px 0 0; }
.mapa { height: 46vh; min-height: 300px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line2); background: var(--panel2); }
#mapaSlot .mapa-col { margin: 0 0 12px; }
#mapaSlot .mapa-h { display: none; }
.capas { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 6px; scrollbar-width: none; }
.capas::-webkit-scrollbar { display: none; }
.capas label { flex: none; display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: .78rem; font-weight: 700; color: var(--ink2); background: rgba(var(--fg), .04);
  border: 1px solid var(--line2); border-radius: 999px; padding: 6px 11px; }
.capas input { width: 14px; height: 14px; accent-color: var(--acc); margin: 0; }
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 4px 2px 0; font-size: .74rem; color: var(--ink3); }
.leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-grid; place-items: center; width: 14px; height: 10px; border-radius: 3px; font-style: normal; }
.sw.n4 { background: var(--n4); } .sw.n3 { background: var(--n3); } .sw.n2 { background: var(--n2); }
.sw.est { width: 24px; height: 14px; background: var(--panel3); color: var(--ink); font-size: .55rem; font-weight: 800; border: 1px solid var(--line2); }
.sw.rio-sw { width: 10px; height: 10px; transform: rotate(45deg); background: var(--n3); }
.sw.rep { width: 10px; height: 10px; border-radius: 50%; background: transparent; border: 2.5px solid var(--n3); }
.est-ic { background: #0f1724; color: var(--ink); font-size: 11px; font-weight: 800; border-radius: 8px; padding: 3px 6px; white-space: nowrap; border: 1px solid #33445c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5); font-family: "Plus Jakarta Sans", sans-serif; }
.est-ic.aerop { border-color: #64748b; }
.est-ic.llueve { background: #0369a1; border-color: var(--acc); box-shadow: 0 0 14px rgba(var(--acc-rgb), .6); }
.rio-ic { width: 16px; height: 16px; transform: rotate(45deg); border: 2px solid var(--panel2); box-shadow: 0 0 12px currentColor; border-radius: 3px; }
.rio-ic.n2 { background: var(--n2); color: var(--n2); } .rio-ic.n3 { background: var(--n3); color: var(--n3); } .rio-ic.n4 { background: var(--n4); color: var(--n4); }
.yo-ic { width: 16px; height: 16px; border-radius: 50%; background: var(--acc); border: 3px solid var(--panel2); box-shadow: 0 0 0 2px var(--acc), 0 0 18px var(--acc); }
.leaflet-container { background: var(--panel2); font-family: "Plus Jakarta Sans", sans-serif; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--panel2); color: var(--ink); border: 1px solid var(--line2); box-shadow: 0 12px 30px rgba(0, 0, 0, .6); }
.leaflet-popup-content { font-size: .84rem; line-height: 1.45; margin: 12px 14px; }
.leaflet-popup-content small { color: var(--ink3); }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink2); }
.leaflet-bar a, .leaflet-bar a:hover { background: var(--panel2); color: var(--ink); border-color: var(--line2); }
.leaflet-control-attribution { background: color-mix(in srgb, var(--panel) 88%, transparent) !important; color: var(--ink3) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--ink2) !important; }

/* =========================================================
   ¿Cómo está allá? (estilo app de transporte)
   ========================================================= */
.punto-tab { margin: -14px -14px 0; }
.punto-mapa { position: relative; height: 54vh; min-height: 330px; }
.mapa-punto { position: absolute; inset: 0; background: var(--panel2); }
.pin-centro { position: absolute; left: 50%; top: 50%; z-index: 500; pointer-events: none; transform: translate(-50%, -100%); transition: transform .18s ease; }
.pin-centro svg { width: 46px; height: 46px; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)) drop-shadow(0 0 14px rgba(var(--acc-rgb), .45)); }
.pin-centro svg path { fill: var(--acc); stroke: var(--on-acc); stroke-width: 1; }
.pin-centro svg circle { fill: var(--on-acc); }
.pin-centro i { position: absolute; left: 50%; bottom: -4px; width: 12px; height: 5px; margin-left: -6px; border-radius: 50%; background: rgba(0, 0, 0, .6); transition: transform .18s ease; }
.punto-mapa.moviendo .pin-centro { transform: translate(-50%, -118%); }
.punto-mapa.moviendo .pin-centro i { transform: scale(.6); }
.punto-top { position: absolute; z-index: 600; top: 12px; left: 12px; right: 12px; }
.buscar-box { display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line2); border-radius: 16px; padding: 0 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.buscar-box .ic { color: var(--acc); }
.buscar-box input { border: 0; background: transparent; padding: 14px 0; box-shadow: none; font-weight: 600; }
.buscar-box input:focus { box-shadow: none; }
.res-flot { margin-top: 6px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.res-flot button { display: block; width: 100%; text-align: left; padding: 11px 14px; background: none; border: 0; border-top: 1px solid var(--line); color: var(--ink); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.res-flot button:first-child { border-top: 0; }
.res-flot small { display: block; color: var(--ink3); font-size: .76rem; font-weight: 500; }
.res-flot .res-tit { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 9px 14px 5px; border-top: 1px solid var(--line); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.res-flot .res-tit:first-child { border-top: 0; }
.res-flot .res-tit + button { border-top: 0; }
.res-flot .res-borrar { display: inline; width: auto; padding: 2px 4px; border: 0; color: var(--acc); font-size: .72rem; font-weight: 700; text-transform: none; letter-spacing: 0; }
.res-flot button > .ic { width: 15px; height: 15px; margin-right: 7px; vertical-align: -2px; color: var(--ink3); }
.chips-lugares { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; scrollbar-width: none; }
.chips-lugares::-webkit-scrollbar { display: none; }
.lugar-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line2);
  color: var(--ink); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.lugar-chip .ic { width: 14px; height: 14px; color: var(--n2); }
.lugar-chip.gps .ic { color: var(--acc); }
.btn-loc { position: absolute; z-index: 600; right: 12px; bottom: 40px; width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--panel) 94%, transparent); border: 1px solid var(--line2);
  color: var(--acc); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); }
.punto-ayuda { position: absolute; z-index: 600; left: 50%; bottom: 40px; transform: translateX(-50%); background: color-mix(in srgb, var(--panel) 88%, transparent); color: var(--ink2); font-size: .74rem; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none; transition: opacity .4s; }
.hoja-punto { position: relative; z-index: 700; margin-top: -24px; background: linear-gradient(180deg, var(--panel2), var(--bg) 70%); border-top: 1px solid var(--line2);
  border-radius: 24px 24px 0 0; padding: 10px 16px 8px; box-shadow: 0 -16px 40px rgba(0, 0, 0, .45); min-height: 40vh; }
.agarre { width: 42px; height: 5px; border-radius: 99px; background: var(--line2); margin: 0 auto 12px; }
.pt-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pt-lugar { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.pt-sub { font-size: .76rem; color: var(--ink3); margin-top: 3px; }
.pt-estado { display: flex; align-items: center; gap: 14px; margin: 14px 0 12px; padding: 14px; border-radius: 20px; background: rgba(var(--fg), .04); border: 1px solid var(--line2); }
.pt-estado.llueve { background: linear-gradient(135deg, rgba(var(--acc-rgb), .22), rgba(var(--acc-rgb), .14)); border-color: rgba(var(--acc-rgb), .45); }
.pt-ic { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; flex: none; background: rgba(var(--fg), .06); }
.pt-ic .ic { width: 36px; height: 36px; stroke-width: 1.7; }
.pt-ic.sol { color: var(--n2); } .pt-ic.nube { color: var(--ink2); } .pt-ic.lluvia { color: var(--acc); } .pt-ic.tormenta { color: var(--acc); } .pt-ic.niebla { color: #94a3b8; }
.pt-temp { font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.pt-temp small { font-size: 1rem; color: var(--ink2); font-weight: 600; letter-spacing: 0; }
.pt-cond { font-size: 1rem; font-weight: 800; margin-top: 4px; }
.pt-fuente { font-size: .72rem; color: var(--ink3); margin-top: 2px; }
.pt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pt-m { background: rgba(var(--fg), .035); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.pt-m .k { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--ink3); display: flex; gap: 4px; align-items: center; }
.pt-m .k .ic { width: 12px; height: 12px; }
.pt-m .v { font-size: 1.12rem; font-weight: 800; margin-top: 4px; }
.pt-m .v small { font-size: .7rem; color: var(--ink3); font-weight: 600; }
.pt-horas { display: flex; gap: 4px; overflow-x: auto; padding: 4px 0 2px; scrollbar-width: none; }
.pt-horas::-webkit-scrollbar { display: none; }
.pt-hora { flex: 0 0 44px; text-align: center; font-size: .68rem; color: var(--ink3); font-weight: 700; }
.pt-hora .bar { height: 60px; display: flex; align-items: flex-end; background: rgba(var(--fg), .04); border-radius: 10px; overflow: hidden; margin: 4px 0; }
.pt-hora .bar i { display: block; width: 100%; border-radius: 10px; background: var(--acc); }
.pt-hora b { display: block; color: var(--ink); font-size: .7rem; }
.pt-acciones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 4px; }
.pt-acc { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(var(--fg), .04);
  color: var(--ink); font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; line-height: 1.15; }
.pt-acc .ic { width: 22px; height: 22px; color: var(--acc); }
.pt-acc.rojo { background: var(--n4b); border-color: rgba(244, 63, 94, .35); } .pt-acc.rojo .ic { color: var(--n4); }
.pt-acc.on .ic { color: var(--n2); fill: var(--n2); }
.pt-info { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0; }
.cargando-pt { display: flex; gap: 10px; align-items: center; color: var(--ink2); padding: 22px 0; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--acc); animation: gira .8s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------- Navegación inferior flotante ---------- */
.nav { position: fixed; z-index: 1100; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); height: var(--navh); display: grid; grid-template-columns: repeat(5, 1fr);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid var(--line2); border-radius: 24px; padding: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--ink3); font-size: .66rem; font-weight: 700;
  border-radius: 18px; text-align: center; line-height: 1.1; padding: 0 2px; }
.nav a .ic { width: 22px; height: 22px; }
.nav a.on { color: var(--ink); background: rgba(var(--acc-rgb), .12); }
.nav a.on .ic { color: var(--acc); filter: drop-shadow(0 0 8px rgba(var(--acc-rgb), .6)); }

/* ---------- Botón SOS ---------- */
.fab { position: fixed; z-index: 1150; right: 16px; bottom: calc(var(--navh) + 22px + var(--safe-b)); width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 30% 30%, var(--n4), #e11d48 60%, #9f1239); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(225, 29, 72, .55); font: inherit; font-weight: 800; font-size: .7rem; letter-spacing: .05em; }
.fab .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.fab::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(244, 63, 94, .6); animation: anillo 2.2s infinite; }
@keyframes anillo { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fab::before, .en-vivo { animation: none; } }

/* ---------- Diálogos tipo hoja ---------- */
.dlg { border: 0; padding: 0; background: transparent; color: var(--ink); max-height: 90vh; width: min(520px, 100vw); }
.dlg::backdrop { background: rgba(3, 6, 10, .72); backdrop-filter: blur(4px); }
.dlg-in { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line2); border-radius: 24px; padding: 18px 16px; display: grid; gap: 12px; }
.dlg-in .panel-h { margin: 0; }
.dlg .sos-grid { margin: 0; }
.o { text-align: center; color: var(--ink3); font-size: .82rem; }
.res-lugar, .rapidos { display: grid; gap: 6px; }
.rapidos { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.opc { text-align: left; border: 1px solid var(--line2); background: rgba(var(--fg), .03); border-radius: 12px; padding: 9px 12px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.opc small { display: block; color: var(--ink3); font-size: .74rem; font-weight: 500; }
@media (max-width: 640px) {
  .hoja-dlg { margin: auto 0 0; width: 100vw; max-width: 100vw; }
  .hoja-dlg .dlg-in { border-radius: 24px 24px 0 0; padding-bottom: calc(18px + var(--safe-b)); animation: sube .25s ease-out; }
}

.toast { position: fixed; left: 50%; bottom: calc(var(--navh) + 30px + var(--safe-b)); transform: translate(-50%, 16px); background: var(--ink); color: var(--bg);
  padding: 11px 16px; border-radius: 14px; font-size: .88rem; font-weight: 700; opacity: 0; pointer-events: none; transition: .2s; z-index: 2000; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Ajustes de celular ---------- */
@media (min-width: 560px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 380px) {
  .hero-lugar { font-size: 1.5rem; } .kpi-v { font-size: 1.4rem; } .aviso-t { font-size: 1.3rem; }
  .consejos { grid-template-columns: 1fr; } .barra-f { grid-template-columns: 100px 1fr 52px; } .prob { grid-template-columns: 90px 1fr 40px; }
  .pt-grid { grid-template-columns: 1fr 1fr; } .dias .tmp { display: none; } .pt-acciones { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
  body:not([data-tab="vivo"]) .mapa-col { display: none; }
}

/* ---------- Computadora ---------- */
@media (min-width: 1024px) {
  body { padding-bottom: 40px; }
  .nav { position: sticky; top: 59px; left: auto; right: auto; bottom: auto; height: auto; display: flex; gap: 4px; max-width: 1320px; margin: 0 auto; border-radius: 0;
    border: 0; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 88%, transparent); padding: 6px 16px; box-shadow: none; }
  .nav a { flex-direction: row; gap: 8px; font-size: .88rem; padding: 9px 14px; border-radius: 12px; }
  .nav a .ic { width: 18px; height: 18px; }
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 44%); gap: 20px; padding: 0 16px; align-items: start; }
  main { max-width: none; padding: 18px 0 0; margin: 0; }
  .mapa-col { position: sticky; top: 118px; padding-top: 18px; }
  .mapa { height: calc(100vh - 250px); }
  .fab { bottom: 24px; right: 24px; }
  .toast { bottom: 28px; }
  .tipos { grid-template-columns: repeat(4, 1fr); }
  body[data-tab="punto"] .layout { grid-template-columns: 1fr; }
  body[data-tab="punto"] .mapa-col { display: none; }
  .punto-tab { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; }
  .punto-mapa { height: calc(100vh - 150px); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line2); }
  .hoja-punto { margin: 0; border-radius: var(--r); border: 1px solid var(--line2); max-height: calc(100vh - 150px); overflow: auto; }
  .agarre { display: none; }
  .aviso-pie .ver-mapa { display: none; }
}
@media (max-width: 1023px) { body[data-tab="punto"] .fab { display: none; } }

/* ---------- ¿Cuánto llovió? (para todo público) ---------- */
.cuanto { display: flex; align-items: center; gap: 16px; margin: 2px 0 16px; }
.cuanto-v { font-size: 3.2rem; font-weight: 800; letter-spacing: -.05em; line-height: .9; text-shadow: 0 0 30px currentColor; }
.cuanto-v small { font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-left: 3px; opacity: .8; text-shadow: none; }
.cuanto-n { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.cuanto-d { font-size: .92rem; color: var(--ink2); margin-top: 2px; }
.escala-ll { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 0 0 16px; }
.el { position: relative; }
.el i { display: block; height: 8px; border-radius: 99px; background: var(--c); opacity: .25; }
.el span { display: block; text-align: center; font-size: .64rem; font-weight: 700; color: var(--ink3); margin-top: 6px; line-height: 1.1; }
.el.on i { opacity: 1; height: 12px; margin-top: -2px; box-shadow: 0 0 14px var(--c); }
.el.on span { color: var(--ink); font-size: .72rem; }
.el.on::before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); }
.baldes { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(var(--acc-rgb), .07); border: 1px solid rgba(var(--acc-rgb), .2); }
.baldes-ic { display: flex; flex-wrap: wrap; gap: 2px; max-width: 46%; align-items: center; }
.baldes-ic .ic { width: 22px; height: 22px; color: var(--acc); }
.baldes-ic span { font-size: .8rem; font-weight: 800; color: var(--acc); margin-left: 2px; }
.baldes p { margin: 0; font-size: .9rem; color: var(--ink2); line-height: 1.35; }
.baldes b { color: var(--ink); }
.ll-origen { font-size: .82rem; color: var(--ink3); margin: 10px 0 0; }
.ll-lista { display: grid; gap: 6px; }
.ll-fila { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; background: rgba(var(--fg), .03); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); transition: background .15s; }
.ll-fila:active, .ll-fila:hover { background: rgba(var(--fg), .07); }
.ll-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.ll-n { flex: 1; min-width: 0; }
.ll-n b { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ll-n small, .ll-v small { display: block; font-size: .74rem; color: var(--ink3); }
.ll-v { text-align: right; flex: none; }
.ll-v b { font-size: .88rem; }
.ll-fila > .ic { width: 16px; height: 16px; color: var(--ink3); transform: rotate(-90deg); flex: none; }
@media (max-width: 380px) { .cuanto-v { font-size: 2.6rem; } .el span { font-size: .58rem; } }

/* ---------- ¿Cuándo llueve? ---------- */
.cuando { overflow: hidden; background: radial-gradient(420px 200px at 100% 0%, rgba(var(--acc-rgb), .14), transparent 70%), linear-gradient(180deg, var(--panel2), var(--panel)); }
.t-chip { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 800; padding: 5px 11px; border-radius: 999px; letter-spacing: .02em; }
.t-chip.ya { background: rgba(var(--acc-rgb), .16); color: var(--acc); border: 1px solid rgba(var(--acc-rgb), .4); }
.t-chip.pronto { background: var(--n3b); color: var(--n3); border: 1px solid rgba(251, 146, 60, .4); }
.t-chip.luego { background: rgba(var(--fg), .06); color: var(--ink2); border: 1px solid var(--line2); }
.t-chip.ok { background: rgba(var(--acc-rgb), .12); color: var(--verde); border: 1px solid rgba(var(--acc-rgb), .3); }
.t-chip .en-vivo { background: var(--acc); width: 7px; height: 7px; }
.t-titulo { font-size: 1.45rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.t-sub { font-size: .88rem; color: var(--ink2); margin-top: 4px; }
.t-linea { display: flex; gap: 5px; overflow-x: auto; padding: 26px 2px 4px; margin: 6px -4px 0; scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.t-linea::-webkit-scrollbar { display: none; }
.t-h { position: relative; flex: 0 0 34px; display: flex; flex-direction: column; align-items: center; gap: 5px; scroll-snap-align: start; }
.t-per { position: absolute; top: -22px; left: 0; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--ink3); white-space: nowrap;
  padding-left: 6px; border-left: 2px solid var(--line2); line-height: 1.6; }
.t-mm { font-size: .64rem; font-weight: 800; color: var(--ink2); height: 12px; }
.t-cap { position: relative; width: 26px; height: 92px; border-radius: 99px; background: rgba(var(--fg), .05); border: 1px solid rgba(var(--fg), .06); display: flex; align-items: flex-end; overflow: hidden; }
.t-cap i { display: block; width: 100%; border-radius: 99px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); box-shadow: 0 0 14px var(--c); }
.t-cap .ic { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); width: 13px; height: 13px; color: #fff; stroke-width: 2.4; }
.t-hr { font-size: .64rem; font-weight: 700; color: var(--ink3); white-space: nowrap; }
.t-h.ahora .t-cap { border-color: var(--acc); box-shadow: 0 0 0 2px rgba(var(--acc-rgb), .25); }
.t-h.ahora .t-hr { color: var(--acc); font-weight: 800; }
.t-h.pico .t-hr { color: var(--ink); font-weight: 800; }
.t-h.pico .t-mm { color: var(--ink); }
.t-ley { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-size: .74rem; color: var(--ink2); font-weight: 600; }
.t-ley span { display: inline-flex; align-items: center; gap: 6px; }
.t-ley i { width: 10px; height: 10px; border-radius: 50%; }
.t-ley-s { color: var(--ink3); font-weight: 500; }
.t-consejo { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 11px 12px; border-radius: 14px; background: var(--n3b); border: 1px solid rgba(251, 146, 60, .3); font-size: .88rem; font-weight: 600; }
.t-consejo .ic { width: 18px; height: 18px; color: var(--n3); margin-top: 1px; }
@media (min-width: 760px) { .t-h { flex: 1 0 30px; } .t-cap { width: 100%; max-width: 28px; } }

/* Buscador dentro de la ventana de zona */
.buscar-dlg { box-shadow: none; background: var(--bg2); }
.buscar-dlg input { font-size: 1.02rem; }

/* ---------- Inicio: semáforo y 4 botones ---------- */
.estado { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; margin: 0 0 10px; padding: 14px; border-radius: 20px; cursor: pointer;
  background: rgba(var(--fg), .05); border: 1px solid rgba(var(--fg), .1); color: var(--ink); font: inherit; transition: transform .12s; }
.estado:active, .tile-k:active { transform: scale(.97); }
.estado .sem { width: 62px; height: 62px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #334155; color: #fff; }
.estado .sem .ic { width: 30px; height: 30px; stroke-width: 2.2; }
.estado.k-n1 .sem { background: var(--verde); color: var(--on-acc); box-shadow: 0 0 26px rgba(var(--acc-rgb), .45); }
.estado.k-n2 .sem { background: var(--n2); color: #2b2100; box-shadow: 0 0 26px rgba(250,204,21,.5); }
.estado.k-n3 .sem { background: var(--n3); color: #2a1200; box-shadow: 0 0 28px rgba(251,146,60,.55); animation: latir 2.4s ease-in-out infinite; }
.estado.k-n4 .sem { background: var(--n4); color: #fff; box-shadow: 0 0 30px rgba(244,63,94,.6); animation: latir 1.6s ease-in-out infinite; }
@keyframes latir { 50% { transform: scale(1.07); } }
.estado-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.estado .kpi-v { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 3px 0 2px; }
.estado.k-n2 .kpi-v { color: var(--n2); } .estado.k-n3 .kpi-v { color: var(--n3); } .estado.k-n4 .kpi-v { color: var(--n4); } .estado.k-n1 .kpi-v { color: var(--verde); }
.estado .kpi-s { font-size: .8rem; color: var(--ink2); }
.chev-d { width: 18px; height: 18px; color: var(--ink3); transform: rotate(-90deg); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile-k { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; padding: 14px; border-radius: 20px; min-height: 132px;
  background: rgba(var(--fg), .05); border: 1px solid rgba(var(--fg), .09); color: var(--ink); font: inherit; text-decoration: none; cursor: pointer; transition: transform .12s, background .2s; }
.tile-k:hover { background: rgba(var(--fg), .08); }
.tile-k::after { content: ""; position: absolute; top: 16px; right: 14px; width: 8px; height: 8px; border-top: 2px solid var(--ink3); border-right: 2px solid var(--ink3); transform: rotate(45deg); }
.tk-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px; background: rgba(var(--fg), .12); }
.tk-ic .ic { width: 20px; height: 20px; }
.tk-ic.azul { background: rgba(var(--acc-rgb), .16); color: var(--acc); } .tk-ic.morado { background: rgba(var(--acc-rgb), .18); color: var(--acc2); } .tk-ic.verde { background: rgba(var(--acc-rgb), .15); color: var(--verde); }
.tile-k .kpi-k { font-size: .7rem; }
.tile-k .kpi-v { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 2px 0; }
.tile-k .kpi-s { font-size: .74rem; color: var(--ink2); line-height: 1.3; margin-top: auto; }
.tile-k.llueve { background: linear-gradient(135deg, rgba(var(--acc-rgb), .22), rgba(var(--acc-rgb), .16)); border-color: rgba(var(--acc-rgb), .45); }
.tile-k.llueve .kpi-v { color: var(--acc); }
.tile-k.alerta .kpi-s { color: var(--n3); font-weight: 700; }
.tile-k.sos { background: linear-gradient(145deg, #e11d48, #9f1239); border-color: rgba(var(--fg), .14); box-shadow: 0 10px 26px rgba(225,29,72,.3); }
.tile-k.sos .kpi-k, .tile-k.sos .kpi-s { color: rgba(var(--fg), .85); } .tile-k.sos::after { border-color: #fff; }
.tile-k.sos .tk-ic { background: rgba(var(--fg), .2); color: #fff; }
.pop .kpi-v { animation: pop .45s ease-out; }
@keyframes pop { 0% { transform: scale(.92); opacity: .4; } 60% { transform: scale(1.04); } 100% { transform: none; opacity: 1; } }
.girando .ic { animation: gira .9s linear infinite; }
/* Ver más datos */
.mas { margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, var(--panel2), var(--panel)); }
.mas > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; }
.mas > summary::-webkit-details-marker { display: none; }
.mas > summary b { display: block; font-size: 1rem; }
.mas > summary small { color: var(--ink3); font-size: .8rem; }
.mas > summary .ic { color: var(--ink2); transition: transform .2s; }
.mas[open] > summary .ic { transform: rotate(180deg); }
.mas-in { padding: 0 10px 2px; }
.mas-in .panel { box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .estado .sem { animation: none !important; } }

body.ayuda-visible[data-tab="resumen"] .fab { opacity: 0; pointer-events: none; transform: scale(.8); }
.fab { transition: opacity .25s, transform .25s; }

/* ---------- Tablero de ayuda tipo marketplace ---------- */
.btn-mas { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 14px 8px 10px; font: inherit; font-size: .86rem; font-weight: 800; cursor: pointer;
  color: var(--on-acc); background: linear-gradient(135deg, var(--acc), var(--acc2)); box-shadow: 0 8px 20px rgba(var(--acc-rgb), .3); }
.btn-mas .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.mk-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .mk-grid { grid-template-columns: 1fr 1fr; } }
.mk { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: rgba(var(--fg), .035); border: 1px solid var(--line2); }
.mk.hecho { opacity: .6; }
.mk-top { display: flex; align-items: center; gap: 10px; }
.mk-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.mk-ic .ic { width: 22px; height: 22px; }
.mk.necesito .mk-ic { background: var(--n4b); color: var(--n4); } .mk.ofrezco .mk-ic { background: rgba(var(--acc-rgb), .13); color: var(--verde); }
.mk-t { flex: 1; min-width: 0; } .mk-t b { display: block; font-size: 1rem; } .mk-t small { color: var(--ink3); font-size: .76rem; }
.mk-urg { flex: none; font-size: .68rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: rgba(var(--fg), .07); color: var(--ink2); }
.mk-urg.u-hoy { background: var(--n4); color: #fff; } .mk-urg.u-semana { background: var(--n3b); color: var(--n3); } .mk-urg.u-ok { background: rgba(var(--acc-rgb), .15); color: var(--verde); }
.mk.ofrezco .mk-urg.u-hoy { background: var(--verde); color: var(--on-acc); }
.mk-dato { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 700; }
.mk-dato .ic { width: 16px; height: 16px; color: var(--acc); }
.mk p { margin: 0; color: var(--ink2); font-size: .9rem; overflow-wrap: anywhere; }
.mk-meta { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink3); }
.mk-meta .ic { width: 14px; height: 14px; } .mk-meta span:first-of-type { flex: 1; min-width: 0; }
.mk-hace { white-space: nowrap; }
.mk-nuevo { align-items: center; justify-content: center; text-align: center; min-height: 120px; cursor: pointer; font: inherit; color: var(--ink); border-style: dashed; border-color: rgba(var(--acc-rgb), .45); background: rgba(var(--acc-rgb), .05); }
.mk-nuevo b { font-size: 1rem; } .mk-nuevo small { color: var(--ink3); font-size: .8rem; }
.mk-mas { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--on-acc); background: linear-gradient(135deg, var(--acc), var(--acc2)); box-shadow: 0 8px 20px rgba(var(--acc-rgb), .35); }
.mk-mas .ic { width: 24px; height: 24px; stroke-width: 2.6; }
.mk-vacio { grid-column: 1 / -1; text-align: center; padding: 6px 0; }
/* Formulario rápido */
.form-ay { max-height: 88vh; overflow-y: auto; }
.form-ay input, .form-ay textarea { padding: 11px 13px; }
.f-paso { display: flex; align-items: center; gap: 10px; font-size: .95rem; margin-top: 4px; }
.f-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.f-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 11px 4px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(var(--fg), .03);
  color: var(--ink); font: inherit; font-size: .74rem; font-weight: 700; cursor: pointer; text-align: center; line-height: 1.15; }
.f-cat .ic { width: 22px; height: 22px; color: var(--acc); }
.f-cat.on { border-color: var(--acc); background: rgba(var(--acc-rgb), .14); box-shadow: inset 0 0 0 1px var(--acc); }
.chip.u-hoy.on { background: var(--n4); border-color: var(--n4); color: #fff; }
.f-cont { position: relative; } .f-cont span { position: absolute; right: 12px; bottom: 9px; font-size: .7rem; color: var(--ink3); }

/* ---------- ¿Va a llover? (probabilidades) ---------- */
.real { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 11px 12px; border-radius: 14px; font-size: .88rem; line-height: 1.4; background: var(--panel2); border: 1px solid var(--line2); color: var(--ink2); }
.real b { color: var(--ink); }
.real .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--ink3); }
.real.si { background: rgba(var(--acc-rgb), .1); border-color: rgba(var(--acc-rgb), .35); }
.real.si .ic { color: var(--acc); }
.real.no .ic { color: var(--verde); }
.tramos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.tramos.chico { grid-template-columns: repeat(3, 1fr); margin: 8px 0 10px; }
.tr { background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 11px; min-width: 0; }
.tr-n { font-size: .8rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.tr-h { font-size: .7rem; color: var(--ink3); margin-top: 1px; }
.tr-p { font-size: 1.7rem; font-weight: 800; color: var(--c); line-height: 1.1; margin-top: 6px; letter-spacing: -.02em; }
.tr-p small { font-size: .9rem; margin-left: 1px; }
.tr-w { font-size: .76rem; font-weight: 700; color: var(--c); }
.tr-b { height: 5px; border-radius: 99px; background: var(--line); margin-top: 7px; overflow: hidden; }
.tr-b i { display: block; height: 100%; background: var(--c); border-radius: 99px; }
.tramos.chico .tr-p { font-size: 1.35rem; }
.dias td.pr small, .dias td.mm small { color: var(--ink3); font-weight: 500; }
.btn-llueve { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 8px; padding: 11px 12px; border-radius: 14px; border: 1px dashed rgba(var(--acc-rgb), .45); background: rgba(var(--acc-rgb), .06); color: var(--acc); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.btn-llueve .ic { width: 18px; height: 18px; }
/* Aviso rápido: ¿está lloviendo donde estás? */
.llueve-ya { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 12px 12px 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(var(--acc-rgb), .14), rgba(var(--acc-rgb), .1)); border: 1px solid rgba(var(--acc-rgb), .35); }
.ly-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ly-t b { font-size: .95rem; }
.ly-t span { font-size: .78rem; color: var(--ink2); line-height: 1.35; }
.ly-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 11px 14px; border-radius: 12px; border: 0; background: var(--acc); color: var(--on-acc); font: inherit; font-weight: 800; font-size: .88rem; cursor: pointer; }
.ly-btn .ic { width: 18px; height: 18px; }
.ly-btn:disabled { opacity: .75; cursor: default; }

/* =========================================================
   Portada en 5 bloques
   ========================================================= */
.saltos { display: flex; gap: 6px; overflow-x: auto; margin: 12px -2px 0; padding: 2px; scrollbar-width: none; }
.saltos::-webkit-scrollbar { display: none; }
.saltos button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line2); background: var(--panel2); color: var(--ink); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.saltos .ic { width: 15px; height: 15px; color: var(--acc); }
.sec-t { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sec-t h2 { margin: 0; font-size: 1.08rem; }
.sec-t small { display: block; color: var(--ink3); font-size: .76rem; margin-top: 1px; }
.sec-t > div { flex: 1; min-width: 0; }
.sec-n { flex: none; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: rgba(var(--acc-rgb), .14); color: var(--acc); font-weight: 800; font-size: .82rem; border: 1px solid rgba(var(--acc-rgb), .3); }

/* 1. Ahora */
.ver { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; border: 1px solid var(--line2); background: var(--panel2); }
.ver-ic { flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(148, 163, 184, .12); }
.ver-ic .ic { width: 32px; height: 32px; color: var(--ink2); }
.ver-t { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.ver-s { font-size: .85rem; color: var(--ink2); margin-top: 5px; line-height: 1.4; }
.ver-si { background: linear-gradient(135deg, rgba(var(--acc-rgb), .2), rgba(var(--acc-rgb), .06)); border-color: rgba(var(--acc-rgb), .5); }
.ver-si .ver-ic { background: rgba(var(--acc-rgb), .22); } .ver-si .ver-ic .ic { color: var(--acc); } .ver-si .ver-t { color: var(--acc); }
.ver-no .ver-ic { background: rgba(var(--acc-rgb), .14); } .ver-no .ver-ic .ic { color: var(--verde); }
.ver-posible { background: linear-gradient(135deg, rgba(251, 146, 60, .16), rgba(251, 146, 60, .04)); border-color: rgba(251, 146, 60, .4); }
.ver-posible .ver-ic { background: rgba(251, 146, 60, .18); } .ver-posible .ver-ic .ic { color: var(--n3); } .ver-posible .ver-t { color: var(--n3); }
.senales { margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.sen-cab { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); padding: 9px 12px; background: var(--bg2); }
.sen { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); }
.sen-ic { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--panel3); }
.sen-ic .ic { width: 17px; height: 17px; color: var(--ink2); }
.sen-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sen-t b { font-size: .86rem; }
.sen-t span { font-size: .76rem; color: var(--ink2); line-height: 1.3; }
.sen-h { flex: none; font-size: .7rem; color: var(--ink3); text-align: right; max-width: 34%; line-height: 1.25; }
.sen.on .sen-ic { background: rgba(var(--acc-rgb), .2); } .sen.on .sen-ic .ic { color: var(--acc); } .sen.on .sen-h { color: var(--acc); font-weight: 700; }
.sen.viejo { opacity: .78; }
.chip-24 { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink2); font: inherit; font-size: .82rem; text-align: left; cursor: pointer; }
.chip-24 b { color: var(--ink); }
.chip-24 .ic { width: 16px; height: 16px; color: var(--acc); flex: none; }
.chip-24 .ic:last-child { margin-left: auto; color: var(--ink3); }
.vivo-ahora .llueve-ya { margin-top: 12px; }

/* 3. Historial */
.h-total { display: flex; gap: 14px; align-items: center; }
.h-num { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.h-num small { font-size: 1rem; margin-left: 2px; }
.h-niv { font-weight: 800; font-size: 1rem; }
.h-d { font-size: .82rem; color: var(--ink2); margin-top: 3px; line-height: 1.4; }
.h-graf { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 120px; align-items: end; padding-bottom: 18px; position: relative; }
.hb { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.hb i { display: block; width: 100%; border-radius: 3px 3px 1px 1px; }
.hb span { position: absolute; bottom: -18px; left: 0; font-size: .62rem; color: var(--ink3); white-space: nowrap; }
.hb:last-child span { left: auto; right: 0; color: var(--acc); font-weight: 700; }
.h-graf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 1px; background: var(--line2); }
.h-pie { font-size: .8rem; color: var(--ink2); margin: 8px 0 6px; }
.d-graf { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; }
.db { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.db b { font-size: .72rem; height: 14px; }
.db > div { width: 100%; height: 80px; display: flex; align-items: flex-end; background: rgba(var(--fg), .03); border-radius: 6px; }
.db i { display: block; width: 100%; border-radius: 6px; }
.db span { font-size: .7rem; color: var(--ink3); text-transform: capitalize; }

/* 4. Otros lugares */
.lg-cab, .lg { display: grid; grid-template-columns: minmax(0, 1.3fr) 1.15fr .7fr .6fr; align-items: center; gap: 6px; }
.lg-cab { font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); padding: 0 10px 6px; }
.lg-cab span:last-child { display: none; }
.lg-lista { display: flex; flex-direction: column; gap: 6px; }
.lg { position: relative; padding: 10px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.lg.yo { border-color: rgba(var(--acc-rgb), .55); }
.lg.yo .lg-n b::after { content: " · tu zona"; color: var(--acc); font-size: .7rem; font-weight: 700; }
.lg-n { min-width: 0; } .lg-n b { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-n small { color: var(--ink3); font-size: .7rem; }
.lg-ahora { justify-self: start; display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; padding: 4px 8px; border-radius: 99px; background: var(--panel3); color: var(--ink2); white-space: nowrap; }
.lg-ahora.a-si { background: rgba(var(--acc-rgb), .18); color: var(--acc); }
.lg-ahora.a-no { background: rgba(var(--acc-rgb), .12); color: var(--verde); }
.lg-ahora.a-posible { background: rgba(251, 146, 60, .15); color: var(--n3); }
.lg-d { text-align: center; line-height: 1.1; } .lg-d span { font-size: .8rem; color: var(--ink2); } .lg-d b { font-size: .95rem; }
.lg-d small { display: block; font-size: .62rem; color: var(--ink3); }
.lg .chip-nivel { position: absolute; top: -7px; right: 8px; font-size: .62rem; padding: 2px 7px; }
.lg .chip-nivel.n1 { display: none; }

/* 5. Ayuda */
.ayuda-res .sos-grid { margin: 0 0 12px; }
.ay-num { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.ay-num a { display: flex; flex-direction: column; padding: 12px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.ay-num b { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.ay-num span { font-size: .76rem; color: var(--ink2); margin-top: 4px; }
.ay-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-ay { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.btn-ay .ic { width: 22px; height: 22px; flex: none; }
.btn-ay span { display: flex; flex-direction: column; } .btn-ay b { font-size: .88rem; } .btn-ay small { font-size: .7rem; color: var(--ink2); }
.btn-ay.nec { background: rgba(244, 63, 94, .12); border-color: rgba(244, 63, 94, .4); } .btn-ay.nec .ic { color: var(--n4); }
.btn-ay.ofr { background: rgba(var(--acc-rgb), .1); border-color: rgba(var(--acc-rgb), .35); } .btn-ay.ofr .ic { color: var(--verde); }
.link-bloque { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 11px 12px; border-radius: 12px; background: var(--bg2); color: var(--acc); font-size: .85rem; font-weight: 700; text-decoration: none; }
.link-bloque .ic { width: 16px; height: 16px; }
@media (max-width: 360px) { .ay-botones { grid-template-columns: 1fr; } .h-num { font-size: 2.4rem; } }
.h-src { font-size: .72rem; color: var(--ink3); margin-top: 1px; }

/* =========================================================
   Lenguaje de a pie · portada final
   ========================================================= */
html.letra-grande { font-size: 118%; }
.acc-facil { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.btn-facil { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel2); color: var(--ink); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.btn-facil .ic { width: 18px; height: 18px; color: var(--acc); }
.btn-facil .aa { font-weight: 800; color: var(--acc); }
.btn-facil[aria-pressed="true"] { border-color: var(--acc); background: rgba(var(--acc-rgb), .12); }
.ult-dato { display: flex; align-items: center; gap: 8px; margin: 10px 2px 0; font-size: .82rem; color: var(--ink2); }
.ult-dato .ic { width: 16px; height: 16px; color: var(--ink3); flex: none; }
.de-donde { margin-top: 10px; }
.de-donde summary { cursor: pointer; color: var(--acc); font-size: .84rem; font-weight: 700; list-style: none; }
.de-donde summary::-webkit-details-marker { display: none; }
.de-donde summary::before { content: "＋ "; }
.de-donde[open] summary::before { content: "－ "; }
.de-donde p { font-size: .82rem; color: var(--ink2); margin: 8px 0; line-height: 1.45; }

.gotas { display: inline-flex; gap: 2px; vertical-align: middle; }
.gotas .ic { width: 16px; height: 16px; color: var(--line2); fill: none; }
.gotas .ic.on { color: var(--acc); fill: rgba(var(--acc-rgb), .35); }
.tr .gotas { margin-top: 8px; }
.tr .gotas .ic { width: 18px; height: 18px; }
.tr .gotas .ic.on { color: var(--c); fill: color-mix(in srgb, var(--c) 40%, transparent); }
.tr-w { margin-top: 4px; line-height: 1.25; }
.ley-g { font-size: .72rem; color: var(--ink3); margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ley-g .gotas .ic { width: 12px; height: 12px; }
.t-chip .gotas .ic { width: 14px; height: 14px; }

/* Mi familia */
.fam-lista { display: flex; flex-direction: column; gap: 8px; }
.fam { position: relative; display: flex; align-items: stretch; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; }
.fam-a { flex: 1; min-width: 0; padding: 11px 12px; color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 7px; }
.fam-n { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .fam-n b { font-size: .95rem; }
.fam-n .chip-nivel { font-size: .64rem; padding: 2px 7px; }
.fam-d { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.fam-p { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--ink3); }
.fam-x { flex: none; width: 40px; border: 0; border-left: 1px solid var(--line); background: none; color: var(--ink3); font-size: 1.3rem; cursor: pointer; border-radius: 0 14px 14px 0; }
.fam-vacio { font-size: .86rem; color: var(--ink2); margin: 0 0 10px; line-height: 1.45; }
.fam-sug { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.btn-fam { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 11px; border-radius: 12px; border: 1px dashed var(--line2); background: none; color: var(--acc); font: inherit; font-weight: 700; font-size: .86rem; cursor: pointer; }
.btn-fam .ic { width: 16px; height: 16px; }

/* ¿Cuánto ha llovido? */
.cuanto2 { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--c) 10%, var(--panel2)); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.c2-ic { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 20%, transparent); }
.c2-ic .ic { width: 30px; height: 30px; color: var(--c); }
.c2-f { font-size: 1.4rem; font-weight: 800; color: var(--c); letter-spacing: -.02em; line-height: 1.1; }
.c2-d { font-size: .86rem; color: var(--ink); margin-top: 4px; line-height: 1.4; }
.c2-mm { font-size: .72rem; color: var(--ink3); margin-top: 5px; }
.escala2 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 12px 0 4px; }
.e2 { display: flex; flex-direction: column; align-items: center; gap: 5px; opacity: .55; }
.e2 i { display: block; width: 100%; height: 6px; border-radius: 99px; background: var(--c); }
.e2 span { font-size: .68rem; color: var(--ink2); }
.e2.on { opacity: 1; } .e2.on i { height: 10px; box-shadow: 0 0 12px var(--c); } .e2.on span { color: var(--ink); font-weight: 800; }

/* Ríos */
.rios-casa .sec-n .ic { width: 15px; height: 15px; }
.rio-casa { padding: 11px 12px; border-radius: 12px; background: var(--panel2); border-left: 4px solid var(--n2); margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.rio-casa.n3 { border-left-color: var(--n3); } .rio-casa.n4 { border-left-color: var(--n4); }
.rio-casa b { font-size: .9rem; } .rio-casa small { font-size: .74rem; color: var(--ink3); }

/* Ayuda: albergues */
.ayuda-res .ay-botones { margin-bottom: 10px; }
.ayuda-res .sos-grid { margin: 0; }
.albergues { margin-top: 4px; }
.alb { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); color: inherit; text-decoration: none; margin-bottom: 6px; }
.alb span { flex: 1; display: flex; flex-direction: column; } .alb small { color: var(--ink3); font-size: .74rem; }
.alb .ic { width: 18px; height: 18px; color: var(--acc); }
.alb-t { font-size: .84rem; color: var(--ink2); line-height: 1.45; margin: 0 0 8px; }
.alb-llamar { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 12px; background: rgba(251, 146, 60, .12); border: 1px solid rgba(251, 146, 60, .35); color: var(--ink); font-size: .84rem; font-weight: 700; text-decoration: none; line-height: 1.35; }
.alb-llamar .ic { width: 18px; height: 18px; color: var(--n3); flex: none; }

/* Reportar en 2 toques */
.tipos.grandes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tipos.grandes .tipo { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; min-height: 84px; text-align: left; font-size: .86rem; line-height: 1.25; }
.tipos.grandes .tipo .ic { width: 24px; height: 24px; }
.tipos.grandes .tipo[aria-pressed="true"] { outline: 2px solid var(--acc); outline-offset: 1px; }
.donde-1 { font-size: .82rem; color: var(--ink2); margin: 0 0 10px; }
.extra-rep { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.extra-rep summary { cursor: pointer; font-size: .86rem; font-weight: 700; color: var(--acc); }
.extra-rep summary small { color: var(--ink3); font-weight: 500; }
.extra-rep[open] { display: flex; flex-direction: column; gap: 10px; }

/* Avisos */
.av-est { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); }
.av-est .ic { width: 26px; height: 26px; color: var(--acc); flex: none; }
.av-est b { display: block; font-size: .92rem; } .av-est span { font-size: .8rem; color: var(--ink2); line-height: 1.4; }
.av-lista { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: .84rem; color: var(--ink2); }
.av-lista li { display: flex; gap: 8px; align-items: flex-start; } .av-lista .ic { width: 16px; height: 16px; color: var(--verde); flex: none; margin-top: 2px; }
.btn-avisos { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; padding: 13px; border-radius: 14px; border: 0; background: var(--acc); color: var(--on-acc); font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; }
.btn-avisos.off { background: var(--panel3); color: var(--ink2); }
.av-ios { margin-top: 10px; padding: 11px 12px; border-radius: 12px; background: rgba(250, 204, 21, .1); border: 1px solid rgba(250, 204, 21, .3); font-size: .82rem; line-height: 1.45; }
/* Si el botón crece (p. ej. "¡Gracias! Ya lo ven tus vecinos"), pasa debajo del texto en vez de aplastarlo */
.llueve-ya { flex-wrap: wrap; }
.ly-t { flex: 1 1 190px; }
.ly-btn { max-width: 100%; white-space: normal; text-align: left; }
.ly-btn:disabled { flex: 1 1 100%; justify-content: center; }

/* Arriba de todo: ¿está lloviendo ahora? + aviso rápido + WhatsApp */
.hero-ahora { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 14px; padding: 14px; border-radius: 18px; border: 1px solid var(--line2); background: var(--panel2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ha-ic { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(148, 163, 184, .14); }
.ha-ic .ic { width: 30px; height: 30px; color: var(--ink2); }
.ha-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ha-k { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.ha-v { font-size: 1.32rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 2px; }
.ha-s { font-size: .78rem; color: var(--ink2); margin-top: 3px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-ahora .chev-d { width: 18px; height: 18px; color: var(--ink3); flex: none; }
.hero-ahora.ha-si { background: linear-gradient(135deg, rgba(var(--acc-rgb), .24), rgba(var(--acc-rgb), .07)); border-color: rgba(var(--acc-rgb), .55); }
.hero-ahora.ha-si .ha-ic { background: rgba(var(--acc-rgb), .25); } .hero-ahora.ha-si .ha-ic .ic { color: var(--acc); } .hero-ahora.ha-si .ha-v { color: var(--acc); }
.hero-ahora.ha-posible { background: linear-gradient(135deg, rgba(251, 146, 60, .18), rgba(251, 146, 60, .05)); border-color: rgba(251, 146, 60, .45); }
.hero-ahora.ha-posible .ha-ic { background: rgba(251, 146, 60, .2); } .hero-ahora.ha-posible .ha-ic .ic { color: var(--n3); } .hero-ahora.ha-posible .ha-v { color: var(--n3); }
.hero-ahora.ha-no .ha-ic { background: rgba(var(--acc-rgb), .14); } .hero-ahora.ha-no .ha-ic .ic { color: var(--verde); }
.hero .llueve-ya { margin-top: 10px; }
.hero .estado { margin-top: 10px; }
.btn-wa { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 10px; padding: 13px; border-radius: 14px; border: 0; background: #25D366; color: #052e16; font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; }
.btn-wa .ic { width: 22px; height: 22px; }

/* =========================================================
   Apps de la comunidad
   ========================================================= */
.apps-intro .sec-n .ic { width: 15px; height: 15px; }
.apps-p { font-size: .88rem; color: var(--ink2); margin: 0 0 12px; line-height: 1.45; }
.btn-pub-app { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px; border-radius: 14px; border: 0; background: var(--acc); color: var(--on-acc); font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; }
.btn-pub-app .ic { width: 18px; height: 18px; }
#appCats { margin: 4px 0 10px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
#appCats::-webkit-scrollbar { display: none; }
#appCats .chip { flex: none; }
.apps-grid { display: flex; flex-direction: column; gap: 8px; }
.app-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.app-card > .ic { width: 16px; height: 16px; color: var(--ink3); flex: none; }
.app-ic { flex: none; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 1.7rem; background: var(--panel3); }
.app-ic .ic { width: 24px; height: 24px; color: var(--acc); }
.app-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.app-t b { font-size: .95rem; } .app-t small { font-size: .8rem; color: var(--ink2); line-height: 1.35; }
.app-meta { font-size: .7rem; color: var(--ink3); margin-top: 2px; }
.app-ok { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--acc); color: var(--on-acc); font-size: .66rem; vertical-align: 1px; }
.app-nueva { border-style: dashed; border-color: rgba(var(--acc-rgb), .45); background: rgba(var(--acc-rgb), .05); flex-direction: column; align-items: flex-start; }
.app-nueva .app-ic { background: rgba(var(--acc-rgb), .15); width: 40px; height: 40px; }
.app-nueva small { color: var(--ink2); font-size: .8rem; }
.app-vacio { margin: 6px 2px 4px; }
.dev-info { margin-top: 12px; }
.dev-info summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.dev-info summary::-webkit-details-marker { display: none; }
.dev-info summary small { color: var(--ink3); font-size: .76rem; }
.dev-pasos { margin: 12px 0 10px 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .86rem; color: var(--ink2); line-height: 1.45; }
.dev-pasos b { color: var(--ink); }
.dev-reglas { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: var(--bg2); font-size: .84rem; color: var(--ink2); }
.dev-reglas b { color: var(--ink); } .dev-reglas span::before { content: "• "; color: var(--acc); }
.dev-info code { font-size: .78rem; background: var(--bg2); padding: 1px 5px; border-radius: 5px; }
/* Visor encapsulado */
.visor-app { position: fixed; inset: 0; z-index: 3000; background: var(--bg); display: flex; flex-direction: column; }
.va-top { flex: none; display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px; background: var(--panel); border-bottom: 1px solid var(--line); }
.va-volver { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel2); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.va-volver .ic { width: 18px; height: 18px; transform: rotate(90deg); }
.va-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.va-t b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.va-t small { font-size: .68rem; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.va-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 11px; border: 1px solid var(--line2); background: var(--panel2); color: var(--ink); font: inherit; font-size: .76rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.va-btn .ic { width: 15px; height: 15px; }
.va-btn.rojo { color: var(--n4); border-color: rgba(244, 63, 94, .35); }
@media (max-width: 400px) { .va-btn.rojo span { display: none; } }
.va-cuerpo { position: relative; flex: 1; min-height: 0; background: #fff; }
.va-fondo { position: absolute; inset: 40% 20px auto; text-align: center; color: #475569; font-size: .9rem; }
.va-cuerpo iframe { position: relative; width: 100%; height: 100%; border: 0; background: transparent; }
body.con-visor { overflow: hidden; }
body.con-visor .nav, body.con-visor #fabSOS { display: none !important; }
/* Formulario de app */
.form-app { display: flex; flex-direction: column; gap: 10px; }
.form-app label { display: flex; flex-direction: column; gap: 6px; font-size: .84rem; font-weight: 700; }
.form-app label small { color: var(--ink3); font-weight: 500; }
.form-app input:not([type="checkbox"]) { font: inherit; font-weight: 500; padding: 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg2); color: var(--ink); }
.f-lbl { font-size: .84rem; font-weight: 700; margin-top: 2px; }
.emojis { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.emo { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); font-size: 1.3rem; cursor: pointer; }
.emo.on { border-color: var(--acc); background: rgba(var(--acc-rgb), .15); }
.form-app .acepto { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink2); font-size: .8rem; line-height: 1.4; }
.form-app .acepto input { margin-top: 2px; width: 18px; height: 18px; flex: none; }
.app-card > .ic, .link-bloque .ic { transform: rotate(-90deg); }
.va-prueba { position: absolute; inset: 0; z-index: 2; background: rgba(4, 7, 11, .96); display: grid; place-items: center; padding: 20px; }
.vp-in { max-width: 420px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.vp-in b { font-size: 1.15rem; color: var(--n3); } .vp-in p { margin: 0; color: var(--ink2); font-size: .9rem; line-height: 1.45; }
.vp-url { font-family: ui-monospace, monospace; font-size: .78rem !important; word-break: break-all; background: var(--panel2); padding: 8px; border-radius: 8px; }
.vp-no { background: none; border: 0; color: var(--ink3); font: inherit; padding: 8px; cursor: pointer; }
.visor-app { position: fixed; }

/* Apps: subir archivo y enlace privado */
.subir-app { display: block; border: 2px dashed var(--line2); border-radius: 14px; padding: 16px; text-align: center; cursor: pointer; color: var(--ink2); background: rgba(var(--fg), .03); }
.subir-app:hover { border-color: var(--acc, #38bdf8); }
.subir-app input { display: none; }
.app-listo p { margin: 8px 0; }
.al-link { background: var(--bg); border: 1px solid var(--line2); border-radius: 12px; padding: 12px; margin: 10px 0; word-break: break-all; font-size: .82rem; user-select: all; }
.app-listo .fila { display: flex; gap: 8px; flex-wrap: wrap; }

/* =========================================================
   DISEÑO LIMPIO (nov 2026): fondo claro, 3 colores, poco texto.
   Azul = acción · grises = texto y fondos · amarillo/naranja/rojo = solo alertas.
   ========================================================= */
:root { --p0: #94a3b8; --p1: #7fb0d3; --p2: #2f7fb5; --p3: #0b4f7c; }
html[data-tema="oscuro"] { --p0: #64748b; --p1: #5aa9d6; --p2: #38bdf8; --p3: #9ddcfb; }

body { background: var(--bg); }
.top { background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--line); }
.marca img { box-shadow: none; }
.marca-t small { display: none; }
.nav { background: color-mix(in srgb, var(--panel) 94%, transparent); box-shadow: 0 8px 28px rgba(15, 23, 42, .12); }
html[data-tema="oscuro"] .nav { box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.nav a.on .ic { filter: none; }
.nav a.nav-destacado { background: none; color: var(--ink3); box-shadow: none; }
.nav a.nav-destacado.on { color: var(--ink); background: rgba(var(--acc-rgb), .12); }
.nav-destacado .ic { color: inherit !important; }

/* Paneles planos */
.panel, .dlg-in, .mas, .cuando { background: var(--panel); box-shadow: var(--sombra); }
.panel { border-color: var(--line); }

/* Botón de tema */
.btn-tema { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink2); display: grid; place-items: center; cursor: pointer; }
.btn-tema .ic { width: 19px; height: 19px; }
.top-in { gap: 8px; } .top-in .zona { margin-left: auto; }

/* 1) Ahora mismo: lo primero y más grande */
.hero.inicio, .hero.inicio[data-n] { background: none; border: 0; padding: 6px 2px 0; overflow: visible; border-radius: 0; }
.in-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.in-cab .hero-lugar { font-size: 1.6rem; margin: 0; }
.in-cab .hero-fecha { font-size: .78rem; color: var(--ink3); }
.hero-ahora { margin-top: 12px; padding: 18px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--sombra); }
.hero-ahora .ha-v { font-size: 1.55rem; }
.hero-ahora .ha-k { display: none; }
.hero-ahora.ha-si, .hero-ahora.ha-posible { background: var(--panel); }
.hero-ahora.ha-si { border: 2px solid var(--acc); } .hero-ahora.ha-si .ha-v { color: var(--acc); }
.hero-ahora.ha-posible { border: 2px solid var(--n3); } .hero-ahora.ha-posible .ha-v { color: var(--n3); }
.hero-ahora.ha-no .ha-ic .ic { color: var(--ink3); }

/* Jerarquía de botones: 1 principal (azul sólido), secundarios (borde), terciarios (texto) */
.btn-pri { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 16px; border-radius: 16px; border: 0; background: var(--acc); color: var(--on-acc); font: inherit; font-size: 1.05rem; font-weight: 800; cursor: pointer; }
.btn-pri .ic { width: 22px; height: 22px; }
.btn-pri:active { transform: scale(.98); }
.btn-pri[disabled] { opacity: .6; }
.ly-info { margin: 6px 2px 0; text-align: center; font-size: .82rem; color: var(--ink3); }
.btn-sec { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn.brillo, .ly-btn, .btn-avisos, .btn-pub-app, .mk-mas { background: var(--acc); color: var(--on-acc); box-shadow: none; }
.paso { background: var(--acc); color: var(--on-acc); }
.btn-wa { background: var(--panel); color: var(--ink); border: 1px solid var(--line2); box-shadow: none; width: 100%; }
.btn-wa .ic { color: #16a34a; }

/* 2) ¿Va a llover? como una sola fila limpia */
.cuando { margin-top: 12px; }
.blq-t { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); margin: 0 0 4px; }
.cuando .t-titulo { font-size: 1.2rem; }
.cuando .tramos { grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.cuando .tr { background: none; border: 0; border-radius: 0; padding: 0 4px; text-align: center; }
.cuando .tr + .tr { border-left: 1px solid var(--line); }
.cuando .tr-n { font-size: .74rem; } .cuando .tr-h { display: none; }
.cuando .tr .gotas { gap: 0; margin-top: 6px; } .cuando .tr .gotas .ic { width: 12px; height: 12px; }
.cuando .tr-w { font-size: .7rem; color: var(--ink2); font-weight: 600; }
.cuando .nota { margin-top: 10px; }
.nota summary { font-size: .82rem; color: var(--acc); }

/* 3) Aviso oficial: una fila */
.estado { margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--sombra); gap: 12px; }
.estado .sem { width: 40px; height: 40px; box-shadow: none !important; animation: none !important; }
.estado .sem .ic { width: 20px; height: 20px; }
.estado.k-n1 .sem { background: var(--panel3); color: var(--ink3); }
.estado.k-n2 .sem { background: var(--n2b); color: var(--n2); }
.estado.k-n3 .sem { background: var(--n3b); color: var(--n3); }
.estado.k-n4 .sem { background: var(--n4b); color: var(--n4); }
.estado .kpi-v { font-size: 1.05rem; margin: 1px 0 0; }
.estado .kpi-s { display: none; }

/* Más información: lista que se abre al tocar */
.mas-t { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); margin: 26px 2px 8px; }
.mas-lista { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sombra); overflow: hidden; }
.plegable + .plegable { border-top: 1px solid var(--line); }
.plegable > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 15px 14px; cursor: pointer; font-weight: 700; }
.plegable > summary::-webkit-details-marker { display: none; }
.plegable > summary > .ic:first-child { width: 20px; height: 20px; color: var(--acc); flex: none; }
.plegable > summary span { flex: 1; }
.plegable > summary .chev { width: 16px; height: 16px; color: var(--ink3); transform: rotate(-90deg); transition: transform .2s; }
.plegable[open] > summary .chev { transform: rotate(0deg); }
.plegable > .panel { margin: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--panel2); }
.plegable .sec-t { display: none; }
.pie-acc { display: grid; gap: 10px; margin: 18px 0 8px; }
.pie-acc .acc-facil { display: flex; justify-content: center; gap: 10px; }
.btn-facil { background: none; border: 0; color: var(--ink2); }

/* Franja de aviso y botones de emergencia: planos */
.franja.n2 { background: var(--n2); } .franja.n3 { background: var(--n3); } .franja.n4 { background: var(--n4); }
.sos-btn { background: var(--n4); box-shadow: none; border: 0; }
.sos-btn.naranja { background: var(--n3); box-shadow: none; }
.tile-k.sos { background: var(--n4); box-shadow: none; }
.chip-nivel.n2, .chip-nivel.n3 { color: #fff; }
html[data-tema="oscuro"] .chip-nivel.n2, html[data-tema="oscuro"] .chip-nivel.n3 { color: #111; }
.pb i, .progreso div { background: var(--acc); }

/* Ajustes: sin duplicar el aviso, SOS discreto, "probable" en azul (naranja solo para alertas) */
body[data-tab="resumen"] .franja { display: none; }
.fab { width: 52px; height: 52px; background: var(--n4); box-shadow: 0 6px 16px rgba(15, 23, 42, .18); }
.fab::before { display: none; }
.fab span { font-size: .6rem; }
.hero-ahora.ha-posible { border: 2px dashed var(--acc); } .hero-ahora.ha-posible .ha-v { color: var(--acc); }
.hero-ahora.ha-posible .ha-ic, .hero-ahora.ha-si .ha-ic { background: rgba(var(--acc-rgb), .1); }
.hero-ahora.ha-posible .ha-ic .ic { color: var(--acc); }
.hero-ahora .ha-s { -webkit-line-clamp: 2; }
.mas-lista { margin-bottom: 4px; }
/* Menú inferior con 4 secciones (Apps sigue disponible en /#apps, fuera del menú) */
.nav { grid-template-columns: repeat(4, 1fr); }

/* =========================================================
   INICIO MÍNIMO: solo 2 cosas (tu zona + "Sí, llueve aquí"). Lo demás está en "Más".
   ========================================================= */
.nav { grid-template-columns: repeat(2, 1fr); left: 50%; right: auto; transform: translateX(-50%); width: min(280px, calc(100% - 32px)); height: 60px; }
.nav a { flex-direction: row; gap: 8px; font-size: .9rem; }
.nav a .ic { width: 20px; height: 20px; }
body { padding-bottom: calc(60px + 40px + var(--safe-b)); }
.fab { bottom: calc(60px + 22px + var(--safe-b)); }

.hoy { padding: 8px 2px 0; }
.tarjeta { margin-top: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sombra); overflow: hidden; }
.tarjeta .hero-ahora, .tarjeta .hero-ahora.ha-si, .tarjeta .hero-ahora.ha-posible { margin: 0; border: 0; border-radius: 0; box-shadow: none; background: none; padding: 20px 18px 14px; }
.tarjeta .hero-ahora .ha-ic { width: 48px; height: 48px; border-radius: 14px; }
.tarjeta .hero-ahora .ha-v { font-size: 1.6rem; }
.tarjeta .hero-ahora.ha-si .ha-v, .tarjeta .hero-ahora.ha-posible .ha-v { color: var(--acc); }

.in-aviso { display: flex; align-items: center; gap: 8px; margin: 0 18px 4px; padding: 8px 12px; border-radius: 10px; border: 0; font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; width: calc(100% - 36px); text-align: left; }
.in-aviso[hidden] { display: none; }
.in-aviso .ic { width: 16px; height: 16px; flex: none; }
.in-aviso.n2 { background: var(--n2b); color: var(--n2); } .in-aviso.n3 { background: var(--n3b); color: var(--n3); } .in-aviso.n4 { background: var(--n4b); color: var(--n4); }

.cuando2 { padding: 14px 18px 16px; border-top: 1px solid var(--line); margin-top: 10px; }
.pr-t { display: flex; flex-direction: column; gap: 2px; }
.pr-t span { font-size: .76rem; font-weight: 700; color: var(--ink3); }
.pr-t b { font-size: 1.08rem; font-weight: 800; line-height: 1.25; }
.pr-graf { position: relative; margin-top: 12px; }
.pr-graf svg { display: block; width: 100%; height: 64px; overflow: visible; }
.pr-base { stroke: var(--line2); stroke-width: 1; }
.pr-area { fill: rgba(var(--acc-rgb), .12); }
.pr-linea { fill: none; stroke: var(--acc); stroke-width: 2.5; stroke-linecap: round; }
.pr-eje { position: relative; height: 18px; margin-top: 6px; }
.pr-eje span { position: absolute; top: 0; font-size: .74rem; color: var(--ink3); white-space: nowrap; }
.pr-ley { margin: 8px 0 0; font-size: .74rem; color: var(--ink3); }

/* Más */
.tab[data-tab="mas"] .tit { margin: 8px 2px 14px; }
.mas-2 { margin-top: 14px; }
.fila-ir { display: flex; align-items: center; gap: 12px; padding: 15px 14px; color: var(--ink); text-decoration: none; font-weight: 700; }
.fila-ir + .fila-ir { border-top: 1px solid var(--line); }
.fila-ir > .ic:first-child { width: 20px; height: 20px; color: var(--acc); flex: none; }
.fila-ir span { flex: 1; }
.fila-ir .chev { width: 16px; height: 16px; color: var(--ink3); transform: rotate(-90deg); }
.tarjeta .hero-ahora .ha-s { display: none; }
/* Sin botón SOS flotante: emergencias es la primera opción de "Más opciones" */
.fila-ir { width: 100%; background: none; border: 0; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; text-align: left; }
.fila-sos > .ic:first-child { color: var(--n4) !important; }
.nav { width: min(320px, calc(100% - 32px)); }
/* Menú: Mi zona + Mapa. Mapa con buscador arriba, sin chips extra */
.punto-tab .chips-lugares { display: none; }
.buscar-box input { font-size: 1rem; }
.link-sos { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 22px auto 0; background: none; border: 0; font: inherit; font-size: .86rem; font-weight: 700; color: var(--ink2); cursor: pointer; }
.link-sos .ic { width: 16px; height: 16px; color: var(--n4); }
.punto-top:has(#puntoRes:not([hidden])) ~ .punto-ayuda { display: none; }
/* WhatsApp en Mi zona: botón secundario (borde), debajo del principal */
.in-wa { margin-top: 12px; padding: 14px; border-radius: 16px; font-size: 1rem; }
.in-wa .ic { width: 20px; height: 20px; }

/* =========================================================
   SOLO EL MAPA (28 nov 2026): buscador + mapa + lo esencial del lugar + WhatsApp. Nada más.
   ========================================================= */
.nav, .fab, .franja, #btnLugar { display: none !important; }
body { padding-bottom: calc(84px + var(--safe-b)); }
/* Ficha del lugar: nombre, aviso y si llueve. Lo demás se oculta */
.punto-tab .pt-grid, .punto-tab .h3, .punto-tab .tramos, .punto-tab .pt-horas, .punto-tab .rios, .punto-tab .lista,
.punto-tab .pt-acciones, .punto-tab .fuente, .punto-tab .pt-fuente, .punto-tab .pt-temp small { display: none !important; }
.punto-tab .pt-estado { margin-top: 10px; }
.punto-tab .prono-txt { margin: 10px 2px 0; color: var(--ink2); }
/* Único botón */
.btn-wa-mapa { position: fixed; z-index: 1100; left: 16px; right: 16px; bottom: calc(14px + var(--safe-b)); max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-radius: 16px; border: 0;
  background: var(--acc); color: var(--on-acc); font: inherit; font-size: 1.05rem; font-weight: 800; cursor: pointer; box-shadow: 0 8px 24px rgba(15, 23, 42, .18); }
.btn-wa-mapa .ic { width: 22px; height: 22px; }
.punto-tab .punto-ayuda { bottom: 24px; }
.punto-tab .btn-loc { bottom: 24px; }

/* Ficha del lugar: Ahora · Lo que llovió · Lo que viene (28 nov 2026) */
.pt-sec { margin-top: 14px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sombra); }
.pt-sec h4 { margin: 0 0 10px; font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink3); }
.pt-ahora { display: flex; align-items: center; gap: 14px; }
.pt-ahora .pt-ic { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--panel2); }
.pt-ahora .pt-ic .ic { width: 28px; height: 28px; color: var(--ink2); }
.pt-ahora.llueve .pt-ic { background: rgba(var(--acc-rgb), .12); } .pt-ahora.llueve .pt-ic .ic, .pt-ahora.llueve b { color: var(--acc); }
.pt-ahora b { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.pt-ahora span { display: block; font-size: .86rem; color: var(--ink2); margin-top: 2px; }
.pt-nota { margin: 10px 0 0; font-size: .76rem; color: var(--ink3); line-height: 1.4; }
.pt-24 { display: flex; flex-direction: column; }
.pt-24 span { font-size: .8rem; color: var(--ink3); font-weight: 700; }
.pt-24 b { font-size: 1.2rem; font-weight: 800; }
.pt-24 small { font-size: .82rem; color: var(--ink2); }
.pt-semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 110px; margin-top: 14px; align-items: end; }
.pt-dia { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.pt-dia i { display: block; width: 60%; border-radius: 5px 5px 2px 2px; min-height: 2px; }
.pt-dia em { font-style: normal; font-size: .68rem; font-weight: 700; color: var(--ink2); min-height: 1em; }
.pt-dia span { font-size: .7rem; color: var(--ink3); text-transform: capitalize; }
.pt-frase { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.35; }
.pt-sec .pr-graf { margin-top: 12px; }
.pt-dias { width: 100%; border-collapse: collapse; margin-top: 12px; }
.pt-dias th, .pt-dias td { text-align: left; padding: 9px 0; border-top: 1px solid var(--line); vertical-align: top; font-size: .9rem; }
.pt-dias th { width: 38%; font-weight: 700; color: var(--ink2); }
.pt-dias td b { display: block; font-weight: 800; }
.pt-dias td small { display: block; font-size: .78rem; color: var(--ink3); margin-top: 1px; }
.pt-rio { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pt-rio:first-of-type { border-top: 0; }
.pt-rio small { margin-left: auto; color: var(--ink3); font-size: .78rem; }
.pt-fin { margin: 14px 4px 6px; }
.hoja-punto { padding-bottom: 96px; }

/* Lo que viene: 7 días que se tocan */
.pt-semana2 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 4px; }
.pt-d { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 12px; border: 1px solid transparent; background: none; font: inherit; color: var(--ink2); cursor: pointer; min-width: 0; }
.pt-d.on { background: rgba(var(--acc-rgb), .1); border-color: rgba(var(--acc-rgb), .35); color: var(--ink); }
.pt-dn { font-size: .7rem; font-weight: 700; white-space: nowrap; }
.pt-db { width: 14px; height: 52px; border-radius: 7px; background: var(--panel2); display: flex; align-items: flex-end; overflow: hidden; }
.pt-db i { display: block; width: 100%; border-radius: 7px; }
.pt-dp { font-size: .68rem; font-weight: 700; color: var(--ink3); }
.pt-det { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.pt-det b { display: block; font-size: 1.02rem; font-weight: 800; }
.pt-det small { display: block; font-size: .82rem; color: var(--ink2); margin-top: 2px; }
.pt-mini { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink3); }
.pt-mini span { display: inline-flex; align-items: center; gap: 4px; }
.pt-mini .ic { width: 14px; height: 14px; }
.pt-mini b { color: var(--ink); font-weight: 700; }
.pt-resumen { margin: 10px 0 0; font-size: .86rem; font-weight: 700; color: var(--ink2); }
.pt-fin { margin: 16px 4px 6px; font-size: .68rem; line-height: 1.45; color: var(--ink3); }
.pt-fin b { font-weight: 700; }
/* Qué significan los milímetros */
.pt-mm { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel2); }
.pt-mm p { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--ink2); }
.pt-mm p + p { margin-top: 6px; }
.pt-mm b { color: var(--ink); }
.pt-mm-ef { font-weight: 700; color: var(--ink) !important; }
/* mm visual e interactivo */
.pt-mm { padding: 14px; }
.mm-fila { display: flex; gap: 14px; align-items: stretch; }
.mm-m2 { position: relative; flex: none; width: 104px; height: 104px; border: 2px solid var(--acc); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--panel); }
.mm-agua { position: absolute; left: 0; right: 0; bottom: 0; height: var(--nivel); background: rgba(var(--acc-rgb), .22); animation: llenar 1.1s ease-out both; }
.mm-agua::before { content: ""; position: absolute; left: -10%; right: -10%; top: -5px; height: 10px; border-radius: 50%; background: rgba(var(--acc-rgb), .3); }
@keyframes llenar { from { height: 0; } }
.mm-m2 b { position: relative; font-size: 1.4rem; font-weight: 800; color: var(--acc); }
.mm-m2 span { position: relative; font-size: .72rem; font-weight: 700; color: var(--ink2); }
.mm-der { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mm-techo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.mm-techo span { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; color: var(--ink3); margin-right: 2px; }
.mm-techo span .ic { width: 14px; height: 14px; }
.mm-techo button { border: 1px solid var(--line2); background: var(--panel); color: var(--ink2); font: inherit; font-size: .74rem; font-weight: 700; padding: 4px 8px; border-radius: 999px; cursor: pointer; }
.mm-techo button.on { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.mm-cil { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.mm-cil i { display: block; width: 15px; height: 20px; animation: aparecer .35s ease-out both; }
.mm-cil svg { width: 100%; height: 100%; }
.mm-cil .c-cuerpo { fill: rgba(var(--acc-rgb), .35); stroke: var(--acc); stroke-width: 1.3; }
.mm-cil .c-aro { stroke: var(--acc); stroke-width: 1; fill: none; }
.mm-cil .c-tapa { fill: var(--acc); }
.mm-cil em { font-style: normal; font-size: .76rem; font-weight: 800; color: var(--acc); margin-left: 4px; }
@keyframes aparecer { from { opacity: 0; transform: translateY(6px) scale(.6); } }
.mm-tot { font-size: .86rem; color: var(--ink2); }
.mm-tot b { font-size: 1.15rem; color: var(--ink); }
.mm-tot span { color: var(--ink3); }
.mm-ef { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .86rem; font-weight: 700; color: var(--ink); }
.mm-ef .ic { width: 20px; height: 20px; flex: none; color: var(--c); }

/* Ahora: escala de intensidad que se toca */
.pt-int { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel2); }
.int-cab { font-size: .86rem; font-weight: 800; color: var(--ink); }
.int-escala { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; }
.int-escala button { display: flex; flex-direction: column; gap: 5px; align-items: stretch; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--ink3); }
.int-barra { display: block; height: 10px; border-radius: 5px; background: var(--line2); }
.int-escala button:nth-child(1) .int-barra { height: 8px; } .int-escala button:nth-child(2) .int-barra { height: 12px; }
.int-escala button:nth-child(3) .int-barra { height: 16px; } .int-escala button:nth-child(4) .int-barra { height: 20px; }
.int-escala { align-items: end; }
.int-escala button.lleno .int-barra { background: var(--acc); }
.int-escala button.on .int-barra { outline: 2px solid var(--ink); outline-offset: 2px; }
.int-escala small { font-size: .7rem; font-weight: 700; text-align: center; }
.int-escala button.actual small, .int-escala button.on small { color: var(--ink); }
.int-det { margin-top: 10px; display: flex; gap: 10px; align-items: center; }
.int-det p { margin: 0; font-size: .82rem; color: var(--ink2); line-height: 1.4; }
.int-det b { color: var(--ink); }
.int-anim { flex: none; width: 64px; height: 40px; border-radius: 8px; background: rgba(var(--acc-rgb), .08); }
.int-anim line { stroke: var(--acc); stroke-width: 1.4; stroke-linecap: round; animation: caer linear infinite; }
@keyframes caer { from { transform: translateY(0); } to { transform: translateY(52px); } }
/* Lo que viene: comparar el día con lo que ya llovió */
.pt-comp { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel2); display: grid; gap: 8px; }
.comp-chip { justify-self: start; font-size: .76rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line2); color: var(--ink2); }
.comp-chip.mas { color: var(--n3); border-color: currentColor; } .comp-chip.igual { color: var(--acc); border-color: currentColor; }
.comp-fila { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.comp-fila span { grid-column: 1 / -1; font-size: .76rem; font-weight: 700; color: var(--ink3); }
.comp-bar { height: 12px; border-radius: 6px; background: var(--line); overflow: hidden; }
.comp-bar i { display: block; height: 100%; border-radius: 6px; animation: crecer .7s ease-out both; }
@keyframes crecer { from { width: 0; } }
.comp-fila.fut .comp-bar i { background: var(--acc); } .comp-fila.pas .comp-bar i { background: var(--ink3); } .comp-fila.prom .comp-bar i { background: var(--line2); }
.comp-fila b { font-size: .86rem; font-weight: 800; min-width: 52px; text-align: right; }
.det-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.det-chips span { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--panel2); color: var(--ink2); }
.det-chips .ic { width: 14px; height: 14px; color: var(--c, var(--acc)); }
.pt-det + .pt-mm { margin-top: 12px; }

/* Lo que viene: el día en dibujos (10 gotas, partes del día tocables, línea iluminada) */
.pt-det2 { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.d10 { display: flex; align-items: center; gap: 3px; }
.d10 i { display: grid; place-items: center; width: 24px; height: 24px; animation: aparecer .35s ease-out both; }
.d10 i .ic { width: 22px; height: 22px; color: var(--line2); fill: none; }
.d10 i.on .ic { color: var(--acc); fill: rgba(var(--acc-rgb), .45); }
.d10 b { margin-left: auto; font-size: 1.5rem; font-weight: 800; color: var(--acc); line-height: 1; }
.d10 b small { font-size: .8rem; color: var(--ink3); }
.d10-t { margin-top: 4px; font-size: .9rem; font-weight: 800; color: var(--ink); }
.partes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.parte { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font: inherit; cursor: pointer; color: var(--ink2); }
.parte.on { border-color: var(--acc); background: rgba(var(--acc-rgb), .08); color: var(--ink); }
.parte-cielo .int-anim { width: 100%; height: 34px; }
.parte-n { font-size: .72rem; font-weight: 800; text-align: center; }
.parte-p { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.parte-p i { display: block; height: 100%; background: var(--acc); border-radius: 3px; animation: crecer .6s ease-out both; }
.parte-v { font-size: .7rem; font-weight: 700; text-align: center; color: var(--ink3); }
.pr-luz { fill: rgba(var(--acc-rgb), .12); transition: x .25s, width .25s; }
.pt-det2 ~ .pt-mm { margin-top: 12px; }

.pt-alertas { display: flex; gap: 12px; align-items: center; margin: 4px 0 14px; padding: 12px 14px; border: 1.5px solid #25d366; border-radius: 14px; color: inherit; text-decoration: none; background: color-mix(in srgb, #25d366 8%, transparent); }
.pt-alertas > span:first-child { font-size: 1.4rem; }
.pt-alertas b { display: block; }
.pt-alertas small { color: var(--muted, #64748b); }

/* Leyenda del aviso de SENAMHI en la tarjeta del mapa */
.pt-leyenda { margin: 10px 0 4px; padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.pt-leyenda.n2 { border-color: color-mix(in srgb, var(--n2) 55%, transparent); }
.pt-leyenda.n3 { border-color: color-mix(in srgb, var(--n3) 55%, transparent); }
.pt-leyenda.n4 { border-color: color-mix(in srgb, var(--n4) 55%, transparent); }
.pt-leyenda p { margin: 0 0 9px; font-size: .84rem; line-height: 1.4; color: var(--ink2); }
.pt-leyenda p b { color: var(--ink); }
.pt-esc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pt-esc span { display: flex; flex-direction: column; gap: 2px; text-align: left; font-size: .74rem; font-weight: 800; color: var(--ink3); }
.pt-esc span i { opacity: .4; }
.pt-esc span.on i { opacity: 1; }
.pt-esc span i { display: block; height: 6px; border-radius: 99px; margin-bottom: 3px; }
.pt-esc .e2 i { background: var(--n2); } .pt-esc .e3 i { background: var(--n3); } .pt-esc .e4 i { background: var(--n4); }
.pt-esc span small { font-size: .7rem; font-weight: 600; }
.pt-esc span.on { opacity: 1; color: var(--ink); }
.pt-esc span.on i { height: 9px; margin-top: -3px; }
.pt-esc-fuente { display: block; margin-top: 7px; font-size: .68rem; color: var(--ink3); }
