/* =============================================================
   1. Tokens — sober banking palette, light only
   ============================================================= */
:root {
  --ink: #0f1b2d;
  --ink-2: #33445a;
  --muted: #5a6b80;
  --paper: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f1f4f8;
  --line: #e1e7ef;
  --line-2: #cfd8e3;
  --navy: #102a4c;
  --navy-2: #1b3a66;
  --blue: #1d5fbf;
  --blue-ink: #174c99;
  --blue-soft: #e8f0fb;
  --green: #0f7b5f;
  --green-soft: #e6f4ef;
  --amber: #d9822b;
  --amber-soft: #fdf3e7;
  --red-soft: #fdeceb;
  --focus: #1d5fbf;

  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: var(--sans);

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-2: 0 1px 3px rgba(16, 24, 40, .06), 0 4px 12px rgba(16, 24, 40, .05);
  --shadow-pop: 0 12px 32px rgba(16, 24, 40, .16), 0 2px 6px rgba(16, 24, 40, .08);
  --gutter: 16px;
  --maxw: 1160px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  font-variant-numeric: tabular-nums;
}
img, svg, canvas { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; font-weight: 600; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--surface); color: var(--ink);
  border-radius: var(--r-sm); font-weight: 600; box-shadow: var(--shadow-2);
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: 70ch; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: .9rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: .35rem; }

/* =============================================================
   4. Header & nav
   ============================================================= */
.topbar { background: var(--navy); color: #c9d6e8; font-size: .8rem; }
.topbar .wrap { display: flex; gap: .4rem 1.25rem; flex-wrap: wrap; padding-block: .4rem; }
.topbar span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar svg { width: 14px; height: 14px; color: #7fb2ef; }
.topbar span:nth-child(3) { display: none; }
@media (min-width: 720px) { .topbar span:nth-child(3) { display: inline-flex; } }
@media (max-width: 420px) { .topbar span:nth-child(2) { display: none; } }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 60px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.logo svg { width: 28px; height: 28px; }
.nav { display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); width: calc(100% + var(--gutter) * 2); padding-bottom: .5rem; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  white-space: nowrap; text-decoration: none; color: var(--ink-2);
  padding: .45rem .75rem; border-radius: var(--r-sm); font-size: .92rem; font-weight: 500;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--blue-ink); background: var(--blue-soft); font-weight: 600; }

/* =============================================================
   5. Hero + tool
   ============================================================= */
.hero { padding: 1.25rem 0 1.5rem; }
.hero h1 { font-size: clamp(1.55rem, 1.15rem + 1.9vw, 2.35rem); font-weight: 700; color: var(--navy); }
.hero .lead { color: var(--muted); margin-top: .45rem; max-width: 64ch; font-size: .95rem; line-height: 1.55; }
.trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin-top: .75rem; font-size: .85rem; color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: .35rem; }
.trust svg { width: 16px; height: 16px; color: var(--green); flex: none; }

.tool { margin-top: 1.1rem; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1rem; box-shadow: var(--shadow-1);
}
.panel h2 { font-size: 1rem; font-weight: 600; margin-bottom: .75rem; }
.panel-result { min-width: 0; }

/* form */
.fields { display: grid; gap: .85rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: .3rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.hint { font-size: .8rem; color: var(--muted); line-height: 1.45; font-weight: 400; }
.input {
  display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--surface); transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.input:hover { border-color: #b6c3d3; }
.input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.input span { padding: 0 .65rem; color: var(--muted); font-size: .9rem; flex: none; }
.input input, .input select {
  flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; padding: .62rem .7rem;
  font-size: 1.02rem; font-weight: 500; font-variant-numeric: tabular-nums; outline: none;
}
.input span + input { padding-left: 0; }
.input input[readonly] { color: var(--ink-2); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 3px; background: var(--surface-2); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: .38rem .95rem; border-radius: 6px; font-size: .9rem; font-weight: 500; cursor: pointer; color: var(--ink-2); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .12); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--focus); }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.check input { margin-top: .25rem; accent-color: var(--blue); width: 1rem; height: 1rem; flex: none; }
.more { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: .75rem; }
.more summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--blue-ink); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+ "; }
.more[open] summary::before { content: "− "; }
.more .fields { margin-top: .8rem; }
.privacy { display: flex; gap: .5rem; align-items: center; margin-top: .9rem; font-size: .8rem; color: var(--muted); }
.privacy svg { width: 15px; height: 15px; flex: none; color: var(--green); }

/* ---------- Result: the talonario ---------- */
.ticket { position: relative; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.ticket-main {
  position: relative; background: var(--navy); color: #fff; border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 1.1rem 1.15rem 1.2rem;
}
.ticket-main::before, .ticket-main::after {
  content: ""; position: absolute; bottom: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper); z-index: 1;
}
.ticket-main::before { left: -9px; }
.ticket-main::after { right: -9px; }
.ticket-label { font-size: .86rem; color: #aebfd6; font-weight: 500; }
.ticket-amount { font-weight: 600; font-size: clamp(2.2rem, 1.7rem + 2.6vw, 3.1rem); line-height: 1.1; letter-spacing: -0.02em; margin-top: .1rem; white-space: nowrap; }
.ticket-note { font-size: .83rem; color: #aebfd6; margin-top: .3rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(140px, 23%), 1fr)); gap: .75rem 1rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.facts dt { font-size: .76rem; color: #aebfd6; }
.facts dd { font-weight: 600; font-size: 1.04rem; white-space: nowrap; }
.facts dd.cft { color: #ffc98f; }
.facts dt, .facts dd { overflow: hidden; text-overflow: ellipsis; }

.coupons {
  list-style: none; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-top: 2px dashed var(--line-2);
  border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden;
}
.coupons li { padding: .65rem .75rem .75rem; min-width: 0; }
.coupons li + li { border-left: 1px dashed var(--line-2); }
.coupons .c-n { font-size: .72rem; color: var(--muted); }
.coupons .c-v { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coupons .gap { display: grid; place-items: center; color: var(--muted); font-size: 1.1rem; letter-spacing: .1em; }
.coupons li:nth-child(3), .coupons li:nth-child(4) { display: none; }
.coupons.all li { display: block; }
.ticket.solo .ticket-main { border-radius: var(--r-lg); }
.ticket.solo .ticket-main::before, .ticket.solo .ticket-main::after { display: none; }
.ticket + .compare-verdict, .ticket + .notice { margin-top: .8rem; }

.result-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .66rem 1rem; border-radius: var(--r-md); font-weight: 600; font-size: .92rem; text-decoration: none;
  transition: background .15s var(--ease-out), border-color .15s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); }

.chart-box { margin-top: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: .9rem 1rem .8rem; }
.chart-box canvas { width: 100%; height: 180px; }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin-top: .5rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }

.table-wrap { margin-top: .9rem; }
.table-wrap summary { cursor: pointer; font-weight: 600; color: var(--blue-ink); font-size: .92rem; }
.scroll-x { overflow-x: auto; margin-top: .6rem; border: 1px solid var(--line); border-radius: var(--r-lg); max-height: 420px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
th, td { padding: .6rem .75rem; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
tbody tr:last-child td { border-bottom: 0; }
thead th { position: sticky; top: 0; background: var(--surface-2); font-weight: 600; color: var(--ink-2); font-size: .78rem; }
tbody tr:hover { background: #f8fafc; }
tr.group td { background: var(--surface-2); font-weight: 600; font-size: .78rem; color: var(--ink-2); padding-block: .45rem; }

.compare { margin-top: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem; }
.compare[hidden] { display: none; }
.compare h3 { font-size: 1rem; font-weight: 600; }
.compare .sub { font-size: .86rem; color: var(--muted); margin: .2rem 0 .8rem; }
.compare-grid { display: grid; grid-template-columns: auto 1fr 1fr; gap: .45rem .9rem; font-size: .9rem; align-items: baseline; }
.compare-grid .h { font-weight: 600; }
.compare-grid .v { text-align: right; font-weight: 600; }
.compare-grid .k { color: var(--muted); }
.compare-verdict { margin-top: .75rem; padding: .7rem .85rem; border-radius: var(--r-md); background: var(--green-soft); color: #0b4f3d; font-size: .9rem; }

.notice { padding: .7rem .85rem; border-radius: var(--r-md); background: var(--amber-soft); color: #6b3c0c; font-size: .88rem; margin-top: .8rem; }
.notice[hidden] { display: none; }
.badge-live { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--green); font-weight: 600; }
.badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

/* ---------- Bank & wallet picker ---------- */
.picker { position: relative; }
.picker-btn {
  width: 100%; display: flex; align-items: center; gap: .7rem; text-align: left;
  border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); padding: .55rem .7rem;
}
.picker-btn:hover { border-color: #b6c3d3; }
.picker-btn[aria-expanded="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.picker-btn > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.pk-badge {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: .72rem; font-weight: 700; color: #fff; background: #64748b; letter-spacing: .02em;
}
.pk-main { flex: 1; min-width: 0; display: grid; }
.pk-name { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-sub { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-rate { font-weight: 600; font-size: .95rem; white-space: nowrap; color: var(--green); }
.pk-rate.na { color: var(--muted); font-weight: 500; font-size: .82rem; }
.picker-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.picker-pop[hidden] { display: none; }
.pk-search { padding: .6rem; border-bottom: 1px solid var(--line); }
.pk-search input { width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: .5rem .7rem; font-size: .92rem; outline: none; }
.pk-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.pk-list { list-style: none; padding: .3rem 0; max-height: min(360px, 55vh); overflow-y: auto; overscroll-behavior: contain; }
.pk-group { padding: .55rem .9rem .3rem; font-size: .74rem; font-weight: 600; color: var(--muted); }
.pk-opt { display: flex; align-items: center; gap: .65rem; padding: .5rem .9rem; cursor: pointer; }
.pk-opt .pk-badge { width: 30px; height: 30px; font-size: .66rem; }
.pk-opt.is-active { background: var(--blue-soft); }
.pk-opt[aria-selected="true"] .pk-name::after { content: " ✓"; color: var(--blue); }
.pk-empty { padding: .9rem; color: var(--muted); font-size: .9rem; }

/* ---------- Bank ranking (BCRA) ---------- */
.rank-box { margin-top: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.rank-head { padding: 1rem 1rem .75rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); }
.rank-head h2 { font-size: 1.2rem; color: var(--navy); }
.rank-head .sub { margin: .2rem 0 0; font-size: .88rem; color: var(--muted); max-width: 70ch; }
.rank-filters { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; padding: .7rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: .88rem; }
.rank-filters .seg span { padding: .3rem .75rem; font-size: .85rem; }
.rank-filters .check { align-items: center; }
.rank-filters .check input { margin-top: 0; }
.rank-filters select { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: .35rem .5rem; background: var(--surface); font-size: .86rem; }
.rank-list { list-style: none; padding: 0; }
.rk-item {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "pos badge main" "nums nums nums" "act act act";
  gap: .5rem .7rem; align-items: center; padding: .85rem 1rem; border-top: 1px solid var(--line);
}
.rk-item:first-child { border-top: 0; }
.rk-item.is-best { background: linear-gradient(90deg, var(--green-soft), transparent 70%); }
.rk-pos { grid-area: pos; width: 1.6rem; text-align: center; font-weight: 700; color: var(--muted); font-size: .9rem; }
.rk-item .pk-badge { grid-area: badge; width: 32px; height: 32px; font-size: .66rem; }
.rk-main { grid-area: main; min-width: 0; display: grid; gap: .1rem; }
.rk-main b { font-weight: 600; }
.rk-line { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.rk-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .15rem; }
.tag { font-size: .7rem; font-weight: 600; padding: .1rem .45rem; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); white-space: nowrap; }
.tag.uva { background: var(--amber-soft); color: #8a4b0f; }
.tag.best { background: var(--green); color: #fff; }
.rk-nums { grid-area: nums; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; padding-left: 2.3rem; }
.rk-nums span { display: grid; font-size: .72rem; color: var(--muted); }
.rk-nums b { font-size: .98rem; color: var(--ink); font-weight: 600; white-space: nowrap; }
.rk-nums .cft b { color: var(--navy); }
.rk-act { grid-area: act; padding-left: 2.3rem; }
.rk-act .btn { padding: .4rem .8rem; font-size: .84rem; }
.rank-foot { padding: .75rem 1rem 1rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.rank-foot .btn { justify-self: start; }
.rank-empty { padding: 1.2rem 1rem; color: var(--ink-2); font-size: .92rem; }
.method-link { font-size: .8rem; }

/* =============================================================
   6. Ad placeholders (no ads, only reserved spaces)
   ============================================================= */
.ad-slot {
  display: grid; place-items: center; margin: 1.5rem auto 0; width: 100%;
  border: 1px dashed var(--line-2); border-radius: var(--r-md);
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(16, 42, 76, .035) 10px 11px), var(--surface);
  color: #8a99ad; font-size: .74rem; font-weight: 600; letter-spacing: .14em;
}
.ad-slot::before { content: "ANUNCIO"; }
.ad-leaderboard { min-height: 100px; max-width: 728px; }
.ad-rect { min-height: 250px; max-width: 336px; }
.ad-pop { min-height: 250px; width: 300px; max-width: 100%; margin: 0 auto; }
.ad-toast { min-height: 70px; margin: 0; }

.ad-dialog {
  border: 0; padding: 0; margin: auto; border-radius: var(--r-lg); background: var(--surface); color: var(--ink);
  width: min(360px, calc(100% - 2rem)); box-shadow: var(--shadow-pop);
}
.ad-dialog::backdrop { background: rgba(15, 27, 45, .5); }
.ad-dialog[open] { animation: pop .2s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.ad-dialog .inner { padding: 1rem 1rem 1.1rem; }
.ad-dialog header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.ad-dialog header p { font-weight: 600; font-size: .95rem; }
.x { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: 1.4rem; line-height: 1; color: var(--ink-2); }
.x:hover { background: var(--surface-2); }
.ad-dialog .btn { width: 100%; margin-top: .9rem; }

.ad-corner {
  position: fixed; left: 12px; bottom: 12px; z-index: 50; width: min(300px, calc(100% - 24px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-pop); padding: .55rem .55rem .6rem;
  transform: translateY(16px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.ad-corner.is-on { transform: none; opacity: 1; pointer-events: auto; }
.ad-corner .x { position: absolute; top: -12px; right: -10px; width: 28px; height: 28px; font-size: 1.1rem; background: var(--surface); border: 1px solid var(--line); }

/* =============================================================
   7. Content sections
   ============================================================= */
.section { padding: 2.75rem 0 0; }
.section > .wrap > h2, .section-title { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.65rem); font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.section .sub { color: var(--muted); margin-bottom: 1.2rem; max-width: 62ch; font-size: .95rem; }

.steps { list-style: none; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 1rem 1rem 1rem 3.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.steps li::before {
  content: counter(step); position: absolute; left: 1rem; top: 1rem; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--navy); color: #fff;
}
.steps h3 { font-size: 1rem; }
.steps p { color: var(--muted); font-size: .92rem; margin-top: .2rem; }

.uses { display: grid; gap: 0; border-top: 1px solid var(--line); }
.uses > div { display: grid; grid-template-columns: 36px 1fr; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.uses svg { width: 24px; height: 24px; color: var(--blue); margin-top: .15rem; }
.uses h3 { font-size: 1rem; }
.uses p { color: var(--muted); font-size: .92rem; margin-top: .1rem; }

.guide h3 { font-size: 1.1rem; margin-top: 1.4rem; margin-bottom: .35rem; color: var(--navy); }
.formula { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--r-md); padding: .7rem .9rem; margin-top: .6rem; font-weight: 500; }

/* rates */
.rates-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.fx { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: grid; max-width: 720px; box-shadow: var(--shadow-1); }
.fx-head, .fx-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .5rem 1.25rem; align-items: center; padding: .65rem 1rem; }
.fx-head { background: var(--surface-2); font-size: .76rem; font-weight: 600; color: var(--ink-2); }
.fx-row { border-top: 1px solid var(--line); }
.fx-row b { font-weight: 600; }
.fx-head span:not(:first-child), .fx-row span:not(:first-child) { text-align: right; min-width: 6.2rem; white-space: nowrap; }
.fx-row .venta { font-weight: 600; color: var(--ink); }
.fx-row .compra { color: var(--muted); }
.rank .bar { display: block; height: 3px; border-radius: 2px; background: var(--green); margin-top: 5px; opacity: .75; }
.name-cell { display: flex; align-items: center; gap: .6rem; }
.name-cell .pk-badge { width: 28px; height: 28px; font-size: .64rem; }
.loading { color: var(--muted); font-size: .9rem; padding: 1rem; }
.teaser { display: grid; gap: 1rem; }
.teaser .panel h3 { font-size: .98rem; margin-bottom: .4rem; }
.mini-list { list-style: none; padding: 0; }
.mini-list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list b { font-weight: 600; white-space: nowrap; }
.mini-list .name-cell { min-width: 0; }
.source { font-size: .8rem; color: var(--muted); margin-top: .6rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: .95rem 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-size: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.25rem; line-height: 1; color: var(--blue); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: .5rem; color: var(--ink-2); max-width: 70ch; }

/* more tools */
.tools-links { display: grid; gap: .6rem; }
.tools-links a { display: block; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-1); }
.tools-links a:hover { border-color: var(--blue); }
.tools-links b { display: block; font-weight: 600; color: var(--navy); }
.tools-links span { font-size: .86rem; color: var(--muted); }

/* footer */
.site-footer { margin-top: 3.5rem; padding: 2rem 0 5.5rem; background: var(--navy); color: #aebfd6; font-size: .86rem; }
.site-footer .brand { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: .35rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .9rem 0; }
.site-footer a { color: #dce6f3; }
.site-footer p + p { margin-top: .4rem; }

.legal h1 { font-size: 1.8rem; margin: 1.5rem 0 1rem; color: var(--navy); }
.legal h2 { font-size: 1.15rem; margin: 1.5rem 0 .4rem; }
.todo { background: var(--amber-soft); padding: 0 .25rem; border-radius: 3px; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .coupons li:nth-child(3) { display: block; }
}
@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .hero .lead { font-size: 1rem; }
  .site-header .wrap { flex-wrap: nowrap; }
  .nav { margin: 0 0 0 auto; padding: 0; width: auto; }
  .panel { padding: 1.25rem; }
  .coupons li:nth-child(4) { display: block; }
  .rk-item { grid-template-columns: auto auto minmax(0, 1.4fr) minmax(0, 2fr) auto; grid-template-areas: "pos badge main nums act"; }
  .rk-nums, .rk-act { padding-left: 0; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  .teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .hero { padding-top: 1.75rem; }
  .tool { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .tool > .panel:first-child { position: sticky; top: 1rem; }
  .tools-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* =============================================================
   9. Reduced motion + print
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ad-dialog[open] { animation: none; }
}
/* =============================================================
   8. Páginas por banco, comparaciones y guías
   ============================================================= */
.crumbs { font-size: .8rem; color: var(--muted); padding-top: .9rem; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .4rem; }
.crumbs li + li::before { content: /; margin-right: .4rem; color: var(--line-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero.has-crumbs { padding-top: .6rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin-top: 1rem; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: .65rem .8rem; }
.stats dt { font-size: .74rem; color: var(--muted); }
.stats dd { font-weight: 700; font-size: 1.08rem; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats dd small { font-weight: 500; font-size: .74rem; color: var(--muted); }
.rk-item.is-mine { box-shadow: inset 3px 0 0 var(--blue); }
.data-table td.wrap-cell, .data-table th.wrap-cell { white-space: normal; min-width: 12rem; text-align: left; }
.data-table td a { font-weight: 600; }
.win { color: var(--green); font-weight: 700; }
.vs-box { margin-top: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.vs-box form { display: flex; flex-wrap: wrap; gap: .7rem 1rem; align-items: flex-end; padding: .9rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.vs-box form .field { min-width: 140px; flex: 1 1 140px; }
.vs-box select { width: 100%; }
.vs-grid { display: grid; gap: 1px; background: var(--line); }
.vs-col { background: var(--surface); padding: 1rem; }
.vs-head { display: flex; align-items: center; gap: .6rem; }
.vs-head h3 { font-size: 1.05rem; color: var(--navy); }
.vs-big { margin-top: .6rem; font-size: .85rem; color: var(--muted); }
.vs-big b { font-size: 1.6rem; color: var(--navy); margin-left: .3rem; }
.vs-col .facts { border-top: 1px solid var(--line); margin-top: .6rem; }
.vs-col .facts dt { color: var(--muted); }
.vs-col .hint { margin-top: .6rem; }
.vs-more { list-style: none; padding: 0; margin-top: .6rem; font-size: .84rem; }
.vs-more li { display: flex; justify-content: space-between; gap: .6rem; padding: .35rem 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.vs-more b { white-space: nowrap; font-weight: 600; }
.vs-box .compare-verdict, .vs-box .source { margin: .9rem 1rem; }
.cap-box .ticket-label { text-transform: none; }
.uva-hero { display: grid; gap: 1rem; margin-top: 1rem; }
.uva-now { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-2); }
.uva-now .ticket-label { color: #aebfd6; font-size: .85rem; }
.uva-now .big { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; }
.uva-now .facts dt { color: #aebfd6; }
.uva-conv { display: grid; gap: .8rem; }
.foot-cols { display: grid; gap: 1.2rem; margin: 1.2rem 0; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.foot-cols h2 { font-size: .8rem; color: #fff; font-weight: 600; margin-bottom: .4rem; }
.foot-cols ul { list-style: none; padding: 0; display: grid; gap: .3rem; }
.site-footer .foot-cols a { color: #dce6f3; text-decoration: none; }
.site-footer .foot-cols a:hover { text-decoration: underline; }
@media (min-width: 720px) {
  .vs-grid { grid-template-columns: 1fr 1fr; }
  .uva-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); align-items: start; }
}

@media print {
  .topbar, .site-header, .site-footer, .ad-slot, .ad-corner, .result-actions, .section, .panel-form, .chart-box, .compare { display: none !important; }
  .scroll-x { max-height: none; overflow: visible; border: 0; }
  .table-wrap > summary { display: none; }
  body { background: #fff; color: #000; }
  .ticket { box-shadow: none; }
  .ticket-main { background: #fff; color: #000; border: 1px solid #000; }
  .ticket-label, .ticket-note, .facts dt { color: #333; }
}
