/* ============================================================
   Balances — marca compartida (home + webinars)
   Tokens, fuentes, base, botones, chips, nav, FAQ, footer, modal
   ============================================================ */
/* Fuentes: se cargan con <link> no bloqueante en el <head> de cada página (Poppins 500/600, Geist 400/500/600, Geist Mono 400/500) */

:root {
  --blue: #1447A0;
  --blue-dark: #0E3780;
  --blue-soft: #E8EEF8;
  --ink: #0F1B33;
  --muted: #5B6478;
  --line: #E4E2DC;
  --paper: #F7F6F2;
  --white: #FFFFFF;
  --green: #166534;
  --green-soft: #E7F6EC;

  --ff-display: 'Poppins', system-ui, sans-serif;
  --ff-body: 'Geist', system-ui, -apple-system, sans-serif;
  --ff-mono: 'Geist Mono', ui-monospace, monospace;

  --nav-h: 68px;
  --radius: 8px;
  --radius-lg: 18px;
  --shadow-ui: 0 30px 60px -30px rgba(15, 27, 51, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--ff-body); background: var(--paper); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.muted { color: var(--muted); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: var(--radius); font-weight: 500; font-size: 15px; line-height: 1.2; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .18s, border-color .18s, transform .18s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { border-color: #CBD2DE; color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--white); color: var(--blue); }
.btn--glass { background: rgba(255, 255, 255, .7); border-color: rgba(255, 255, 255, .85); color: var(--ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--sm { padding: 9px 16px; font-size: 14px; }

/* Chips */
.chip { display: inline-block; font-size: 11px; line-height: 1.6; padding: 2px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-weight: 500; white-space: nowrap; }
.chip--ok { background: var(--green-soft); color: var(--green); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(247, 246, 242, .85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 32px; font-size: 16px; }
.nav__links a { color: var(--muted); text-decoration: none; }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 16px; font-size: 16px; }
.nav__login { color: var(--muted); text-decoration: none; }
.nav__burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; }
.nav__burger span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav__burger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav__mobile { display: none; }
@media (max-width: 860px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: block; }
  .nav__mobile { position: absolute; left: 0; right: 0; top: var(--nav-h); background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; flex-direction: column; gap: 4px; }
  .nav__mobile.open { display: flex; }
  .nav__mobile a { padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
  .nav__mobile .btn { margin-top: 12px; border-bottom: 0; }
}

/* FAQ */
.faq { padding: 110px 0; border-top: 1px solid var(--line); }
.faq h2 { font-size: clamp(32px, 4vw, 44px); margin: 10px 0 36px; }
.faq__list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; background: none; border: 0; text-align: left; font-size: 17px; font-weight: 500; color: var(--ink); cursor: pointer; }
.faq-item__icon { flex: none; width: 14px; height: 14px; stroke: var(--blue); stroke-width: 1.6; transition: transform .25s; }
.faq-item.active .faq-item__icon { transform: rotate(45deg); }
.faq-item__answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item__answer-inner { padding: 0 0 22px; color: var(--muted); line-height: 1.6; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__logo img { height: 20px; width: auto; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--ink); }
.footer__copy { color: var(--muted); }

/* Modal de contacto */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.active { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 27, 51, .45); }
.modal__container { position: relative; width: min(440px, 100%); background: var(--white); border-radius: var(--radius-lg); padding: 36px 32px 28px; text-align: center; box-shadow: 0 30px 80px rgba(15, 27, 51, .3); }
.modal__close { position: absolute; top: 14px; right: 14px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.modal__icon, .modal__success-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.modal__title, .modal__success-title { font-size: 24px; }
.modal__desc, .modal__success-desc, .modal__footnote { color: var(--muted); margin-top: 8px; }
.modal__form { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; text-align: left; }
.modal__input { flex: 1; min-width: 0; border: 1px solid #CBD2DE; border-radius: var(--radius); padding: 12px 14px; background: var(--white); }
.modal__footnote { font-size: 13px; }
.modal__success { display: none; }
.modal__success.active { display: block; }
.modal__message { resize: vertical; min-height: 96px; }

/* UI recreada (home y páginas de producto) */
.ui { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-ui); overflow: hidden; font-size: 13px; min-width: 0; }
.ui__top { display: flex; gap: 6px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.ui__top i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.ui__top b { margin-left: 10px; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui__body { padding: 18px; overflow-x: auto; }
.ui__table { width: 100%; border-collapse: collapse; }
.ui__table th, .ui__table td { padding: 9px 8px; text-align: left; border-bottom: 1px solid #F0EEE8; white-space: nowrap; }
.ui__table th { color: var(--muted); font-weight: 500; font-size: 12px; }
.ui__table .num { text-align: right; font-family: var(--ff-mono); }
.ui__table .num .chip { font-family: var(--ff-body); }
.ui__barcell { width: 45%; }
.ui__bar { height: 8px; border-radius: 99px; background: var(--blue-soft); overflow: hidden; }
.ui__bar i { display: block; height: 100%; width: var(--v); background: var(--blue); }
.ui__actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.ui__split { display: grid; grid-template-columns: .75fr 1.25fr; }
.ui__col { padding: 16px; min-width: 0; }
.ui__col--out { border-left: 1px solid var(--line); background: #FBFAF7; overflow-x: auto; }
.ui__label { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.ui__doc { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
@media (max-width: 640px) {
  .ui__split { grid-template-columns: 1fr; }
  .ui__col--out { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- CTA final ---------- */
.cta-final { background: var(--blue); color: var(--white); text-align: center; padding: 110px 24px; }
.cta-final h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
.cta-final p { opacity: .85; margin: 16px 0 28px; font-size: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
