/* ==========================================================================
   EloPago — sitio institucional
   Columna de texto + producto real a la derecha; secciones alternan blanco y
   gris azulado frío; el único gesto de color es el turquesa de los destinos,
   el mismo de las flechas del logotipo. Tema único claro por decisión de marca.
   ========================================================================== */
:root {
  color-scheme: light;
  --navy: #071c39;
  --ink: #071c39;
  --ink-2: #1d3352;
  --blue: #0769cb;
  --blue-700: #0554a5;
  --teal: #12b8ae;
  --teal-ink: #0b7d76;
  --bg: #ffffff;
  --tint: #f3f6fa;
  --line: #e1e7ef;
  --line-strong: #c7d2df;
  --muted: #56677e;
  --ok: #0c7d55; --ok-bg: #e6f5ee;
  --wait: #9a5b00; --wait-bg: #fff4e0;
  --err: #b8322a; --err-bg: #fdecea;
  --c1: #0769cb; --c2: #12b8ae; --c3: #071c39; --c4: #6aa5ef; --c5: #8edbd3;

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-md: 1.0625rem; --fs-lg: 1.25rem; --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.875rem, 1.3rem + 2.2vw, 2.625rem);
  --fs-hero: clamp(2.6rem, 1.6rem + 4.6vw, 4.5rem);
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 12px; --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(7, 28, 57, .06), 0 18px 40px -18px rgba(7, 28, 57, .22);
  --ring: 0 0 0 3px rgba(7, 105, 203, .28);
  --header-h: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: var(--fs-md); line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
[hidden], [data-hide] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 16px; height: 16px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 700; font-size: var(--fs-sm); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn-sm { min-height: 40px; padding: 0 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-ghost { background: var(--bg); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--blue); padding-inline: 10px; }
.btn-quiet:hover { background: var(--tint); }
.btn-quiet:disabled { color: var(--muted); cursor: not-allowed; background: transparent; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { flex: none; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a { white-space: nowrap; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); padding: 8px 11px; border-radius: 8px; }
.nav a:hover { background: var(--tint); color: var(--ink); }
.nav-mobile-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.lang a { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 6px; letter-spacing: .04em; }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
.link-login { font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.link-login:hover { color: var(--blue); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 1280px) { .link-login { display: none; } .nav a { padding-inline: 8px; } }
@media (max-width: 940px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; box-shadow: 0 20px 30px -20px rgba(7, 28, 57, .25); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: var(--fs-md); }
  .nav-mobile-extra { display: block; }
  .nav-mobile-extra a { border-bottom: 0; color: var(--blue); }
  .header-actions { margin-left: auto; gap: 8px; }
}
@media (max-width: 540px) { .header-actions .btn { display: none; } .brand img { height: 30px; } }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-tint { background: var(--tint); }
.section-head { max-width: 660px; margin-bottom: clamp(32px, 4vw, 56px); display: grid; gap: 14px; align-content: start; }
.section-head h2, .faq-wrap > h2, .contact h2 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.03em; }
.section-head p { color: var(--muted); max-width: 60ch; }
.split-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .split-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.signature { font-size: var(--fs-sm); font-weight: 700; color: var(--teal-ink); padding-left: 14px; border-left: 3px solid var(--teal); line-height: 1.4; }
.hero-title { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -.045em; line-height: 1; max-width: 11ch; }
.hero-sub { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 48ch; line-height: 1.55; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-facts { display: grid; gap: 8px; margin-top: 10px; }
.hero-facts li { display: flex; gap: 10px; align-items: center; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 500; }
.hero-facts .ico { width: 18px; height: 18px; color: var(--teal-ink); stroke-width: 2.25; }
.hero-demo { min-width: 0; }
.demo { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 4px; }
.demo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.tag-demo { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--wait); background: var(--wait-bg); border-radius: 6px; padding: 3px 8px; white-space: nowrap; letter-spacing: 0; vertical-align: middle; }
.demo-charge { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.demo-amount { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; border-radius: 999px; padding: 4px 10px 4px 8px; white-space: nowrap; }
.state .ico { width: 15px; height: 15px; stroke-width: 2.5; }
.state-ok { background: var(--ok-bg); color: var(--ok); }
.flow { position: relative; height: 96px; margin-inline: calc(100% / 8 - 2px); }
.flow-lines { width: 100%; height: 100%; overflow: visible; }
.fl { fill: none; stroke: var(--teal); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.fl-in { stroke: var(--line-strong); }
.fl-fee { stroke: var(--line-strong); stroke-dasharray: 4 4; }
.engine { position: absolute; left: 50%; top: 34px; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 12px 6px 10px; border-radius: 999px; white-space: nowrap; }
.engine .ico { width: 16px; height: 16px; color: var(--teal); }
.dest { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dest-item { display: grid; gap: 2px; padding: 10px; border-radius: var(--radius); background: var(--tint); border-top: 3px solid var(--c, var(--c1)); min-width: 0; }
.dest-item.c1 { --c: var(--c1); } .dest-item.c2 { --c: var(--c2); } .dest-item.c3 { --c: var(--c3); }
.dest-item.fee { --c: var(--line-strong); background: repeating-linear-gradient(135deg, #f7f9fc 0 6px, #eef2f7 6px 12px); }
.dest-name { font-size: 12px; font-weight: 700; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dest-amt { font-size: var(--fs-sm); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.dest-state { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-size: var(--fs-xs); font-weight: 700; }
.demo-total b { font-size: var(--fs-sm); }
.events { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; }
.event { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.event .ico { width: 15px; height: 15px; stroke-width: 2.4; }
.ev-done { color: var(--ok); } .ev-wait { color: var(--wait); }
@media (prefers-reduced-motion: no-preference) {
  .js .fl { stroke-dasharray: 1000; stroke-dashoffset: 0; animation: draw 1.1s cubic-bezier(.6, 0, .2, 1) both; }
  .js .fl-fee { stroke-dasharray: 4 4; animation: none; }
  .js .fl-in { animation-delay: .15s; animation-duration: .5s; }
  .js .fl-1, .js .fl-2, .js .fl-3 { animation-delay: .55s; }
  .js .dest-item { animation: settle .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(1.05s + var(--i) * .08s); }
}
@keyframes draw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes settle { from { transform: translateY(6px); } to { transform: none; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-title { max-width: 13ch; } }
@media (max-width: 520px) { .dest { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flow { display: none; } .demo-charge { margin-bottom: 10px; } }

/* ---------- Problema ---------- */
.problem-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.problem-list li { padding: 18px 0; border-top: 1px solid var(--line-strong); }
.problem-list h3 { font-size: var(--fs-md); font-weight: 800; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.problem-list h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--err); opacity: .75; }
.problem-list p { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 560px) { .problem-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Solución ---------- */
.capabilities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 36px); }
.capability { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 2px solid var(--ink); min-width: 0; }
.capability h3 { font-size: var(--fs-lg); font-weight: 800; }
.capability > p { color: var(--muted); font-size: var(--fs-sm); }
.capability ul { display: grid; gap: 6px; margin-top: 4px; }
.capability li { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.capability li .ico { color: var(--teal-ink); margin-top: 3px; stroke-width: 2.4; }
.module-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--tint); color: var(--blue); }
.module-icon .ico { width: 22px; height: 22px; }
@media (max-width: 1000px) { .capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .capabilities { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Cómo funciona ---------- */
.steps-line { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; position: relative; }
.steps-line li { display: grid; gap: 8px; align-content: start; position: relative; }
.steps-line li:not(:last-child)::after { content: ""; position: absolute; top: 17px; left: 46px; right: -18px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.steps-line h3 { font-size: var(--fs-md); font-weight: 800; margin-top: 6px; }
.steps-line p { color: var(--muted); font-size: var(--fs-sm); }
.step-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; }
.steps-line li:nth-child(3) .step-n, .steps-line li:nth-child(4) .step-n { background: var(--teal-ink); }
@media (max-width: 900px) { .steps-line { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps-line li::after { display: none; } }
@media (max-width: 520px) { .steps-line { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Paneles y formularios ---------- */
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 2.6vw, 28px); min-width: 0; }
.panel-raised { box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; min-width: 0; }
.field-label { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); padding: 0; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
input[readonly] { background: var(--tint); font-weight: 700; }
textarea { resize: vertical; min-height: 92px; }
select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356677e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.hint { font-size: var(--fs-xs); color: var(--muted); }
.field-error { font-size: var(--fs-xs); color: var(--err); font-weight: 600; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.input-money { position: relative; display: block; }
.input-money > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--muted); }
.input-money input { padding-left: 32px !important; font-variant-numeric: tabular-nums; font-weight: 700; }

/* ---------- Simulador ---------- */
.sim { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; }
.sim-input { display: grid; gap: 22px; }
.sim-top .input-money input { font-size: var(--fs-xl) !important; min-height: 56px !important; letter-spacing: -.02em; }
.sim-fee { padding: 14px; border-radius: 12px; background: var(--tint); }
.sim-fee legend { margin-bottom: 8px; padding: 0; }
.sim-fee-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.sim-fee .field-wide { grid-column: 1 / -1; }
.sim-rows { display: grid; gap: 8px; }
.sim-rows legend { margin-bottom: 8px; }
[data-sim-list] { display: grid; gap: 8px; }
.sim-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) 92px 96px 40px; gap: 8px; align-items: center; }
.sim-row-head { font-size: 12px; color: var(--muted); font-weight: 600; }
.sim-row input, .sim-row select { min-height: 42px; font-size: 15px; }
.sim-row [data-f="value"] { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--tint); color: var(--err); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
[data-add] { justify-self: start; }
.sim-output { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 16px); }
.sim-out-title { font-size: var(--fs-md); font-weight: 800; }
.sim-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.sim-table td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sim-table td:first-child { font-weight: 700; }
.sim-table td:first-child small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; margin-left: 18px; }
.sim-table td:first-child .sw { margin-right: 8px; vertical-align: -1px; }
.sim-table .r { text-align: right; white-space: nowrap; font-weight: 800; }
.sim-table .fee-row td { color: var(--ink-2); }
.sim-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.sim-sum div { background: var(--tint); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.sim-sum dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.sim-sum dd { margin: 2px 0 0; font-weight: 800; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.sim-status { display: grid; gap: 6px; }
.sim-status p { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sm); font-weight: 600; }
.sim-status .ico { margin-top: 2px; width: 18px; height: 18px; stroke-width: 2.3; }
.sim-status .ok { color: var(--ok); } .sim-status .err { color: var(--err); }
@media (max-width: 900px) { .sim { grid-template-columns: minmax(0, 1fr); } .sim-output { position: static; } }
@media (max-width: 520px) {
  .sim-row { grid-template-columns: 10px minmax(0, 1fr) minmax(0, 1fr) 40px; row-gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .sim-row .sw { grid-row: 1 / span 2; align-self: start; margin-top: 16px; }
  .sim-row [data-f="name"] { grid-column: 2 / span 2; }
  .sim-row > :last-child { grid-column: 4; grid-row: 1; }
  .sim-row [data-f="type"] { grid-column: 2; } .sim-row [data-f="value"] { grid-column: 3; }
  .sim-row-head { display: none; }
  .sim-fee-grid { grid-template-columns: minmax(0, 1fr); }
}
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--line-strong); flex: none; }
.sw.c1 { background: var(--c1); } .sw.c2 { background: var(--c2); } .sw.c3 { background: var(--c3); } .sw.c4 { background: var(--c4); } .sw.c5 { background: var(--c5); }
.sw.fee { background: repeating-linear-gradient(135deg, var(--muted) 0 2px, #e8edf4 2px 4px); }
.ribbon { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: repeating-linear-gradient(135deg, var(--line) 0 4px, var(--bg) 4px 8px); box-shadow: inset 0 0 0 1px var(--line); }
.ribbon-lg { height: 14px; border-radius: 8px; }
.seg { flex: 0 0 calc(var(--w) * 1%); min-width: 0; transition: flex-basis .35s cubic-bezier(.2, .7, .2, 1); }
.seg + .seg { box-shadow: inset 2px 0 0 var(--bg); }
.seg.c1 { background: var(--c1); } .seg.c2 { background: var(--c2); } .seg.c3 { background: var(--c3); } .seg.c4 { background: var(--c4); } .seg.c5 { background: var(--c5); }
.seg.fee { background: repeating-linear-gradient(135deg, var(--muted) 0 2px, #e8edf4 2px 4px); }

/* ---------- Ecosistema (sección oscura) ---------- */
.section-ink { background: var(--navy); color: #e8eef7; }
.section-ink .section-head p { color: #a9b8cc; }
.section-ink h2 { color: #fff; }
.eco { margin: 0; display: grid; gap: 20px; }
.eco-desktop { width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.eco-node rect { fill: #0e2a52; stroke: #2a4b78; stroke-width: 1.5; }
.eco-elopago rect { fill: #0f3a6e; stroke: var(--teal); stroke-width: 2; }
.eco-bank rect { fill: #0e2a52; stroke: #7fa7d9; stroke-width: 1.5; }
.eco-t { fill: #fff; font-weight: 800; font-size: 19px; }
.eco-s { fill: #a9b8cc; font-size: 13.5px; }
.eco-lbl { fill: #c9d5e4; font-size: 13.5px; font-weight: 600; }
.eco-badge rect { fill: transparent; stroke: #c3a6ff; stroke-dasharray: 5 4; stroke-width: 1.5; }
.eco-badge-t { fill: #fff; font-weight: 800; font-size: 14.5px; }
.eco-badge-s { fill: #c9d5e4; font-size: 13px; }
.ln-info { stroke: #8ea1bb; stroke-width: 2; stroke-dasharray: 7 5; fill: none; }
.ln-instr { stroke: #6aa5ef; stroke-width: 2.5; fill: none; }
.ln-money { stroke: var(--teal); stroke-width: 6; fill: none; stroke-linecap: round; }
.ln-confirm { stroke: #f8c77e; stroke-width: 2.5; stroke-dasharray: 2 5; fill: none; stroke-linecap: round; }
.ln-recon { stroke: #c3a6ff; stroke-width: 2; stroke-dasharray: 5 4; fill: none; }
.mk-info { fill: #8ea1bb; } .mk-instr { fill: #6aa5ef; } .mk-money { fill: var(--teal); } .mk-confirm { fill: #f8c77e; } .mk-recon { fill: #c3a6ff; }
.eco-mobile { display: none; }
.eco-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: var(--fs-xs); font-weight: 600; color: #c9d5e4; }
.eco-legend li { display: inline-flex; align-items: center; gap: 8px; }
.lk-sw { width: 28px; height: 0; display: inline-block; border-top: 2px dashed #8ea1bb; }
.lk-sw.lk-instr { border-top: 3px solid #6aa5ef; }
.lk-sw.lk-money { border-top: 6px solid var(--teal); border-radius: 3px; }
.lk-sw.lk-confirm { border-top: 3px dotted #f8c77e; }
.lk-sw.lk-recon { border-top: 2px dashed #c3a6ff; }
.eco-note { font-size: var(--fs-xs); color: #8ea1bb; margin-top: 10px; }
@media (max-width: 760px) {
  .eco-desktop { display: none; }
  .eco-mobile { display: grid; gap: 0; counter-reset: e; }
  .eco-mobile li { position: relative; display: grid; gap: 2px; padding: 14px 16px; border: 1.5px solid #2a4b78; border-radius: 14px; background: #0e2a52; margin-bottom: 46px; }
  .eco-mobile li:last-child { margin-bottom: 0; }
  .eco-mobile li.is-elopago { border-color: var(--teal); background: #0f3a6e; }
  .eco-mobile b { color: #fff; font-size: var(--fs-md); }
  .eco-mobile span { color: #a9b8cc; font-size: var(--fs-xs); }
  .eco-mobile .lk { position: absolute; left: 18px; top: calc(100% + 8px); font-style: normal; font-size: 12.5px; font-weight: 600; color: #c9d5e4; padding-left: 18px; }
  .eco-mobile .lk + .lk { left: auto; right: 18px; }
  .eco-mobile .lk::before { content: ""; position: absolute; left: 4px; top: -8px; bottom: -8px; border-left: 2px dashed #8ea1bb; }
  .eco-mobile .lk-instr::before { border-left: 3px solid #6aa5ef; }
  .eco-mobile .lk-money::before { border-left: 6px solid var(--teal); left: 2px; }
  .eco-mobile .lk-confirm::before { border-left: 3px dotted #f8c77e; }
}

/* ---------- Segmentos ---------- */
.segments { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: start; }
.seg-list { display: grid; gap: 4px; }
.seg-list button { text-align: left; border: 0; background: transparent; padding: 12px 14px; border-radius: 10px; font-weight: 700; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; border-left: 3px solid transparent; }
.seg-list button:hover { color: var(--ink); background: var(--tint); }
.seg-list button[aria-selected="true"] { color: var(--ink); background: var(--tint); border-left-color: var(--teal); border-radius: 0 10px 10px 0; }
.seg-panel { display: grid; gap: 14px; }
.seg-panel h3 { font-size: var(--fs-xl); font-weight: 800; }
.seg-panel > p { color: var(--muted); max-width: 58ch; }
.seg-example { margin-top: 8px; background: var(--tint); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; }
.seg-ex-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--fs-xs); color: var(--muted); font-weight: 700; }
.seg-ex-head b { font-size: var(--fs-xl); color: var(--ink); font-weight: 800; letter-spacing: -.03em; }
.seg-example ul { display: grid; gap: 8px; }
.seg-example li { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); font-weight: 600; }
.seg-example li > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.seg-example li b { white-space: nowrap; }
@media (max-width: 800px) {
  .segments { grid-template-columns: minmax(0, 1fr); }
  .seg-list { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .seg-list::-webkit-scrollbar { display: none; }
  .seg-list button { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
  .seg-list button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); border-radius: 999px; }
}

/* ---------- Seguridad ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.sec-grid li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line-strong); }
.sec-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--bg); color: var(--ink); display: grid; place-items: center; }
.sec-grid h3 { font-size: var(--fs-md); font-weight: 800; margin-bottom: 2px; }
.sec-grid p { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 760px) { .sec-grid { grid-template-columns: minmax(0, 1fr); } }
.callout { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 14px 16px; border-radius: var(--radius); background: var(--wait-bg); color: #5c3a00; font-size: var(--fs-sm); line-height: 1.5; }
.callout .ico { color: var(--wait); margin-top: 1px; }
.callout-wide { background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.callout-wide .ico { color: var(--blue); }

/* ---------- Tarifas ---------- */
.checklist-light { display: grid; gap: 14px; }
.checklist-light li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.checklist-light .ico { color: var(--teal-ink); stroke-width: 2.4; margin-top: 2px; }
.formula { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 22px; border-radius: var(--radius-lg); background: var(--navy); color: #fff; font-size: var(--fs-lg); font-weight: 700; }
.formula span { background: rgba(255, 255, 255, .08); padding: 6px 12px; border-radius: 8px; }
.formula b { color: var(--teal); font-size: var(--fs-xl); }
.rules-list { display: grid; gap: 0; margin: 0; }
.rules-list div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.rules-list dt { font-weight: 800; }
.rules-list dd { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .rules-list div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq details:first-child { border-top: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq-ico { margin-top: 3px; transition: transform .2s; color: var(--blue); }
.faq details[open] .faq-ico { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); max-width: 64ch; }
@media (max-width: 760px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-copy { display: grid; gap: 16px; }
.contact-copy .lead { color: var(--muted); }
.contact-copy h3 { font-size: var(--fs-sm); font-weight: 800; margin-top: 16px; }
.next-steps { display: grid; gap: 14px; counter-reset: n; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; font-size: var(--fs-sm); color: var(--ink-2); }
.next-steps li::before { content: counter(n); width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.lead-form { display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-full { grid-column: 1 / -1; }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: var(--fs-xs); color: var(--ink-2); cursor: pointer; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: flex; gap: 10px; align-items: flex-start; background: var(--err-bg); color: var(--err); border-radius: 10px; padding: 12px 14px; font-size: var(--fs-sm); font-weight: 600; }
.form-success { display: grid; gap: 10px; justify-items: start; padding-block: 24px; }
.form-success h3 { font-size: var(--fs-xl); font-weight: 800; }
.form-success p { color: var(--muted); }
.success-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; }
.success-icon .ico { width: 24px; height: 24px; stroke-width: 2.5; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Páginas simples ---------- */
.page-simple .wrap { display: grid; gap: 22px; justify-items: stretch; }
.page-simple h1 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.03em; }
.page-simple h2 { font-size: var(--fs-lg); font-weight: 800; margin-top: 10px; }
.page-simple .lead { color: var(--muted); font-size: var(--fs-lg); }
.page-simple .callout { margin-top: 0; }
.page-simple > .wrap > p:last-child { justify-self: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9b8cc; padding-block: 64px 32px; font-size: var(--fs-sm); }
.site-footer .wrap { padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand img { height: 32px; width: auto; }
.footer-brand p { color: #c9d5e4; font-weight: 600; }
.site-footer h2 { font-size: var(--fs-xs); color: #fff; font-weight: 700; margin-bottom: 12px; letter-spacing: 0; }
.site-footer nav { display: grid; gap: 8px; align-content: start; }
.site-footer a { color: #c9d5e4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-notice { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: var(--fs-xs); max-width: 90ch; line-height: 1.6; }
.footer-base { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: var(--fs-xs); color: #8ea1bb; }
.site-footer :focus-visible, .section-ink :focus-visible { outline-color: var(--teal); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

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