/* Terremoto.live — «rojigualda»: antet în trei benzi ca drapelul (roșu, galben, roșu), albastru de azulejo pentru date și legături,
   titluri în Overpass (litera indicatoarelor rutiere), text în Source Sans 3. Tema deschisă e deschisă peste tot; suprafețele închise apar doar în tema întunecată. */

:root {
  --rojo: #a01b20; --rojo-2: #861419; --rojo-3: #6e0f14;
  --gualda: #f2c230; --gualda-2: #e3b01c; --gualda-ink: #1f1806; --gualda-soft: #fdf4d2;
  --hd: var(--rojo); --hd-2: var(--rojo-2); --hd-3: var(--rojo-3);
  --brand: #a01b20; --brand-soft: #fbeeee;
  --azul: #1d4f91; --turq: #2f6fbd; --accent: #1a4a8a; --turq-soft: #e9f0f9; --turq-line: #c5d6ee;
  --band: #f7eed6;
  --amber: #f2c230;
  --bg: #fbf9f4; --surface: #fff; --surface-2: #f5f1e8; --surface-3: #e9e2d3;
  --ink: #1e1a16; --ink-2: #4a433a; --muted: #756c60; --line: #e7e0d1; --line-2: #d3c9b6;
  --m1: #cfc8ba; --m2: #94b8de; --m3: #f2c230; --m4: #ef8a22; --m5: #dc4a26; --m6: #a01b20; --m7: #4a1035;
  --lv0: #efeadf; --lv1: #cfe0f3; --lv2: #9cc0e8; --lv3: #5a92d2; --lv4: #1d4f91;
  --mark-y: #f2c230;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --disp: 'Overpass', 'Source Sans 3', system-ui, 'Segoe UI', Arial, sans-serif;
  --mono: var(--sans);
  --radius: 10px;
  --shadow: 0 1px 0 rgba(40, 30, 10, .04);
  --shadow-lg: 0 14px 40px rgba(40, 30, 10, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --azulejo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Crect width='24' height='24' fill='%231d4f91'/%3E%3Ccircle cx='12' cy='12' r='9.4' fill='%23fff'/%3E%3Ccircle cx='12' cy='12' r='6' fill='%23f2c230'/%3E%3Cpath d='M12 6.6 14 12 12 17.4 10 12z M6.6 12 12 10 17.4 12 12 14z' fill='%231d4f91'/%3E%3Cg fill='%23fff'%3E%3Ccircle r='3.4'/%3E%3Ccircle cx='24' r='3.4'/%3E%3Ccircle cy='24' r='3.4'/%3E%3Ccircle cx='24' cy='24' r='3.4'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}
[data-theme="dark"] {
  --rojo: #7c1519; --rojo-2: #681014; --rojo-3: #520c10;
  --gualda: #c99a1b; --gualda-2: #b58915; --gualda-soft: #2b2410;
  --hd-2: #681014;
  --brand: #ef6a6f; --brand-soft: #2c1819;
  --azul: #5a92d2; --turq: #5a92d2; --accent: #8fbaf2; --turq-soft: #17253a; --turq-line: #27416b;
  --band: #221c12;
  --bg: #14110e; --surface: #1d1915; --surface-2: #26211b; --surface-3: #332c24;
  --ink: #f1ebe0; --ink-2: #d0c7b7; --muted: #9c9282; --line: #322b23; --line-2: #483f34;
  --m1: #8d8678; --m2: #6f9bd0;
  --lv0: #2a251e; --lv1: #1f3554; --lv2: #28508a; --lv3: #3f78c4; --lv4: #8fbaf2;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 5px 18px rgba(0, 0, 0, .28);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --rojo: #7c1519; --rojo-3: #520c10;
    --gualda: #c99a1b; --gualda-2: #b58915; --gualda-soft: #2b2410;
    --hd-2: #681014;
    --brand: #ef6a6f; --brand-soft: #2c1819;
    --azul: #5a92d2; --turq: #5a92d2; --accent: #8fbaf2; --turq-soft: #17253a; --turq-line: #27416b;
    --band: #221c12;
    --bg: #14110e; --surface: #1d1915; --surface-2: #26211b; --surface-3: #332c24;
    --ink: #f1ebe0; --ink-2: #d0c7b7; --muted: #9c9282; --line: #322b23; --line-2: #483f34;
    --m1: #8d8678; --m2: #6f9bd0;
    --lv0: #2a251e; --lv1: #1f3554; --lv2: #28508a; --lv3: #3f78c4; --lv4: #8fbaf2;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 5px 18px rgba(0, 0, 0, .28);
    --shadow-lg: 0 14px 40px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 82px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { margin: 0; font-family: var(--disp); font-weight: 800; line-height: 1.12; letter-spacing: -.022em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--turq); outline-offset: 2px; border-radius: 4px; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.16em; }
.mono, .num { font-family: var(--mono); font-variant-numeric: lining-nums tabular-nums; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 22px; }
main { display: block; padding-bottom: 72px; }

/* ---------- Colores de magnitud ---------- */
.m1 { --c: var(--m1); --ci: #1e1a16; } .m2 { --c: var(--m2); --ci: #0d213a; } .m3 { --c: var(--m3); --ci: #2a2000; } .m4 { --c: var(--m4); --ci: #2b1400; }
.m5 { --c: var(--m5); --ci: #fff; } .m6 { --c: var(--m6); --ci: #fff; } .m7 { --c: var(--m7); --ci: #fff; }
.mb { display: inline-grid; place-items: center; flex: none; min-width: 50px; height: 44px; padding: 2px 6px 0; border-radius: 7px; background: var(--c, var(--m1)); color: var(--ci, #1e1a16); font: 800 18.5px/1 var(--disp); font-variant-numeric: lining-nums tabular-nums; }
.mb.sm { min-width: 40px; height: 32px; border-radius: 6px; font-size: 15px; }
.mb.xs { min-width: 30px; height: 22px; border-radius: 5px; font-size: 12.5px; font-style: normal; margin-right: 6px; }
.mb.lg { min-width: 78px; height: 78px; border-radius: 10px; font-size: 32px; }
.tag-ts { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 4px; background: var(--accent); color: var(--surface); font: 600 12px/1.7 var(--sans); vertical-align: 2px; }
.tag-felt { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--brand); border-radius: 4px; color: var(--brand); font: 600 12px/1.55 var(--sans); vertical-align: 2px; white-space: nowrap; }

/* ---------- Cabecera: una sola barra gualda con filete rojo ---------- */
.hd { display: contents; }
.hd-top { position: sticky; top: 0; z-index: 1000; background: var(--gualda); color: var(--gualda-ink); border-bottom: 4px solid var(--rojo); }
.hd-in { position: relative; display: flex; align-items: center; gap: 30px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex: none; }
.brand .mark { width: 36px; height: 36px; flex: none; }
.mark .mk-r { fill: #a01b20; } .mark .mk-y { fill: var(--mark-y); }
.hd-top .mark .mk-y, .dw-top .mark .mk-y { fill: #fff6cf; }
.brand-w { font: 900 26px/1 var(--disp); letter-spacing: -.045em; padding-top: 3px; }
.brand-w em { font-style: normal; font-weight: 700; color: #861419; }
.hd-nav { display: flex; align-items: stretch; align-self: stretch; gap: 2px; }
.hd-nav a { display: inline-flex; align-items: center; gap: 5px; padding: 0 12px; color: var(--gualda-ink); text-decoration: none; font: 600 16.5px/1.2 var(--sans); white-space: nowrap; }
.hd-nav > a:hover, .nav-dd > a:hover, .nav-dd:hover > a { box-shadow: inset 0 -4px 0 rgba(31, 24, 6, .28); }
.hd-nav > a[aria-current], .nav-dd > a[aria-current] { font-weight: 700; box-shadow: inset 0 -4px 0 var(--gualda-ink); }
.dd-ic { width: 12px; height: 12px; opacity: .7; }
.nav-dd { position: static; display: flex; }
.mega { position: absolute; left: 0; right: 0; top: 100%; display: none; padding-top: 4px; }
.nav-dd:hover .mega, .nav-dd:focus-within .mega { display: block; }
.mega-in { columns: 5 190px; column-gap: 26px; padding: 20px 24px 22px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; box-shadow: var(--shadow-lg); }
.mega-in > div { break-inside: avoid; padding-bottom: 12px; }
.hd-nav .mega-in a { display: block; padding: 2.5px 0; color: var(--ink-2); font: 400 15px/1.35 var(--sans); white-space: normal; box-shadow: none; }
.hd-nav .mega-in a:hover { color: var(--accent); text-decoration: underline; }
.hd-nav .mega-in a.mega-h { margin-bottom: 2px; color: var(--ink); font: 700 15.5px/1.3 var(--sans); }
.nav-dd:has(.mega-sm) { position: relative; }
.mega-sm { left: 0; right: auto; width: 350px; }
.mega-sm.mega-r { width: 290px; }
.mega-sm .mega-in { columns: 1; padding: 12px 20px 14px; }
.hd-nav .mega-sm .mega-in a { padding: 6px 0; font-size: 16px; color: var(--ink); }
.hd-r { display: flex; align-items: center; gap: 4px; flex: none; margin-left: auto; }
.readout { display: inline-flex; align-items: center; gap: 9px; max-width: 300px; margin-right: 8px; padding: 4px 12px 4px 4px; border-radius: 8px; background: rgba(31, 24, 6, .1); color: var(--gualda-ink); text-decoration: none; font-size: 15px; line-height: 1.2; }
.readout b { display: grid; place-items: center; min-width: 40px; height: 32px; padding: 2px 6px 0; border-radius: 5px; background: var(--gualda-ink); color: #fff; font: 800 15.5px/1 var(--disp); }
.readout .ro-p { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.readout .ro-t { opacity: .72; white-space: nowrap; font-size: 14px; }
.readout:hover { background: rgba(31, 24, 6, .17); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; color: inherit; }
.icon-btn .ic { width: 22px; height: 22px; }
.icon-btn:hover, .search-btn[aria-expanded="true"] { background: rgba(31, 24, 6, .12); }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; } [data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: block; } :root:not([data-theme="light"]) .i-moon { display: none; } }
.menu-btn { display: none; }
.hd-search { padding: 0 0 14px; }
.hd-search[hidden] { display: none; }
.find { position: relative; display: flex; align-items: center; height: 46px; border-radius: 8px; background: #fff; border: 1.5px solid var(--gualda-ink); transition: box-shadow .15s; }
.find > .ic { position: absolute; left: 13px; width: 18px; height: 18px; color: #a01b20; pointer-events: none; }
.find input { flex: 1; min-width: 0; height: 100%; padding: 0 8px 0 40px; background: none; border: 0; outline: 0; color: #1e1a16; font-size: 16.5px; }
.find input::placeholder { color: #6f675a; }
.find input::-webkit-calendar-picker-indicator { display: none !important; }
.find button { flex: none; width: 36px; height: 36px; margin-right: 4px; border: 0; border-radius: 6px; background: #a01b20; color: #fff; display: grid; place-items: center; }
.find:focus-within { box-shadow: 0 0 0 3px rgba(31, 24, 6, .22); }

.alert-bar { display: block; background: var(--surface); border-bottom: 2px solid var(--brand); color: var(--ink); text-decoration: none; font-size: 16px; }
.alert-bar .wrap { display: flex; align-items: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; }
.alert-bar b { flex: none; padding: 3px 10px; border-radius: 4px; background: var(--rojo); color: #fff; font: 700 14.5px/1.3 var(--sans); }
.alert-bar span > span, .alert-bar .wrap > span { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert-bar i { margin-left: auto; flex: none; font-style: normal; font-size: 14.5px; color: var(--muted); }
.alert-bar:hover span { text-decoration: underline; }
.is-map .alert-bar { display: none; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); animation: live 2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(160, 27, 32, .5); } 70% { box-shadow: 0 0 0 8px rgba(160, 27, 32, 0); } 100% { box-shadow: 0 0 0 0 rgba(160, 27, 32, 0); } }

/* ---------- Cajón (menú móvil) y pestañas inferiores ---------- */
.drawer { position: fixed; inset: 0; z-index: 3000; background: rgba(20, 15, 5, .5); opacity: 0; transition: opacity .25s; }
.drawer[hidden] { display: none; }
.drawer.open { opacity: 1; }
.drawer-in { position: absolute; inset: 0 0 0 auto; width: min(100%, 460px); display: flex; flex-direction: column; background: var(--bg); color: var(--ink); transform: translateX(24px); transition: transform .3s var(--ease); }
.drawer.open .drawer-in { transform: none; }
.dw-top { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px 9px 18px; background: var(--gualda); color: var(--gualda-ink); border-bottom: 4px solid var(--rojo); }
.dw-body { flex: 1; overflow-y: auto; padding: 16px 18px 24px; -webkit-overflow-scrolling: touch; }
.dw-body .find { margin: 0 0 14px; border-color: var(--line-2); background: var(--surface); }
.dw-body .find input { color: var(--ink); } .dw-body .find input::placeholder { color: var(--muted); }
.dw-last { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; }
.dw-last > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dw-last small { color: var(--muted); font-size: 13.5px; }
.dw-last b { font: 700 17px/1.25 var(--disp); }
.dw-main { margin-bottom: 6px; }
.dw-main a { display: flex; align-items: center; gap: 13px; padding: 13px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 700 18px/1.2 var(--disp); }
.dw-main a > .ic:first-child { width: 22px; height: 22px; color: var(--brand); }
.dw-main a span { flex: 1; }
.dw-main .dw-go { width: 14px; height: 14px; color: var(--muted); }
.dw-main a[aria-current] { color: var(--brand); }
.dw-sec { border-bottom: 1px solid var(--line); padding: 4px 0; }
.dw-sec summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; font: 700 18px/1.2 var(--disp); cursor: pointer; list-style: none; }
.dw-sec summary::-webkit-details-marker { display: none; }
.dw-sec[open] summary .ic { transform: rotate(180deg); }
.dw-regs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; }
.dw-regs a { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 600; }
.dw-more { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; font-weight: 600; }
.dw-group { border-bottom: 1px solid var(--line); padding: 12px 0 4px; }
.dw-group:last-child { border-bottom: 0; }
.dw-t { margin: 0 0 4px; color: var(--muted); font-size: 14px; font-weight: 600; }
.dw-group a { display: flex; align-items: center; gap: 12px; padding: 10px 2px; color: var(--ink); text-decoration: none; font-size: 16.5px; }
.dw-group a .ic { width: 20px; height: 20px; color: var(--brand); }
.dw-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.dw-sos, .dw-theme, .dw-src { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 8px; border: 1px solid var(--line-2); background: none; color: var(--ink); text-decoration: none; font-size: 15px; }
.dw-sos { background: var(--rojo); border-color: var(--rojo); color: #fff; } .dw-sos b { font-weight: 800; }
.dw-src { margin-left: auto; border: 0; color: var(--accent); }
.tabbar { display: none; }

/* ---------- Esqueleto de página: banda color albero y panel blanco que monta sobre ella ---------- */
.band, .crumbs, .page-h, .qhead { background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 14px 0 0; color: var(--ink-2); font-size: 14.5px; }
.crumbs a { color: inherit; text-decoration: none; } .crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs .ic { width: 11px; height: 11px; opacity: .55; }
.crumbs > span:last-child { color: var(--muted); }
.page-h { padding: 22px 0 34px; margin-bottom: 30px; }
.page-h h1 { font-size: clamp(33px, 4.3vw, 54px); font-weight: 900; line-height: 1.04; letter-spacing: -.03em; }
.kicker { margin: 0 0 6px; color: var(--ink-2); font-size: 16px; }
.kicker a { color: inherit; }
.lead { margin: 14px 0 0; color: var(--ink-2); font-size: 19px; line-height: 1.58; }
.lead strong { color: var(--ink); }
.lead a { color: inherit; }
.has-plate { display: flex; align-items: flex-start; gap: 26px; }
.plate { flex: none; display: inline-grid; grid-template-columns: auto auto; margin-top: 24px; border: 3px solid #1e1a16; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.plate i { display: grid; align-items: end; padding: 0 5px 5px; background: #1d4f91; color: #fff; font: 700 12px/1 var(--sans); font-style: normal; }
.plate b { min-width: 62px; padding: 6px 13px 7px; color: #1e1a16; font: 800 38px/1 var(--disp); letter-spacing: .01em; text-align: center; }
@supports selector(:has(a)) {
  .page-h:has(+ .stat-row) { padding-bottom: 66px; margin-bottom: 0; }
  .page-h + .stat-row { margin-top: -40px; margin-bottom: 30px; }
}
.sec { margin-top: 60px; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-h h2, .feed-h h2, .today-txt h2, .today-side h2 { font-size: 30px; font-weight: 800; letter-spacing: -.025em; }
/* Cenefa de azulejo: el eco, en los títulos, de la del pie de página */
.sec-h h2::before, .today-txt h2::before, .today-side h2::before, .manual-faq h2::before { content: ""; display: block; width: 40px; height: 10px; margin-bottom: 12px; border-radius: 2px; background: var(--azulejo) left center / 10px 10px; }
.sec-h h2 a { color: inherit; text-decoration: none; }
.sec-h > p { margin: 0 0 4px; color: var(--muted); font-size: 15.5px; }
.sec-h > p a { color: inherit; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.grid-main > * { min-width: 0; }
.grid-main > aside { display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr); }
.grid-main > aside > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ---------- Componentes ---------- */
/* Panel: listas, tablas y mapas de la columna principal. Los módulos de la columna lateral quedan planos. */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.card-pad { padding: 20px 22px; }
.card-h { margin-bottom: 12px; font-size: 21px; font-weight: 700; }
.card-h small { margin-left: 8px; color: var(--muted); font: 400 14.5px var(--sans); }
.grid-main > aside .card { background: none; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; box-shadow: none; overflow: visible; padding-top: 16px; }
.grid-main > aside .card-pad { padding: 0 !important; }
.grid-main > aside .card > .card-pad:first-child { margin-bottom: 4px; }
.grid-main > aside > :first-child { border-top: 0; padding-top: 0; }
.empty { padding: 26px 22px; color: var(--muted); font-size: 16.5px; }
.empty .ic { display: none; }
.chips { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0 5px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--ink-2); font-size: 16.5px; font-weight: 600; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.chip:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.chip[aria-pressed="true"], .chip.on { color: var(--ink); border-bottom-color: var(--brand); }
a.chip { color: var(--accent); }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 7px; background: var(--surface); overflow: hidden; }
.seg button { padding: 6px 15px; border: 0; background: none; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 19px; border: 0; border-radius: 8px; background: var(--hd); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn:hover { background: var(--hd-2); }

/* Lista de terremotos: hora · magnitud · lugar · profundidad */
.ql { list-style: none; margin: 0; padding: 0; container-type: inline-size; }
.ql li { border-bottom: 1px solid var(--line); }
.ql li:last-child { border-bottom: 0; }
.qrow { display: grid; grid-template-columns: 62px 48px minmax(0, 1fr) auto; align-items: center; column-gap: 16px; padding: 11px 22px; color: inherit; text-decoration: none; }
.qrow:hover { background: var(--surface-2); }
.q-t { display: flex; flex-direction: column; color: var(--ink); font: 700 18px/1.15 var(--sans); font-variant-numeric: lining-nums tabular-nums; }
.q-t small { margin-top: 2px; color: var(--muted); font: 400 13px/1.25 var(--sans); white-space: nowrap; }
.q-m { display: grid; place-items: center; min-width: 48px; height: 38px; padding-top: 2px; border-radius: 6px; background: var(--c); color: var(--ci); font: 800 18.5px/1 var(--disp); font-variant-numeric: lining-nums tabular-nums; }
.ql li.m1 .q-m { background: var(--surface-3); color: var(--ink-2); }
.ql li.m2 .q-m { background: var(--turq-line); color: var(--ink); }
.q-p { display: flex; flex-direction: column; min-width: 0; }
.qrow .pl { font-weight: 600; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.qrow .sub { color: var(--muted); font-size: 14.5px; line-height: 1.35; }
.qrow .sub b { color: var(--accent); font-weight: 600; }
.qrow .sd { display: none; }
.q-d { color: var(--muted); font-size: 14.5px; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; text-align: right; }
.qrow:hover .pl { color: var(--accent); }
.ql li.big .pl { font-weight: 700; font-size: 18px; }
.ql li.big .q-m { height: 44px; font-size: 23px; }
.ql li.fresh { animation: fresh 5s ease-out; }
@keyframes fresh { from { background: var(--turq-soft); } to { background: transparent; } }
.grid-main > aside .qrow { padding-left: 0; padding-right: 0; }
.grid-main > aside .qrow:hover { background: none; }
@container (max-width: 430px) {
  .qrow { grid-template-columns: 50px minmax(0, 1fr) auto; column-gap: 12px; }
  .q-m { grid-column: 1; grid-row: 1; min-width: 50px; }
  .q-p { grid-column: 2; grid-row: 1; }
  .q-t { grid-column: 3; grid-row: 1; align-items: flex-end; text-align: right; font-size: 18px; }
  .q-d { display: none; }
  .qrow .sd { display: inline; }
  .qrow .pl { font-size: 16.5px; }
}

/* Cuatro cifras: el panel que monta sobre el borde inferior de la banda */
.stat-row { position: relative; display: flex; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.stat { flex: 1 1 0; display: flex; flex-direction: column; gap: 3px; padding: 16px 24px 15px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .v { font: 800 33px/1 var(--disp); font-variant-numeric: lining-nums tabular-nums; }
.stat .k { color: var(--muted); font-size: 15px; }
.stat:first-child .v { color: var(--brand); }
.stat .v { letter-spacing: -.02em; }

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
:not(.card) > .tbl-wrap:not(.card) { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl th { padding: 12px 22px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); font-size: 14px; font-weight: 600; text-align: left; white-space: nowrap; }
.tbl td { padding: 11px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .n { text-align: right; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.tbl .mono { font-variant-numeric: lining-nums tabular-nums; }
.regs { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.reg { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px 44px; padding: 26px 26px 22px; border-bottom: 1px solid var(--line); }
.reg:last-child { border-bottom: 0; }
.reg h2 { margin: 0; font: 800 23.5px/1.15 var(--disp); }
.reg h2 a { color: var(--ink); text-decoration: none; } .reg h2 a:hover { color: var(--accent); }
.reg-s { margin: 12px 0 0; }
.reg-s div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; border-top: 1px solid var(--line); font-size: 15px; }
.reg-s dt { color: var(--muted); } .reg-s dd { margin: 0; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.reg-il { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 44px; align-self: start; }
.reg-il li { break-inside: avoid; }
.reg-il a { display: grid; grid-template-columns: 196px minmax(0, 1fr) 38px 40px; align-items: center; gap: 10px; padding: 6px 0; color: var(--ink); text-decoration: none; }
.reg-il a:hover .ri-n { color: var(--accent); text-decoration: underline; }
.ri-n { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ri-b { height: 8px; border-radius: 4px; background: var(--surface-3); }
.ri-b i { display: block; min-width: 3px; height: 100%; border-radius: 4px; background: var(--turq); }
.ri-c { color: var(--ink-2); font-size: 15px; font-variant-numeric: lining-nums tabular-nums; text-align: right; }
.reg-il a.hot .ri-c { color: var(--ink); font-weight: 700; }
.ri-m em { display: block; padding: 2px 0; border-radius: 5px; background: var(--c); color: var(--ci); font: 700 12px/1.2 var(--disp); font-style: normal; text-align: center; }
.grid-main > aside .tbl th, .grid-main > aside .tbl td { padding-left: 0; padding-right: 12px; background: none; }

.idx, .prov-grid { columns: 3 230px; column-gap: 40px; }
.idx a, .idx .idx-row, .prov-grid > a, .prov-grid > span { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); break-inside: avoid; color: var(--ink); text-decoration: none; font-size: 16.5px; }
.idx a:hover, .prov-grid > a:hover { color: var(--accent); }
.idx a span, .idx .idx-row span, .prov-grid span span { color: var(--muted); font-size: 14px; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }

.il-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 8px; }
.il-board a { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.il-board a:hover { border-color: var(--turq); box-shadow: var(--shadow); }
.il-board i { flex: none; min-width: 40px; padding: 4px 5px 4px 4px; border: 1.5px solid #1e1a16; border-left: 6px solid #1d4f91; border-radius: 5px; background: #fff; color: #1e1a16; font: 700 13px/1 var(--disp); font-style: normal; text-align: center; }
.il-board b { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.il-board span { color: var(--muted); font-size: 14px; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.il-board a.hot span { color: var(--accent); font-weight: 700; }
.il-board em { font-style: normal; font-weight: 700; padding: 0 5px; border-radius: 5px; background: var(--c); color: var(--ci); }

.side-list { display: flex; flex-direction: column; }
.side-list a, .side-list .sl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 16.5px; }
.side-list > :last-child { border-bottom: 0; padding-bottom: 0; }
.side-list a:hover span:first-child { color: var(--accent); text-decoration: underline; }
.side-list a > span + span, .side-list .sl-row > span + span { color: var(--muted); font-size: 14.5px; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.side-box { padding-top: 16px; border-top: 1px solid var(--line-2); }
.side-t { margin-bottom: 12px; font-size: 21px; font-weight: 700; }
.side-t small { margin-left: 6px; color: var(--muted); font: 400 14.5px var(--sans); }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { position: relative; }
.rank li::before { content: ""; position: absolute; inset: 3px auto 3px 0; width: calc(var(--w) * 1%); min-width: 4px; background: var(--turq-line); border-radius: 6px; }
.rank a { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; color: var(--ink); text-decoration: none; font-size: 16.5px; }
.rank a:hover span { text-decoration: underline; }
.rank b { font: 700 14pxNone var(--disp); }
.side-more { display: inline-block; margin-top: 10px; font-size: 16px; font-weight: 600; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; margin: 0; font-size: 16.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 96px; }
.bars span { flex: 1; min-width: 2px; background: var(--turq-line); border-radius: 2px 2px 0 0; }
.bars span:hover { background: var(--turq); }
.bars span.hi { background: var(--azul); }
.bars-axis { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 13px; font-variant-numeric: lining-nums tabular-nums; }
.hbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: 16px; }
.hbar .tr { grid-column: 1 / -1; height: 7px; margin-bottom: 9px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.hbar .tr i { display: block; height: 100%; background: var(--turq); border-radius: 4px; }
.hbar .mono { font-variant-numeric: lining-nums tabular-nums; }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.hist li:last-child { border-bottom: 0; }
.hist .yr { flex: none; width: 46px; color: var(--muted); font: 700 14pxNone var(--disp); }
.hist a { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; } .hist a:hover { color: var(--accent); text-decoration: underline; }
.hist > li > .ic { width: 14px; height: 14px; color: var(--muted); }
.hist-long li { align-items: flex-start; gap: 20px; padding: 16px 0; }
.hist-long li:first-child { padding-top: 4px; } .hist-long li:last-child { padding-bottom: 4px; }
.hist-long .yr { width: 62px; padding-top: 0; color: var(--brand); font: 800 24.5px/1.05 var(--disp); }
.hist-long b { font: 700 18.5px/1.2 var(--disp); }

.feat-card { padding: 18px 20px; }
.grid-main > aside .feat-card { padding: 16px 0 0; }
.label-row { margin-bottom: 10px; color: var(--muted); font-size: 14.5px; }
.feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.feature h3 { font-size: 22px; margin-bottom: 3px; }
.feature h3 a { color: var(--ink); text-decoration: none; } .feature h3 a:hover { color: var(--accent); }
.facts { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: 9px; color: var(--ink-2); font-size: 15px; }
.facts span { display: inline-flex; align-items: center; gap: 6px; } .facts .ic { width: 16px; height: 16px; color: var(--muted); } .facts b { font-weight: 600; }

.news-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { display: flex; flex-direction: column; gap: 9px; padding: 20px 22px; color: inherit; text-decoration: none; }
.news-card:hover { border-color: var(--turq); } .news-card:hover h3 { color: var(--accent); }
.news-card h3 { font-size: 23px; line-height: 1.15; }
.news-card p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.news-card .mb { align-self: flex-start; }
.news-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14.5px; margin-top: auto; }
.news { display: flex; flex-direction: column; }
.news-item { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.news-item:first-child { padding-top: 0; } .news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-item h2, .news-item h3 { font-size: 23px; line-height: 1.15; margin-bottom: 5px; } .news-item:hover h2, .news-item:hover h3 { color: var(--accent); }
.news-item p { margin: 0 0 6px; color: var(--ink-2); font-size: 16px; }
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; border-top: 1px solid var(--line-2); }
.qa > div { padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.qa h3 { margin-bottom: 7px; font: 700 19px/1.3 var(--sans); letter-spacing: 0; }
.qa h3 a { color: inherit; }
.qa p { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.62; }

.board { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.brow { display: grid; grid-template-columns: minmax(0, 1fr) 76px 76px 76px 18px; align-items: center; gap: 12px; padding: 15px 22px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.brow:last-child { border-bottom: 0; }
.brow:hover { background: var(--surface-2); } .brow:hover .b-name b { color: var(--accent); }
.b-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.b-name b { font: 700 19px/1.2 var(--disp); }
.b-name small { color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-n { display: flex; flex-direction: column; align-items: flex-end; color: var(--muted); font-size: 13px; line-height: 1.25; }
.b-n b { color: var(--ink); font: 700 21px/1.1 var(--disp); font-variant-numeric: lining-nums tabular-nums; }
.brow > .ic { color: var(--muted); width: 16px; height: 16px; }

/* ---------- Portada ---------- */
.hero-band { padding: 30px 0 112px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); font-weight: 900; line-height: 1; letter-spacing: -.035em; }
.hero-sub { margin: 16px 0 0; color: var(--ink-2); font-size: 19.5px; line-height: 1.5; }
.hero-sub b { color: var(--ink); font-weight: 800; font-size: 22px; }
.hero-sub a { color: inherit; font-weight: 600; }
.hero-find { margin-top: 20px; max-width: 560px; }
.hero-find .find { border-color: var(--line-2); }
.portada { position: relative; display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: -86px; }
.ilmap-box { padding: 16px 18px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.pano-h { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding: 0 2px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.pano-t { margin: 0; font: 800 24px/1.15 var(--disp); letter-spacing: -.02em; }
.pano-t small { display: block; margin-top: 3px; color: var(--muted); font: 400 14.5px/1.3 var(--sans); letter-spacing: 0; }
.pano-links { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 16px 4px 0; font-size: 16px; font-weight: 600; }
.pano-links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; } .pano-links a:hover { text-decoration: underline; }
.ilmap { display: block; width: 100%; height: auto; }
.ilmap path { fill: var(--lv0); stroke: var(--surface); stroke-width: 1.1; stroke-linejoin: round; transition: fill .15s; cursor: pointer; }
.ilmap path.lv1 { fill: var(--lv1); } .ilmap path.lv2 { fill: var(--lv2); } .ilmap path.lv3 { fill: var(--lv3); } .ilmap path.lv4 { fill: var(--lv4); }
.ilmap path.big { stroke: var(--brand); stroke-width: 2.2; }
.ilmap a:hover path, .ilmap a:focus path { fill: var(--gualda); }
.ilmap-in { fill: none; stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.ilmap-inl { fill: var(--muted); font: 600 12.5px var(--sans); }
.ilmap-t text { fill: var(--ink); fill-opacity: .6; font: 700 11px var(--sans); text-anchor: middle; pointer-events: none; }
.ilmap .ilmap-f path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 6 4; stroke-opacity: .55; stroke-linecap: round; vector-effect: non-scaling-stroke; pointer-events: stroke; }
.ilmap-q .qd { fill: var(--ink); stroke: var(--surface); stroke-width: 1.2; vector-effect: non-scaling-stroke; cursor: pointer; }
.ilmap-q .qd.m1 { fill: var(--ink-2); fill-opacity: .8; }
.ilmap-q .qd.m3 { fill: var(--m3); stroke: #1e1a16; } .ilmap-q .qd.m4 { fill: var(--m4); stroke: #1e1a16; } .ilmap-q .qd.m5 { fill: var(--m5); stroke: #1e1a16; } .ilmap-q .qd.m6 { fill: var(--m6); } .ilmap-q .qd.m7 { fill: var(--m7); }
.ilmap-q .qd.hl, .ilmap-q a:hover .qd { stroke: var(--brand); stroke-width: 4; }
.ilmap-q .qp { fill: none; stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: qp 1.8s ease-out infinite; pointer-events: none; }
@keyframes qp { from { transform: scale(.7); opacity: 1; } to { transform: scale(3); opacity: 0; } }
.ilmap-q .ql-t { fill: var(--ink); font-family: var(--sans); font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.ilmap-q .ql-t tspan { font-family: var(--disp); font-weight: 800; }
.ilmap-q .me-d { fill: #1d4f91; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.ilmap-q .me-r { fill: #1d4f91; fill-opacity: .06; stroke: #1d4f91; stroke-width: 1.4; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; pointer-events: none; }
.ilmap-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.ilmap-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; color: var(--muted); font-size: 13.5px; }
.ilmap-leg span { display: inline-flex; align-items: center; gap: 5px; }
.ilmap-leg i { width: 16px; height: 12px; border-radius: 2px; background: var(--lv0); }
.ilmap-leg i.lv1 { background: var(--lv1); } .ilmap-leg i.lv2 { background: var(--lv2); } .ilmap-leg i.lv3 { background: var(--lv3); } .ilmap-leg i.lv4 { background: var(--lv4); }
.ilmap-leg .lg-q i { width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }
.ilmap-leg .lg-q i.q3 { background: var(--m3); box-shadow: inset 0 0 0 1px #1e1a16; } .ilmap-leg .lg-q i.q4 { background: var(--m4); box-shadow: inset 0 0 0 1px #1e1a16; }
.ilmap-leg .lg-fl i { width: 20px; height: 0; border-top: 2px dashed var(--ink-2); border-radius: 0; background: none; }
.ilmap-tip { margin: 0; color: var(--ink-2); font-size: 15px; }

.ahora { display: grid; gap: 16px; min-width: 0; }
.now { position: relative; display: block; padding: 15px 18px 16px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); color: inherit; text-decoration: none; overflow: hidden; }
.now::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--c); }
.now small { display: block; margin-bottom: 10px; color: var(--muted); font-size: 15px; }
.now-r { display: flex; align-items: center; gap: 16px; }
.now-m { flex: none; display: grid; place-items: center; min-width: 88px; height: 72px; padding: 4px 10px 0; border-radius: 8px; background: var(--c); color: var(--ci); font: 900 40px/1 var(--disp); font-variant-numeric: lining-nums tabular-nums; }
.now-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.now-b strong { font: 800 26px/1.1 var(--disp); letter-spacing: -.02em; overflow-wrap: anywhere; }
.now-b i { color: var(--ink-2); font-size: 15px; font-style: normal; line-height: 1.35; }
.now:hover strong { color: var(--accent); }
.feed { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.feed-h { padding: 16px 18px 4px; }
.feed-h h2 { font-size: 24px; margin-bottom: 6px; }
.feed-h .chips { gap: 0 18px; }
.feed-h .chip { font-size: 15.5px; padding: 5px 0 4px; }
.feed-rows { border-top: 1px solid var(--line); }
.feed .qrow { padding: 9px 18px; }
.feed .q-d { display: none; } .feed .qrow .sd { display: inline; }
@container (min-width: 431px) { .feed .qrow { grid-template-columns: 56px 48px minmax(0, 1fr); } }
.feed li.hl { background: var(--turq-soft); }
.near-out { margin: 0 18px 12px; padding: 10px 14px; border-radius: 8px; background: var(--turq-soft); font-size: 15.5px; line-height: 1.45; }
.filters + .near-out { margin-left: 0; margin-right: 0; }
.live-all { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-top: 1px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: 16px; text-decoration: none; }
.live-all:hover { background: var(--turq-soft); }
.filters { margin-bottom: 14px; }

/* Análisis propio: actividad frente a lo habitual y contexto de un terremoto */
.act { margin: 26px 0 0; padding: 0 0 0 18px; border-left: 4px solid var(--gualda); }
.act h2 { margin-bottom: 6px; font-size: 21px; }
.act p { margin: 0; color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.act p strong { color: var(--ink); }
.act-m { display: flex; align-items: flex-end; gap: 3px; height: 54px; margin-top: 14px; max-width: 520px; }
.act-m span { flex: 1; min-width: 3px; background: var(--turq-line); border-radius: 2px 2px 0 0; }
.act-m span.hi { background: var(--azul); }
.act-x { display: flex; justify-content: space-between; max-width: 520px; margin-top: 4px; color: var(--muted); font-size: 13px; }
.ctx { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.ctx li { padding: 13px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); font-size: 17.5px; line-height: 1.55; }
.ctx li strong { color: var(--ink); }

.days-box { padding: 14px 18px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow-x: auto; }
.days { display: block; width: 100%; min-width: 640px; height: auto; }
.days .dy-b { stroke: var(--line-2); stroke-width: 1; }
.days .dy-h { fill: transparent; }
.days a:hover .dy-h { fill: var(--surface-2); }
.days .dy-c { fill: var(--turq-line); }
.days .dy-c.now { fill: var(--turq); }
.days a:hover .dy-c { fill: var(--azul); }
.days .dy-m { fill: var(--c); stroke: var(--surface); stroke-width: 1.5; }
.days .dy-mt { fill: var(--ink); font: 800 12.5px var(--disp); text-anchor: middle; }
.days .dy-x { fill: var(--muted); font: 500 12.5px var(--sans); text-anchor: middle; }

.today { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.today-txt h2 { margin-bottom: 14px; }
.today-txt p { margin: 0 0 .8em; color: var(--ink-2); font-size: 18.5px; line-height: 1.65; }
.today-txt p:last-child { margin: 0; }
.today-txt strong { color: var(--ink); }
.today-side h2 { margin-bottom: 14px; font-size: 23px; }
.today-side h2 small { display: block; margin-top: 4px; color: var(--muted); font: 400 15px var(--sans); letter-spacing: 0; }

.edu2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.edu-text h3 { margin: 24px 0 6px; font: 700 19.5px/1.3 var(--sans); letter-spacing: 0; }
.edu-text h3:first-child { margin-top: 0; }
.edu-text p { margin: 0; color: var(--ink-2); font-size: 17.5px; line-height: 1.65; }
.vsec { position: sticky; top: 92px; margin: 0; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.vsec svg { display: block; width: 100%; height: auto; }
.vsec figcaption { margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.vg { stroke: var(--line); stroke-width: 1; } .vs { stroke: var(--ink-2); stroke-width: 1.2; } .vt { fill: var(--muted); font: 500 11.5px var(--sans); } .vb { stroke: var(--ink); stroke-width: 1; }

/* ---------- Página de un terremoto ---------- */
.qhead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 30px; align-items: center; padding: 22px 0 72px; }
.qh-mag { display: grid; place-content: center; gap: 6px; width: 172px; height: 160px; border-radius: 14px; background: var(--c); color: var(--ci); text-align: center; box-shadow: var(--shadow-lg); }
.qh-mag b { font: 800 73px/.86 var(--disp); font-variant-numeric: lining-nums tabular-nums; }
.qh-mag small { font-size: 15px; font-weight: 600; opacity: .85; }
.qhead h1 { font-size: clamp(30px, 4.2vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -.012em; }
.when { margin: 14px 0 0; color: var(--ink-2); font-size: 19px; }
.when b { font: 700 18.5px/1 var(--disp); font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.qh-long { margin: 4px 0 0; color: var(--muted); font-size: 16.5px; }
.bulletin { position: relative; display: flex; flex-wrap: wrap; margin-top: -40px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); font-size: 16px; color: var(--ink-2); overflow: hidden; }
.bulletin span { flex: 1 1 auto; padding: 15px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; white-space: nowrap; }
.bulletin b { color: var(--ink); font: 700 16.5px/1 var(--disp); font-variant-numeric: lining-nums tabular-nums; }
.revs { margin: 12px 4px 0; color: var(--muted); font-size: 14.5px; }
.prose p { margin: 0 0 .9em; font-size: 19px; line-height: 1.68; }
.prose p:last-child { margin-bottom: 0; }
.felt { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.felt fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.felt legend { padding: 0; margin-bottom: 12px; font-weight: 700; font-size: 17.5px; }
.felt-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.felt-opts label { position: relative; display: flex; padding: 11px 12px 11px 19px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface); font-size: 15px; line-height: 1.3; }
.felt-opts label > span { display: flex; flex-direction: column; gap: 3px; }
.felt-opts label::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--c); }
.felt-opts input { position: absolute; opacity: 0; }
.felt-opts small { color: var(--muted); font-size: 13.5px; }
.felt-opts label:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--turq-soft); }
.felt-opts label:has(input:focus-visible) { outline: 3px solid var(--turq); outline-offset: 2px; }
.felt-loc { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 16px; }
.felt-loc select { flex: 1 1 180px; min-width: 0; max-width: 100%; padding: 11px 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 10px; }
.felt-out { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; }
.felt.sent .felt-opts, .felt.sent .felt-loc { opacity: .5; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.wave-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 14px; }
.wave-ctrl .mono, .sim-form .mono { font-variant-numeric: lining-nums tabular-nums; }
.mycity { margin: 12px 0 0; font-size: 16px; }
.int { display: inline-grid; place-items: center; min-width: 36px; height: 24px; padding: 0 6px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .14); color: #16181b; font: 700 12.5pxNone var(--disp); }
.int-legend { display: flex; flex-wrap: wrap; gap: 4px 11px; margin-top: 10px; color: var(--ink-2); font: 700 12.5pxNone var(--disp); }
.int-legend i { display: inline-block; width: 13px; height: 13px; margin-right: 4px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .16); vertical-align: -2px; }

/* ---------- Harita ---------- */
.map { position: relative; z-index: 0; background: var(--surface-2); }
.qmap { height: 480px; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
/* Las teselas grises del mapa base se llevan a un tono cálido, a juego con la paleta del sitio */
.leaflet-tile-pane { filter: sepia(.32) saturate(.9) brightness(1.02); }
div.qmap > .map { border-radius: inherit; }
.leaflet-container { font: inherit; background: var(--surface-2); }
.leaflet-container a { color: var(--accent); }
.leaflet-bar { border: 1px solid var(--line-2) !important; border-radius: 10px !important; box-shadow: var(--shadow) !important; overflow: hidden; }
.leaflet-bar a { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 82%, transparent) !important; color: var(--muted) !important; font-size: 10.5px !important; }
.leaflet-popup-content-wrapper { background: var(--surface); color: var(--ink); border-radius: 12px; box-shadow: var(--shadow-lg); }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-content { margin: 12px 14px; font-size: 15px; line-height: 1.35; }
.leaflet-tooltip { background: var(--ink); color: var(--bg); border: 0; border-radius: 7px; box-shadow: none; font: 600 12.5px/1.3 var(--sans); padding: 4px 8px; }
.leaflet-tooltip::before { display: none; }
.pop { display: flex; align-items: center; gap: 11px; min-width: 200px; }
.pop a { color: var(--ink); font-weight: 700; text-decoration: none; } .pop a:hover { color: var(--accent); text-decoration: underline; }
.pop .t { margin-top: 2px; color: var(--muted); font-size: 13px; }
.ro-tip { background: var(--ink); color: var(--bg); border: 0; border-radius: 7px; padding: 4px 9px; font: 600 12.5px/1.25 var(--sans); white-space: nowrap; box-shadow: none; }
.ro-tip b { color: var(--amber); font-family: var(--disp); font-size: 14.5px; }
.pulse { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--c, #a01b20); animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.map-legend { position: absolute; left: 12px; bottom: 12px; z-index: 500; display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); color: var(--ink-2); font: 700 12pxNone var(--disp); pointer-events: none; }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .35); }
.map-legend .lg-f { font-family: var(--sans); } .map-legend .lg-f i { width: 18px; height: 0; border: 0; border-top: 2px dashed var(--ink-2); border-radius: 0; }
.map-btns { position: absolute; right: 12px; top: 12px; z-index: 500; display: flex; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); background: var(--surface); overflow: hidden; }
.map-btn { padding: 7px 12px; border: 0; background: none; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.map-btn + .map-btn { border-left: 1px solid var(--line); }
.map-btn.on { background: var(--ink); color: var(--surface); }
.map-hint { position: absolute; inset: auto 0 16px 0; margin: 0 auto; width: max-content; z-index: 550; padding: 7px 13px; background: var(--ink); color: var(--bg); border-radius: 8px; font-size: 13.5px; font-weight: 600; pointer-events: none; opacity: .94; transition: opacity .3s; }
.map-hint.off { opacity: 0; }
.map-full { position: relative; height: calc(100vh - 70px); height: calc(100dvh - 70px); }
.is-map main { padding-bottom: 0; }
.is-map .ft { display: none; }
.map-panel { position: absolute; top: 14px; left: 14px; z-index: 600; width: 380px; max-height: calc(100% - 28px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); overflow: hidden; }
.map-panel .hd { display: block; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.map-panel .hd h1 { font-size: 23px; }
.map-full > .map-legend { left: 410px; }
.map-list { overflow-y: auto; overscroll-behavior: contain; }
.map-full .leaflet-top.leaflet-left { left: 394px; }
.sheet-grip { display: none; }
.sim-epi { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 2px #1e1a16, 0 2px 8px rgba(0, 0, 0, .4); cursor: grab; }

/* ---------- Sismogram ---------- */
.drum { padding: 14px 0 6px; }
.trace { position: relative; }
.trace-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 13.5px; }
.trace-head b { color: var(--ink); font: 700 13.5pxNone var(--disp); }
.trace-svg { display: block; width: 100%; height: 104px; overflow: visible; cursor: crosshair; }
.trace-svg .base { stroke: var(--line-2); stroke-width: 1; }
.trace-svg .tick { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.trace-svg .tlabel { fill: var(--muted); font: 500 10.5px var(--mono); }
.trace-svg .sig { fill: none; stroke: var(--brand); stroke-width: 1.3; stroke-linejoin: round; }
.trace-svg .spike-lbl { fill: var(--ink); font: 700 11pxNone var(--disp); }
.trace-svg .spike-lbl-sub { fill: var(--muted); font: 500 11px var(--sans); }
.trace-svg .now { stroke: var(--ink); stroke-width: 1.5; }
.trace-tip { position: absolute; display: none; z-index: 5; padding: 6px 10px; background: var(--ink); color: var(--bg); border-radius: 8px; font-size: 13px; white-space: nowrap; pointer-events: none; transform: translate(-50%, -100%); }

/* ---------- Artículos y guía ---------- */
.article { padding-top: 26px; }
.article + aside { padding-top: 30px; }
.article h1 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; line-height: 1.04; }
.dek { margin: 14px 0 22px; color: var(--ink-2); font-size: 20.5px; line-height: 1.5; }
.article .body { font-size: 18px; line-height: 1.68; }
.article .body h2 { margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); font-size: 28px; }
.article .body h3 { margin: 24px 0 6px; font: 700 19.5px/1.3 var(--sans); letter-spacing: 0; }
.article .body p { margin: 0 0 1em; }
.article .body ul, .article .body ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.article .body li { margin-bottom: .45em; }
.article .body li::marker { color: var(--brand); font-weight: 700; }
.guide { max-width: 860px; }
.manual { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 46px; align-items: start; }
.toc { position: sticky; top: 92px; display: flex; flex-direction: column; margin-top: 34px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.toc b { margin-bottom: 8px; font: 700 15.5pxNone var(--disp); }
.toc a { padding: 6px 0; border-top: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 15.5px; }
.toc a:hover { color: var(--accent); }
.rule-box { margin: 6px 0 30px; padding: 22px 26px 24px; background: var(--band); border-radius: 10px; }
.rule-t { margin: 0 0 14px; font-weight: 700; font-size: 17.5px; }
.rule { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; }
.rule dt { color: var(--brand); font: 800 31.5px/1 var(--disp); }
.rule dd { margin: 7px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.kitlist { border-top: 1px solid var(--line); }
.kitlist label { display: flex; gap: 11px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; cursor: pointer; }
.kitlist input { accent-color: var(--rojo); width: 18px; height: 18px; flex: none; transform: translateY(3px); }
.kitlist label span { color: var(--ink-2); } .kitlist label b { color: var(--ink); }
.kitlist input:checked + span, .kitlist input:checked + span b { color: var(--muted); text-decoration: line-through; }
.kit-progress { display: flex; align-items: center; gap: 10px; margin: 10px 0; color: var(--muted); font: 500 14px var(--mono); }
.kit-progress span:first-child { color: var(--ink); }
.kit-track { flex: 1; max-width: 280px; height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.kit-track i { display: block; height: 100%; width: 0; background: var(--turq); transition: width .3s; }
.manual-faq { margin-top: 40px; }
.manual-faq h2 { margin-bottom: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); font-size: 28px; }
.manual-faq h3 { margin: 20px 0 6px; font: 700 19px/1.3 var(--sans); letter-spacing: 0; }
.manual-faq p { margin: 0; color: var(--ink-2); font-size: 17.5px; line-height: 1.62; }
.read-bar { position: fixed; left: 0; top: 0; z-index: 2000; height: 3px; width: 0; background: var(--rojo); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal a, .cal span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); font: 500 12px var(--mono); text-decoration: none; }
.cal a:hover { outline: 2px solid var(--ink); outline-offset: -1px; }
.cal a.l1 { background: var(--lv1); color: var(--ink); } .cal a.l2 { background: var(--m4); color: #2b1400; } .cal a.l3 { background: var(--m6); color: #fff; }
.cal .dow { aspect-ratio: auto; background: none; color: var(--muted); font-size: 11px; }
.sim-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 24px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.sim-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.sim-form label b { color: var(--ink); font-family: var(--mono); }
.sim-form select { padding: 9px 10px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--ink); max-width: 100%; }
.sim-form input[type=range] { width: 190px; accent-color: var(--hd); }
.sim-sum { margin: 14px 2px; font-size: 17px; color: var(--ink-2); }
.sim .grid-main { margin-top: 4px; }

/* ---------- Pie de página ---------- */
.azulejo { height: 12px; background: var(--azulejo) repeat-x center / 12px 12px; }
.ft { margin-top: 30px; background: var(--surface); }
.ft-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 64px; align-items: start; padding-top: 40px; padding-bottom: 34px; }
.ft .brand { color: var(--ink); }
.ft .brand-w em { color: var(--brand); }
.ft-lead { margin: 14px 0 0; color: var(--ink-2); font-size: 17px; }
.ft-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ft-t { margin: 0 0 8px; font: 700 16.5px/1.25 var(--disp); color: var(--ink); }
.ft-cols a { display: block; padding: 4px 0; color: var(--ink-2); text-decoration: none; font-size: 15.5px; }
.ft-cols a:hover { color: var(--accent); text-decoration: underline; }
.ft-sos { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; font-size: 14.5px; }
.ft-sos span { padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--ink-2); }
.ft-sos b { margin-left: 4px; color: var(--brand); font-weight: 800; font-size: 16px; }
.ft-index { padding-top: 26px; padding-bottom: 10px; border-top: 1px solid var(--line); }
.ft-index .ft-t { margin: 0 0 10px; }
.fp-list { columns: 3 300px; column-gap: 40px; margin-bottom: 22px; }
.fp-list p { margin: 0 0 9px; break-inside: avoid; font-size: 14.5px; line-height: 1.7; }
.fp-list b { flex: 0 0 100%; } .fp-list b a { color: var(--ink); font-weight: 700; font-size: 15.5px; }
.fp-list p, .fp-row { display: flex; flex-wrap: wrap; gap: 0 13px; }
.fp-list a, .fp-row a { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.fp-list a:hover, .fp-row a:hover { color: var(--accent); text-decoration: underline; }
.fp-row { margin: 0 0 22px; font-size: 14.5px; line-height: 1.9; }
.fine { display: flex; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.fine p { margin: 0; } .fine span { white-space: nowrap; }

/* ---------- Diseño adaptable ---------- */
@media (max-width: 1180px) {
  .readout .ro-p { max-width: 150px; }
  .hd-in { gap: 18px; } .hd-nav a { padding: 0 9px; font-size: 16px; }
  .readout .ro-p { display: none; }
  .portada { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  html { scroll-padding-top: 70px; }
  .hd-in { height: 58px; gap: 12px; }
  .hd-nav, .search-btn, #theme-btn, .hd-search { display: none !important; }
  .menu-btn { display: grid; }
  .brand .mark { width: 34px; height: 34px; } .brand-w { font-size: 23px; } .brand { gap: 8px; }
  .readout { padding-right: 12px; max-width: 44vw; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(40, 30, 10, .08); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px 2px; white-space: nowrap; overflow: hidden; color: var(--muted); text-decoration: none; font-size: 11.5px; font-weight: 600; line-height: 1.2; }
  .tabbar .ti .ic { width: 23px; height: 23px; }
  .tabbar a.on { color: var(--brand); }
  .tabbar a.fab .ti { display: grid; place-items: center; width: 52px; height: 52px; margin-top: -24px; background: var(--gualda); color: var(--gualda-ink); border: 4px solid var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); }
  .tabbar a.fab { overflow: visible; }
  .tabbar a.fab .ti .ic { width: 25px; height: 25px; }
  .portada { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .grid-main { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .today { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .edu2 { grid-template-columns: minmax(0, 1fr); gap: 28px; } .vsec { position: static; }
  .manual { grid-template-columns: minmax(0, 1fr); gap: 0; } .toc { position: static; margin-top: 20px; }
  .ft-top { grid-template-columns: 1fr; gap: 26px; }
  .map-full { height: calc(100dvh - 62px - 64px - env(safe-area-inset-bottom)); }
  .map-panel { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: none; }
  .sheet-grip { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 30px; padding: 8px 0 0; border: 0; background: none; color: var(--muted); font-size: 13.5px; font-weight: 600; }
  .sheet-grip .ic { width: 14px; height: 14px; transform: rotate(180deg); transition: transform .2s; }
  .map-panel.open .sheet-grip .ic { transform: none; }
  .map-panel .hd { padding: 4px 16px 0; border-bottom: 0; }
  .map-panel .hd h1 { font-size: 18px; }
  .map-panel .hd .chips { margin-top: 4px !important; flex-wrap: nowrap; gap: 0 18px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-left: -16px; margin-right: -16px; padding: 0 16px; }
  .map-panel .hd .chips::-webkit-scrollbar { display: none; }
  .map-panel .hd .chip { font-size: 15.5px; }
  .map-list { max-height: 76px; overflow: hidden; transition: max-height .25s ease; }
  .map-panel.open .map-list { max-height: 50dvh; overflow-y: auto; }
  .map-full .map-btns { left: 8px; right: 8px; top: 8px; }
  .map-full .map-btn { flex: 1; padding: 8px 2px; }
  .map-full > .map-legend { left: 8px; bottom: auto; top: 54px; gap: 9px; padding: 4px 11px; font-size: 13px; }
  .map-full .leaflet-bottom { bottom: 196px; }
  .map-full .leaflet-top.leaflet-left { display: none; }
  .reg { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .reg-s { display: flex; flex-wrap: wrap; gap: 3px 18px; margin-top: 8px; }
  .reg-s div { border: 0; padding: 0; gap: 6px; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .sec { margin-top: 48px; }
  .sec-h h2, .today-txt h2, .today-side h2 { font-size: 23px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr) !important; gap: 36px; }
  .stat-row { display: grid; grid-template-columns: 1fr 1fr; }
  .stat { padding: 13px 18px; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat .v { font-size: 28px; }
  .page-h { padding-bottom: 28px; }
  .card-pad { padding: 16px 16px; }
  .qrow { padding-left: 14px; padding-right: 14px; }
  .tbl th, .tbl td { padding-left: 14px; }
  .brow { padding-left: 16px; padding-right: 14px; }
  .felt { padding: 18px 16px; }
  .hero-band { padding: 22px 0 100px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 17.5px; } .hero-sub b { font-size: 19px; }
  .portada { margin: -82px -8px 0; }
  .ilmap-box { padding: 12px 8px 10px; }
  .pano-h { padding: 0 6px 10px; } .pano-h .seg { width: 100%; } .pano-h .seg button { flex: 1; }
  .ilmap-foot { padding: 10px 6px 0; }
  .ilmap-t { display: none; }
  .ilmap .ilmap-f path { stroke-width: 1.1; }
  .now { padding: 13px 14px 14px 20px; }
  .now-m { min-width: 68px; height: 60px; font-size: 30px; }
  .now-b strong { font-size: 20px; }
  .feed .qrow { padding-left: 14px; padding-right: 14px; }
  .feed-h { padding: 14px 14px 2px; } .near-out { margin: 0 14px 12px; }
  .feed-h .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
  .feed-h .chips::-webkit-scrollbar { display: none; }
  .days-box { margin: 0 -8px; padding: 12px 8px 6px; }
  .news-cards { grid-template-columns: 1fr; gap: 14px; }
  .qa { grid-template-columns: 1fr; }
  .qmap { height: 340px; }
  .il-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .reg { padding: 20px 16px 16px; } .reg h2 { font-size: 21px; }
  .reg-il { columns: 1; } .reg-il a { grid-template-columns: 118px minmax(0, 1fr) 36px 38px; padding: 7px 0; }
  .brow { grid-template-columns: minmax(0, 1fr) 58px 58px 14px; gap: 8px; } .brow .b-mx { display: none; } .b-name b { font-size: 17px; }
  .today-txt p { font-size: 17.5px; }
  .rule { grid-template-columns: 1fr; gap: 14px; }
  .has-plate { flex-direction: column; gap: 6px; } .plate { margin-top: 0; } .plate b { font-size: 26px; min-width: 46px; padding: 4px 10px 5px; }
  .qhead { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px 0 64px; }
  .qh-mag { grid-auto-flow: column; align-items: baseline; justify-content: start; width: auto; height: auto; padding: 12px 20px 10px; gap: 12px; justify-self: start; border-radius: 10px; } .qh-mag b { font-size: 52px; }
  .when { font-size: 17px; }
  .bulletin span { flex: 1 1 40%; white-space: normal; padding: 12px 16px; }
  .prose p { font-size: 17.5px; }
  .felt-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbl th, .tbl td { padding-right: 12px; }
  .idx, .prov-grid { columns: 1; }
  .fine { flex-direction: column; gap: 10px; }
  .ft-cols { grid-template-columns: 1fr 1fr; }
  .alert-bar { font-size: 15px; } .alert-bar i { display: none; }
  .readout .ro-p { display: none; }
  .map-btn { padding: 7px 9px; font-size: 13px; }
  .sim-form input[type=range] { width: 100%; } .sim-form label { flex: 1 1 100%; }
}
@media (max-width: 400px) {
  .brand-w { font-size: 20px; } .brand { gap: 6px; } .brand .mark { width: 30px; height: 30px; } .menu-btn { width: 36px; }
  .hd-in { gap: 8px; } .hd-r { gap: 4px; flex: 0 1 auto; min-width: 0; }
  .readout { min-width: 0; gap: 7px; padding-right: 10px; } .readout .ro-t { overflow: hidden; text-overflow: ellipsis; }
  .hero h1 { font-size: 32px; }
  .il-board b { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot, .pulse, .ql li.fresh, .ilmap-q .qp, .now small::before { animation: none; }
  .drawer, .drawer-in { transition: none; }
}
@media print {
  .hd-top, .azulejo, .alert-bar, .tabbar, .drawer, .ft, .map, .qmap { display: none !important; }
  body { background: #fff; }
}
