.viz-root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface-1: #fcfcfb;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11,11,11,0.10);
  --up: #006300;
  --down: #d03b3b;
  --accent: #2a78d6;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --band: rgba(42,120,214,0.14);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .viz-root {
    color-scheme: dark;
    --page: #17181a; --surface-1: #222326;
    --text-primary: #f0efec; --text-secondary: #c3c2b7; --muted: #898781;
    --grid: #333438; --axis: #404146; --border: rgba(255,255,255,0.10);
    --up: #0ca30c; --down: #e66767; --accent: #3987e5;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s8: #e66767;
    --band: rgba(57,135,229,0.20);
  }
}
:root[data-theme="dark"] .viz-root {
  color-scheme: dark;
  --page: #17181a; --surface-1: #222326;
  --text-primary: #f0efec; --text-secondary: #c3c2b7; --muted: #898781;
  --grid: #333438; --axis: #404146; --border: rgba(255,255,255,0.10);
  --up: #0ca30c; --down: #e66767; --accent: #3987e5;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s8: #e66767;
  --band: rgba(57,135,229,0.20);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.viz-root {
  background: var(--page); color: var(--text-primary);
  min-height: 100vh; line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-secondary); }
.small { font-size: 0.85rem; }
h1 { font-size: 1.6rem; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; margin: 0 0 4px; }
section { margin: 28px 0; scroll-margin-top: calc(var(--hdr, 110px) + 56px); }
section > p.muted, .card-head p { margin: 0 0 12px; }

.top { position: sticky; top: 0; z-index: 10; background: var(--page); border-bottom: 1px solid var(--border); }
.top-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 6px; }
.sub { margin: 2px 0 0; color: var(--text-secondary); font-size: 0.92rem; }
.top-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }

.btn { font: inherit; border: 1px solid var(--border); background: var(--surface-1); color: var(--text-primary); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.btn.ghost:hover { background: var(--border); }
a.btn { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; }

.cards { display: grid; gap: 12px; }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.qcard { background: var(--surface-1); border: 1px solid var(--border); border-top: 3px solid var(--c); border-radius: 12px; padding: 14px 16px 12px; display: flex; flex-direction: column; }
.qcard .qhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.qcard .name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; }
.qcard .key { display: none; }
.qcard .time { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.qcard .tag { font-size: 0.8rem; color: var(--text-secondary); margin-top: 1px; }
.qcard .cv { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 12px; }
.qcard .dlabel { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.qcard .price { font-size: 1.85rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.qcard .buy { text-align: right; }
.qcard .bval { font-size: 1.05rem; font-weight: 600; color: var(--text-secondary); line-height: 1.3; }
.qcard .vsof { margin-top: 8px; font-size: 0.85rem; font-weight: 700; }
.qcard .vsof span { font-weight: 400; color: var(--text-secondary); }
.qcard .vsof.ref span { color: var(--muted); }
.qcard .deltas { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--grid); }
.qcard .dcell + .dcell { border-left: 1px solid var(--grid); padding-left: 10px; }
.qcard .dval { font-size: 0.95rem; font-weight: 700; margin-top: 2px; white-space: nowrap; }
.qcard .spread { margin-top: auto; padding-top: 8px; font-size: 0.72rem; color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--text-secondary); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 12px; }
.kpi { background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.kpi .label { color: var(--text-secondary); font-size: 0.85rem; }
.kpi .val { font-size: 1.6rem; font-weight: 700; margin-top: 2px; display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap; }
.kpi .note { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; margin-left: 6px; vertical-align: middle; }

.filterbar { position: sticky; top: var(--hdr, 92px); z-index: 9; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; background: var(--page); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface-1); }
.seg button { font: inherit; font-size: 0.85rem; border: 0; background: transparent; color: var(--text-secondary); padding: 6px 12px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button:hover { background: var(--border); }
.seg button.on { color: var(--text-primary); font-weight: 700; background: var(--border); }

.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: 14px; padding: 18px 18px 14px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.card-head > div:first-child { max-width: 760px; }
.chart { position: relative; height: 300px; margin-top: 8px; }
.chart.tall { height: 400px; }
.chart.loading::after { content: 'Cargando datos…'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 0.9rem;
  background: repeating-linear-gradient(0deg, transparent 0 59px, var(--grid) 59px 60px); border-radius: 8px; animation: pulse 1.4s ease-in-out infinite; }
.chart.loading canvas { visibility: hidden; }
@keyframes pulse { 50% { opacity: .5; } }
.hint { margin: 8px 0 0; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 6px; }
.chip { font: inherit; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.chip .key { width: 14px; height: 3px; border-radius: 2px; opacity: .35; }
.chip.on { color: var(--text-primary); border-color: var(--axis); }
.chip.on .key { opacity: 1; }

.toggle { font-size: 0.88rem; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 4px 0 4px; }
.tile { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.tile .label { font-size: 0.8rem; color: var(--text-secondary); }
.tile .val { font-size: 1.35rem; font-weight: 700; }
.tile .note { font-size: 0.78rem; color: var(--text-secondary); margin-top: 2px; }

/* Sueldos en dólares: tu sueldo destacado + mínimos a la izquierda, récords chicos a la derecha */
.sal-tiles { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 10px; margin: 4px 0; align-items: start; }
.sal-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.sal-side { display: grid; gap: 8px; }
.tile.tile-mine { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface-1)); }
.sal-tiles .tile.tile-mine .label { color: var(--accent); font-weight: 700; }
.tile.tile-mine .val { font-size: 1.7rem; }
.tile.tile-mine.empty .val { color: var(--text-secondary); }
.tile.tile-mine .sal-eq { color: var(--text-primary); font-size: 0.88rem; line-height: 1.45; }
.tile.tile-mine .sal-eq:first-child { margin-top: 4px; }
.tile.tile-mine .sal-conv { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 14px;
  margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); font-size: 0.82rem; line-height: 1.5; }
.tile.tile-mine .sal-conv span:nth-child(odd) { color: var(--text-secondary); }
.tile.tile-mine .sal-conv span:nth-child(even) { color: var(--text-primary); font-weight: 600; font-variant-numeric: tabular-nums; }
/* títulos y notas de los recuadros de esta sección: más contraste para que se lean bien */
.sal-tiles .tile .label { color: var(--text-primary); font-weight: 600; font-size: 0.84rem; }
.sal-tiles .tile .note { color: var(--text-primary); opacity: 0.78; }
.tile.tile-sm { padding: 7px 10px; }
.tile.tile-sm .label { font-size: 0.74rem; }
.tile.tile-sm .val { font-size: 1.05rem; }
.tile.tile-sm .note { font-size: 0.72rem; }
@media (max-width: 900px) {
  .sal-tiles { grid-template-columns: 1fr; }
  .sal-side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .sal-main { grid-template-columns: 1fr 1fr; }
  .sal-main .tile-mine { grid-column: 1 / -1; }
}

.controls { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 4px; }
.controls label { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; color: var(--text-secondary); }
.controls select, .controls input { font: inherit; font-size: 0.95rem; color: var(--text-primary); background: var(--page); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; min-width: 170px; }

.proj-table { overflow-x: auto; margin-top: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: right; padding: 7px 10px; border-bottom: 1px solid var(--grid); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--text-secondary); font-weight: 600; font-size: 0.8rem; }

.method { margin-top: 12px; font-size: 0.9rem; color: var(--text-secondary); }
.method summary { cursor: pointer; color: var(--text-primary); font-weight: 600; }

.calc-out { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.calc-out .tile .val { font-size: 1.25rem; }

.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.gitem { background: var(--surface-1); border: 1px solid var(--border); border-top: 3px solid var(--c, var(--axis)); border-radius: 12px; padding: 14px 16px; }
.gitem h3 { margin: 0 0 6px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.gitem p { margin: 0; font-size: 0.9rem; color: var(--text-secondary); }

footer { margin: 40px 0 30px; padding-top: 16px; border-top: 1px solid var(--border); }
.error { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: #d03b3b; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 0.9rem; z-index: 50; max-width: 90vw; }

/* ---------- Pestañas ---------- */
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-top: 4px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { font: inherit; font-size: 0.92rem; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--text-secondary);
  padding: 8px 12px 9px; cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--text-primary); }
.tabs button.on { color: var(--text-primary); font-weight: 700; border-bottom-color: var(--accent); }
.subnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-top: 16px; }
.subnav a { color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); white-space: nowrap; }
.subnav a:hover { background: var(--border); color: var(--text-primary); }
.chart-title { font-size: 0.95rem; margin: 18px 0 0; }

/* ---------- Resumen ---------- */
.summary { background: var(--surface-1); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; padding: 16px 18px; }
.summary-text { margin: 0; font-size: 1.12rem; line-height: 1.55; }
.summary-text b { font-weight: 700; }
.summary-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.btn.wa { display: inline-flex; align-items: center; gap: 8px; background: #128c4a; color: #fff; border-color: transparent; font-weight: 600; }
.btn.wa:hover { background: #0f7a40; }
.btn.wa:disabled { opacity: .5; cursor: default; }

/* ---------- Esqueletos de carga ---------- */
.skel-line { display: block; height: 14px; border-radius: 6px; background: var(--grid); margin: 6px 0; animation: pulse 1.4s ease-in-out infinite; }
.skel-line.short { width: 60%; }
.qcard.skel { min-height: 190px; }
.qcard.skel .skel-line:nth-child(1) { width: 40%; }
.qcard.skel .skel-line:nth-child(2) { width: 70%; height: 30px; margin-top: 18px; }
.qcard.skel .skel-line:nth-child(3) { width: 90%; margin-top: 24px; }

/* ---------- Tarjetas secundarias (más compactas) ---------- */
.cards.compact .qcard .price { font-size: 1.5rem; }
.cards.compact .qcard .bval { font-size: 0.95rem; }

/* ---------- Cambios en vivo ---------- */
.qcard.flash-up { animation: flashUp 2.5s ease-out; }
.qcard.flash-down { animation: flashDown 2.5s ease-out; }
@keyframes flashUp { 0% { box-shadow: 0 0 0 3px var(--up); } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes flashDown { 0% { box-shadow: 0 0 0 3px var(--down); } 100% { box-shadow: 0 0 0 0 transparent; } }
.toast { position: fixed; bottom: 18px; right: 18px; max-width: min(420px, 90vw); background: var(--surface-1); color: var(--text-primary);
  border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px 16px; font-size: 0.92rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.18); z-index: 60; }

/* ---------- Plazo fijo vs dólar ---------- */
.pf-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 4px; }
.pf-opt { border: 1px solid var(--border); border-top: 3px solid var(--c); border-radius: 10px; padding: 12px 14px; }
.pf-opt.win { background: color-mix(in srgb, var(--c) 8%, transparent); }
.pf-opt .label { font-size: 0.82rem; color: var(--text-secondary); display: flex; justify-content: space-between; gap: 8px; }
.pf-opt .val { font-size: 1.45rem; font-weight: 700; margin-top: 2px; }
.pf-opt .sub2 { font-size: 0.82rem; color: var(--text-secondary); }
.pf-verdict { grid-column: 1 / -1; font-size: 1rem; margin: 4px 0 0; }
.win-badge { font-size: 0.72rem; font-weight: 700; color: var(--up); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards.c4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .cards.c3 { grid-template-columns: 1fr; }
  .pf-result { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .top-inner { padding-top: 10px; }
  h1 { font-size: 1.25rem; }
  .sub, .hide-sm, #updated { display: none; }
  .cards.c4 { grid-template-columns: 1fr; }
  .summary-text { font-size: 1rem; }
  .chart { height: 250px; } .chart.tall { height: 300px; }
  .card { padding: 14px 12px 12px; }
  .seg button { padding: 6px 9px; }
  .controls select, .controls input { min-width: 0; width: 100%; }
  .controls label { flex: 1 1 140px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  /* si queda un recuadro solo en la última fila, ocupa todo el ancho */
  .kpis > .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kpi .val { font-size: 1.3rem; flex-wrap: wrap; white-space: normal; }
  .toast { left: 14px; right: 14px; bottom: 14px; }
}

/* ---------- Publicidad ---------- */
.ad { margin: 24px 0; min-height: 100px; display: flex; align-items: center; justify-content: center; position: relative; }
.ad::before { content: 'Publicidad'; position: absolute; top: -16px; left: 0; font-size: 0.68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ad ins { width: 100%; }
.ad.preview { min-height: 120px; border: 2px dashed var(--axis); border-radius: 12px; color: var(--muted); font-size: 0.9rem; }
@media (min-width: 760px) { .ad { min-height: 120px; } }

/* ---------- Preguntas frecuentes ---------- */
.faq details { background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 2px; color: var(--text-secondary); }
.footer-links { margin-top: 10px; }

/* ---------- Páginas de texto (acerca / privacidad) ---------- */
.doc { max-width: 760px; margin: 30px auto 60px; }
.doc h1 { font-size: 1.7rem; margin-bottom: 8px; }
.doc h2 { margin-top: 26px; }
.doc p, .doc li { color: var(--text-secondary); }
.back { display: inline-block; margin-top: 18px; }

/* =====================================================================
   DISEÑO: franja celeste, tarjetas con relieve, publicidad lateral
   ===================================================================== */
.viz-root { --hero-1: #cfe4f6; --hero-2: #e7f1fb; --hero-line: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 900 340%22 preserveAspectRatio=%22none%22%3E%3Cg opacity=%220.22%22%3E%3Cline x1=%220%22 x2=%22900%22 y1=%2260%22 y2=%2260%22 stroke=%22%232a78d6%22 stroke-width=%221%22/%3E%3Cline x1=%220%22 x2=%22900%22 y1=%22140%22 y2=%22140%22 stroke=%22%232a78d6%22 stroke-width=%221%22/%3E%3Cline x1=%220%22 x2=%22900%22 y1=%22220%22 y2=%22220%22 stroke=%22%232a78d6%22 stroke-width=%221%22/%3E%3Cline x1=%220%22 x2=%22900%22 y1=%22300%22 y2=%22300%22 stroke=%22%232a78d6%22 stroke-width=%221%22/%3E%3Cpolyline points=%220,300 60,290 110,296 160,270 210,278 260,240 300,252 350,214 400,226 440,190 490,200 540,160 580,172 630,130 680,142 720,100 770,112 820,70 860,80 900,40%22 fill=%22none%22 stroke=%22%232a78d6%22 stroke-width=%223%22 stroke-linejoin=%22round%22/%3E%3C/g%3E%3C/svg%3E");
  --shadow: 0 1px 2px rgba(16,40,70,.05), 0 6px 18px rgba(16,40,70,.06);
  --glass: rgba(255,255,255,.78); position: relative; isolation: isolate; }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .viz-root { --hero-1: #12294a; --hero-2: #0f1b2c; --hero-line: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 900 340%22 preserveAspectRatio=%22none%22%3E%3Cg opacity=%220.2%22%3E%3Cline x1=%220%22 x2=%22900%22 y1=%2260%22 y2=%2260%22 stroke=%22%2386b6ef%22 stroke-width=%221%22/%3E%3Cline x1=%220%22 x2=%22900%22 y1=%22140%22 y2=%22140%22 stroke=%22%2386b6ef%22 stroke-width=%221%22/%3E%3Cline x1=%220%22 x2=%22900%22 y1=%22220%22 y2=%22220%22 stroke=%22%2386b6ef%22 stroke-width=%221%22/%3E%3Cline x1=%220%22 x2=%22900%22 y1=%22300%22 y2=%22300%22 stroke=%22%2386b6ef%22 stroke-width=%221%22/%3E%3Cpolyline points=%220,300 60,290 110,296 160,270 210,278 260,240 300,252 350,214 400,226 440,190 490,200 540,160 580,172 630,130 680,142 720,100 770,112 820,70 860,80 900,40%22 fill=%22none%22 stroke=%22%235598e7%22 stroke-width=%223%22 stroke-linejoin=%22round%22/%3E%3C/g%3E%3C/svg%3E");
    --shadow: 0 1px 2px rgba(0,0,0,.4); --glass: rgba(34,35,38,.80); }
}
:root[data-theme="dark"] .viz-root { --hero-1: #12294a; --hero-2: #0f1b2c; --hero-line: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 900 340%22 preserveAspectRatio=%22none%22%3E%3Cg opacity=%220.2%22%3E%3Cline x1=%220%22 x2=%22900%22 y1=%2260%22 y2=%2260%22 stroke=%22%2386b6ef%22 stroke-width=%221%22/%3E%3Cline x1=%220%22 x2=%22900%22 y1=%22140%22 y2=%22140%22 stroke=%22%2386b6ef%22 stroke-width=%221%22/%3E%3Cline x1=%220%22 x2=%22900%22 y1=%22220%22 y2=%22220%22 stroke=%22%2386b6ef%22 stroke-width=%221%22/%3E%3Cline x1=%220%22 x2=%22900%22 y1=%22300%22 y2=%22300%22 stroke=%22%2386b6ef%22 stroke-width=%221%22/%3E%3Cpolyline points=%220,300 60,290 110,296 160,270 210,278 260,240 300,252 350,214 400,226 440,190 490,200 540,160 580,172 630,130 680,142 720,100 770,112 820,70 860,80 900,40%22 fill=%22none%22 stroke=%22%235598e7%22 stroke-width=%223%22 stroke-linejoin=%22round%22/%3E%3C/g%3E%3C/svg%3E");
  --shadow: 0 1px 2px rgba(0,0,0,.4); --glass: rgba(34,35,38,.80); }

/* Ancho del contenido (se achica si hay columnas de publicidad) */
:root { --cw: 1180px; }
.wrap { max-width: var(--cw); }
@media (min-width: 1560px) { :root { --cw: min(1180px, calc(100vw - 440px)); } }

/* Franja superior */
.hero-bg { position: absolute; top: 0; left: 0; right: 0; height: 560px; z-index: -1; pointer-events: none;
  background:
    var(--hero-line) no-repeat right -2% top 40px / min(980px, 90%) 260px,
    linear-gradient(180deg, var(--hero-1) 0%, var(--hero-2) 50%, var(--page) 100%); }

/* Encabezado: transparente arriba, sólido con desenfoque al hacer scroll */
.top { background: transparent; border-bottom: 1px solid transparent; transition: background .2s, border-color .2s; }
.top.scrolled { background: color-mix(in srgb, var(--page) 86%, transparent); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--border); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand .logo { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 12px rgba(42,120,214,.25); flex: none; }
.brand .h1 { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; }
.brand .sub { display: block; margin: 1px 0 0; }
.tabs button { border-radius: 8px 8px 0 0; }
.tabs button:hover { background: color-mix(in srgb, var(--surface-1) 55%, transparent); }

/* Resumen: tarjeta "de vidrio" sobre la franja */
.summary { background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 30px rgba(16,60,110,.10); border-radius: 16px; padding: 20px 22px; margin-top: 22px; }

/* Relieve suave en tarjetas */
.qcard, .kpi, .card, .gitem, .faq details, .pf-opt { box-shadow: var(--shadow); }
.qcard { transition: transform .15s ease, box-shadow .15s ease; }
.qcard:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16,40,70,.06), 0 12px 28px rgba(16,40,70,.10); }
.tile { background: var(--surface-1); }

/* Títulos de sección con acento */
main section > h2, .card > h2, .card-head h2 { display: flex; align-items: center; gap: 10px; }
main > .tab > section > h2::before { content: ''; width: 4px; height: 1.05em; border-radius: 2px; background: var(--accent); }

/* Barra de período sobre fondo translúcido */
.filterbar { background: color-mix(in srgb, var(--page) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Pie */
footer { background: var(--surface-1); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); }

/* Publicidad: los bloques ocultos no ocupan lugar */
.ad[hidden] { display: none !important; }
.rail.ad { min-height: 600px; }
.rail { position: fixed; top: calc(var(--hdr, 110px) + 28px); width: 160px; min-height: 600px; margin: 0; z-index: 5; display: none; }
.rail-l { left: calc(50% - var(--cw) / 2 - 188px); }
.rail-r { right: calc(50% - var(--cw) / 2 - 188px); }
@media (min-width: 1560px) { .rail:not([hidden]) { display: flex; } }

@media (max-width: 640px) {
  .brand .h1 { font-size: 1.15rem; }
  .brand .logo { width: 34px; height: 34px; }
  .hero-bg { height: 420px; background-size: 160% 220px, auto; background-position: right -40px top 60px, 0 0; }
  .summary { margin-top: 14px; padding: 16px; }
}

@media (max-width: 640px) {
  .top-inner { flex-direction: row; align-items: center; padding-bottom: 2px; }
  .brand .sub, .hide-sm { display: none !important; }
  .brand .h1 { white-space: nowrap; }
  .top-actions { gap: 6px; }
  .top-actions .btn { padding: 6px 9px; }
}

.show-sm { display: none; }
.viz-root { overflow-x: clip; }
.filterbar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .2s; }
.viz-root.scrolled .filterbar { background: color-mix(in srgb, var(--page) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@media (max-width: 640px) {
  .show-sm { display: inline; }
  .brand .h1 { font-size: 1.05rem; }
}

/* ---------- Marcas de espacios publicitarios ---------- */
.ad.preview { border: 2px dashed #e0a100; background: repeating-linear-gradient(135deg, rgba(250,178,25,.07) 0 14px, transparent 14px 28px);
  border-radius: 12px; color: var(--text-secondary); padding: 14px; }
.ad.preview::before { color: #b07d00; font-weight: 700; }
.ad-ph { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 0.9rem; }
.ad-ph strong { color: var(--text-primary); font-size: 1rem; }
.ad-ph-icon { font-size: 1.5rem; }
.ad-ph-id { font-family: ui-monospace, monospace; font-size: 0.82rem; background: var(--surface-1); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; }
.ad-ph-size { font-size: 0.8rem; color: var(--muted); }
.rail.preview .ad-ph { padding: 0 4px; }
.rail.preview .ad-ph-id { font-size: 0.72rem; }
.ad-anchor-demo { display: none; }
@media (max-width: 760px) {
  .ad-anchor-demo { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 64px; padding: 10px 14px;
    background: repeating-linear-gradient(135deg, rgba(250,178,25,.18) 0 14px, rgba(250,178,25,.08) 14px 28px), var(--surface-1, #fcfcfb);
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
    border-top: 2px dashed #e0a100; font-size: 0.8rem; color: var(--text-secondary); text-align: center; }
.viz-root:has(.ad-anchor-demo) main { padding-bottom: 70px; }
}

/* ---------- Tarjetas: versión compacta en celular ---------- */
.qmini { display: none; }
.qfull { display: flex; flex-direction: column; flex: 1; }
@media (max-width: 640px) {
  .cards { gap: 8px; }
  .qcard { padding: 0; border-top-width: 3px; }
  .qcard:hover { transform: none; }
  .qmini { display: grid; grid-template-columns: 1fr auto 74px 14px; align-items: center; gap: 10px; width: 100%;
    padding: 13px 14px; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 12px; }
  .qm-name { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 8px; min-width: 0; }
  .qm-name i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
  .qm-price { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
  .qm-chg { font-weight: 700; font-size: 0.88rem; text-align: right; white-space: nowrap; }
  .qm-caret { color: var(--muted); transition: transform .2s; text-align: center; }
  .qfull { display: none; padding: 0 14px 12px; }
  .qcard.open .qfull { display: flex; animation: unfold .2s ease-out; }
  .qcard.open .qm-caret { transform: rotate(180deg); }
  .qfull .qhead { justify-content: flex-start; }
  .qfull .qhead .name { display: none; }
  .qfull .cv { margin-top: 8px; }
  .qfull .cv > div:first-child { display: none; }
  .qfull .buy { text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .qfull .tag { margin-top: 0; }
}
@keyframes unfold { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Tipografía (Inter, incluida en el sitio) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2'); }
body, .viz-root, button, input, select { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
/* Letra de los títulos: Bricolage Grotesque (con más personalidad); el resto del texto sigue en Inter */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url(fonts/bricolage-latin.woff2) format('woff2'); }
.brand .h1, .hero-title, h2, .thermo-info strong { font-family: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif; }
.viz-root { font-feature-settings: 'tnum' 1, 'cv11' 1; letter-spacing: -0.005em; }
h2 { letter-spacing: -0.015em; }
.qcard .price, .kpi .val, .tile .val, .summary-text b { letter-spacing: -0.02em; }

/* ---------- Pie de página ---------- */
footer.site-footer { padding: 26px 26px 18px; margin-top: 48px; }
.f-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.f-brand p { color: var(--text-secondary); font-size: 0.9rem; margin: 10px 0 14px; max-width: 360px; }
.f-brand .h1 { font-size: 1.15rem; }
.f-brand .logo { width: 36px; height: 36px; }
.f-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.f-social { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.f-social a { text-decoration: none; }
.f-soc-title { font-size: 0.85rem; color: var(--text-secondary); margin-right: 2px; }
.f-col { display: flex; flex-direction: column; gap: 7px; }
.f-col h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 0 4px; }
.f-col a { color: var(--text-secondary); text-decoration: none; font-size: 0.92rem; }
.f-col a:hover { color: var(--accent); }
.f-bottom { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 14px; font-size: 0.8rem; color: var(--muted); }
.f-bottom p { margin: 4px 0; }
@media (max-width: 860px) { .f-grid { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { footer.site-footer { padding: 20px 16px 14px; } .f-grid { gap: 20px; } }

/* ---------- Marca Termodólar ---------- */
.wm { font-weight: 800; letter-spacing: -0.03em; }
.wm em { font-style: normal; color: var(--accent); }
.brand .logo { box-shadow: 0 6px 16px rgba(10,24,48,.28); border-radius: 11px; }

/* ---------- Mini cotizaciones en el encabezado (al hacer scroll) ---------- */
.mini-q { display: none; align-items: center; gap: 6px; margin-left: auto; font-size: 0.86rem; white-space: nowrap; overflow: hidden; }
.mini-q span { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-1); border: 1px solid var(--border); }
.mini-q b { font-weight: 600; color: var(--text-secondary); }
.mini-q i { font-style: normal; font-weight: 700; font-size: 0.78rem; }
.top.scrolled .mini-q { display: flex; animation: unfold .2s ease-out; }
.top.scrolled .brand .sub { display: none; }
.top.scrolled #updated { display: none; }
@media (max-width: 1100px) { .mini-q span:nth-child(n+3) { display: none; } }
@media (max-width: 640px) {
  .top.scrolled .brand .h1 { display: none; }
  .mini-q { font-size: 0.8rem; gap: 4px; }
  .mini-q span { padding: 3px 8px; }
  .mini-q span:nth-child(n+3) { display: none; }
  .top.scrolled #installBtn { display: none; }
}

/* Precios: nunca se cortan en dos renglones */
.qcard .price { font-size: clamp(1.45rem, 1.9vw, 1.85rem); white-space: nowrap; }
.qcard .bval { white-space: nowrap; font-size: 0.98rem; }
.qcard .cv { gap: 8px; }
@media (max-width: 640px) {
  .mini-q i { display: none; }          /* en celular: solo precios, para que entren Blue y Oficial */
  .mini-q span { padding: 3px 8px; font-size: 0.82rem; }
  .mini-q { margin-left: 4px; }
}

/* ===== Ranking de plazos fijos ===== */
.rk-verdict p { margin: 10px 0 6px; font-size: 1rem; }
.rk-list { list-style: none; margin: 8px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rk-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.rk-row.best { border-color: var(--up); background: color-mix(in srgb, var(--up) 7%, transparent); }
.rk-pos { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; background: var(--page); border: 1px solid var(--border); }
.rk-row.best .rk-pos { background: var(--up); border-color: var(--up); color: #fff; }
.rk-bank b { font-size: 1rem; }
.rk-tag { display: inline-block; font-size: 0.7rem; font-weight: 600; color: var(--text-secondary); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; margin-left: 4px; vertical-align: 2px; }
.rk-bar { height: 6px; border-radius: 3px; background: var(--border); margin: 6px 0 4px; overflow: hidden; max-width: 360px; }
.rk-bar i { display: block; height: 100%; background: var(--s7); border-radius: 3px; }
.rk-row.best .rk-bar i { background: var(--up); }
.rk-sub { display: block; font-size: 0.8rem; color: var(--text-secondary); }
.rk-gain { text-align: right; }
.rk-gain b { display: block; font-size: 1.15rem; }
.rk-go { display: inline-block; margin-top: 4px; font-size: 0.8rem; font-weight: 600; color: var(--accent, var(--s7)); text-decoration: none; }
.rk-go:hover { text-decoration: underline; }
.rk-more { margin: 2px 0 10px; }
@media (max-width: 560px) {
  .rk-row { grid-template-columns: 28px 1fr; padding: 10px 12px; }
  .rk-gain { grid-column: 2; text-align: left; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .rk-gain b { display: inline; }
  .rk-gain .rk-sub { display: inline; }
}

/* ===== Calculadora de alquiler ===== */
.alq-help { margin: 8px 0 4px; }
.alq-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.alq-est { display: inline-block; font-size: 0.68rem; font-weight: 600; color: #b07d00; border: 1px solid #e0a100; border-radius: 999px; padding: 0 7px; vertical-align: 3px; }
.alq-table { overflow-x: auto; margin-bottom: 8px; }
.alq-table table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.alq-table th { text-align: left; font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); padding: 6px 10px; border-bottom: 1px solid var(--border); }
.alq-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.alq-table tr.cur td { background: color-mix(in srgb, var(--s7) 9%, transparent); }
.alq-table tr.next td { background: color-mix(in srgb, var(--s8) 8%, transparent); }
.alq-table td.alq-why { white-space: normal; color: var(--text-secondary); font-size: 0.85rem; }
.alq-now { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); margin-left: 4px; }
@media (max-width: 560px) {
  .alq-result { grid-template-columns: 1fr; }
  .alq-table .alq-why { display: none; }
  .alq-table td, .alq-table th { padding: 7px 6px; }
}
.alq-table th:nth-child(2), .alq-table th:nth-child(3), .alq-table td:nth-child(2), .alq-table td:nth-child(3) { text-align: right; }
.alq-table th.alq-why, .alq-table td.alq-why { text-align: left; padding-left: 24px; }
@media (max-width: 560px) {
  .alq-table td { white-space: normal; }
  .alq-table .alq-now, .alq-table .alq-est { display: table; margin: 2px 0 0 auto; }
  .alq-table td:first-child .alq-now { margin-left: 0; }
}

/* ===== Compartir alquiler y Cafecito ===== */
.alq-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, #128c4a 7%, transparent); border: 1px solid color-mix(in srgb, #128c4a 30%, transparent); }
.alq-share[hidden] { display: none; }
.alq-share-txt { font-weight: 600; margin-right: auto; }
.cafe-cta { margin: 6px 0 10px; font-size: 0.92rem; color: var(--text-secondary); }
.cafe-cta[hidden], .cafe-link[hidden] { display: none !important; }
.cafe-cta a { font-weight: 600; color: color-mix(in srgb, #d9822b 80%, var(--text-primary)); text-decoration: none; }
.cafe-cta a:hover { text-decoration: underline; }
.btn.cafe-btn { background: color-mix(in srgb, #f0a030 16%, var(--surface-1)); border-color: color-mix(in srgb, #f0a030 55%, transparent); color: var(--text-primary); }
@media (max-width: 560px) {
  .alq-share-txt { width: 100%; }
  .alq-share .btn { flex: 1 1 auto; justify-content: center; }
}
.rk-go.rk-aff { color: #fff; background: #128c4a; border-radius: 6px; padding: 4px 10px; margin-top: 6px; }
.rk-go.rk-aff:hover { background: #0f7a40; text-decoration: none; }

/* =====================================================================
   REDISEÑO 25/11: encabezado, titular con termómetro y fondo
   ===================================================================== */
.viz-root {
  --hero-1: #d9e9fb; --hero-2: #eef5fc;
  --glow-1: rgba(42,120,214,.30); --glow-2: rgba(27,175,122,.22); --glow-3: rgba(98,80,214,.10);
  --grid-line: rgba(42,120,214,.075);
  --live: #12a150;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .viz-root {
    --hero-1: #0f2340; --hero-2: #0d1522;
    --glow-1: rgba(57,135,229,.32); --glow-2: rgba(25,158,112,.18); --glow-3: rgba(144,133,233,.10);
    --grid-line: rgba(134,182,239,.07);
    --live: #22c463;
  }
}
:root[data-theme="dark"] .viz-root {
  --hero-1: #0f2340; --hero-2: #0d1522;
  --glow-1: rgba(57,135,229,.32); --glow-2: rgba(25,158,112,.18); --glow-3: rgba(144,133,233,.10);
  --grid-line: rgba(134,182,239,.07);
  --live: #22c463;
}

/* ---------- Fondo ---------- */
.hero-bg { height: 760px;
  background:
    radial-gradient(900px 440px at 8% -10%, var(--glow-1), transparent 70%),
    radial-gradient(760px 420px at 96% 0%, var(--glow-2), transparent 70%),
    radial-gradient(600px 300px at 55% 40%, var(--glow-3), transparent 70%),
    linear-gradient(180deg, var(--hero-1) 0%, var(--hero-2) 42%, var(--page) 100%); }
/* cuadrícula fina tipo "papel de gráfico" que se desvanece */
.hero-bg::before { content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 78%); }
/* suave brillo al pie de la página para que no quede plana */
.viz-root::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 420px; z-index: -1; pointer-events: none;
  background: radial-gradient(800px 300px at 50% 100%, color-mix(in srgb, var(--glow-1) 45%, transparent), transparent 70%); }

/* ---------- Encabezado ---------- */
.top-inner { padding-top: 16px; padding-bottom: 8px; }
.brand .logo { width: 44px; height: 44px; border-radius: 12px; }
.brand .h1 { font-size: 1.6rem; }
.brand .sub { font-size: 0.88rem; }

.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--border); font-size: 0.82rem; font-weight: 600; color: var(--text-secondary);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; display: inline-block; }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--live); opacity: 0; animation: livePulse 2s ease-out infinite; }
.live-dot.off { background: var(--muted); }
.live-dot.off::after { display: none; }
@keyframes livePulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-dot::after { animation: none; } }

/* Pestañas tipo "píldora" */
.tabs { gap: 6px; padding-top: 6px; padding-bottom: 10px; margin-top: 2px; }
.tabs button { border: 1px solid transparent; border-radius: 999px; padding: 7px 15px; font-weight: 500; transition: background .15s, color .15s; }
.tabs button:hover { background: color-mix(in srgb, var(--surface-1) 70%, transparent); border-color: var(--border); }
.tabs button.on { background: var(--accent); color: #fff; font-weight: 700; border-color: transparent;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent); }

/* ---------- Titular ---------- */
.summary.hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: center;
  border: 1px solid var(--border); border-radius: 22px; padding: 28px 30px; margin-top: 18px; position: relative; overflow: hidden;
  box-shadow: 0 1px 2px rgba(16,40,70,.05), 0 18px 50px rgba(16,60,110,.12); }
.summary.hero::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--s1), var(--s3), var(--s4), var(--s8)); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 12px; padding: 5px 12px 5px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--text-secondary); font-size: 0.84rem; font-weight: 600; }
.hero-title { font-size: clamp(1.7rem, 3.4vw, 2.55rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 12px; }
.hero-title .hl { background: linear-gradient(90deg, var(--s1), var(--s3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.summary.hero .summary-text { font-size: 1.14rem; color: var(--text-secondary); }
.summary.hero .summary-text b { color: var(--text-primary); }
.summary.hero .summary-actions { margin-top: 16px; }

/* Termómetro */
.thermo { --tc: var(--s3); display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 18px;
  background: var(--surface-1); border: 1px solid var(--border); box-shadow: var(--shadow); }
.thermo[hidden] { display: none; }
.thermo[data-level="warm"] { --tc: var(--s4); }
.thermo[data-level="hot"] { --tc: var(--s8); }
.thermo-gauge { display: flex; flex-direction: column; align-items: center; flex: none; }
.thermo-tube { position: relative; width: 16px; height: 118px; border-radius: 8px 8px 0 0; background: var(--grid); overflow: hidden; margin-bottom: -6px; }
.thermo-tube i { position: absolute; left: 0; right: 0; bottom: 0; height: 6%; background: var(--tc); transition: height 1.2s cubic-bezier(.2,.8,.2,1); }
.thermo-tube .tick { position: absolute; left: 0; width: 7px; height: 2px; background: var(--surface-1); z-index: 1; }
.thermo-tube .t1 { bottom: 20%; } .thermo-tube .t2 { bottom: 60%; }
.thermo-bulb { width: 34px; height: 34px; border-radius: 50%; background: var(--tc); position: relative;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--tc) 18%, transparent), 0 6px 16px color-mix(in srgb, var(--tc) 40%, transparent); }
.thermo-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.thermo-k { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.thermo-info strong { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: color-mix(in srgb, var(--tc) 78%, var(--text-primary)); }
.thermo-txt { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.4; }
.thermo-txt b { color: var(--text-primary); }
.thermo-more { font-size: 0.82rem; font-weight: 600; text-decoration: none; margin-top: 4px; }
.thermo-more:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .summary.hero { grid-template-columns: 1fr; gap: 18px; }
  .thermo { max-width: 460px; }
}
@media (max-width: 640px) {
  .brand .logo { width: 36px; height: 36px; border-radius: 10px; }
  .brand .h1 { font-size: 1.15rem; }
  .top-inner { padding-top: 10px; padding-bottom: 2px; }
  .tabs { padding-top: 4px; padding-bottom: 8px; gap: 4px; }
  .tabs button { padding: 6px 12px; font-size: 0.88rem; }
  .summary.hero { padding: 20px 18px; border-radius: 18px; margin-top: 10px; }
  .hero-title { font-size: 1.65rem; }
  .summary.hero .summary-text { font-size: 1rem; }
  .thermo { padding: 14px 16px; gap: 14px; }
  .thermo-tube { height: 78px; width: 14px; }
  .thermo-bulb { width: 28px; height: 28px; }
  .thermo-info strong { font-size: 1.3rem; }
  .hero-bg { height: 560px; }
}

/* Marca más grande (25/11): que "Termodólar" tenga más peso que el titular */
.brand { gap: 14px; }
.brand .logo { width: 56px; height: 56px; border-radius: 15px; }
.brand .h1 { font-size: 2.15rem; letter-spacing: -0.03em; line-height: 1.05; }
.brand .sub { font-size: 1rem; margin-top: 3px; color: var(--text-secondary); }
.top-inner { padding-top: 18px; padding-bottom: 10px; }
.hero-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
@media (max-width: 860px) {
  .brand .h1 { font-size: 1.8rem; }
  .brand .logo { width: 48px; height: 48px; border-radius: 13px; }
}
@media (max-width: 640px) {
  .brand { gap: 10px; }
  .brand .h1 { font-size: 1.45rem; }
  .brand .logo { width: 40px; height: 40px; border-radius: 11px; }
  .hero-title { font-size: 1.5rem; }
}
/* Al bajar, el encabezado se compacta para no tapar contenido */
.brand .logo, .brand .h1, .brand .sub, .top-inner { transition: all .2s ease; }
.top.scrolled .top-inner { padding-top: 8px; padding-bottom: 4px; }
.top.scrolled .brand .logo { width: 40px; height: 40px; border-radius: 11px; }
.top.scrolled .brand .h1 { font-size: 1.45rem; }
.top.scrolled .brand .sub { font-size: 0; margin: 0; opacity: 0; }
@media (max-width: 640px) {
  .top.scrolled .brand .logo { width: 34px; height: 34px; }
  .top.scrolled .brand .h1 { font-size: 1.2rem; }
}

/* ===== Menú "Como texto / Como imagen" y vista previa ===== */
.share-menu { position: absolute; z-index: 60; min-width: 270px; padding: 6px; border-radius: 14px;
  background: var(--surface-1, #fff); color: var(--text-primary, #0b0b0b); border: 1px solid var(--border, rgba(0,0,0,.1));
  box-shadow: 0 12px 40px rgba(16,40,70,.22); font-family: 'Inter', system-ui, sans-serif; animation: smIn .14s ease-out; }
@keyframes smIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.share-menu button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: inherit;
  background: none; border: 0; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.share-menu button:hover, .share-menu button:focus-visible { background: rgba(42,120,214,.10); outline: none; }
.share-menu .sm-ico { font-size: 1.35rem; width: 28px; text-align: center; }
.share-menu b { display: block; font-size: 0.95rem; }
.share-menu small { display: block; font-size: 0.8rem; color: #52514e; }
.share-modal { position: fixed; inset: 0; z-index: 70; background: rgba(8,16,28,.55); display: grid; place-items: center; padding: 16px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); font-family: 'Inter', system-ui, sans-serif; }
.share-sheet { width: min(460px, 100%); max-height: 100%; overflow: auto; background: #fcfcfb; color: #0b0b0b; border-radius: 20px; padding: 16px 18px 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.ss-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 1.05rem; }
.ss-x { font: inherit; border: 0; background: rgba(0,0,0,.06); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: inherit; }
.ss-img { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #eef3f9; display: grid; place-items: center; border: 1px solid rgba(0,0,0,.08); }
.ss-img img { width: 100%; height: 100%; display: block; }
.ss-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ss-actions .btn { flex: 1 1 auto; justify-content: center; padding: 10px 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #0b0b0b; border: 1px solid rgba(0,0,0,.12); }
.ss-actions .btn.wa { background: #128c4a; color: #fff; border-color: transparent; }
.ss-tip { margin: 10px 0 0; color: #52514e; }

/* ===== Cafecito más visible ===== */
.viz-root { --cafe: #c2691b; --cafe-bg: #fff3e3; --cafe-line: #f2c58f; }
:root[data-theme="dark"] .viz-root { --cafe: #f0a050; --cafe-bg: #2e2215; --cafe-line: #6b4a22; }
.btn.cafe-top { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; font-size: 0.92rem;
  background: var(--cafe-bg); border-color: var(--cafe-line); color: var(--text-primary); }
.btn.cafe-top:hover { background: color-mix(in srgb, var(--cafe-bg) 80%, var(--cafe)); }
.cafe-link[hidden] { display: none !important; }

.cafe-inline { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 10px 0 12px; padding: 12px 14px;
  border-radius: 12px; background: var(--cafe-bg); border: 1px solid var(--cafe-line); color: var(--text-primary); font-size: 0.95rem; font-weight: 600; }
.cafe-inline span { margin-right: auto; }
.cafe-pill, .btn.cafe-big { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; font-weight: 700;
  text-decoration: none; color: #fff !important; background: var(--cafe); border: 0; box-shadow: 0 4px 14px color-mix(in srgb, var(--cafe) 35%, transparent);
  transition: transform .15s; white-space: nowrap; }
.cafe-pill:hover, .btn.cafe-big:hover { transform: translateY(-1px); text-decoration: none; }

.cafe-banner { display: flex; align-items: center; gap: 20px; margin: 36px 0 24px; padding: 22px 26px; border-radius: 20px;
  background: linear-gradient(120deg, var(--cafe-bg), color-mix(in srgb, var(--cafe-bg) 60%, var(--surface-1))); border: 1px solid var(--cafe-line);
  box-shadow: var(--shadow); }
.cafe-banner[hidden], .cafe-inline[hidden] { display: none !important; }
.cb-cup { font-size: 2.6rem; width: 68px; height: 68px; display: grid; place-items: center; flex: none; border-radius: 50%;
  background: var(--surface-1); border: 1px solid var(--cafe-line); }
.cb-text { flex: 1; min-width: 0; }
.cb-text b { font-size: 1.2rem; }
.cb-text p { margin: 4px 0 0; color: var(--text-secondary); }
.btn.cafe-big { font-size: 1.02rem; padding: 12px 22px; }
@media (max-width: 640px) {
  .cafe-banner { flex-direction: column; text-align: center; padding: 20px 18px; gap: 12px; }
  .btn.cafe-big { width: 100%; justify-content: center; }
  .cafe-inline span { width: 100%; }
}
.ss-img { aspect-ratio: auto; min-height: 200px; }
.ss-img img { width: auto; height: auto; max-width: 100%; max-height: 58vh; margin: 0 auto; }

/* ===== ¿Dónde comprar dólares? ===== */
.donde-hero > p { max-width: 820px; font-size: 1.05rem; }
.donde-now { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.dn-price { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--surface-1);
  border: 1px solid var(--border); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .15s; }
a.dn-price:hover { transform: translateY(-2px); }
.dn-price span { font-size: 0.82rem; color: var(--text-secondary); font-weight: 600; }
.dn-price b { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.dn-price small { color: var(--muted); font-size: 0.8rem; }
.dn-price.ref { background: transparent; box-shadow: none; border-style: dashed; }
.dn-tip { grid-column: 1 / -1; margin: 2px 0 0; font-size: 0.98rem; }
.dn-ico { font-size: 1.2rem; }
.dn-steps { counter-reset: st; list-style: none; padding: 0; margin: 14px 0 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dn-steps li { counter-increment: st; position: relative; padding: 14px 14px 14px 54px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 6%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); font-size: 0.93rem; }
.dn-steps li::before { content: counter(st); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 0.9rem; }
.dn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.dn-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; background: var(--surface-1);
  border: 1px solid var(--border); border-top: 3px solid var(--pc); box-shadow: var(--shadow); }
.dn-head { display: flex; align-items: center; gap: 10px; }
.dn-head b { display: block; font-size: 1.08rem; }
.dn-logo { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
  color: #fff; background: var(--pc); flex: none; }
.dn-kind { display: block; font-size: 0.76rem; color: var(--muted); }
.dn-card p { margin: 0; font-size: 0.9rem; color: var(--text-secondary); flex: 1; }
.btn.dn-go { align-self: flex-start; text-decoration: none; font-weight: 700; font-size: 0.88rem; padding: 7px 14px; border-radius: 999px; }
.btn.dn-go.aff { background: #128c4a; color: #fff; border-color: transparent; }
.dn-tips ul { margin: 8px 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.dn-legal { margin: 0; }
.where-buy { display: inline-block; margin: 4px 0 2px; font-size: 0.84rem; font-weight: 700; text-decoration: none; }
.where-buy:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .donde-now { grid-template-columns: 1fr 1fr; }
  .dn-steps { grid-template-columns: 1fr; }
}

/* ===== Barra de navegación inferior (celulares) ===== */
.bottom-nav, .bn-more { display: none; }
@media (max-width: 640px) {
  .tabs { display: none; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface-1) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border); box-shadow: 0 -6px 24px rgba(16,40,70,.08); }
  .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; font-size: 0.7rem; font-weight: 600;
    color: var(--text-secondary); background: none; border: 0; padding: 7px 2px 5px; border-radius: 12px; cursor: pointer; position: relative;
    -webkit-tap-highlight-color: transparent; }
  .bottom-nav button.on { color: var(--accent); }
  .bottom-nav button.on::before { content: ''; position: absolute; top: -4px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
  .bottom-nav button:active { background: color-mix(in srgb, var(--accent) 10%, transparent); }
  .bn-more:not([hidden]) { display: flex; flex-direction: column; gap: 2px; position: fixed; right: 8px; left: 8px;
    bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 46; padding: 8px; border-radius: 18px;
    background: var(--surface-1); border: 1px solid var(--border); box-shadow: 0 -10px 40px rgba(16,40,70,.22); animation: smIn .15s ease-out; }
  .bn-more button, .bn-more a { display: flex; align-items: center; gap: 12px; font: inherit; font-size: 1.25rem; text-align: left; text-decoration: none;
    color: var(--text-primary); background: none; border: 0; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
  .bn-more button:active, .bn-more a:active { background: color-mix(in srgb, var(--accent) 10%, transparent); }
  .bn-more b { display: block; font-size: 0.95rem; }
  .bn-more small { display: block; font-size: 0.8rem; color: var(--text-secondary); }
  /* lugar para la barra */
  main { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .error { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .ad-anchor-demo { bottom: calc(62px + env(safe-area-inset-bottom)); }
  .viz-root:has(.ad-anchor-demo) main { padding-bottom: 150px; }
  /* con la barra abajo, el encabezado ya no necesita lugar para pestañas */
  .top-inner { padding-bottom: 10px; }
}

/* ===== Páginas temáticas (para Google) ===== */
.seo-intro { margin: 22px 0 6px; }
.seo-intro h1, h1.seo-h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 8px;
  display: flex; align-items: center; gap: 10px; }
.seo-intro h1::before, h1.seo-h1::before { content: ''; width: 5px; height: 1em; border-radius: 3px; background: var(--accent); flex: none; }
.seo-intro p { margin: 0; max-width: 860px; font-size: 1.05rem; color: var(--text-secondary); }
.seo-faq h2 { margin-bottom: 10px; }

/* ===== Celular: que se vean los precios sin tener que bajar ===== */
@media (max-width: 640px) {
  .summary.hero { padding: 16px 16px 14px; gap: 12px; margin-top: 8px; }
  .summary.hero::before { height: 3px; }
  .eyebrow { margin-bottom: 8px; padding: 3px 10px 3px 9px; font-size: 0.78rem; }
  .hero-title { font-size: 1.4rem; margin-bottom: 6px; }
  .summary.hero .summary-text { font-size: 0.95rem; line-height: 1.45; }
  .summary.hero .summary-actions { margin-top: 12px; gap: 8px; flex-wrap: nowrap; }
  .summary-actions .btn { font-size: 0.85rem; padding: 7px 10px; white-space: nowrap; }
  .summary-actions .btn.wa { padding: 7px 12px; }
  #autoNote { display: none; }   /* "En vivo" ya está arriba */
  /* Termómetro en una franja finita */
  .thermo { max-width: none; padding: 9px 12px; gap: 10px; border-radius: 12px; border-left: 4px solid var(--tc); box-shadow: none; }
  .thermo-gauge { display: none; }
  .thermo-info { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
  .thermo-k { font-size: 0.68rem; }
  .thermo-k::before { content: '🌡️ '; }
  .thermo-info strong { font-size: 1.02rem; }
  .thermo-txt { font-size: 0.82rem; flex-basis: 100%; }
  .thermo-more { display: none; }
  /* títulos de sección más juntos */
  main section { margin: 20px 0; }
  main section > p.muted { font-size: 0.88rem; margin-bottom: 8px; }
}

/* ===== Gráficos: valores en la leyenda (celular) y títulos parejos ===== */
.chip-val { font-weight: 700; color: var(--text-primary); margin-left: 2px; font-variant-numeric: tabular-nums; }
.card-head h2::before { content: ''; width: 4px; height: 1.05em; border-radius: 2px; background: var(--accent); flex: none; }
.dn-price.best { border-color: var(--up); background: color-mix(in srgb, var(--up) 7%, var(--surface-1)); }
.dn-price span i { font-style: normal; font-size: 0.7rem; font-weight: 700; color: #fff; background: var(--up); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
@media (max-width: 760px) {
  .donde-now { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .dn-price { padding: 10px 10px 9px; border-radius: 12px; }
  .dn-price span { font-size: 0.72rem; }
  .dn-price span i { display: table; margin: 4px 0 0; font-size: 0.62rem; }
  .dn-price b { font-size: 1.12rem; margin-top: 2px; }
  .dn-price small { display: none; }
}
.dn-promo { font-size: 0.84rem; font-weight: 600; line-height: 1.35; padding: 8px 10px; border-radius: 10px;
  background: color-mix(in srgb, var(--up) 9%, transparent); border: 1px dashed color-mix(in srgb, var(--up) 45%, transparent); color: var(--text-primary); }
.dn-logo { font-size: 1.05rem; letter-spacing: -0.03em; }
/* Celular: tarjetas de "¿Dónde comprar?" en filas compactas */
@media (max-width: 640px) {
  .dn-grid { grid-template-columns: 1fr; gap: 8px; }
  .dn-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; padding: 10px 12px; border-top-width: 1px; border-left: 4px solid var(--pc); }
  .dn-card p { display: none; }
  .dn-head b { font-size: 1rem; }
  .dn-logo { width: 34px; height: 34px; border-radius: 9px; font-size: 0.95rem; }
  .btn.dn-go { align-self: center; padding: 6px 12px; font-size: 0.82rem; }
  .dn-promo { grid-column: 1 / -1; font-size: 0.8rem; padding: 6px 9px; }
}

/* ===== Del precio a la acción: franja "¿Vas a comprar dólares?" ===== */
.buy-strip { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 18px; border-radius: 14px; text-decoration: none; color: var(--text-primary);
  background: linear-gradient(100deg, color-mix(in srgb, var(--up) 10%, var(--surface-1)), var(--surface-1));
  border: 1px solid color-mix(in srgb, var(--up) 35%, transparent); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.buy-strip[hidden] { display: none; }
.buy-strip:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(16,40,70,.06), 0 12px 28px rgba(16,40,70,.10); }
.bs-ico { font-size: 1.6rem; flex: none; }
.bs-txt { flex: 1; font-size: 0.98rem; line-height: 1.4; }
.bs-go { flex: none; font-weight: 700; font-size: 0.92rem; color: #fff; background: #128c4a; padding: 9px 16px; border-radius: 999px; white-space: nowrap; }
.pf-next { grid-column: 1 / -1; margin: 0; font-size: 0.95rem; }
.pf-next a { font-weight: 700; }
@media (max-width: 640px) {
  .buy-strip { flex-wrap: wrap; gap: 8px 10px; padding: 12px 14px; margin-top: 10px; }
  .bs-ico { font-size: 1.3rem; }
  .bs-txt { font-size: 0.9rem; flex-basis: calc(100% - 40px); }
  .bs-go { width: 100%; text-align: center; padding: 9px; }
}

/* ===== Termómetro de 3 señales ===== */
.thermo { align-items: flex-start; }
.thermo-gauge { margin-top: 4px; }
.thermo-why { list-style: none; margin: 6px 0 2px; padding: 0; display: grid; gap: 4px; }
.thermo-why li { display: flex; align-items: flex-start; gap: 7px; font-size: 0.84rem; line-height: 1.3; color: var(--text-secondary); }
.thermo-why i { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 4px; background: var(--s3); }
.thermo-why li[data-l="warm"] i { background: var(--s4); }
.thermo-why li[data-l="hot"] i { background: var(--s8); }
.thermo-why .tw-s { display: none; }
.thermo-how { margin-top: 6px; font-size: 0.8rem; color: var(--text-secondary); }
.thermo-how summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.thermo-how p { margin: 6px 0 0; line-height: 1.4; }
@media (max-width: 640px) {
  .thermo { align-items: center; }
  .thermo-why { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 2px 0 0; flex-basis: 100%; }
  .thermo-why li { font-size: 0.78rem; align-items: center; }
  .thermo-why i { margin-top: 0; }
  .thermo-why .tw-l { display: none; }
  .thermo-why .tw-s { display: inline; font-weight: 600; }
  .thermo-how { display: none; }
}


/* ===== Calendario del termómetro ===== */
.tcal { display: grid; grid-template-columns: 26px repeat(var(--weeks), minmax(0, 1fr)); grid-template-rows: 18px repeat(7, auto); gap: 3px; margin: 12px 0 8px; }
.tc-months { display: contents; }
.tc-months span { grid-row: 1; font-size: 0.7rem; color: var(--muted); white-space: nowrap; overflow: visible; }
.tc-wd { grid-column: 1; font-size: 0.66rem; color: var(--muted); align-self: center; }
.tc { aspect-ratio: 1; width: 100%; border: 0; padding: 0; border-radius: 3px; cursor: pointer; background: var(--grid); }
.tc[data-l="cold"] { background: #1baf7a; }
.tc[data-l="warm"] { background: #eda100; }
.tc[data-l="hot"] { background: #e34948; }
.tc:hover, .tc.sel { outline: 2px solid var(--text-primary); outline-offset: 1px; position: relative; z-index: 1; }
.tcal-legend { display: flex; gap: 14px; font-size: 0.8rem; color: var(--text-secondary); }
.tcal-legend span, .tc-sig span { display: inline-flex; align-items: center; gap: 6px; }
.tcal-legend i, .tc-sig i { width: 11px; height: 11px; border-radius: 3px; background: #1baf7a; }
.tcal-legend i[data-l="warm"], .tc-sig i[data-l="warm"] { background: #eda100; }
.tcal-legend i[data-l="hot"], .tc-sig i[data-l="hot"] { background: #e34948; }
.tcal-info { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 6%, transparent); border: 1px solid var(--border); min-height: 64px; }
.tcal-info p { margin: 2px 0; font-size: 0.92rem; }
.tc-sig { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--text-secondary); }
@media (max-width: 640px) {
  .tcal { grid-template-columns: 22px repeat(var(--weeks), minmax(0, 1fr)); gap: 2px; }
  .tc { border-radius: 2px; }
  .tcal-info p { font-size: 0.85rem; }
}

/* Termómetro: frase del día */
.thermo-phrase { margin: 4px 0 0; font-size: 0.95rem; font-weight: 600; line-height: 1.35; color: var(--text-primary); }
@media (max-width: 640px) {
  .thermo-phrase { flex-basis: 100%; font-size: 0.86rem; margin: 0; }
}

/* ---------- "Clima" de la página según el termómetro (lo marca app.js en <html data-clima>) ---------- */
.hero-bg { transition: background .6s ease; }
:root[data-clima="cold"] .viz-root { --hero-1: #c3e9d9; --hero-2: #e3f5ec; --glow-1: rgba(27,175,122,.38); --glow-2: rgba(42,120,214,.16); --grid-line: rgba(27,175,122,.08); }
:root[data-clima="warm"] .viz-root { --hero-1: #f3dcaa; --hero-2: #faefd6; --glow-1: rgba(237,161,0,.38); --glow-2: rgba(235,104,52,.13); --grid-line: rgba(237,161,0,.09); }
:root[data-clima="hot"] .viz-root { --hero-1: #f6c6be; --hero-2: #fbe3df; --glow-1: rgba(227,73,72,.34); --glow-2: rgba(235,104,52,.18); --grid-line: rgba(227,73,72,.07); }
@media (prefers-color-scheme: dark) {
  :root[data-clima="cold"]:where(:not([data-theme="light"])) .viz-root { --hero-1: #10372f; --hero-2: #0c1c1c; --glow-1: rgba(27,175,122,.30); --glow-2: rgba(57,135,229,.14); --grid-line: rgba(27,175,122,.07); }
  :root[data-clima="warm"]:where(:not([data-theme="light"])) .viz-root { --hero-1: #382d0f; --hero-2: #1b170f; --glow-1: rgba(237,161,0,.26); --glow-2: rgba(235,104,52,.12); --grid-line: rgba(237,161,0,.07); }
  :root[data-clima="hot"]:where(:not([data-theme="light"])) .viz-root { --hero-1: #401a1d; --hero-2: #1e1214; --glow-1: rgba(227,73,72,.30); --glow-2: rgba(235,104,52,.14); --grid-line: rgba(227,73,72,.07); }
}
:root[data-theme="dark"][data-clima="cold"] .viz-root { --hero-1: #10372f; --hero-2: #0c1c1c; --glow-1: rgba(27,175,122,.30); --glow-2: rgba(57,135,229,.14); --grid-line: rgba(27,175,122,.07); }
:root[data-theme="dark"][data-clima="warm"] .viz-root { --hero-1: #382d0f; --hero-2: #1b170f; --glow-1: rgba(237,161,0,.26); --glow-2: rgba(235,104,52,.12); --grid-line: rgba(237,161,0,.07); }
:root[data-theme="dark"][data-clima="hot"] .viz-root { --hero-1: #401a1d; --hero-2: #1e1214; --glow-1: rgba(227,73,72,.30); --glow-2: rgba(235,104,52,.14); --grid-line: rgba(227,73,72,.07); }

/* unidad chica en la fila compacta (ej. peso chileno ×1.000) */
.qm-unit { font-size: .72em; font-weight: 500; color: var(--muted, #6b7280); white-space: nowrap; }
