/* Bluconta public pages (login, signup, forgot, reset, seguridad, pricing).
   Same brand tokens and type as the landing (static/css/landing/01-base.css) and the blog. */
:root {
  --lime: #E9F43A;
  --lime-hover: #DDE92C;
  --sky: #BCDCFF;
  --sky-soft: #E8F2FF;
  --blue: #2F7BE9;
  --blue-deep: #1F5FC4;
  --navy: #0B1B3A;
  --ink: #0B1220;
  --ink-2: #434D61;
  --ink-3: #6E7890;
  --paper: #F5F6F1;
  --white: #FFFFFF;
  --line: rgba(11, 18, 32, 0.10);
  --line-2: rgba(11, 18, 32, 0.18);
  --ok: #12804A;
  --ok-soft: #E1F4E8;
  --warn: #9A5600;
  --warn-soft: #FFF0D2;
  --danger: #B42318;
  --danger-soft: #FEE4E2;
  --wa: #25D366;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 1px 2px rgba(11, 18, 32, 0.06), 0 16px 36px -16px rgba(11, 18, 32, 0.22);
  --font: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 32px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); background: var(--paper); color: var(--ink);
  font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nobr { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 30; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.read { max-width: calc(68ch + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* Logo: the paper crane + "bluconta", same rules as the landing (landing/01-base.css). */
.brand { display: inline-block; white-space: nowrap; font-weight: 600; font-size: 23px; line-height: 1; letter-spacing: -0.04em; color: var(--navy); }
.brand svg { display: inline-block; vertical-align: baseline; position: relative; bottom: -0.063em; width: 1.28em; height: 0.82em; margin-right: 0.18em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: default; }
/* Primary action = Cielo blue. The old lime brand is retired; .btn-lime now
   aliases blue so no stray lime buttons survive on public pages. */
.btn-blue, .btn-lime { background: var(--blue); color: var(--white); }
.btn-blue:hover, .btn-lime:hover { background: var(--blue-deep); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #1F2A44; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-wa svg { width: 22px; height: 22px; color: var(--wa); }
.link { color: var(--blue-deep); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { text-decoration-thickness: 2px; }
.link-quiet { color: var(--ink-2); font-weight: 500; }
.link-quiet:hover { color: var(--ink); }

/* Header */
.bh { position: sticky; top: 0; z-index: 20; background: rgba(245, 246, 241, 0.88); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.bh-inner { display: flex; align-items: center; gap: 16px; max-width: 1200px; height: var(--header-h); margin: 0 auto; padding-inline: var(--gutter); }
.bh-nav { margin-left: auto; display: flex; }
.bh-nav a { display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color 150ms ease, background 150ms ease; }
.bh-nav a:hover { color: var(--ink); background: rgba(11, 18, 32, 0.05); }
.bh-nav a.is-active { color: var(--ink); background: rgba(11, 18, 32, 0.07); }
.bh-actions { display: flex; align-items: center; gap: 6px 18px; }
.bh-actions .link-quiet { font-size: 15px; white-space: nowrap; }

/* Footer */
.bf { background: var(--navy); color: rgba(255, 255, 255, 0.7); padding-block: 56px 28px; margin-top: 72px; }
.bf .brand { color: var(--white); font-size: 28px; }
.bf .brand svg { color: var(--sky); }
.bf-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; margin-bottom: 40px; }
.bf-tag { margin: 14px 0 0; max-width: 300px; font-size: 15px; }
.bf-links { display: flex; gap: 56px; }
.bf-links ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bf-links a { color: rgba(255, 255, 255, 0.88); font-size: 15px; transition: color 150ms ease; }
.bf-links a:hover { color: var(--lime); }
.bf-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.bf-bot a:hover { color: var(--lime); }

/* Page heads */
.page-head { padding-block: 56px 32px; }
.page-head h1 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1; letter-spacing: -0.045em; }
.page-head .lede { margin-top: 16px; }
.page-head--center { text-align: center; }
.page-head--center .lede { margin-inline: auto; }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 620px; margin: 0; text-wrap: pretty; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.chip-soft { background: var(--sky-soft); color: var(--blue-deep); }
.chip svg { width: 16px; height: 16px; }

/* Auth card (login, signup, forgot, reset) */
.auth { padding-block: 48px 24px; }
.auth-card { width: 100%; max-width: 440px; margin: 0 auto; padding: 36px 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.auth-card h1 { font-size: 30px; line-height: 1.05; letter-spacing: -0.04em; }
.auth-card .muted { margin: 10px 0 22px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.auth-card .chip { margin: 0 0 18px; }
.auth-card label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.auth-card .field { margin-bottom: 16px; }
.auth-card .field label .req { color: #e5484d; font-weight: 600; }
.auth-card input[type="email"], .auth-card input[type="tel"], .auth-card input[type="password"], .auth-card input[type="text"] {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--white);
  font-size: 16px; transition: border-color 150ms ease, box-shadow 150ms ease;
}
.auth-card input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 123, 233, 0.14); }
.auth-card input::placeholder { color: var(--ink-3); }
.auth-card .hint { display: block; margin: 6px 0 0; font-size: 13.5px; color: var(--ink-3); }
.auth-card .btn-block { margin-top: 6px; }
.auth-card .danger { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: 14.5px; font-weight: 500; }
.auth-card .success { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-size: 14.5px; font-weight: 500; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: 999px; background: var(--paper); }
.auth-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.auth-tabs label { margin: 0; padding: 9px 0; text-align: center; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background 150ms ease, color 150ms ease; }
.auth-tabs input:checked + label { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(11, 18, 32, 0.08); }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -6px 0 16px; font-size: 14px; }
.checkbox-group { margin: 4px 0 18px; font-size: 14px; color: var(--ink-2); }
.checkbox-group label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; }
.checkbox-group input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; font-size: 12.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.oauth-buttons { display: flex; justify-content: center; gap: 12px; }
.btn-oauth { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--white); transition: border-color 150ms ease, background 150ms ease; }
.btn-oauth:hover { border-color: var(--ink); }
.btn-oauth svg { width: 22px; height: 22px; }
.auth-footer { margin-top: 22px; text-align: center; font-size: 14.5px; color: var(--ink-2); }
.auth-footer a { color: var(--ink); font-weight: 600; }
.auth-footer a:hover { color: var(--blue-deep); }
.token-link { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--ink-3); }
.token-link a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.auth-aside { max-width: 440px; margin: 18px auto 0; text-align: center; font-size: 14px; color: var(--ink-3); }
.auth-aside svg { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; margin-right: 4px; }
.toast-stack { position: fixed; left: 16px; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 9999; display: flex; flex-direction: column-reverse; gap: 10px; pointer-events: none; }
.toast-stack .toast { pointer-events: auto; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-card); animation: toastIn 0.2s ease both; }
.toast-stack .toast--danger { background: var(--danger-soft); color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Pricing */
.banner { max-width: 1200px; margin: 0 auto 8px; padding: 14px 18px; border-radius: var(--radius); background: var(--warn-soft); color: var(--warn); font-size: 15px; font-weight: 500; }
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 28px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.price-card.is-reco { border: 2px solid var(--ink); }
.price-card .badge { position: absolute; top: -14px; left: 28px; padding: 6px 14px; border-radius: 999px; background: var(--blue); color: var(--white); font-size: 13px; font-weight: 600; }
.price-card.is-chosen { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 123, 233, 0.14); }
.plan-name { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.plan-price { font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.plan-price .per { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-3); }
.plan-for { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); min-height: 3.1em; }
.feature-list { display: grid; gap: 10px; margin: 6px 0 10px; padding: 0; list-style: none; font-size: 15px; line-height: 1.4; }
.feature-list li { display: flex; gap: 10px; }
.feature-list svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: var(--ok); }
.price-card .btn { margin-top: auto; }
.price-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 28px 40px; align-items: center; padding: 36px 40px; background: var(--navy); color: var(--white); border-color: transparent; }
.price-wide:hover { transform: none; box-shadow: none; }
.price-wide .plan-name { color: var(--sky); }
.price-wide .pw-price { font-size: 30px; font-weight: 600; letter-spacing: -0.04em; margin: 6px 0 10px; }
.price-wide .plan-for { color: rgba(255, 255, 255, 0.78); min-height: 0; }
.price-wide .feature-list { margin: 0; }
.price-wide .feature-list svg { color: var(--lime); }
.pw-cta { display: grid; justify-items: start; gap: 8px; }
.pw-cta small { font-size: 13.5px; color: rgba(255, 255, 255, 0.62); }
.pricing-note { margin: 28px 0 0; text-align: center; font-size: 15px; color: var(--ink-2); }

/* Compare */
.section { padding-block: 64px 0; }
.section h2 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.04em; line-height: 1.05; }
.section .lede { margin-top: 12px; }
.compare-table-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare-table thead th { background: var(--sky-soft); font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.compare-table thead th:first-child { width: 34%; }
.compare-table thead th.is-reco { color: var(--ink); }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody td:first-child { font-weight: 500; }
.compare-table td .ok, .compare-acc li .ok { display: inline-block; width: 18px; height: 18px; color: var(--ok); vertical-align: -4px; }
.compare-table td .no { color: var(--ink-3); }
.compare-table .cta-row td { padding-top: 18px; padding-bottom: 18px; background: var(--paper); }
.compare-acc { display: none; margin-top: 24px; }
.compare-acc details { margin-bottom: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.compare-acc details.is-reco { border-color: var(--ink); }
.compare-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; }
.compare-acc summary::-webkit-details-marker { display: none; }
.compare-acc summary .plus { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.compare-acc summary .plus::before, .compare-acc summary .plus::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--ink); border-radius: 2px; }
.compare-acc summary .plus::before { width: 14px; height: 2px; }
.compare-acc summary .plus::after { width: 2px; height: 14px; transition: transform 200ms ease; }
.compare-acc details[open] summary .plus::after { transform: rotate(90deg); }
.compare-acc .acc-body { padding: 0 18px 18px; }
.compare-acc ul { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 15px; }
.compare-acc li { display: flex; gap: 10px; align-items: flex-start; }
.compare-acc li svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: var(--ok); }

/* SPEI */
.spei-card { max-width: 680px; margin-top: 24px; padding: 28px 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.spei-card ol { margin: 0; padding-left: 1.3em; }
.spei-card li { margin: 0.4em 0; }
.spei-card li::marker { color: var(--blue); font-weight: 600; }
.spei-card strong { color: var(--ink); font-weight: 600; }
.spei-card code { padding: 2px 8px; border-radius: 6px; background: var(--sky-soft); color: var(--ink); font-size: 14.5px; }
.spei-note { margin: 16px 0 0; font-size: 14px; color: var(--ink-3); }

/* Security page */
.seg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 8px; }
.seg-card { padding: 26px 26px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.seg-ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 14px; background: var(--sky-soft); color: var(--blue-deep); }
.seg-ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.seg-card h2 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; }
.seg-card p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.seg-card p + p { margin-top: 8px; }
.seg-hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding-block: 56px 72px; margin-bottom: 40px; }
.seg-hero::after { content: ""; position: absolute; right: -80px; bottom: -230px; width: 420px; height: 420px; border-radius: 50%; background: var(--lime); opacity: 0.95; pointer-events: none; }
.seg-hero .wrap { position: relative; z-index: 1; }
.seg-hero .chip { margin-bottom: 18px; }
.seg-hero h1 { max-width: 760px; font-size: clamp(40px, 6.4vw, 72px); line-height: 0.98; letter-spacing: -0.05em; color: var(--white); }
.seg-hero .lede { margin-top: 18px; color: rgba(255, 255, 255, 0.76); }
.seg-links { margin-top: 36px; font-size: 15px; color: var(--ink-2); }
.seg-links a { color: var(--ink); font-weight: 600; }
.seg-links a:hover { color: var(--blue-deep); }

@media (max-width: 960px) {
  .pricing { grid-template-columns: 1fr 1fr; }
  .price-wide { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .compare-table-wrap { display: none; }
  .compare-acc { display: block; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --header-h: 58px; }
  .bh-inner { gap: 8px; }
  .bh-nav { display: none; }
  .bh-actions { margin-left: auto; gap: 10px; }
  .bh-actions .link-quiet { font-size: 14px; }
  .brand { font-size: 21px; }
  .btn-sm { height: 38px; padding: 0 14px; font-size: 14.5px; }
  .auth { padding-block: 24px 16px; }
  .auth-card { padding: 28px 22px; border-radius: 20px; }
  .auth-card h1 { font-size: 26px; }
  .page-head { padding-block: 36px 24px; }
  .pricing { grid-template-columns: 1fr; gap: 24px; }
  .price-card { padding: 28px 22px 24px; }
  .price-wide { padding: 28px 22px; }
  .pw-cta .btn { width: 100%; }
  .section { padding-block: 48px 0; }
  .spei-card { padding: 22px 20px; }
  .seg-hero { padding-block: 36px 110px; }
  .seg-hero::after { right: -60px; bottom: -200px; width: 300px; height: 300px; }
  .seg-card { padding: 22px 20px; }
  .bf { margin-top: 48px; }
  .bf-links { gap: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
