/* Avancia · web. Tema claro, Figtree, la misma marca del portal. */
@font-face { font-family: 'Figtree'; font-weight: 400; font-display: swap; src: url('/fonts/figtree-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 500; font-display: swap; src: url('/fonts/figtree-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 600; font-display: swap; src: url('/fonts/figtree-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 700; font-display: swap; src: url('/fonts/figtree-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 800; font-display: swap; src: url('/fonts/figtree-latin-800-normal.woff2') format('woff2'); }

:root {
  --bg: #f5f6fa; --surface: #fff; --ink: #141a33; --ink-2: #39415a; --muted: #5d6578; --line: #e4e7ef;
  --brand: #3b47d9; --brand-600: #2f39b8; --brand-50: #eef0ff; --ok: #0c6e55; --ok-bg: #e2f4ec;
  --r: 16px; --sombra: 0 1px 2px rgba(20,26,51,.04), 0 2px 6px rgba(20,26,51,.03);
  --sombra-g: 0 24px 60px rgba(20,26,51,.14), 0 4px 14px rgba(20,26,51,.06);
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.55; color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); font-weight: 600; text-decoration: none; }
a:hover { color: var(--brand-600); }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 3px solid rgba(59,71,217,.4); outline-offset: 3px; border-radius: 8px; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.saltar:focus { left: 8px; }
.caja { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.angosta { max-width: 860px; }

/* ---------- barra ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo span { font-weight: 800; font-size: 24px; letter-spacing: -0.045em; line-height: 1; }
.menu { display: flex; align-items: center; gap: 6px; }
.menu a:not(.btn) { color: var(--ink-2); padding: 10px 14px; border-radius: 10px; font-size: 16px; }
.menu a:not(.btn):hover { background: var(--bg); color: var(--ink); }
.menu-btn { display: none; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: 700 16px var(--font); cursor: pointer; color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 700 16px var(--font); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--bg); color: var(--ink); }
.btn.pri { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(59,71,217,.35), 0 6px 18px rgba(59,71,217,.22); }
.btn.pri:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.btn.grande { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- portada ---------- */
.hero { background: linear-gradient(180deg, var(--bg), #fff 96%); padding: 72px 0 64px; overflow: hidden; }
.hero-texto { max-width: 760px; }
.etiqueta { font-size: 15px; font-weight: 800; color: var(--brand); margin-bottom: 14px; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.hero h1 span { color: var(--brand); }
.bajada { margin-top: 22px; font-size: 21px; color: var(--ink-2); max-width: 560px; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* el gráfico de la portada: de planillas sueltas a un portal */
.antes-despues { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 5fr) auto minmax(0, 6fr); align-items: stretch; gap: 0; }
.lado { border-radius: 22px; padding: 24px 26px 28px; position: relative; }
.lado-et { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.lado.hoy { background: #eceef4; border: 2px dashed #c3c9d8; color: var(--muted); }
.lado.con { background: #fff; border: 1px solid var(--line); box-shadow: var(--sombra-g); }
.lado.con .lado-et { color: var(--brand); }
.papeles { position: relative; height: 250px; }
.papel { position: absolute; display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #d6dbe7; border-radius: 10px; padding: 10px 14px; font-size: 16px; font-weight: 600; color: #4a5268; box-shadow: 0 6px 14px rgba(20,26,51,.08); white-space: nowrap; }
.ext { display: inline-grid; place-items: center; min-width: 38px; height: 26px; border-radius: 6px; font-size: 12px; font-weight: 800; color: #fff; padding: 0 6px; }
.ext.xls { background: #1f8a5b; } .ext.pdf { background: #d1432f; } .ext.mail { background: #6b7390; font-size: 15px; }
.p1 { left: 2%; top: 4%; transform: rotate(-5deg); } .p2 { left: 30%; top: 24%; transform: rotate(4deg); }
.p3 { left: 0; top: 48%; transform: rotate(-3deg); } .p4 { left: 26%; top: 68%; transform: rotate(5deg); }
.duda { position: absolute; right: 0; top: 0; background: var(--ink); color: #fff; border-radius: 16px 16px 16px 4px; padding: 10px 16px; font-weight: 800; font-size: 17px; transform: rotate(4deg); }
.paso { align-self: center; z-index: 2; margin: 0 -22px; width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--sombra-g); display: grid; place-items: center; }
.paso svg { width: 38px; height: 38px; }
.mini { display: flex; flex-direction: column; gap: 14px; }
.mini-top { display: flex; align-items: center; justify-content: space-between; font-weight: 700; color: var(--ink); font-size: 17px; }
.mini-top i { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); }
.mini-grande b { display: block; font-size: 64px; line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.mini-grande span { color: var(--muted); font-weight: 600; font-size: 16px; }
.barra { position: relative; height: 38px; border-radius: 10px; background: var(--bg); overflow: hidden; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 15px; font-weight: 700; color: var(--ink); }
.barra u { position: absolute; left: 0; top: 0; bottom: 0; background: #cfd4fa; }
.barra span, .barra em { position: relative; font-style: normal; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 15px; }
.pill.aviso { background: #fff0e0; color: #93460a; } .pill.ok { background: var(--ok-bg); color: var(--ok); }

.ventana { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sombra-g); overflow: hidden; }
.ventana-barra { height: 30px; background: #f1f3f8; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.ventana-barra i { width: 10px; height: 10px; border-radius: 50%; background: #d3d8e4; }
.ventana img { width: 100%; }

/* ---------- secciones ---------- */
.seccion { padding: 88px 0; }
.fondo { background: var(--bg); }
.titulo { font-size: clamp(32px, 3.8vw, 46px); font-weight: 800; letter-spacing: -0.035em; text-align: center; max-width: 820px; margin: 0 auto; }
.titulo.izq, .sub.izq { text-align: left; margin-left: 0; }
.sub { color: var(--ink-2); font-size: 20px; max-width: 520px; margin: 16px 0 0; }
.pasos { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: p; }
.pasos li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; box-shadow: var(--sombra); }
.pasos li:not(:last-child)::after { content: ''; position: absolute; right: -20px; top: 50%; width: 20px; height: 3px; background: #c9ceef; z-index: 1; }
.num { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.pasos h3 { font-size: 24px; font-weight: 800; margin: 18px 0 6px; letter-spacing: -0.02em; }
.pasos p { color: var(--ink-2); font-size: 19px; }
.portales { display: flex; flex-direction: column; gap: 64px; margin-top: 48px; }
.portal { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: center; }
.portal.inversa .portal-texto { order: 2; }
.portal.inversa { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.portal h3 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 18px; }
.chips { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 16px; color: var(--ink-2); }
.aparte { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 48px; font-size: 21px; font-weight: 800; color: var(--ink); text-align: center; }
.aparte svg { color: var(--ok); flex: none; }

.leer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.leer a { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--sombra); color: var(--ink); }
.leer a:hover { box-shadow: var(--sombra-g); color: var(--ink); }
.leer span { align-self: flex-start; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); background: var(--brand-50); padding: 5px 12px; border-radius: 999px; }
.leer b { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; }
.mas { text-align: center; margin-top: 28px; font-size: 19px; }
.legal { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
/* ---------- preguntas ---------- */
.faq { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; padding: 20px 28px 20px 0; font-weight: 700; font-size: 20px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); font-size: 19px; }

/* ---------- formulario ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.form, .gracias { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--sombra-g); display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.form input, .form select, .form textarea { min-height: 50px; padding: 0 14px; border: 1px solid #d3d8e4; border-radius: 12px; background: #fff; font: 400 17px var(--font); color: var(--ink); width: 100%; }
.form textarea { padding: 12px 14px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59,71,217,.16); }
.dos-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.trampa { position: absolute; left: -9999px; }
.error { color: #93460a; background: #fff0e0; border-radius: 10px; padding: 12px 14px; font-size: 16px; }
.gracias { align-items: center; text-align: center; padding: 56px 32px; }
.gracias h3 { font-size: 26px; font-weight: 800; }
.gracias p { color: var(--ink-2); }
.check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; }
[hidden] { display: none !important; }

.pie { background: var(--bg); border-top: 1px solid var(--line); }
.pie-in { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.pie p { color: var(--ink-2); font-size: 16px; }
.pie .chico { margin-left: auto; color: var(--muted); font-size: 15px; }

/* ---------- celular y tablet ---------- */
@media (max-width: 980px) {
  body { font-size: 17px; }
  .hero { padding: 40px 0 40px; }
  .antes-despues { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 36px; }
  .paso { margin: -22px auto; }
  .papeles { height: 250px; }
  .p1 { left: 0; top: 0; } .p2 { left: 16%; top: 22%; } .p3 { left: 0; top: 46%; } .p4 { left: 14%; top: 68%; }
  .duda { top: auto; bottom: 4px; right: 0; }
  .demo, .pasos, .leer, .portal, .portal.inversa { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .portal.inversa .portal-texto { order: 0; }
  .portales { gap: 48px; }
  .pasos li:not(:last-child)::after { display: none; }
  .seccion { padding: 60px 0; }
  .menu-btn { display: inline-flex; align-items: center; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px; flex-direction: column; align-items: stretch; box-shadow: 0 12px 24px rgba(20,26,51,.08); }
  .menu.abierto { display: flex; }
  .menu a { padding: 14px 8px !important; }
  .menu .btn { margin-top: 8px; }
  .dos-campos { grid-template-columns: minmax(0, 1fr); }
  .form { padding: 24px 20px; }
  .pie .chico { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .faq summary::after { transition: none; } }
