/*
 * Econochanta
 * Hoja de estilos pensada primero para escritorio (mesa de dos paneles) y adaptada después
 * a pantallas chicas: los ajustes para tablet y celular están al final con max-width.
 *
 * Reglas del sistema:
 * - Oscuro por defecto, con variante clara (data-theme="light"). Sin blanco ni negro puros.
 * - Look Mosaico: azul noche, acento azul violáceo, esquinas redondeadas y recuadros con calor.
 * - Verde y rojo indican si un dato mejora o empeora. Los números van en tipografía monoespaciada.
 * - Movimiento mínimo, apagado con prefers-reduced-motion.
 */

/* ---------- Tokens ---------- */

:root {
  --bg: #090d1a;
  --surface: #101731;
  --surface-2: #18224a;
  --text: #eaf0ff;
  --text-2: #9aa9cf;
  --line: #25335f;
  --control: #5f74ad;
  --head: #eaf0ff;
  --accent: #7c9cff;
  --accent-ink: #0a1030;
  --ring: #74acdf;
  --celeste: #74acdf;
  --up: #4ee0a1;
  --upbg: rgb(78 224 161 / .14);
  --down: #ff7b72;
  --downbg: rgb(255 123 114 / .14);
  --ok: #4ee0a1;
  --warn: #f0c05a;
  --bad: #ff7b72;
  --crit: #ff8a9a;
  --c1: #7c9cff;
  --c2: #74acdf;
  --c3: #ffb54a;
  --c4: #ff8fa3;
  /* paleta de tortas y mosaicos: 8 categorias y un gris azulado para "otros" */
  --p1: #ffb54a; --p2: #5ad7c1; --p3: #7c9cff; --p4: #ff8fa3; --p5: #b392f0; --p6: #9be564; --p7: #ffd166; --p8: #6ec5ff; --p9: #8ea0c9;
  --tmap-ink: #0a1030;
  --glow: rgb(124 156 255 / .2);
  --sombra: 0 18px 44px rgb(0 0 0 / .35);

  --r: 16px;
  --font: ui-sans-serif, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --ancho: 1400px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #e8edfa;
  --surface: #ffffff;
  --surface-2: #f0f3fc;
  --text: #0f1733;
  --text-2: #4d5a82;
  --line: #cdd6ee;
  --control: #6a7aa8;
  --head: #0f1733;
  --accent: #3452d6;
  --accent-ink: #ffffff;
  --ring: #1b6fa8;
  --celeste: #1b6fa8;
  --up: #0f7a52;
  --upbg: rgb(15 122 82 / .12);
  --down: #b8322a;
  --downbg: rgb(184 50 42 / .1);
  --ok: #0f7a52;
  --warn: #8a5a00;
  --bad: #b8322a;
  --crit: #8f1d2c;
  --c1: #3452d6;
  --c2: #1b6fa8;
  --c3: #a35a00;
  --c4: #b02a6b;
  --p1: #a35a00; --p2: #0b7a6e; --p3: #3452d6; --p4: #b02a6b; --p5: #6b3fb5; --p6: #4d7a00; --p7: #8a6a00; --p8: #1b6fa8; --p9: #56648c;
  --tmap-ink: #ffffff;
  --glow: rgb(52 82 214 / .12);
  --sombra: 0 18px 44px rgb(15 23 51 / .14);
  color-scheme: light;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100dvh;
  padding-bottom: 24px;
}

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 40;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 14px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* ---------- Cabecera y navegación ---------- */

.top { max-width: var(--ancho); margin: 0 auto; padding: 14px 16px 4px; }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top__btns { display: flex; gap: 8px; align-items: center; }
.brand { font-family: var(--mono); font-size: 18px; font-weight: 700; letter-spacing: .01em; color: var(--accent); }
.brand::before { content: "> "; }
.top__date { font-size: 13px; color: var(--text-2); }
.top__date::first-letter { text-transform: uppercase; }
.banner { margin-top: 12px; padding: 10px 12px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); font-size: 13px; }

.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; gap: 2px; max-width: var(--ancho); margin: 0 auto; padding: 0 16px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; margin-bottom: -1px;
  white-space: nowrap; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--text-2); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.subnav {
  display: flex; gap: 6px; max-width: var(--ancho); margin: 0 auto; padding: 10px 16px 2px;
  overflow-x: auto; scrollbar-width: none;
}
.subnav[hidden] { display: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; white-space: nowrap;
  font-size: 13px; color: var(--text-2); text-decoration: none; background: var(--surface); border: 1px solid var(--control);
}
.subnav a:hover { border-color: var(--accent); color: var(--text); }
.subnav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }

main { max-width: var(--ancho); margin: 0 auto; padding: 12px 16px 24px; outline: none; }
.vista { display: grid; gap: 14px; }
.vista[hidden] { display: none; }
.vista > * { min-width: 0; }
.vista--inner { gap: 14px; }

/* pantallas de lectura y formularios: columna angosta centrada */
#vista-miplata, #vista-perfil, #vista-calcular, #vista-alertas, #vista-noticias, #vista-mas { max-width: 680px; width: 100%; margin-inline: auto; }

.title { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; margin-top: 4px; }
.sub, .lead { color: var(--text-2); max-width: 70ch; }
.label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.hint { font-size: 13px; color: var(--text-2); margin-top: 8px; }

.front-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.front-head__stamp { font-size: 13px; color: var(--text-2); }
.front-head__acc { display: grid; justify-items: end; gap: 6px; flex: none; }
.front-head .sub { margin-top: 6px; }

/* ---------- Componentes ---------- */

.card { background: var(--surface); border: 1px solid var(--line); padding: 18px; }

.btn {
  min-height: 40px; padding: 0 18px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 700; cursor: pointer;
}
.btn--ghost { background: transparent; color: var(--accent); }
.btn--sm { min-height: 40px; padding: 0 14px; }
.btn--xs { min-height: 34px; min-width: 44px; padding: 0 12px; font-size: 13px; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }

.icon-btn {
  min-height: 40px; min-width: 44px; padding: 0 14px;
  border: 1px solid var(--control); background: var(--surface); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips--sm { margin-bottom: 8px; }
.chip {
  flex: 0 0 auto; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--control); background: var(--surface); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.chips--sm .chip { min-height: 34px; font-size: 13px; padding: 0 12px; }
.chip--mini { min-height: 30px; font-size: 13px; padding: 0 10px; }

.link { display: inline-flex; align-items: center; min-height: 40px; margin-top: 8px; color: var(--accent); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }
.link--btn { background: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; padding: 0; }

.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid currentColor; margin-left: 8px; vertical-align: 1px; }
.pill[data-t="ok"] { color: var(--ok); }
.pill[data-t="warn"] { color: var(--warn); }
.pill[data-t="bad"] { color: var(--bad); }
.pill--tema { margin-left: 0; font-weight: 600; }

/* variación: flecha y color */
.delta { display: inline-block; padding: 2px 8px; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.delta.up { background: var(--upbg); color: var(--up); }
.delta.down { background: var(--downbg); color: var(--down); }
.delta.flat { color: var(--text-2); }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--text-2); }

.skeleton { background: linear-gradient(90deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 60%, var(--surface)), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty__title { font-weight: 700; font-size: 17px; }
.empty__text { color: var(--text-2); margin-top: 4px; }

/* formularios */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field__help { font-size: 13px; color: var(--text-2); }
.form__actions { display: flex; gap: 10px; flex-wrap: wrap; }
input[type="number"], .mkt__search, .mesa__buscar {
  width: 100%; min-height: 44px; padding: 8px 12px;
  background: var(--bg); color: var(--text); border: 1px solid var(--control);
  font: inherit;
}
input[type="number"] { min-height: 48px; font-family: var(--mono); font-size: 17px; font-variant-numeric: tabular-nums; }
input[type="number"]:focus, .mkt__search:focus, .mesa__buscar:focus { border-color: var(--accent); }
.file { width: 100%; min-height: 48px; padding: 10px; border: 1px dashed var(--control); background: var(--bg); color: var(--text); font: inherit; }
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; }
.switch input { width: 22px; height: 22px; accent-color: var(--accent); }

/* tablas */
.tabla__wrap { overflow-x: auto; }
.tabla__wrap--alto { max-height: 440px; overflow-y: auto; }
.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla th, .tabla td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tabla th { font-size: 13px; color: var(--text-2); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.tabla .num, .tabla td.num, .tabla th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabla tbody tr:last-child td { border-bottom: 0; }
.tabla tr.total td { font-weight: 700; border-top: 2px solid var(--head); }
.tabla--factores td, .tabla--factores th { padding-left: 4px; padding-right: 4px; }
.tabla--factores td:first-child { min-width: 110px; }
.tabla--factores .delta { font-size: 12px; padding: 2px 4px; }
.mkt__sym { font-weight: 700; font-family: var(--mkt, var(--mono)); }
.mkt__ctl { display: grid; gap: 8px; margin-bottom: 8px; }

/* gráficos */
.chart { min-height: 120px; }
.chart__wrap { position: relative; }
.chart__svg { width: 100%; height: auto; display: block; touch-action: pan-y; overflow: visible; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__zero { stroke: var(--text-2); stroke-width: 1.2; }
.chart__tick { fill: var(--text-2); font-size: 13px; font-family: var(--font); }
.chart__guide { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 3 3; }
.chart__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; font-size: 13px; }
.chart__legend li { display: inline-flex; align-items: center; gap: 6px; }
.chart__legend strong { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.chart__tip {
  position: absolute; top: 4px; transform: translateX(-50%); pointer-events: none; z-index: 5;
  background: var(--surface); border: 1px solid var(--line); padding: 8px 10px;
  box-shadow: 0 6px 20px rgb(0 0 0 / .3); font-size: 13px; min-width: 120px;
}
.chart__tiprow { display: flex; justify-content: space-between; gap: 12px; }
.chart__tiprow b { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.chart__empty { color: var(--text-2); padding: 24px 0; text-align: center; }
.chart__error { display: grid; gap: 8px; justify-items: start; padding: 12px 0; color: var(--text-2); }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.chartcard--full { grid-column: 1 / -1; }
.chartcard__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chartcard__head .label { margin-bottom: 8px; }
.chartcard__actions { margin-top: -6px; }
.datos { margin-top: 8px; }
.datos summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 13px; font-weight: 700; color: var(--accent); }

/* ---------- Mesa: lista de indicadores y detalle ---------- */

.mesa { display: grid; grid-template-columns: 360px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); min-height: 560px; }
.mesa__lista { border-right: 1px solid var(--line); max-height: calc(100dvh - 76px); overflow-y: auto; position: sticky; top: 49px; align-self: start; background: var(--surface); }
.mesa__top { position: sticky; top: 0; z-index: 3; background: var(--surface); padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.mesa__sub { color: var(--text-2); font-size: 13px; }
.mesa__buscar { margin-top: 8px; min-height: 40px; padding: 0 10px; }
.mesa__grupo { position: sticky; top: var(--top-h, 150px); z-index: 2; margin: 0; background: var(--bg); color: var(--accent); padding: 6px 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.mesa__vacio { padding: 16px 14px; color: var(--text-2); }

.fila {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; grid-template-rows: auto auto; align-items: center; gap: 2px 10px;
  width: 100%; min-height: 58px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.fila:hover { background: var(--surface-2); }
.fila[aria-current="true"] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.fila:focus-visible { outline-offset: -2px; }
.fila__nombre { grid-column: 1; grid-row: 1; font-weight: 600; overflow-wrap: anywhere; }
.fila__val { grid-column: 2; grid-row: 1; font-family: var(--mono); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fila__msg { grid-column: 2 / span 2; color: var(--text-2); font-weight: 400; }
.fila__spark { grid-column: 3; grid-row: 1 / span 2; width: 64px; height: 28px; }
.fila__meta { grid-column: 1; grid-row: 2; color: var(--text-2); font-size: 13px; }
.fila__chg { grid-column: 2; grid-row: 2; font-family: var(--mono); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.mesa__detalle { padding: 22px 28px 36px; min-width: 0; outline: none; }
.mesa__volver { display: none; margin-bottom: 12px; min-height: 44px; padding: 0 14px; background: var(--surface-2); border: 1px solid var(--control); color: var(--text); font: inherit; cursor: pointer; }
.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.mesa__titulo { margin: 4px 0 2px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.big { font-family: var(--mono); font-weight: 700; font-size: clamp(36px, 5.5vw, 64px); line-height: 1.05; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pastillas { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.pastilla { padding: 4px 10px; border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; background: var(--surface); }
.pastilla.up { color: var(--up); }
.pastilla.down { color: var(--down); }
.pastilla.flat { color: var(--text-2); }
.mesa__grafico { border: 1px solid var(--line); background: var(--surface); padding: 14px 14px 6px; margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 14px 0; }
.stat { background: var(--surface); padding: 10px 12px; }
.stat span { display: block; color: var(--text-2); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.stat b { font-family: var(--mono); font-size: 16px; font-variant-numeric: tabular-nums; }
.mesa__pie { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.mesa__pie .hint { margin: 0; }

/* colores con sentido: verde mejora, rojo empeora, gris no se califica */
.tono-bien { color: var(--up); }
.tono-mal { color: var(--down); }
.tono-neutro { color: var(--text-2); }
.pastilla.tono-bien { color: var(--up); }
.pastilla.tono-mal { color: var(--down); }
.pastilla.tono-neutro { color: var(--text-2); }
.pastilla.viejo { color: var(--warn); border-color: var(--warn); }
.fila__meta--viejo { color: var(--warn); }

.mesa__grupos { margin: 8px 0 0; padding-bottom: 2px; }
.mesa__cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.mesa__acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.mesa__frase { margin-top: 6px; max-width: 62ch; font-size: 15px; }
.fila--resumen { min-height: 52px; grid-template-columns: minmax(0, 1fr); }
.fila--resumen .fila__nombre { color: var(--accent); }
.fila--resumen .fila__meta { grid-column: 1; }

/* resumen */
.resumen__frases { display: grid; gap: 10px; margin: 12px 0 4px; max-width: 70ch; }
.resumen__frases li { font-size: 17px; line-height: 1.45; padding-left: 14px; border-left: 3px solid var(--accent); }
.resumen__sub { margin: 22px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tarjeta {
  display: grid; gap: 2px; align-content: start; text-align: left; min-height: 112px; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--line); color: inherit; font: inherit; cursor: pointer;
}
.tarjeta:hover { border-color: var(--accent); }
.tarjeta__nombre { font-size: 13px; font-weight: 700; color: var(--text-2); }
.tarjeta__val { font-family: var(--mono); font-weight: 700; font-size: 20px; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tarjeta__val--msg { color: var(--text-2); font-weight: 400; font-size: 14px; }
.tarjeta__chg { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.tarjeta__spark { width: 100%; height: 26px; margin-top: 4px; display: block; }
.leyenda { margin-top: 20px; font-size: 13px; color: var(--text-2); max-width: 70ch; }

/* ---------- Pantallas ---------- */

/* Tu plata */
.hero__num { font-family: var(--mono); font-weight: 700; font-size: clamp(44px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.hero__num--sm { font-size: 40px; }
.hero__num[data-signo="neg"] { color: var(--bad); }
.hero__num[data-signo="pos"] { color: var(--ok); }
.hero__sub { margin-top: 6px; color: var(--text-2); }
.hero__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.hero__meta dt { font-size: 13px; color: var(--text-2); }
.hero__meta dd { font-family: var(--mono); font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; }
.note__text { font-size: 17px; line-height: 1.5; }

.gauge { display: grid; justify-items: center; position: relative; }
.gauge__svg { width: min(100%, 320px); height: auto; overflow: visible; }
.gauge__track, .gauge__value { fill: none; stroke-width: 12; stroke-linecap: butt; }
.gauge__track { stroke: var(--surface-2); }
.gauge__value { stroke: var(--accent); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .9s cubic-bezier(.16, 1, .3, 1), stroke .3s; }
.gauge__value[data-mood="tranquilo"] { stroke: var(--ok); }
.gauge__value[data-mood="atento"] { stroke: var(--warn); }
.gauge__value[data-mood="turbulento"] { stroke: var(--bad); }
.gauge__value[data-mood="critico"] { stroke: var(--crit); }
.gauge__read { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; }
.gauge__score { font-family: var(--mono); font-weight: 700; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.gauge__mood { font-weight: 700; text-transform: capitalize; }

.factors { margin-top: 14px; border-top: 1px solid var(--line); }
.factors li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.factors li:last-child { border-bottom: 0; padding-bottom: 0; }
.factors__name { font-weight: 600; }
.factors__val { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.factors__note { grid-column: 1 / -1; font-size: 13px; color: var(--text-2); }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quotes li { background: var(--surface-2); padding: 12px; display: grid; gap: 2px; }
.quotes__name { font-size: 13px; color: var(--text-2); font-weight: 600; }
.quotes__val { font-family: var(--mono); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.quotes__gap { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.spark { margin-top: 14px; }
.spark svg { width: 100%; height: auto; display: block; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* Alertas */
.alerts { display: grid; gap: 8px; }
.alerts li { padding: 12px; background: var(--surface-2); }
.alerts li[data-on="1"] { border: 1px solid var(--warn); }
.alerts__title { font-weight: 700; }
.alerts__body { font-size: 14px; color: var(--text-2); }
.alert-config { display: grid; gap: 12px; }
.alert-config li { background: var(--surface); border: 1px solid var(--line); padding: 16px; }
.alert-config__head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.alert-config__name { font-weight: 700; }
.alert-config__now { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* Calculadoras */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface-2); padding: 4px; }
.tab { min-height: 44px; border: 0; background: transparent; color: var(--text-2); font: inherit; font-weight: 700; cursor: pointer; padding: 0 8px; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); }
.result { display: grid; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.result__verdict { font-size: 19px; font-weight: 700; line-height: 1.3; }
.result__rows { display: grid; gap: 6px; }
.result__rows div { display: flex; justify-content: space-between; gap: 12px; }
.result__rows dt { color: var(--text-2); }
.result__rows dd { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

/* Noticias */
.filters { display: grid; gap: 8px; }
.news-sec { padding-bottom: 8px; }
.news-list { display: grid; }
.news-list li { border-top: 1px solid var(--line); }
.news-list li:first-child { border-top: 0; }
.news { display: grid; gap: 4px; padding: 12px 0; color: inherit; text-decoration: none; }
a.news:hover .news__title { text-decoration: underline; text-underline-offset: 3px; }
.news__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--text-2); }
.news__medio { font-weight: 700; color: var(--text); }
.news__title { font-size: 16px; line-height: 1.35; font-weight: 600; }

/* tortas de ingresos y gastos */
.estado-extras { display: grid; gap: 14px; margin-top: 18px; }
.estado-extras__cab { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.estado-extras__cab .sub { margin-top: 4px; }
.tortas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pie { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 18px; align-items: center; }
.pie__svg { width: 100%; height: auto; display: block; }
.pie__pieza { transition: opacity .15s; }
.pie__pieza--tenue { opacity: .3; }
.pie__c1 { font-size: 12px; fill: var(--text-2); font-family: var(--font); }
.pie__c2 { font-size: 15px; font-weight: 700; fill: var(--text); font-family: var(--mono); }
.pie__leyenda { list-style: none; display: grid; gap: 2px; }
.pie__item { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 52px; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.pie__color { width: 12px; height: 12px; }
.pie__nombre { overflow-wrap: anywhere; }
.pie__valor, .pie__pct { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.pie__pct { color: var(--text-2); }
.torta__pie { margin-top: 10px; font-size: 13px; color: var(--text-2); }
.torta__detalle { margin-top: 10px; }
.torta__detalle > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--accent); min-height: 40px; display: flex; align-items: center; }
.torta__detalle .tabla { margin-top: 4px; }

/* buscador de la portada */
.buscador { position: relative; max-width: 640px; }
.buscador__input { width: 100%; min-height: 48px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--control); }
.buscador__input::placeholder { color: var(--text-2); }
.buscador__lista { list-style: none; display: grid; margin-top: 6px; background: var(--surface); border: 1px solid var(--line); max-height: 420px; overflow-y: auto; }
.buscador__lista[hidden] { display: none; }
.buscador__lista a { display: grid; gap: 1px; padding: 10px 14px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); min-height: 48px; }
.buscador__lista li:last-child a { border-bottom: 0; }
.buscador__lista a:hover, .buscador__lista a:focus-visible { background: var(--surface-2); outline-offset: -2px; }
.buscador__nombre { font-weight: 700; }
.buscador__donde { font-size: 13px; color: var(--celeste); }
.buscador__desc { font-size: 13px; color: var(--text-2); }
.buscador__vacio { padding: 12px 14px; color: var(--text-2); }

/* que mide y como se lee */
.guia { margin: 14px 0 4px; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); max-width: 78ch; }
.guia__titulo { cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: 14px; list-style: none; min-height: 44px; display: flex; align-items: center; }
.guia__titulo::-webkit-details-marker { display: none; }
.guia__titulo::before { content: "+"; display: inline-block; width: 18px; font-family: var(--mono); color: var(--accent); }
.guia[open] > .guia__titulo::before { content: "−"; }
.guia__p { padding: 0 14px 10px 32px; font-size: 15px; line-height: 1.5; color: var(--text); }
.guia__ojo { color: var(--text-2); }
.guia .link { display: inline-block; margin: 0 14px 12px 32px; }
.glosario { display: grid; gap: 8px; }
.glosario .guia { margin: 0; }
#vista-glosario { max-width: 820px; width: 100%; margin-inline: auto; }

/* Más */
.menu { display: grid; gap: 10px; }
.menu a { display: grid; gap: 2px; padding: 16px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; min-height: 64px; }
.menu a:hover { border-color: var(--accent); }
.menu span { color: var(--text-2); font-size: 14px; }
.menu--grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* ======================================================================
   Look Mosaico: fondo con brillo, esquinas redondeadas, pastillas y recuadros con calor.
   Solo cambia la apariencia; la estructura de la app es la misma.
   ====================================================================== */

body {
  background: radial-gradient(1100px 560px at 82% -8%, var(--glow), transparent 62%), var(--bg);
  background-attachment: fixed;
}

.brand { font-family: var(--font); font-size: 22px; letter-spacing: -0.03em; color: var(--text); }
.brand::before { content: none; }
.brand span { color: var(--accent); }

/* navegación en pastillas */
.nav { background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); gap: 6px; }
.nav a { margin: 5px 0; min-height: 38px; border-bottom: 0; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.subnav a { border-radius: 999px; border-color: var(--line); transition: border-color .2s, background .2s; }
.subnav a:hover { background: var(--surface); }
.subnav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* formas */
.card, .guia, .alert-config li, .alerts li, .quotes li, .stats, .mesa__grafico, .banner { border-radius: var(--r); }
.card { box-shadow: var(--sombra); }
.btn, .icon-btn, .chip, .tab, .pastilla { border-radius: 999px; }
.mesa__volver { border-radius: 999px; }
.btn--ghost { border-color: var(--control); }
.btn--ghost:hover, .icon-btn:hover { background: var(--surface-2); }
input[type="number"], .mkt__search, .mesa__buscar, .file { border-radius: 12px; }
.buscador__input { border-radius: 14px; border-color: var(--control); }
.buscador__lista { border-radius: 14px; box-shadow: var(--sombra); }
.chart__tip { border-radius: 10px; }
.tabs { border-radius: 999px; }
.stats { overflow: hidden; }
.skip { border-radius: 10px; }

/* mesa */
.mesa { border-radius: 22px; overflow: clip; box-shadow: var(--sombra); border-color: var(--line); }
.mesa__grupo { background: var(--surface-2); }
.fila { transition: background .2s; }
.fila[aria-current="true"] { box-shadow: inset 4px 0 0 var(--accent); }
.mesa__grafico { border-color: var(--line); }
.pastilla.tono-bien { background: var(--upbg); border-color: transparent; }
.pastilla.tono-mal { background: var(--downbg); border-color: transparent; }
.pastilla.tono-neutro, .pastilla.flat { background: var(--surface-2); border-color: transparent; }
.delta { border-radius: 999px; }
.resumen__frases li { border-left-width: 4px; border-radius: 2px; }

/* recuadros con calor: el color dice si el ultimo movimiento ayuda o complica, y es mas intenso cuanto mas se movio */
.tarjetas { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tarjeta {
  --k: 0;
  position: relative; overflow: hidden; min-height: 128px; padding: 14px 16px; color: #fff;
  border: 1px solid rgb(255 255 255 / .08); border-radius: 18px;
  background: hsl(222 calc(30% + 8% * var(--k)) calc(27% + 5% * var(--k)));
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, filter .25s;
}
.tarjeta.calor-bien { background: hsl(156 calc(48% + 24% * var(--k)) calc(18% + 12% * var(--k))); }
.tarjeta.calor-mal { background: hsl(6 calc(52% + 28% * var(--k)) calc(26% + 12% * var(--k))); }
.tarjeta:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgb(0 0 0 / .4); filter: brightness(1.12); border-color: rgb(255 255 255 / .22); }
.tarjeta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .22), transparent 55%);
}
.tarjeta:hover::after { opacity: 1; }
.tarjeta > * { position: relative; z-index: 1; }
.tarjeta__nombre { color: #fff; opacity: .88; }
.tarjeta__val { color: #fff; font-size: 24px; }
.tarjeta__val--msg { color: rgb(255 255 255 / .8); }
.tarjeta .tarjeta__chg { color: #fff; }
.tarjeta__spark { opacity: .6; }
.tarjeta__spark path, .tarjeta__spark polyline { stroke: #fff !important; }

/* menus de secciones como recuadros */
.menu a {
  position: relative; overflow: hidden; border-radius: 18px; border-color: var(--line); min-height: 78px; padding: 16px 18px;
  background: linear-gradient(140deg, var(--surface-2), color-mix(in srgb, var(--accent) 16%, var(--surface)));
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s;
}
.menu a:hover { transform: translateY(-3px); box-shadow: var(--sombra); border-color: var(--accent); }
.menu a strong { font-size: 16px; letter-spacing: -0.01em; }
.menu a::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%);
}
.menu a:hover::after { opacity: 1; }

/* mosaico de gastos e ingresos (alternativa a la torta) */
.estado-extras { gap: 8px; }
.estado-extras .chips { margin-bottom: 0; }
.tmap { position: relative; width: 100%; height: 340px; border-radius: 14px; overflow: hidden; background: var(--bg); }
.tmap__celda {
  position: absolute; overflow: hidden; padding: 8px 10px; border: 2px solid var(--surface); border-radius: 10px; color: var(--tmap-ink); font-weight: 700;
  transition: left .7s cubic-bezier(.2, .8, .2, 1), top .7s cubic-bezier(.2, .8, .2, 1), width .7s cubic-bezier(.2, .8, .2, 1), height .7s cubic-bezier(.2, .8, .2, 1), filter .2s;
}
.tmap__celda:hover { filter: brightness(1.12); }
.tmap__c1 { font-size: 13px; line-height: 1.2; }
.tmap__c2 { font: 700 14px var(--mono); margin-top: 3px; }
.tmap__c3 { font: 11px var(--mono); opacity: .8; }
.tmap__celda--chica .tmap__c1, .tmap__celda--chica .tmap__c3 { display: none; }
.tmap__celda--chica .tmap__c2 { font-size: 12px; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .tarjeta, .menu a, .tmap__celda { transition: none; }
  .tarjeta:hover, .menu a:hover { transform: none; }
}

/* ======================================================================
   Adaptación a pantallas más chicas (el diseño base es el de escritorio)
   ====================================================================== */

/* tablet y notebooks angostas */
@media (max-width: 1100px) {
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .tortas { grid-template-columns: minmax(0, 1fr); }
  .mesa { grid-template-columns: 320px minmax(0, 1fr); }
  .mesa__detalle { padding: 20px; }
}

/* celular y tablet vertical: la lista y el detalle se alternan */
@media (max-width: 820px) {
  .mesa { grid-template-columns: 1fr; border-left: 0; border-right: 0; min-height: 0; }
  .mesa__lista { position: static; max-height: none; border-right: 0; }
  .mesa__detalle { display: none; padding: 16px; }
  .mesa.showing .mesa__lista { display: none; }
  .mesa.showing .mesa__detalle { display: block; }
  .mesa__volver { display: inline-flex; align-items: center; }
  .stats .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tabla--factores th:nth-child(4), .tabla--factores td:nth-child(4) { display: none; }
}

@media (max-width: 560px) {
  .top__date { display: none; }
  .tarjetas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resumen__frases li { font-size: 16px; }
  .pie { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .pie__svg { max-width: 220px; }
  .pie__leyenda { width: 100%; }
  .top, main { padding-left: 12px; padding-right: 12px; }
  .nav { padding: 0 8px; }
  .nav a { padding: 0 12px; }
  .subnav { padding: 10px 8px 2px; }
  .front-head { flex-direction: column; align-items: stretch; }
  .front-head__acc { justify-items: start; }
  .title { font-size: 22px; }
  .card { padding: 14px; }
  .mesa__titulo { font-size: 20px; }
  .mesa__pie { flex-direction: column; align-items: flex-start; }
}

/* pantallas táctiles: objetivos de al menos 44 px */
@media (pointer: coarse) {
  .btn, .btn--sm, .icon-btn, .chip, .chips--sm .chip, .subnav a { min-height: 44px; }
  .btn--xs { min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ======================================================================
   Estructura y detalles tomados de la competencia
   ====================================================================== */

/* un punto de color por tipo de dolar, el mismo en la lista, las tarjetas y el grafico */
.punto { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; flex: none; box-shadow: 0 0 0 2px rgb(255 255 255 / .85); }
.fila .punto, .tabla .punto { box-shadow: none; }

/* tarjetas: compra y venta, fuente y hora del dato */
.tarjeta__cv { font: 12px var(--mono); color: rgb(255 255 255 / .9); }
.tarjeta__fuente { font-size: 12px; color: rgb(255 255 255 / .72); margin-top: 2px; }

/* aviso de primera vez */
.primera { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--celeste); background: color-mix(in srgb, var(--celeste) 10%, var(--surface)); }
.primera[hidden] { display: none; }
.primera p { color: var(--text-2); margin-top: 2px; max-width: 62ch; }
.primera__acc { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.primera .btn--ghost { display: inline-flex; align-items: center; text-decoration: none; }

/* tabla de todos los indicadores */
.tabla__wrap--tabla { max-height: 72dvh; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.tabla--ind { min-width: 760px; }
.tabla--ind thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); }
.tabla--ind td, .tabla--ind th { padding: 8px 12px; }
.tabla--ind .tabla__grupo th { background: var(--surface-2); color: var(--celeste); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-align: left; position: static; }
.tabla__link { color: var(--text); text-decoration: none; font-weight: 600; }
.tabla__link:hover { color: var(--accent); text-decoration: underline; }
.tabla__msg { color: var(--text-2); }
.tono-viejo { color: var(--warn); }

/* celular y tablet vertical: barra inferior con los accesos principales */
.tabbar { display: none; }
.solo-movil { display: none; align-items: center; text-decoration: none; }
@media (max-width: 820px) {
  .nav { display: none; }
  .solo-movil { display: inline-flex; }
  .icon-btn[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
  .subnav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-bottom: 8px; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 54px; padding: 4px 2px; border-radius: 14px; color: var(--text-2); text-decoration: none; font-size: 12px; font-weight: 700; transition: color .2s, background .2s; }
  .tabbar a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current="page"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
}

/* ======================================================================
   Bloque "ahora": unidades, compra y venta, buscador global, detalle en dos columnas
   ====================================================================== */

.skip { min-height: 44px; display: inline-flex; align-items: center; }
.icono { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
#abrir-buscar { display: inline-flex; align-items: center; justify-content: center; padding: 0; width: 44px; }

/* unidad en palabras debajo de cada numero */
.tarjeta__unidad { font-size: 12px; color: rgb(255 255 255 / .78); line-height: 1.25; margin-top: -1px; }
.big__unidad { color: var(--text-2); font-size: 14px; margin-top: 2px; }

/* compra y venta, una debajo de la otra */
.tarjeta__cv { display: grid; gap: 0; }

/* paleta de busqueda (Ctrl+K) */
.paleta-fondo { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; background: rgb(2 4 10 / .7); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.paleta-fondo[hidden] { display: none; }
.paleta { width: min(640px, 92vw); background: var(--surface); border: 1px solid var(--control); border-radius: 18px; overflow: hidden; box-shadow: var(--sombra); }
.paleta__input { width: 100%; min-height: 56px; padding: 0 20px; font: inherit; font-size: 18px; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--line); }
.paleta__input:focus { outline: none; border-bottom-color: var(--accent); }
.paleta__lista { list-style: none; max-height: 52vh; overflow-y: auto; padding: 6px; }
.paleta__lista a { display: grid; gap: 1px; padding: 10px 14px; color: inherit; text-decoration: none; border-radius: 12px; min-height: 48px; }
.paleta__lista a:hover, .paleta__lista a:focus-visible { background: var(--surface-2); outline-offset: -2px; }
.paleta__pie { padding: 9px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }

/* detalle: en pantallas anchas el grafico va a la izquierda y la explicacion a la derecha */
.mesa__rejilla { display: grid; gap: 18px; margin-top: 6px; }
.mesa__principal, .mesa__lado { min-width: 0; }
.mesa__lado .guia { margin-top: 14px; }
@media (min-width: 1180px) {
  .mesa__rejilla { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; }
  .mesa__lado { position: sticky; top: 72px; }
  .mesa__lado .guia { margin-top: 0; }
}
.mesa__pie { flex-wrap: wrap; }

/* pagina "Como se calcula" */
#vista-metodologia { max-width: 860px; width: 100%; margin-inline: auto; }
.metodo { display: grid; gap: 10px; }
.metodo li { padding-left: 14px; border-left: 3px solid var(--celeste); line-height: 1.5; }

/* celular: portada mas compacta para que los dolares se vean en la primera pantalla */
@media (max-width: 560px) {
  .front-head { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .front-head > div:first-child { flex: 1 1 100%; }
  .front-head .sub { display: none; }
  .front-head__acc { flex: 1 1 100%; display: flex; flex-direction: row; justify-content: space-between; align-items: center; }
  .primera { padding: 12px 14px; }
  .primera p { display: none; }
}

/* encabezado en celular: los botones no se parten en dos lineas */
.top__btns .icon-btn { white-space: nowrap; }
@media (max-width: 560px) {
  .top__btns { gap: 6px; }
  .top__btns .icon-btn { padding: 0 12px; }
  #abrir-buscar { padding: 0; width: 44px; }
}

/* ======================================================================
   Analisis: notas con contexto, indicadores en vivo y quien se ve afectado
   ====================================================================== */

#vista-analisis { max-width: 900px; width: 100%; margin-inline: auto; }
.notas { display: grid; gap: 14px; }
.nota-card {
  display: grid; gap: 6px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); color: inherit; text-decoration: none;
  background: linear-gradient(140deg, var(--surface-2), color-mix(in srgb, var(--celeste) 12%, var(--surface)));
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s;
}
.nota-card:hover { transform: translateY(-3px); box-shadow: var(--sombra); border-color: var(--celeste); }
.nota-card__cab, .nota__cab { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.nota-card__tema { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--celeste); }
.nota-card__fecha { font-size: 13px; color: var(--text-2); }
.nota-card__borrador { font-size: 13px; font-weight: 700; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--warn); color: var(--warn); }
.nota-card__titulo { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.nota-card__bajada { color: var(--text-2); line-height: 1.45; }
.principios { margin-top: 6px; }

.nota { display: grid; gap: 14px; max-width: 760px; }
.nota__titulo { font-size: clamp(26px, 4vw, 38px); line-height: 1.12; letter-spacing: -0.025em; outline: none; }
.nota__bajada { font-size: 19px; line-height: 1.45; color: var(--text-2); }
.nota__p { font-size: 17px; line-height: 1.65; max-width: 68ch; }
.nota__sub { margin-top: 14px; font-size: 20px; letter-spacing: -0.01em; }
.nota__datos .nota__sub, .quien .nota__sub, .nota__lista .nota__sub { margin-top: 6px; margin-bottom: 8px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.nota__datos { display: grid; gap: 8px; }
.nota__lista ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.nota__lista li { line-height: 1.5; padding-left: 4px; }
.nota__fuentes a { color: var(--celeste); overflow-wrap: anywhere; }
.nota__aviso { margin-top: 0; }
.nota__pie { padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.nota__pie p { color: var(--text-2); line-height: 1.5; margin-bottom: 6px; }

.quien { display: grid; gap: 10px; }
.quien__grupos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quien__grupo { padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--celeste); }
.quien__grupo--1 { border-top-color: var(--p1); }
.quien__grupo h4 { font-size: 15px; margin-bottom: 8px; }
.quien__grupo ul { display: grid; gap: 8px; padding-left: 18px; list-style: disc; }
.quien__grupo li { line-height: 1.45; }
.quien__matiz { color: var(--text-2); line-height: 1.5; max-width: 68ch; }
.quien__matiz b { color: var(--text); }
@media (max-width: 700px) { .quien__grupos { grid-template-columns: 1fr; } .nota__p { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .nota-card { transition: none; } .nota-card:hover { transform: none; } }
