/* deGaritas Online — diseño inspirado en las Human Interface Guidelines de Apple
   Tipografía del sistema (SF Pro en Apple), superficies limpias, vidrio translúcido, radios generosos. */

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --fill: rgba(118, 118, 128, .12);
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .09);
  --brand: #0a5bd3;
  --brand-2: #2f8cff;
  --brand-ink: #0b3a8a;
  --brand-soft: #e8f1fd;
  --ok: #1a7f37;     --ok-bg: #e7f6ec;
  --warn: #a35400;   --warn-bg: #fff3de;
  --bad: #c4231a;    --bad-bg: #fdeceb;
  --closed: #5c5c61; --closed-bg: #ececf0;
  --on-brand: #ffffff;
  --header: rgba(255, 255, 255, .72);
  --shadow: 0 1px 1px rgba(0,0,0,.03), 0 4px 14px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10);
  --r-sm: 10px; --r: 18px; --r-lg: 24px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --header-h: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #1c1c1e; --surface-2: #232326; --fill: rgba(118,118,128,.24);
    --ink: #f5f5f7; --ink-2: #d2d2d7; --muted: #a1a1a6; --line: rgba(255,255,255,.12);
    --brand: #4aa3ff; --brand-2: #7cc0ff; --brand-ink: #a9d3ff; --brand-soft: #0e2a4d;
    --ok: #30d158; --ok-bg: #0f2e18; --warn: #ffb340; --warn-bg: #3a2a0d; --bad: #ff6961; --bad-bg: #3d1513;
    --closed: #a1a1a6; --closed-bg: #2c2c2e; --header: rgba(22, 22, 23, .72); --on-brand: #00152e;
    --shadow: 0 1px 1px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35); --shadow-lg: 0 12px 40px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #1c1c1e; --surface-2: #232326; --fill: rgba(118,118,128,.24);
  --ink: #f5f5f7; --ink-2: #d2d2d7; --muted: #a1a1a6; --line: rgba(255,255,255,.12);
  --brand: #4aa3ff; --brand-2: #7cc0ff; --brand-ink: #a9d3ff; --brand-soft: #0e2a4d;
  --ok: #30d158; --ok-bg: #0f2e18; --warn: #ffb340; --warn-bg: #3a2a0d; --bad: #ff6961; --bad-bg: #3d1513;
  --closed: #a1a1a6; --closed-bg: #2c2c2e; --header: rgba(22, 22, 23, .72); --on-brand: #00152e;
  --shadow: 0 1px 1px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35); --shadow-lg: 0 12px 40px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--font); letter-spacing: -0.012em; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; outline: none; padding-bottom: 32px; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.07; letter-spacing: -0.03em; font-weight: 700; }
h2, .h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -0.022em; font-weight: 700; }
h3, .h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.016em; font-weight: 650; }
.h4, h4 { font-size: 1rem; font-weight: 650; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 60%, transparent); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--surface); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right)); }
.wrap.narrow, .narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .84rem; line-height: 1.4; letter-spacing: -0.005em; }
.d-block { display: block; }
.mt { margin-top: 18px; }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.18em; }
.icon-sm { width: .95em; height: .95em; }

/* ---------- Indicadores intermitentes ---------- */
.pulse { --c: var(--muted); position: relative; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 8px; flex: none; vertical-align: .06em; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--c); animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
.pulse-ok { --c: var(--ok); } .pulse-warn { --c: var(--warn); } .pulse-bad { --c: var(--bad); }
.pulse-live { --c: #34c759; } .pulse-closed { --c: var(--closed); } .pulse-muted { --c: var(--muted); }
.pulse-closed::after, .pulse-muted::after { animation: none; opacity: 0; }
.pulse-bad::after { animation-duration: 1.1s; }
.pulse-live { animation: blink 1.6s ease-in-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .65; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .pulse::after, .pulse-live { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Encabezado (vidrio) ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--header); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; margin-right: auto; border-radius: 10px; padding: 2px 0; }
.brand img { display: block; height: 42px; width: auto; }
:root[data-theme="dark"] .brand img, :root[data-theme="dark"] .foot-logo { background: #fff; border-radius: 10px; padding: 3px 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img, :root:not([data-theme="light"]) .foot-logo { background: #fff; border-radius: 10px; padding: 3px 8px; } }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-size: .9rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--fill); color: var(--ink); text-decoration: none; }
.has-menu { position: relative; }
.mega { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-30%); display: none; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); width: min(980px, 92vw); }
.has-menu:hover .mega, .has-menu:focus-within .mega { display: grid; }
.mega-col { display: flex; flex-direction: column; gap: 2px; }
.mega a { padding: 5px 8px; border-radius: 8px; font-size: .86rem; }
.mega .mega-h { font-weight: 650; color: var(--ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.bar-actions { display: flex; gap: 4px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--fill); }
.icon-btn .icon { width: 20px; height: 20px; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; } :root[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; }
@media (max-width: 1060px) {
  .menu-btn { display: inline-grid; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100vh - var(--header-h)); overflow: auto; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 10px 16px 18px; }
  .nav a { padding: 12px 14px; font-size: 1rem; border-radius: 12px; }
  .mega { position: static; transform: none; display: grid; grid-template-columns: repeat(2, 1fr); width: auto; box-shadow: none; border: 0; padding: 4px 8px 12px; background: transparent; gap: 10px; }
  .brand img { height: 36px; }
}

/* ---------- Hero y encabezados de página ---------- */
.hero { padding: 48px 0 28px; background: radial-gradient(120% 90% at 50% -10%, var(--brand-soft) 0%, transparent 60%); }
.hero h1, .page-head h1 { max-width: 20ch; }
.hero .lead, .page-head .lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ink-2); margin-top: 12px; max-width: 62ch; letter-spacing: -0.016em; }
.page-head { padding: 22px 0 18px; display: grid; gap: 10px; }
.hero .eyebrow { display: block; }
.eyebrow { font-size: .86rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.answer { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r-sm); padding: 14px 16px; max-width: 80ch; box-shadow: var(--shadow); margin-top: 6px; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.status-err { color: var(--bad); }
.status-text { font-size: .86rem; color: var(--muted); }
.live-chip { display: inline-flex; align-items: center; padding: 4px 12px 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.live-chip.is-stale { background: var(--closed-bg); color: var(--closed); }
.finder { position: relative; margin-top: 22px; max-width: 640px; }
.finder > .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.finder input { width: 100%; height: 54px; padding: 0 18px 0 46px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); font-size: 1.05rem; }
.small-finder { margin: 0 0 16px; }
.small-finder input { height: 46px; }

/* ---------- Crumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 16px 0 0; margin: 0; font-size: .82rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; opacity: .6; }
.crumbs a { color: var(--muted); }

/* ---------- Botones y controles ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none !important; transition: transform .12s ease, filter .12s ease; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: var(--fill); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .84rem; }
.btn.danger, .btn-ghost.danger { color: var(--bad); }
.linklike { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font-size: inherit; }
.segmented { display: inline-flex; background: var(--fill); padding: 3px; border-radius: 12px; gap: 2px; flex-wrap: wrap; }
.segmented button { border: 0; background: transparent; min-height: 40px; padding: 7px 14px; border-radius: 9px; font-size: .88rem; font-weight: 600; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.segmented.wide { display: flex; margin-bottom: 16px; }
.segmented.wide button { flex: 1; justify-content: center; }
.toolbar { margin: 6px 0 14px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 18px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.chip:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }

/* ---------- Secciones, tarjetas, grids ---------- */
.section { margin: 40px 0; }
.section > h2, .section-head { margin-bottom: 16px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.card + .card, .side-col > * + * { margin-top: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { display: flex; align-items: center; gap: 8px; }
.card-links { margin-top: 12px; font-size: .88rem; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin: 32px 0; }
.layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr) 340px; } .side-col .sticky { position: sticky; top: calc(var(--header-h) + 16px); } }
.kicker { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); }

/* ---------- Garitas ---------- */
.ports { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.ports > .ad { grid-column: 1 / -1; }
.port { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.port-head { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.port-title { font-size: 1.15rem; letter-spacing: -0.018em; }
.port-title a { color: var(--ink); }
.port-alias { color: var(--muted); font-size: .84rem; display: flex; gap: 5px; align-items: center; margin-top: 2px; }
.mode-title { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.lanes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lane { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.lane-name { display: flex; align-items: center; font-weight: 600; font-size: .95rem; }
.lane-val { font-weight: 700; font-size: 1.12rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.lane-meta { grid-column: 1 / -1; font-size: .76rem; color: var(--muted); padding-left: 17px; }
.lv-ok .lane-val, td.lv-ok { color: var(--ok); }
.lv-warn .lane-val, td.lv-warn { color: var(--warn); }
.lv-bad .lane-val, td.lv-bad { color: var(--bad); }
.lv-closed .lane-val, td.lv-closed { color: var(--closed); }
.lane.lv-ok { background: var(--ok-bg); border-color: transparent; }
.lane.lv-warn { background: var(--warn-bg); border-color: transparent; }
.lane.lv-bad { background: var(--bad-bg); border-color: transparent; }
.lane.lv-closed { background: var(--closed-bg); border-color: transparent; }
.port-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; }
.more { font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--brand-soft); color: var(--brand-ink); vertical-align: middle; }
.badge-closed { background: var(--closed-bg); color: var(--closed); }
.notice { display: flex; gap: 8px; align-items: flex-start; background: var(--warn-bg); color: var(--ink); border-radius: 12px; padding: 10px 12px; font-size: .86rem; margin: 8px 0; }
.notice .icon { color: var(--warn); margin-top: 3px; }
.legend { color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 12px; }
.legend .pulse { margin-right: 5px; }
[data-mode-filter="passenger"] .mode:not([data-mode="passenger"]),
[data-mode-filter="pedestrian"] .mode:not([data-mode="pedestrian"]),
[data-mode-filter="commercial"] .mode:not([data-mode="commercial"]) { display: none; }
.is-updating { opacity: .55; transition: opacity .2s; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 16px 0; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 6px; box-shadow: var(--shadow); }
.kpi strong { font-size: 1.7rem; letter-spacing: -0.03em; display: flex; align-items: center; }
.kpi .kpi-text { font-size: 1rem; }
.kpi.lv-ok strong { color: var(--ok); } .kpi.lv-warn strong { color: var(--warn); } .kpi.lv-bad strong { color: var(--bad); }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
caption { text-align: left; padding: 12px 16px 0; color: var(--muted); font-size: .82rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: var(--surface-2); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; white-space: normal; min-width: 170px; }
.wait-table td { font-weight: 650; font-variant-numeric: tabular-nums; }
.wait-table tbody th { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.wait-table .pulse { margin-right: 6px; width: 8px; height: 8px; }

/* ---------- Enlaces internos ---------- */
.states { display: grid; gap: 24px; }
.link-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.link-cards.one { grid-template-columns: 1fr; }
.link-card { display: flex; align-items: center; gap: 10px; padding: 13px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.card .link-card { box-shadow: none; background: var(--surface-2); margin-top: 8px; }
.link-card:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.lc-main { display: grid; flex: 1; min-width: 0; }
.lc-main strong { font-size: .98rem; }
.link-card > .icon { color: var(--muted); }
.mini-wait { display: inline-flex; align-items: center; font-weight: 700; font-size: .86rem; font-variant-numeric: tabular-nums; }
.mini-wait.lv-ok { color: var(--ok); } .mini-wait.lv-warn { color: var(--warn); } .mini-wait.lv-bad { color: var(--bad); }
.tools { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.side-col .tools { grid-template-columns: 1fr; }
.tool { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.card .tool { background: var(--surface-2); }
.tool:hover { text-decoration: none; border-color: var(--brand); }
.tool > span { display: grid; gap: 2px; }
.tool-ic { width: 26px; height: 26px; color: var(--brand); padding: 4px; background: var(--brand-soft); border-radius: 8px; box-sizing: content-box; }
.guides { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.guide-card { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); }
.guide-card:hover { text-decoration: none; box-shadow: var(--shadow-lg); }
.guide-card .kicker { color: var(--brand); }
.plain-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%230a5bd3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- Tipo de cambio y clima ---------- */
.fx-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.fx-num { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.wx-now { display: flex; align-items: center; gap: 10px; }
.wx-emoji { font-size: 2.2rem; line-height: 1; }
.wx-temp { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.035em; }
.wx-desc { font-size: .88rem; color: var(--ink-2); margin: 6px 0 12px; }
.wx-days { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wx-days li { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem; }
.wx-rain { color: var(--brand); }
.wx-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.wx-tile { display: grid; gap: 8px; color: var(--ink); }
.wx-tile:hover { text-decoration: none; border-color: var(--brand); }
.wx-city { display: grid; }

/* ---------- Calculadoras ---------- */
.calc { padding: 24px; }
.calc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.field { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.field.inline { max-width: 220px; margin-top: 10px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.swap-btn { background: var(--fill); justify-self: center; margin-bottom: 4px; }
.calc-out { display: block; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.04em; margin: 20px 0 6px; font-variant-numeric: tabular-nums; word-break: break-word; }
.more summary { cursor: pointer; color: var(--brand); font-size: .9rem; font-weight: 600; margin-top: 14px; }
.pp-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 20px 0 10px; }
.pp-results > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 4px; }
.pp-results strong { font-size: 1.5rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pp-convert { font-weight: 600; }

/* ---------- Prosa (guías) ---------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 3px solid var(--brand); color: var(--ink-2); }
.prose .table-wrap { margin: 1.2em 0; }
.prose td, .prose th { white-space: normal; }
.toc { margin: 0 0 24px; }
.toc ol { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: .94rem; }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin-top: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 16px; color: var(--ink-2); }

/* ---------- Compartir ---------- */
.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }

/* ---------- Publicidad ---------- */
.ad { display: block; margin: 28px auto; text-align: center; width: 100%; overflow: hidden; }
.ad-label { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.ad-top, .ad-bottom { min-height: 110px; }
.ad-incontent, .ad-inarticle { min-height: 280px; }
.ad-sidebar { min-height: 280px; }
.ad-multiplex { min-height: 300px; }
.ad-placeholder .ad-ph { display: grid; place-items: center; min-height: inherit; border: 1.5px dashed var(--line); border-radius: var(--r-sm); color: var(--muted); font-size: .82rem; background: repeating-linear-gradient(45deg, transparent 0 10px, var(--fill) 10px 11px); }
.ad-top .ad-ph, .ad-bottom .ad-ph { min-height: 90px; }
.ad-incontent .ad-ph, .ad-inarticle .ad-ph, .ad-sidebar .ad-ph { min-height: 250px; }
.ad-multiplex .ad-ph { min-height: 280px; }

/* ---------- Foro ---------- */
.forum-user { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .92rem; margin-top: 6px; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cats { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cats.cols { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.cats a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); box-shadow: var(--shadow); }
.cats a:hover { text-decoration: none; border-color: var(--brand); }
.cats .muted { grid-column: 1; }
.cats .count { grid-row: 1 / span 2; grid-column: 2; align-self: center; background: var(--fill); border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.threads { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.threads a { display: grid; gap: 3px; padding: 13px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.card .threads a { background: var(--surface-2); }
.threads a:hover { text-decoration: none; border-color: var(--brand); }
.posts { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.post.is-hidden { opacity: .5; border-style: dashed; }
.post header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.post-body p + p { margin-top: .7em; }
.post-body { overflow-wrap: anywhere; }
.post-actions { display: flex; gap: 14px; margin-top: 10px; }
.post-actions form { display: inline; }
.mod-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.reports { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.reports li { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.reports .pulse { align-self: center; }
.report-form { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; margin-top: 10px; }
.report-form .grow { grid-column: 1 / -1; }
.form { display: grid; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: 12px 16px; border-radius: 12px; margin: 14px 0; font-weight: 600; }
.flash-ok { background: var(--ok-bg); color: var(--ok); }
.flash-warn { background: var(--warn-bg); color: var(--warn); }
.flash-err { background: var(--bad-bg); color: var(--bad); }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.pager a[aria-current="page"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* ---------- Búsqueda ---------- */
.results { list-style: none; padding: 0; display: grid; gap: 8px; }
.results a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }

/* ---------- Pie ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 8px 0 32px; font-size: .86rem; }
.foot-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); padding: 28px 0; }
.foot-brand { grid-column: 1 / -1; max-width: 560px; display: grid; gap: 10px; }
@media (min-width: 900px) { .foot-brand { grid-column: span 2; } }
.foot-logo { height: 40px; width: auto; }
.foot-h { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.foot-h a { color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.site-footer ul a { color: var(--ink-2); }
.social { display: flex; gap: 12px; flex-wrap: wrap; }
.foot-legal { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 8px; }

/* ---------- Cookies y avisos ---------- */
.cookie { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 60; margin: 0 auto; max-width: 720px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 16px 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.cookie p { flex: 1 1 320px; }
.cookie-btns { display: flex; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; z-index: 70; box-shadow: var(--shadow-lg); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 28px; }
  .card, .calc { padding: 16px; }
  .wx-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  th, td { padding: 10px 12px; }
}
@media print {
  .site-header, .site-footer, .ad, .share, .cookie, .toolbar { display: none !important; }
  body { background: #fff; }
}

/* ---------- Interlinking: píldoras de enlaces ---------- */
.explore { margin: 32px 0; }
.explore h2 { margin-bottom: 12px; }
.pill-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .88rem; font-weight: 500; transition: border-color .15s ease, color .15s ease, transform .15s ease; }
.pill-links a:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }

/* ---------- Tarjetas clicables: elevación suave ---------- */
.guide-card, .tool, .wx-tile, .cats a, .threads a, .results a { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.guide-card:hover, .tool:hover, .wx-tile:hover, .cats a:hover, .threads a:hover, .results a:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: reduce) { .link-card, .guide-card, .tool, .wx-tile, .cats a, .threads a, .results a, .pill-links a { transition: none; transform: none !important; } }

/* =====================================================================
   REDISEÑO 2026 · blanco · azul · amarillo (apple-design)
   ===================================================================== */
:root {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f6f8fc; --tint: #f2f6ff;
  --ink: #0b1b36; --ink-2: #334260; --muted: #5d6880; --line: rgba(11, 27, 54, .10);
  --brand: #0a5bd3; --brand-2: #2f8cff; --brand-ink: #083e93; --brand-soft: #e7f0ff;
  --navy: #071d45; --navy-2: #0c2d66;
  --sun: #ffc81e; --sun-2: #ffd84d; --sun-ink: #0b1b36; --sun-soft: #fff6d1;
  --on-brand: #ffffff;
  --header: rgba(255, 255, 255, .78);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050d1d; --surface: #0d1830; --surface-2: #12203d; --tint: #0a1530;
    --ink: #f3f6fc; --ink-2: #cfd8ea; --muted: #9aa7c0; --line: rgba(255, 255, 255, .12);
    --brand: #5aa8ff; --brand-2: #8cc4ff; --brand-ink: #b9dbff; --brand-soft: #0f2a55;
    --navy: #030a18; --navy-2: #0a1a3a; --sun: #ffd23f; --sun-2: #ffe07a; --sun-soft: #2e2608;
    --on-brand: #04122b; --header: rgba(5, 13, 29, .78);
  }
}
:root[data-theme="dark"] {
  --bg: #050d1d; --surface: #0d1830; --surface-2: #12203d; --tint: #0a1530;
  --ink: #f3f6fc; --ink-2: #cfd8ea; --muted: #9aa7c0; --line: rgba(255, 255, 255, .12);
  --brand: #5aa8ff; --brand-2: #8cc4ff; --brand-ink: #b9dbff; --brand-soft: #0f2a55;
  --navy: #030a18; --navy-2: #0a1a3a; --sun: #ffd23f; --sun-2: #ffe07a; --sun-soft: #2e2608;
  --on-brand: #04122b; --header: rgba(5, 13, 29, .78);
}

/* Encabezado: línea amarilla de marca bajo el vidrio */
.site-header { box-shadow: inset 0 -3px 0 var(--sun); border-bottom: 0; }
.nav a[aria-current="page"] { background: var(--sun-soft); color: var(--ink); box-shadow: inset 0 -2px 0 var(--sun); }

/* Botones */
.btn-sun { background: var(--sun); color: var(--sun-ink); box-shadow: 0 6px 18px rgba(255, 200, 30, .35); }
.btn-sun:hover { filter: none; background: var(--sun-2); }
.btn-line { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-line:hover { background: var(--brand-soft); filter: none; }

/* Barra de secciones */
.subnav { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 30; }
.subnav ul { list-style: none; margin: 0; padding: 6px 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; white-space: nowrap; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.subnav a:hover { background: var(--sun-soft); color: var(--ink); text-decoration: none; }

/* Cinta en vivo */
.ticker { display: flex; align-items: stretch; background: var(--navy); color: #fff; overflow: hidden; border-bottom: 3px solid var(--sun); }
.ticker-label { flex: none; display: flex; align-items: center; gap: 2px; padding: 0 16px; background: var(--sun); color: var(--sun-ink); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.ticker-label .pulse { --c: #0b8a3c; }
.ticker-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker ul { list-style: none; margin: 0; padding: 0; display: flex; }
.ticker li a { display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; color: #fff; font-size: .88rem; white-space: nowrap; border-right: 1px solid rgba(255, 255, 255, .12); }
.ticker li a:hover { background: rgba(255, 255, 255, .06); text-decoration: none; }
.ticker li strong { color: var(--sun); font-variant-numeric: tabular-nums; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; overflow-x: auto; width: auto; } }

/* Hero editorial */
.hero2 { position: relative; overflow: hidden; background:
  radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--sun) 28%, transparent) 0%, transparent 60%),
  radial-gradient(70% 90% at 0% 0%, var(--brand-soft) 0%, transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.hero2::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%; border: 36px solid color-mix(in srgb, var(--brand) 10%, transparent); pointer-events: none; }
.hero2-in { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 28px max(16px, env(safe-area-inset-left)) 40px; display: grid; gap: 14px; }
.hero2 .crumbs ol { padding-top: 0; }
.hero2 h1 { max-width: 18ch; font-size: clamp(2.2rem, 5.6vw, 4.2rem); line-height: 1.03; letter-spacing: -0.035em; color: var(--ink); }
.hero2.is-compact h1 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); max-width: 22ch; }
.hl { font-style: italic; font-weight: 700; color: var(--brand); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--sun) 75%, transparent) 62%, color-mix(in srgb, var(--sun) 75%, transparent) 92%, transparent 92%); padding: 0 .08em; }
.eyebrow2 { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; width: fit-content; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.lead2 { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ink-2); max-width: 60ch; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ctas .btn { min-height: 50px; padding: 0 24px; font-size: 1rem; }
.hero2 .status { margin-top: 0; }
.answer { border-left-color: var(--sun); background: linear-gradient(90deg, var(--sun-soft), var(--surface) 70%); }

/* Cifras */
.stats { margin: -26px 0 8px; position: relative; z-index: 2; }
.stats dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.stat > a, .stat:not(:has(a)) { display: grid; gap: 4px; height: 100%; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); border-top: 4px solid var(--sun); transition: transform .15s ease, box-shadow .15s ease; }
.stat > a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat dt { order: 2; font-size: .84rem; color: var(--muted); font-weight: 600; }
.stat dd { order: 1; margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.035em; color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1.05; }
.stat dd small { font-size: .5em; font-weight: 700; color: var(--muted); margin-left: 2px; letter-spacing: 0; }

/* Títulos de sección */
.kicker2 { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.kicker2::before { content: ""; width: 22px; height: 4px; border-radius: 4px; background: var(--sun); }
.h2s { font-size: 1.35rem; letter-spacing: -0.02em; font-weight: 750; }
.band { background: var(--tint); border-block: 1px solid var(--line); padding: 8px 0; margin: 40px 0; }

/* Directorio */
.dir-total { font-size: .95rem; color: var(--muted); }
.dir-total strong { font-size: 1.6rem; color: var(--ink); letter-spacing: -0.03em; }
.dir-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-bottom: 12px; }
.dir-search { position: relative; }
.dir-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.dir-search input, .dir-sort select { width: 100%; min-height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 0 16px 0 42px; font-size: 1rem; box-shadow: var(--shadow); color: var(--ink); }
.dir-sort select { padding: 0 14px; font-weight: 600; }
.dir-search input:focus, .dir-sort select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .88rem; cursor: pointer; }
.pill span { background: var(--fill); border-radius: 999px; padding: 1px 8px; font-size: .76rem; }
.pill[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.pill[aria-pressed="true"] span { background: var(--sun); color: var(--sun-ink); }
.dir-group { margin-top: 22px; }
.dir-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.g-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.g-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.g-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.g-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.g-idx { font: 700 .76rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); letter-spacing: .06em; }
.tag { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
.g-id { display: flex; gap: 12px; align-items: center; }
.g-id h3 { font-size: 1.02rem; letter-spacing: -0.015em; line-height: 1.25; }
.g-id h3 a { color: var(--ink); }
.mono { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(140deg, var(--navy-2), var(--brand)); color: var(--sun); font-weight: 800; font-size: .95rem; letter-spacing: .02em; box-shadow: inset 0 -3px 0 var(--sun); }
.g-wait { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.g-wait strong { display: inline-flex; align-items: center; font-size: 1.25rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.g-wait.lv-ok { background: var(--ok-bg); } .g-wait.lv-ok strong { color: var(--ok); }
.g-wait.lv-warn { background: var(--warn-bg); } .g-wait.lv-warn strong { color: var(--warn); }
.g-wait.lv-bad { background: var(--bad-bg); } .g-wait.lv-bad strong { color: var(--bad); }
.g-wait.lv-closed { background: var(--closed-bg); } .g-wait.lv-closed strong { color: var(--closed); }
.g-mini { color: var(--ink-2); }
.g-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.g-foot a { font-weight: 700; }
.g-card[hidden], .dir-group[hidden] { display: none !important; }

/* Tablas informativas */
.info-table td, .info-table th { white-space: normal; }
.info-table thead th { background: var(--navy); color: #fff; }
.info-table caption { padding-bottom: 8px; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: s; }
.steps li { position: relative; padding: 22px 20px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; }
.step-n { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--sun); color: var(--sun-ink); font-weight: 800; }
.steps h3 { font-size: 1.08rem; }
.steps p { color: var(--ink-2); font-size: .95rem; }
.steps a { font-weight: 700; margin-top: auto; }

/* Glosario */
.glossary { margin: 16px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.glossary > div { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; border-left: 4px solid var(--brand); }
.glossary dt { font-weight: 750; margin-bottom: 4px; }
.glossary dd { margin: 0; color: var(--ink-2); font-size: .93rem; }

/* Pie de página azul marino con acento amarillo */
.site-footer { background: var(--navy); color: #dfe6f5; border-top: 4px solid var(--sun); }
.site-footer a, .site-footer ul a, .foot-h a { color: #ffffff; }
.site-footer .muted, .site-footer .small.muted { color: #aeb9d1; }
.foot-h { color: var(--sun); }
.foot-legal { border-top-color: rgba(255, 255, 255, .14); }
.site-footer .linklike { color: var(--sun); }
.foot-logo { background: #fff; border-radius: 10px; padding: 4px 10px; }
.site-footer .ad-placeholder .ad-ph { border-color: rgba(255,255,255,.2); color: #aeb9d1; }

/* Acentos amarillos en componentes existentes */
.kpi { border-top: 4px solid var(--sun); }
.guide-card .kicker { color: var(--brand); }
.guide-card { border-top: 4px solid transparent; }
.guide-card:hover { border-top-color: var(--sun); }
.tool-ic { background: var(--sun-soft); color: var(--brand-ink); }
.checklist li::before { background-color: var(--sun-soft); }
.faq details[open] { border-color: color-mix(in srgb, var(--sun) 60%, var(--line)); }
.pill-links a:hover { border-color: var(--sun); background: var(--sun-soft); color: var(--ink); }
.cookie { border-top: 4px solid var(--sun); }
.live-chip { background: var(--ok-bg); }

@media (max-width: 640px) {
  .dir-tools { grid-template-columns: 1fr; }
  .stats { margin-top: -18px; }
  .hero2-in { padding-bottom: 34px; }
  .hero2::after { display: none; }
}

/* ---------- Botones llamativos ---------- */
.btn { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--brand-2), var(--brand) 55%, var(--brand-ink)); color: var(--on-brand); font-weight: 700; letter-spacing: -0.01em; box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 35%, transparent), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 45%, transparent), inset 0 1px 0 rgba(255,255,255,.25); filter: none; }
.btn:active { transform: translateY(0) scale(.98); }
.btn .icon { transition: transform .15s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn-sun { background: linear-gradient(135deg, #ffe066, var(--sun) 55%, #f5ac00); color: var(--sun-ink); box-shadow: 0 8px 22px rgba(245, 172, 0, .45), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-sun:hover { background: linear-gradient(135deg, #ffe680, #ffcf33 55%, #f7b500); box-shadow: 0 14px 30px rgba(245, 172, 0, .5), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-sun::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn-line { background: var(--surface); color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand), 0 4px 14px rgba(10, 91, 211, .12); }
.btn-line:hover { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand), 0 10px 22px rgba(10, 91, 211, .2); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--sun), 0 8px 18px rgba(11, 27, 54, .1); background: var(--sun-soft); }
.btn-ghost.danger { color: var(--bad); }
@media (prefers-reduced-motion: reduce) { .btn-sun::after { animation: none; display: none; } .btn, .btn .icon { transition: none; } }

/* ---------- Franja de encabezado en páginas internas ---------- */
.page-head { position: relative; padding: 26px 0 32px; isolation: isolate; }
.page-head::before { content: ""; position: absolute; z-index: -1; inset: 0 -100vmax; background: radial-gradient(50% 120% at 85% 0%, color-mix(in srgb, var(--sun) 22%, transparent), transparent 60%), linear-gradient(180deg, var(--tint), var(--bg)); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4.8vw, 3.4rem); letter-spacing: -0.035em; }
main > .wrap > .crumbs { position: relative; isolation: isolate; }
main > .wrap > .crumbs::before { content: ""; position: absolute; z-index: -1; inset: 0 -100vmax; background: var(--tint); }

/* ---------- Pie: crédito ---------- */
.credit { margin-top: 6px; }
.credit a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; min-height: 40px; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-weight: 700; font-size: .86rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.credit a:hover { background: var(--sun); color: var(--sun-ink); text-decoration: none; }

/* ---------- Botón flotante ---------- */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 55; display: flex; align-items: center; gap: 4px; }
.fab-link { display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; min-height: 56px; border-radius: 999px; background: linear-gradient(135deg, var(--navy-2), var(--brand)); color: #fff; box-shadow: 0 14px 34px rgba(7, 29, 69, .35), inset 0 -3px 0 var(--sun); transition: transform .15s ease, box-shadow .15s ease; }
.fab-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 18px 40px rgba(7, 29, 69, .45), inset 0 -3px 0 var(--sun); }
.fab-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--sun-ink); animation: fabpulse 2.4s ease-in-out infinite; }
.fab-ic .icon { width: 20px; height: 20px; }
@keyframes fabpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 200, 30, .6); } 50% { box-shadow: 0 0 0 10px rgba(255, 200, 30, 0); } }
.fab-txt { display: grid; line-height: 1.15; }
.fab-q { font-size: .74rem; opacity: .9; }
.fab-txt strong { font-size: .98rem; color: var(--sun); }
.fab-x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; align-self: flex-start; }
@media (max-width: 640px) { .fab { right: 12px; bottom: 12px; } .fab-link { min-height: 48px; padding: 6px 14px 6px 6px; } .fab-ic { width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .fab-ic { animation: none; } }
.cookie:not([hidden]) ~ .fab { bottom: 120px; }
main { overflow-x: clip; }

.ticker-label { position: relative; z-index: 2; box-shadow: 10px 0 14px -4px var(--navy); }
@media (max-width: 640px) {
  .stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat > a, .stat:not(:has(a)) { padding: 14px; }
  .stat dd { font-size: 1.6rem; }
  .eyebrow2 { font-size: .76rem; border-radius: 14px; }
  .fab-q { display: block; font-size: .68rem; }
  .fab-txt strong { font-size: .9rem; }
  .ctas .btn { width: 100%; }
}

/* ---------- Pie de página (reorganizado, sin espacio blanco) ---------- */
.foot-ad { margin-bottom: 0; }
.site-footer { padding: 40px 0 calc(96px + env(safe-area-inset-bottom)); margin-top: 0; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px 40px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.14); }
.foot-brand { grid-column: auto; max-width: 520px; display: grid; gap: 12px; }
.foot-logo-link { display: inline-block; width: fit-content; border-radius: 12px; }
.foot-logo { display: block; height: 44px; width: auto; background: #fff; border-radius: 12px; padding: 5px 12px; }
.foot-cta { display: grid; gap: 12px; }
.foot-cta-t { display: flex; align-items: center; font-weight: 700; color: #fff; }
.foot-cta .ctas { margin: 0; }
.btn-onnavy { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.btn-onnavy:hover { background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1.5px var(--sun); }
.foot-nav { display: grid; gap: 28px; padding: 28px 0; }
.foot-h { font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; color: var(--sun); }
.foot-h a { color: var(--sun); }
.foot-sub { font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.foot-sub a { color: #fff; }
.foot-states { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.foot-row { display: grid; gap: 24px; grid-template-columns: 2fr 1fr 1fr 1.2fr; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.site-footer ul { margin: 0; gap: 7px; }
.site-footer ul a { color: #d9e2f3; font-size: .88rem; }
.site-footer ul a:hover { color: var(--sun); }
.cols { columns: 2; column-gap: 24px; display: block !important; }
.cols li { break-inside: avoid; margin-bottom: 7px; }
.foot-legal { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); }
.foot-legal > div { display: grid; gap: 6px; max-width: 820px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-links a { color: #fff; }
.credit { margin: 0; }
@media (max-width: 900px) { .foot-row { grid-template-columns: 1fr 1fr; } .foot-us { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-row { grid-template-columns: 1fr; } .cols { columns: 2; } .foot-states { grid-template-columns: 1fr 1fr; } .foot-cta .ctas .btn { width: 100%; } }
