@charset "UTF-8";

/* bancos.app: warm paper, deep navy ink and an emerald accent, in the system's own sans serif,
   with tabular figures wherever money is shown. The tools, the article blocks and the bank
   directory are generated by scripts/build.py. */
:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --soft: #edf3ef;
  --text: #0f1d2b;
  --body: #2c3a48;
  --muted: #5a6673;
  --accent: #0b6e4f;
  --accent-dark: #085a40;
  --line: #e1e0d8;
  --field: #cfd6d1;
  --bad: #b3261e;
  --bad-soft: #fbeceb;
  --good-soft: #e3f2ea;
  --gold: #a87a1f;
  --radius: 22px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; inset-inline-start: 20px; z-index: 10; padding: 12px 24px; background: var(--accent); color: #fff; }
.skip-link:focus { top: 12px; }
.num, output, td, .t-big { font-variant-numeric: tabular-nums; }

/* Header and footer */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand svg { flex: none; }
.brand-name { font-size: 1.55rem; font-weight: 750; letter-spacing: -.045em; line-height: 1; }
.brand-tld { color: var(--accent); }
.site-header nav { display: flex; align-items: center; gap: 26px; font-size: .92rem; font-weight: 580; }
.nav-sections { display: flex; gap: 24px; }
.nav-sections a { color: var(--muted); white-space: nowrap; }
.nav-sections a[aria-current] { color: var(--text); }
.site-header nav a:hover { color: var(--accent); }
.lang-switch { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.site-footer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px 48px; padding-block: 48px 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer .brand-name { font-size: 1.3rem; color: var(--text); }
.footer-note { max-width: 620px; margin: 0; }
.footer-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a:hover { color: var(--accent); }

/* Shared type */
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--accent); font-size: .74rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.mini-line { width: 24px; height: 2px; flex-shrink: 0; background: var(--accent); }
h1 { margin-bottom: 22px; font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 760; line-height: 1.04; letter-spacing: -.05em; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 740; line-height: 1.1; letter-spacing: -.04em; }
h3 { font-weight: 700; letter-spacing: -.02em; }
.lede { max-width: 620px; color: var(--muted); font-size: 1.14rem; line-height: 1.6; }
.a-kicker { margin: 0 0 6px; color: var(--accent); font-size: .7rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }

/* Home */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; gap: 56px; padding-block: 64px 72px; }
.hero-copy { padding-top: 16px; }
.trust { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.trust li { position: relative; padding-inline-start: 30px; color: var(--body); font-weight: 560; }
.trust li::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--good-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%230b6e4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.home-section { padding-block: 36px 64px; }
.section-heading { max-width: 760px; margin-bottom: 30px; }
.section-heading > p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; }
.a-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.a-card { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px 46px 22px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: border-color .2s, transform .2s; }
.a-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.a-card strong { font-size: 1.1rem; line-height: 1.3; letter-spacing: -.02em; }
.a-card > span:not(.a-kicker):not(.a-arrow) { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.a-card--tool { background: linear-gradient(180deg, var(--surface), var(--soft)); }
.a-arrow { position: absolute; top: 20px; inset-inline-end: 20px; color: var(--accent); }
.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.promise li { padding: 22px; border-radius: 20px; background: var(--text); color: #dfe6ec; }
.promise strong { display: block; margin-bottom: 6px; color: #fff; font-size: 1.05rem; letter-spacing: -.01em; }
.v-faqs { display: grid; gap: 10px; max-width: 900px; }
.v-faq { padding: 4px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.v-faq summary { padding: 14px 0; font-weight: 650; cursor: pointer; }
.v-faq p { margin: 0 0 16px; color: var(--muted); line-height: 1.7; }
.a-disclaimer { max-width: 860px; margin: 40px 0 0; color: var(--muted); font-size: .84rem; }
p.a-disclaimer.wrap { margin: 0 auto 50px; }

/* The tools */
.t-tool { display: flex; flex-direction: column; gap: 18px; padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 24px 60px #0f1d2b12; }
.t-tool + .t-tool { margin-top: 22px; }
.t-tool h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.03em; }
.t-intro { margin: -8px 0 0; color: var(--muted); font-size: .95rem; }
.t-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.t-wide { grid-column: 1 / -1; }
.t-fields label, .t-field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .82rem; font-weight: 620; }
.t-fields label[hidden], .t-fields .t-group[hidden] { display: none; }
.t-tool input[type=text], .t-tool input[type=number], .t-tool input[type=date], .t-tool input[type=time], .t-tool select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--field); border-radius: 14px; background: var(--bg); color: var(--text); font: inherit; font-size: 1.05rem; }
.t-tool input:focus, .t-tool select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px #0b6e4f2e; }
.t-code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; text-transform: uppercase; }
.t-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; grid-column: 1 / -1; }
.t-seg { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 4px; border: 0; border-radius: 16px; background: var(--soft); grid-column: 1 / -1; }
.t-seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.t-seg label { flex: 1 1 auto; position: relative; display: block; cursor: pointer; }
.t-seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.t-seg span { display: block; padding: 9px 14px; border-radius: 12px; color: var(--muted); font-size: .9rem; font-weight: 640; text-align: center; }
.t-seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 2px 6px #0f1d2b1a; }
.t-seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 1px; }
.t-check { flex-direction: row !important; align-items: center; gap: 10px !important; color: var(--body) !important; font-size: .92rem !important; cursor: pointer; }
.t-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.t-out { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 18px; background: var(--soft); }
.t-out:empty { display: none; }
.t-out.is-bad { background: var(--bad-soft); }
.t-status { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.1rem; font-weight: 720; }
.t-status::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M7.5 13.5l3.6 3.6 7.4-8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px no-repeat; }
.is-bad .t-status { color: var(--bad); }
.is-bad .t-status::before { background: var(--bad) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M9 9l8 8M17 9l-8 8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 26px no-repeat; }
.t-label { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.t-big { margin: 2px 0 0; color: var(--accent); font-size: clamp(1.7rem, 4.2vw, 2.4rem); font-weight: 760; line-height: 1.05; letter-spacing: -.035em; }
.t-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(1.05rem, 2.6vw, 1.35rem); letter-spacing: 0; color: var(--text); word-break: break-all; }
.t-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 20px; margin: 0; }
.t-stats div { min-width: 0; }
.t-stats dt { color: var(--muted); font-size: .78rem; font-weight: 650; }
.t-stats dd { margin: 2px 0 0; font-size: 1.12rem; font-weight: 720; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.t-detail { margin: 0; color: var(--body); font-size: .94rem; }
.t-detail a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.t-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.t-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 99px; background: var(--accent); color: #fff; font: inherit; font-size: .92rem; font-weight: 680; cursor: pointer; }
.t-button:hover { background: var(--accent-dark); }
.t-button--ghost { border: 1px solid var(--field); background: var(--surface); color: var(--text); }
.t-button--ghost:hover { background: var(--bg); }
.t-note { margin: 0; color: var(--muted); font-size: .8rem; }
.t-table-wrap { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.t-table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.t-table th, .t-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: end; white-space: nowrap; }
.t-table th:first-child, .t-table td:first-child { text-align: start; }
.t-table thead th { position: sticky; top: 0; background: var(--surface); color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.t-table tr:last-child td { border-bottom: 0; }
.t-bar { display: flex; height: 12px; overflow: hidden; border-radius: 99px; background: var(--line); }
.t-bar span { display: block; height: 100%; }
.t-bar .t-bar-a { background: var(--accent); }
.t-bar .t-bar-b { background: var(--gold); }
.t-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .84rem; }
.t-legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-inline-end: 6px; border-radius: 3px; background: var(--accent); }
.t-legend li + li::before { background: var(--gold); }

/* The business-day calendar */
.cal-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.cal-month { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.cal-month h3 { margin: 0 0 8px; font-size: .95rem; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin: 0; padding: 0; list-style: none; font-size: .78rem; text-align: center; font-variant-numeric: tabular-nums; }
.cal-grid .cal-dow { color: var(--muted); font-size: .66rem; font-weight: 700; text-transform: uppercase; }
.cal-grid .cal-day { padding: 4px 0; border-radius: 8px; }
.cal-grid .is-weekend { color: #9aa3ab; }
.cal-grid .is-holiday { background: var(--gold); color: #fff; font-weight: 700; }
.cal-grid .is-regional { background: #f3e7cc; color: #6d4f12; font-weight: 700; }
.cal-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.cal-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .92rem; }
.cal-list li:first-child { border-top: 0; }
.cal-list time { font-weight: 700; }
.cal-tag { color: var(--muted); font-size: .78rem; }
.cal-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .82rem; }
.cal-key span { display: inline-block; width: 12px; height: 12px; margin-inline-end: 6px; border-radius: 4px; vertical-align: -1px; }

/* Articles */
.a-article { padding-block: 38px 30px; }
.a-head { max-width: 900px; margin-bottom: 36px; }
.a-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.a-sub { color: var(--muted); font-size: 1.18rem; line-height: 1.55; }
.a-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: .88rem; }
.a-breadcrumb a:hover { color: var(--accent); }
.a-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 56px; align-items: start; }
.a-body { min-width: 0; max-width: 800px; }
.a-body > * { margin-block: 0 22px; }
.a-p, .a-list li, .a-steps li { color: var(--body); font-size: 1.05rem; line-height: 1.75; }
.a-h { margin-top: 44px; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.a-link, .a-p a, .a-list a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.a-list { padding-inline-start: 1.2em; }
.a-list li + li { margin-top: 8px; }
.a-steps { padding: 24px 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.a-steps ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.a-steps li { display: flex; gap: 14px; }
.a-num { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .88rem; font-weight: 750; }
.a-note { padding: 20px 24px; border-inline-start: 4px solid var(--c); border-radius: 16px; background: var(--surface); }
.a-note .a-kicker { color: var(--c); }
.a-note h3 { margin-bottom: 6px; font-size: 1.1rem; }
.a-note p:last-child { margin: 0; color: var(--body); }
.a-answer { padding: 24px 26px; border-radius: 20px; background: var(--soft); border: 1px solid #c9e0d3; }
.a-verdict { margin: 0 0 8px; font-size: 1.3rem; font-weight: 720; line-height: 1.3; letter-spacing: -.02em; }
.a-answer p:last-child { margin: 0; color: var(--body); }
.a-example { padding: 22px 26px; border-radius: 20px; background: #fbf7ee; border: 1px dashed #d9c08a; }
.a-example .a-kicker { color: var(--gold); }
.a-example h3 { margin-bottom: 8px; font-size: 1.1rem; }
.a-example p:last-child { margin: 0; color: var(--body); line-height: 1.7; }
.a-terms { display: grid; margin: 0; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.a-terms div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); }
.a-terms div:first-child { border-top: 0; }
.a-terms dt { font-weight: 700; }
.a-terms dd { margin: 0; color: var(--body); line-height: 1.55; }
.a-table { margin: 0 0 22px; }
.a-table figcaption { margin-bottom: 10px; color: var(--muted); font-size: .9rem; }
.a-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.a-table table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.a-table th, .a-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.a-table tr:last-child > * { border-bottom: 0; }
.a-table thead th { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.a-table code, .b-table code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }
.cite { font-size: .72em; line-height: 0; }
.cite a { color: var(--accent); }
.a-sources { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.a-sources h2 { font-size: 1.25rem; }
.a-sources ol { margin: 0; padding-inline-start: 1.4em; color: var(--muted); font-size: .85rem; }
.a-sources li + li { margin-top: 8px; }
.a-sources a { color: var(--accent); overflow-wrap: anywhere; }
.a-side { position: sticky; top: 28px; display: grid; gap: 20px; }
.a-toc h2 { margin-bottom: 10px; color: var(--muted); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.a-toc ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; border-inline-start: 1px solid var(--line); }
.a-toc a { display: block; padding: 4px 14px; color: var(--muted); font-size: .9rem; }
.a-toc a:hover { color: var(--accent); }
.a-side-tools { padding: 20px; border-radius: 20px; background: var(--text); color: #dfe6ec; }
.a-side-tools h2 { margin-bottom: 10px; color: #fff; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.a-side-tools ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.a-side-tools a { display: block; padding: 5px 0; font-size: .92rem; font-weight: 600; }
.a-side-tools a:hover { color: #7fd8b5; }
.a-related { margin-top: 56px; }
.a-related h2 { font-size: 1.6rem; }
.a-updated { color: var(--muted); font-size: .85rem; }

/* The bank directory */
.b-search { max-width: 460px; }
.b-table td:nth-child(1), .b-table td:nth-child(3) { white-space: nowrap; }
.b-table .is-old { color: var(--muted); }
.b-count { color: var(--muted); font-size: .88rem; }

/* 403.html and 404.html */
.error-page { display: flex; align-items: center; min-height: min(64vh, 680px); padding-block: 72px 96px; }
.error-copy { max-width: 680px; }
.error-lede { margin: 0 0 36px; color: var(--muted); font-size: 1.15rem; }
.error-links { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.error-links a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 2px; border-bottom: 1px solid var(--line); font-weight: 600; }
.error-links a:hover { color: var(--accent); }

:lang(es) :is(h1, h2, h3) { hyphens: manual; overflow-wrap: break-word; }

@media (max-width: 1000px) {
  .site-header { flex-wrap: wrap; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 10px 20px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 30px 48px; }
  .hero-copy { padding-top: 0; }
  .a-layout { grid-template-columns: minmax(0, 1fr); }
  .a-side { display: none; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .nav-sections { gap: 14px; font-size: .88rem; }
  .t-tool, .a-answer, .a-steps, .a-example { padding: 20px 16px; }
  .t-out { padding: 18px 16px; }
  .a-terms div { grid-template-columns: 1fr; gap: 4px; }
  .cal-list li { grid-template-columns: 1fr auto; }
  .cal-list li span:not(.cal-tag) { grid-column: 1 / -1; }
  .site-footer { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .a-card { transition: none; } }
