/* =========================================================================
   DANNA ERP — Landing público
   Hoja propia del landing: no depende de style.css (que es de la app) ni de
   Tailwind. Blanco, tinta azul marino y un solo azul de acción. Claro por
   defecto; html.dark (theme.js) cambia los tokens.
   ========================================================================= */

:root {
  --bg:           #ffffff;
  --bg-soft:      #f4f7fc;
  --card:         #f7f9fd;
  --surface:      #ffffff;
  --ink:          #0a1656;
  --ink-2:        #1f3170;
  --muted:        #4b5f8e;
  --faint:        #5d6d8c;
  --line:         #e2e8f2;
  --line-strong:  #cbd4e4;
  --blue:         #1463f3;
  --blue-hover:   #0e54d8;
  --blue-press:   #0b46b6;
  --blue-soft:    #e9f0fe;
  --blue-text:    #1257d6;
  --on-blue:      #ffffff;
  --success:      #0f7342;
  --success-soft: #e5f5ec;
  --danger:       #c0362c;
  --danger-soft:  #fdecea;
  --band:         #0a1656;
  --band-ink:     #ffffff;
  --band-muted:   #b9c6ea;
  --overlay:      rgba(6, 12, 40, .55);
  --ring:         rgba(20, 99, 243, .35);
  --shadow-sm:    0 1px 2px rgba(10, 22, 86, .06), 0 2px 6px -2px rgba(10, 22, 86, .08);
  --shadow-md:    0 12px 28px -14px rgba(10, 22, 86, .28), 0 4px 10px -6px rgba(10, 22, 86, .12);
  --shadow-lg:    0 30px 60px -28px rgba(10, 22, 86, .38);
  --radius:       16px;
  --radius-sm:    12px;
  --gutter:       clamp(16px, 4.6vw, 72px);
  --max:          1520px;
  color-scheme: light;
}

html.dark {
  --bg:           #070d20;
  --bg-soft:      #0a1330;
  --card:         #0e1835;
  --surface:      #111c3b;
  --ink:          #eef2fc;
  --ink-2:        #d3dcf3;
  --muted:        #a4b3d6;
  --faint:        #7f8fb3;
  --line:         #1c2950;
  --line-strong:  #2b3b68;
  --blue:         #2f6bf0;
  --blue-hover:   #2563eb;
  --blue-press:   #1d4fd8;
  --blue-soft:    rgba(58, 123, 255, .14);
  --blue-text:    #8db4ff;
  --success:      #4cc98a;
  --success-soft: rgba(76, 201, 138, .14);
  --danger:       #ff8a7e;
  --danger-soft:  rgba(255, 138, 126, .12);
  --band:         #12205a;
  --band-ink:     #ffffff;
  --band-muted:   #c3cff0;
  --overlay:      rgba(2, 5, 18, .7);
  --ring:         rgba(90, 145, 255, .45);
  --shadow-sm:    0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md:    0 14px 30px -14px rgba(0, 0, 0, .6);
  --shadow-lg:    0 30px 60px -26px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--on-blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--line-strong) var(--bg); }
.hidden { display: none !important; }
.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; }
.num { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 60;
  background: var(--blue); color: var(--on-blue); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top .2s ease;
}
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .8em 1.5em;
  border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { flex: none; transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--blue); color: var(--on-blue); box-shadow: 0 10px 24px -12px rgba(20, 99, 243, .7); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary:active { background: var(--blue-press); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { min-height: 60px; padding: 1em 2em; font-size: 1.125rem; border-radius: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-block { width: 100%; }
.link {
  color: var(--blue-text); font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--blue-text) 35%, transparent);
  background: none; border: 0; padding: 0; cursor: pointer;
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; flex: none; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-word { white-space: nowrap; font-size: 1.85rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.brand-word b { color: var(--blue); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-menu { display: contents; }
.nav-link { padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 1.06rem; color: var(--ink); text-decoration: none; transition: background-color .15s ease; }
.nav-link:hover { background: var(--bg-soft); }
.theme-btn {
  width: 44px; height: 44px; border-radius: 999px; display: inline-grid; place-items: center;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.theme-btn:hover { border-color: var(--ink); }
.btn-login { min-height: 48px; padding: .7em 1.6em; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; font-weight: 600; font-size: 1.02rem; }
.btn-login:hover { background: var(--ink); color: var(--bg); }

/* ---------- Banner de promo (lo pinta el JS) ---------- */
.promo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 clamp(24px, 3vw, 44px); padding: 12px 16px; border-radius: 14px; background: var(--blue-soft); color: var(--ink); text-decoration: none; border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent); }
.promo-bonus { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; color: var(--blue-text); }
.promo-name { font-weight: 600; }
.promo-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 500; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.promo-go { margin-left: auto; font-weight: 600; color: var(--blue-text); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(28px, 4.5vw, 64px) clamp(40px, 5vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); align-items: center; gap: clamp(28px, 3.5vw, 64px); }
.hero h1 {
  margin: 0; font-weight: 800; color: var(--ink);
  font-size: clamp(2.55rem, .6rem + 4.3vw, 4.45rem); line-height: 1.03; letter-spacing: -.038em;
  text-wrap: balance;
}
.hero-sub { margin: clamp(18px, 2vw, 26px) 0 0; max-width: 34ch; font-size: clamp(1.13rem, .86rem + .9vw, 1.62rem); line-height: 1.45; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 3vw, 40px); }
.hero-actions .btn { min-width: 190px; }
.hero-actions .btn-primary { min-width: 270px; }
.hero-note { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; font-size: 1.13rem; color: var(--ink-2); }
.hero-note svg { color: var(--blue); flex: none; }

/* Terminal: el marco es imagen y la pantalla es código encima */
.terminal { position: relative; width: 100%; max-width: 760px; justify-self: end; }
.terminal > img { width: 100%; filter: drop-shadow(0 34px 34px rgba(10, 22, 86, .16)); }
html.dark .terminal > img { filter: drop-shadow(0 34px 40px rgba(0, 0, 0, .55)); }
.pos {
  position: absolute; left: 4.906%; top: 4.911%; width: 90.26%; height: 69.643%;
  container-type: size; overflow: hidden; border-radius: .6cqw;
  background: #f6f7fb; color: #0a1656; display: grid; grid-template-rows: 10.5% 1fr;
  font-size: 1.62cqw; line-height: 1.25;
}
.pos-top { display: flex; align-items: center; gap: 2.2cqw; padding: 0 1.8cqw; background: #fff; border-bottom: 1px solid #e6eaf2; }
.pos-brand { display: flex; align-items: center; gap: .8cqw; font-weight: 700; font-size: 2.05cqw; letter-spacing: -.02em; white-space: nowrap; }
.pos-brand img { width: 2.7cqw; height: 2.7cqw; border-radius: .6cqw; object-fit: cover; background: #0a1222; }
.pos-brand b { color: #1463f3; }
.pos-search { flex: 1; max-width: 34cqw; margin-left: 4cqw; display: flex; align-items: center; gap: .8cqw; height: 58%; padding: 0 1.2cqw; border: 1px solid #e3e7f0; border-radius: .8cqw; color: #6b7898; font-size: 1.35cqw; }
.pos-search svg, .pos-ico svg { width: 1.7cqw; height: 1.7cqw; }
.pos-right { margin-left: auto; display: flex; align-items: center; gap: 1.2cqw; font-size: 1.35cqw; color: #2a3a72; }
.pos-pill { padding: .4cqw 1cqw; border: 1px solid #e3e7f0; border-radius: .6cqw; background: #fff; font-weight: 500; }
.pos-ico { display: inline-grid; place-items: center; width: 3cqw; height: 3cqw; border-radius: 50%; border: 1px solid #e3e7f0; }
.pos-body { display: grid; grid-template-columns: 14.6% 36.6% 1fr; min-height: 0; }
.pos-side { background: #fff; border-right: 1px solid #e6eaf2; padding: 1.4cqw .9cqw; display: flex; flex-direction: column; gap: .5cqw; }
.pos-side span { display: flex; align-items: center; gap: .8cqw; padding: 1cqw 1cqw; border-radius: .7cqw; font-size: 1.3cqw; color: #22346f; white-space: nowrap; }
.pos-side span svg { width: 1.6cqw; height: 1.6cqw; flex: none; }
.pos-side .on { background: #1463f3; color: #fff; font-weight: 600; }
.pos-grid { padding: 1.4cqw 1.2cqw; min-height: 0; }
.pos-tiles { position: relative; }
.pos-tiles img { width: 100%; height: auto; border-radius: .8cqw; }
.pos-tiles span { position: absolute; transform: translateX(-50%); font-size: 1.05cqw; color: #4b5f8e; white-space: nowrap; }
.pos-tiles span:nth-of-type(1), .pos-tiles span:nth-of-type(4) { left: 17%; }
.pos-tiles span:nth-of-type(2), .pos-tiles span:nth-of-type(5) { left: 50%; }
.pos-tiles span:nth-of-type(3), .pos-tiles span:nth-of-type(6) { left: 83%; }
.pos-tiles span:nth-of-type(-n+3) { top: 40.5%; }
.pos-tiles span:nth-of-type(n+4) { top: 88.5%; }
.pos-cart { background: #fff; border-left: 1px solid #e6eaf2; padding: 1.6cqw 1.6cqw 1.8cqw; display: flex; flex-direction: column; min-height: 0; }
.pos-cart-head { display: grid; grid-template-columns: minmax(0, 1fr) 5.4em 5.4em 1.4em; font-size: 1.2cqw; color: #65739a; padding-bottom: 1cqw; border-bottom: 1px solid #edf0f6; }
.pos-cart-head span:not(:first-child), .pos-line span:not(:first-child) { text-align: right; }
.pos-line { display: grid; grid-template-columns: minmax(0, 1fr) 5.4em 5.4em 1.4em; align-items: center; gap: .6cqw; padding: .85cqw 0; border-bottom: 1px solid #edf0f6; font-size: 1.32cqw; }
.pos-line strong { display: block; font-weight: 600; color: #0a1656; }
.pos-line .num, .pos-cart-head span { white-space: nowrap; }
.pos-item { display: flex; align-items: center; gap: 1cqw; min-width: 0; }
.pos-item > span { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.pos-thumb { flex: none; width: 3.6cqw; height: 3.6cqw; border-radius: .6cqw; background: #eef2f8 url("assets/landing/productos.webp") no-repeat; background-size: 330% auto; border: 1px solid #e6eaf2; }
.pos-thumb.t-lcd { background-position: 2.6% 15.6%; }
.pos-thumb.t-mica { background-position: 2.6% 84%; }
.pos-thumb.t-cable { background-position: 97% 15.6%; }
.pos-qty { display: inline-flex; align-items: center; gap: .7cqw; margin-top: .4cqw; font-size: 1.1cqw; color: #22346f; }
.pos-qty b { width: 1.9cqw; height: 1.9cqw; display: inline-grid; place-items: center; border: 1px solid #dfe4ee; border-radius: .4cqw; font-weight: 500; line-height: 1; }
.pos-qty em { font-style: normal; font-weight: 600; min-width: 1em; text-align: center; }
.pos-del { display: grid; place-items: center; color: #8a96b3; }
.pos-del svg { width: 1.5cqw; height: 1.5cqw; }
.pos-sum { margin-top: auto; padding-top: 1.2cqw; display: grid; gap: .6cqw; font-size: 1.3cqw; color: #3a4a7c; }
.pos-sum div { display: flex; justify-content: space-between; }
.pos-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1cqw; margin-top: .4cqw; border-top: 1px solid #edf0f6; font-weight: 800; color: #0a1656; font-size: 2.2cqw; letter-spacing: -.02em; }
.pos-pay {
  margin-top: 1.6cqw; height: 5.8cqw; border-radius: .9cqw; background: #1463f3; color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 1cqw; font-weight: 600; font-size: 1.55cqw;
  transition: background-color .35s ease, transform .15s ease;
}
.pos-pay svg { width: 2cqw; height: 2cqw; display: block; }
.pos-pay .todo { display: inline-flex; align-items: center; gap: 1.1cqw; }
.pos-pay .done { display: none; }
.pos.is-paid .pos-pay { background: #0f7342; }
.pos.is-paid .pos-pay .todo { display: none; }
.pos.is-paid .pos-pay .done { display: inline-flex; align-items: center; gap: 1cqw; }
.pos-toast {
  position: absolute; left: 17.5%; bottom: 5%; display: flex; align-items: center; gap: 1cqw;
  padding: 1.1cqw 1.6cqw; border-radius: 1cqw; background: #0a1656; color: #fff; font-size: 1.3cqw; font-weight: 500;
  box-shadow: 0 1.5cqw 3cqw -1.5cqw rgba(0,0,0,.35);
  opacity: 0; transform: translateY(1cqw); pointer-events: none;
  transition: opacity .4s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1);
}
.pos-toast svg { width: 1.8cqw; height: 1.8cqw; color: #6ee7a8; }
.pos.is-paid .pos-toast { opacity: 1; transform: none; }
/* Animación de la venta (solo si el JS la arma y no hay reduce-motion) */
.pos.is-building .pos-line { opacity: 0; transform: translateY(.8cqw); }
.pos .pos-line { transition: opacity .45s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1); }
.pos .pos-line.is-in { opacity: 1; transform: none; }
.pos-pay.is-press { transform: scale(.97); }
.pos .pos-line { transition: opacity .45s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1), background-color 1.2s ease; }
.pos .pos-line.is-new { background-color: #eaf1ff; transition: opacity .45s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1), background-color .15s ease; }
.pos.is-leaving .pos-line { opacity: 0; transform: translateY(-.6cqw); transition: opacity .3s ease-in, transform .3s ease-in; }
.pos.is-leaving .pos-toast { opacity: 0; transform: translateY(.6cqw); }
.demo-tag { position: absolute; right: 2%; bottom: 3%; font-size: .78rem; color: var(--faint); }

/* ---------- Tarjetas de giro ---------- */
.trades { padding-bottom: clamp(56px, 7vw, 104px); }
.trade-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 1.2vw, 20px); }
.trade { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 22px; color: inherit; text-decoration: none;
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease, border-color .28s ease; }
.trade p { flex: 1; }
.trade-more { display: inline-flex; align-items: center; gap: 6px; margin: 16px 6px 0; color: var(--blue-text); font-weight: 600; font-size: .95rem; }
.trade-more svg { transition: transform .22s cubic-bezier(.2,.7,.2,1); }
.trade-photo img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) {
  .trade:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--blue) 32%, var(--line)); }
  .trade:hover .trade-photo img { transform: scale(1.04); }
  .trade:hover .trade-more svg { transform: translateX(3px); }
}
.trade:active { transform: translateY(-1px) scale(.995); }
.trade:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.trade.is-pre { opacity: 0; transform: translateY(14px); }
.trade.is-pre.is-in { opacity: 1; transform: none; transition: opacity .55s cubic-bezier(.16,1,.3,1) calc(var(--i, 0) * 70ms), transform .65s cubic-bezier(.16,1,.3,1) calc(var(--i, 0) * 70ms); }
.trade-photo { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 2.13 / 1; background: var(--bg-soft); }
.trade-photo img { width: 100%; height: 100%; object-fit: cover; }
.trade-badge { width: 66px; height: 66px; margin: -34px 0 0 6px; position: relative; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--blue); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.trade h3 { margin: 18px 6px 0; font-size: clamp(1.3rem, 1rem + .5vw, 1.55rem); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.trade p { margin: 12px 6px 0; font-size: 1.06rem; line-height: 1.5; color: var(--muted); max-width: 30ch; }
.trade .soon { display: block; margin-top: 4px; font-size: 1rem; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.trade.is-soon .trade-photo img { filter: saturate(.75); }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 8vw, 128px); }
.section-soft { background: var(--bg-soft); }
.h2 { margin: 0; font-size: clamp(2rem, 1.1rem + 2.6vw, 3.25rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; color: var(--ink); text-wrap: balance; max-width: 20ch; }
.lead { margin: 18px 0 0; font-size: clamp(1.06rem, .95rem + .4vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 60ch; }

/* DGII */
.fiscal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.facts { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-text); }
.facts strong { display: block; font-size: 1.13rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.facts div > span { display: block; margin-top: 2px; color: var(--muted); }

/* Comprobante de ejemplo */
.ecf { position: relative; max-width: 440px; min-width: 0; justify-self: center; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 28px 24px; box-shadow: var(--shadow-lg); color: var(--ink); }
.ecf-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ecf-kind { font-weight: 700; font-size: 1.06rem; letter-spacing: -.01em; }
.ecf-meta { margin-top: 2px; color: var(--faint); font-size: .86rem; }
.ecf-badge { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-weight: 600; font-size: .82rem; }
.ecf-rows { margin-top: 18px; border-top: 1px dashed var(--line-strong); }
.ecf-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .98rem; }
.ecf-row span:first-child { color: var(--ink-2); }
.ecf-row.sub span { color: var(--muted); }
.ecf-total { display: flex; justify-content: space-between; padding-top: 14px; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.ecf-foot { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); color: var(--muted); font-size: .84rem; line-height: 1.45; }
.ecf-note { margin-top: 10px; text-align: center; font-size: .78rem; color: var(--faint); }

/* En línea */
.online { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.urls { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.url { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.url code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .98rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.url code b { color: var(--blue-text); font-weight: 600; }
.url span { margin-left: auto; color: var(--muted); font-size: .95rem; text-align: right; }

/* ---------- Planes ---------- */
.plans-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; }
.plans-head .lead { max-width: 52ch; }
.plan-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 48px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px 20px; }
.plan.is-featured { border: 2px solid var(--blue); padding: 25px 19px 19px; box-shadow: var(--shadow-md); }
.plan-flag { position: absolute; top: -13px; left: 20px; padding: 4px 12px; border-radius: 999px; background: var(--blue); color: var(--on-blue); font-size: .78rem; font-weight: 700; letter-spacing: .01em; }
.plan-flag.alt { background: var(--surface); color: var(--blue-text); border: 1px solid color-mix(in srgb, var(--blue) 40%, transparent); }
.plan h3 { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.plan-intro { min-height: 12em; }
.plan-desc { margin: 8px 0 0; font-size: .95rem; color: var(--muted); line-height: 1.45; }
.plan-fit { margin: 10px 0 0; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.plan-fit b { color: var(--ink); font-weight: 600; }
.plan-price { margin-top: 18px; font-size: 2.35rem; font-weight: 800; letter-spacing: -.035em; color: var(--ink); line-height: 1; }
.plan-price small { font-size: .95rem; font-weight: 500; color: var(--faint); letter-spacing: 0; margin-left: 2px; }
.plan-cycles { margin-top: 10px; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.plan-cycles:empty { display: none; }
.plan-cycles b { color: var(--ink); font-weight: 600; }
.plan-cycles em { color: var(--success); font-style: normal; font-weight: 500; }
.plan-limits { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); font-size: .86rem; color: var(--ink-2); font-weight: 500; }
.plan ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: .94rem; color: var(--muted); line-height: 1.45; }
.plan li svg { margin-top: 3px; color: var(--blue); }
.plan li.plus { color: var(--ink); font-weight: 600; }
.plan .btn { margin-top: 24px; min-height: 48px; font-size: .98rem; }

.extras { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(22px, 2.5vw, 34px); }
.extras-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: baseline; }
.extras h3 { margin: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.extras-head p { margin: 0; color: var(--muted); font-size: .96rem; }
.extras-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 18px 0 0; padding: 0; list-style: none; }
.extras-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .96rem; color: var(--ink-2); }
.extras-list li b { color: var(--ink); font-weight: 700; white-space: nowrap; }
.plans-foot { margin: 22px 0 0; color: var(--muted); font-size: .96rem; }

/* ---------- Cierre ---------- */
.close { padding-block: clamp(56px, 7vw, 104px) clamp(40px, 5vw, 64px); background: var(--band); color: var(--band-ink); }
#planes { scroll-margin-top: 72px; }
.close-band { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px 48px; align-items: center; }
.close-band h2 { margin: 0; font-size: clamp(1.9rem, 1.1rem + 2.3vw, 3rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.close-band p { margin: 14px 0 0; color: var(--band-muted); font-size: 1.1rem; max-width: 52ch; }
.close-actions { display: grid; gap: 14px; justify-items: start; }
.close-band .btn-primary { background: #fff; color: #0a1656; box-shadow: none; }
.close-band .btn-primary:hover { background: #e9f0fe; }
.close-band .link { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
.close-contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn-on-dark { min-height: 46px; padding: .65em 1.2em; font-size: .98rem; background: transparent; color: #fff; border-color: rgba(255,255,255,.38); }
.btn-on-dark:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ---------- Pie ---------- */
.foot { background: var(--band); color: var(--band-muted); padding-block: 0 44px; }
.foot > .wrap { border-top: 1px solid rgba(255,255,255,.14); padding-top: 44px; }
.foot .brand-word { color: #fff; }
.foot .brand-word b { color: #8db4ff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot .brand-word { font-size: 1.4rem; }
.foot .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
.foot-tag { margin: 14px 0 0; color: var(--band-muted); max-width: 36ch; font-size: .96rem; }
.foot h4 { margin: 4px 0 12px; font-size: .9rem; font-weight: 700; color: #fff; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a { color: var(--band-muted); text-decoration: none; font-size: .96rem; }
.foot ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-grid.con-contacto { grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, .8fr)) minmax(0, 1.2fr); }
.foot-contact li a, .foot-contact li > span { display: inline-flex; align-items: flex-start; gap: 10px; color: var(--band-muted); text-decoration: none; font-size: .96rem; line-height: 1.45; overflow-wrap: anywhere; }
.foot-contact li a:hover { color: #fff; }
.foot-contact li a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.foot-contact svg { flex: none; margin-top: 3px; color: #8db4ff; }
.foot-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); color: var(--band-muted); font-size: .85rem; }

#contacto { scroll-margin-top: 90px; }
.wa-float {
  position: fixed; z-index: 40; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px 0 14px; border-radius: 999px;
  background: #25d366; color: #05391f; font-weight: 700; text-decoration: none;
  box-shadow: 0 12px 26px -10px rgba(5, 57, 31, .55), 0 2px 6px -2px rgba(5, 57, 31, .3);
  transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s ease;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float:active { transform: translateY(0) scale(.98); }
body.modal-open .wa-float { display: none; }

/* ---------- Modales ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: var(--overlay); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); overflow-y: auto; }
.modal:not(.hidden) .modal-card { animation: modal-in .32s cubic-bezier(.16,1,.3,1) both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal-card { position: relative; width: 100%; max-width: 30rem; margin: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 34px); box-shadow: var(--shadow-lg); }
.modal-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.modal-x:hover { background: var(--bg-soft); color: var(--ink); }
.modal h3 { margin: 0; padding-right: 40px; font-size: 1.5rem; font-weight: 800; letter-spacing: -.025em; }
.modal-intro { margin: 6px 0 22px; color: var(--muted); font-size: .98rem; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.field-label span { color: var(--faint); font-weight: 400; }
.field {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 11px;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.field { resize: vertical; min-height: 84px; }
.field::placeholder { color: var(--faint); }
.field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--ring); }
select.field { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235d6d8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field.upper { text-transform: uppercase; }
.captcha { display: flex; justify-content: center; min-height: 0; }
.form-foot { margin: 4px 0 0; text-align: center; font-size: .9rem; color: var(--muted); }
.alert { margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; font-size: .95rem; border: 1px solid transparent; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.spin { width: 18px; height: 18px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Módulos del landing ---------- */
.mods-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; }
.mods-head .lead { max-width: 54ch; }
.mods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 40px; }
.mods h3 { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); font-size: .9rem; font-weight: 700; color: var(--blue-text); }
.mods ul { list-style: none; margin: 0; padding: 0; }
.mods li { border-bottom: 1px solid var(--line); }
.mod { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px 16px; align-items: start; padding: 20px 40px 20px 0; color: inherit; text-decoration: none; border-radius: 12px; }
.mod strong { transition: color .18s ease; }
.mod .ico { transition: background-color .18s ease, color .18s ease; }
.mod-go { position: absolute; right: 8px; top: 30px; color: var(--blue-text); opacity: 0; transform: translateX(-6px); transition: opacity .2s ease, transform .22s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) {
  .mod:hover strong { color: var(--blue-text); }
  .mod:hover .ico { background: var(--blue); color: var(--on-blue); }
  .mod:hover .mod-go { opacity: 1; transform: none; }
}
.mod:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (hover: none) { .mod-go { opacity: .7; transform: none; } }
.mod .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-text); }
.mod strong { display: block; font-size: 1.1rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.mod p { margin: 4px 0 0; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.mod-plan { grid-column: 2; justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); font-size: .78rem; font-weight: 600; white-space: nowrap; }

/* ---------- Páginas de ayuda (manual y recorrido) ---------- */
.page-hero { padding-block: clamp(32px, 5vw, 72px) clamp(28px, 4vw, 48px); }
.page-hero h1 { margin: 0; font-weight: 800; color: var(--ink); font-size: clamp(2.3rem, .9rem + 3.6vw, 3.9rem); line-height: 1.04; letter-spacing: -.038em; text-wrap: balance; max-width: 18ch; }
.page-hero .lead { margin-top: 18px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Buscador del manual */
.doc-search { position: relative; max-width: 620px; margin-top: 28px; }
.doc-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.doc-search input { width: 100%; min-height: 56px; padding: 0 96px 0 48px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 1.05rem; box-shadow: var(--shadow-sm); }
.doc-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--ring); }
.doc-search input::placeholder { color: var(--faint); }
.doc-search kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--bg-soft); color: var(--muted); font: 600 .78rem/1.4 ui-monospace, Menlo, Consolas, monospace; }

.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; padding-bottom: clamp(56px, 7vw, 104px); }
.doc-nav { position: sticky; top: 100px; max-height: calc(100dvh - 120px); overflow-y: auto; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.doc-nav p { margin: 2px 8px 10px; font-size: .78rem; font-weight: 700; color: var(--faint); }
.doc-nav a, .doc-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px; border: 0; background: none; color: var(--muted); font-size: .94rem; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; }
.doc-nav a span { width: 1.6em; color: var(--faint); font-variant-numeric: tabular-nums; font-size: .82rem; font-weight: 600; }
.doc-nav a:hover, .doc-nav button:hover { background: var(--bg-soft); color: var(--ink); }
.doc-nav a.active { background: var(--blue-soft); color: var(--blue-text); font-weight: 600; }
.doc-nav a.active span { color: var(--blue-text); }
.doc-nav hr { border: 0; border-top: 1px solid var(--line); margin: 10px 4px; }
.doc-content { display: grid; gap: 12px; min-width: 0; }
.doc-sec { scroll-margin-top: 100px; }
.doc-sec[hidden] { display: none; }

.chapter { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s ease, box-shadow .2s ease; }
.chapter[open] { border-color: color-mix(in srgb, var(--blue) 32%, var(--line)); box-shadow: var(--shadow-md); }
.chapter summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 22px; user-select: none; }
.chapter summary::-webkit-details-marker { display: none; }
.chapter-no { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--blue-soft); color: var(--blue-text); font-size: .86rem; font-weight: 700; font-variant-numeric: tabular-nums; transition: background-color .2s ease, color .2s ease; }
.chapter[open] .chapter-no { background: var(--blue); color: var(--on-blue); }
.chapter-head { min-width: 0; }
.chapter-title { display: block; margin: 0; color: var(--ink); font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; }
.chapter-sub { display: block; margin-top: 2px; color: var(--muted); font-size: .92rem; }
.chapter summary:hover .chapter-title { color: var(--blue-text); }
.chevron { margin-left: auto; flex: none; color: var(--faint); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.chapter[open] .chevron { transform: rotate(180deg); color: var(--blue-text); }
.chapter-body { padding: 0 26px 26px 76px; }
.chapter[open] .chapter-body { animation: chapter-in .3s cubic-bezier(.16,1,.3,1) both; }
@keyframes chapter-in { from { opacity: 0; transform: translateY(-4px); } }
.chapter-body h3 { margin: 22px 0 0; color: var(--ink); font-size: 1rem; font-weight: 700; }
.chapter-body p, .chapter-body li { color: var(--muted); font-size: 1rem; line-height: 1.62; }
.chapter-body p { margin: 10px 0 0; max-width: 72ch; }
.chapter-body strong { color: var(--ink); font-weight: 600; }
.chapter-body ul, .chapter-body ol { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; max-width: 76ch; }
.check-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.check-list li::before { content: ""; width: 16px; height: 16px; margin-top: 4px; background: var(--blue); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
ol.check-list { counter-reset: paso; }
ol.check-list li { counter-increment: paso; }
ol.check-list li::before { content: counter(paso); -webkit-mask: none; mask: none; background: var(--blue-soft); color: var(--blue-text); width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
ol.check-list { grid-template-columns: minmax(0, 1fr); }
ol.check-list li { grid-template-columns: 22px minmax(0, 1fr); }
.mini-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.mini-flow span { padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); font-size: .86rem; font-weight: 600; }
.mini-flow i { color: var(--blue-text); font-style: normal; font-weight: 700; }
.note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); font-size: .94rem; line-height: 1.55; max-width: 76ch; }
.doc-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.doc-links .btn { min-height: 42px; font-size: .94rem; }
.doc-empty { display: none; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--line-strong); text-align: center; }
.doc-empty.show { display: block; }
.doc-empty strong { display: block; color: var(--ink); font-size: 1.05rem; }
.doc-empty span { display: block; margin-top: 4px; color: var(--muted); }
mark { background: color-mix(in srgb, var(--blue) 22%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }

/* Recorrido */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 32px; counter-reset: flujo; }
.flow li { list-style: none; position: relative; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: flujo; }
.flow li::before { content: counter(flujo); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 34px; right: -12px; width: 10px; height: 10px; border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: rotate(45deg); }
.flow strong { display: block; margin-top: 14px; color: var(--ink); font-size: 1.08rem; font-weight: 700; }
.flow span { display: block; margin-top: 4px; color: var(--muted); font-size: .96rem; line-height: 1.5; }
.flow { padding: 0; }
.tour-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 32px; padding: 6px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.tour-tab { min-height: 44px; padding: 0 18px; border-radius: 11px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: .98rem; cursor: pointer; transition: background-color .18s ease, color .18s ease; }
.tour-tab:hover { color: var(--ink); }
.tour-tab[aria-selected="true"] { background: var(--surface); color: var(--blue-text); box-shadow: var(--shadow-sm); }
.tour-panel { margin-top: 28px; }
.tour-panel[hidden] { display: none; }
.tour-panel h3 { margin: 0; font-size: clamp(1.5rem, 1rem + 1.2vw, 2rem); font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.tour-panel > p { margin: 10px 0 0; color: var(--muted); font-size: 1.06rem; max-width: 62ch; }
.tour-panel .flow { margin-top: 22px; }
.tour-panel:not([hidden]) { animation: chapter-in .35s cubic-bezier(.16,1,.3,1) both; }
.tour-plan { display: inline-flex; margin-top: 14px; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .86rem; font-weight: 600; }
.ctrl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 28px; list-style: none; padding: 0; }
.ctrl li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ctrl .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-text); }
.ctrl strong { display: block; color: var(--ink); font-size: 1.08rem; font-weight: 700; }
.ctrl span { display: block; margin-top: 4px; color: var(--muted); }

@media (max-width: 1080px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-nav { display: none; }
  .mods, .ctrl { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li:nth-child(2n)::after { display: none; }
}
@media (max-width: 640px) {
  .chapter summary { padding: 16px; gap: 12px; }
  .chapter-sub { display: none; }
  .chapter-body { padding: 0 16px 20px; }
  .doc-search input { padding-right: 16px; }
  .doc-search kbd { display: none; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li::after { display: none; }
  .tour-tabs { width: 100%; }
  .tour-tab { flex: 1 1 auto; padding: 0 12px; font-size: .92rem; }
}

/* Encabezado con cuatro enlaces (landing, manual y recorrido: Planes · Recorrido · Manual · Contacto):
   pasa a dos filas desde 1000 px; a 768 la fila única dejaba «Iniciar sesión» cortado. */
@media (max-width: 1000px) {
  .nav--4 .nav-inner { min-height: 0; flex-wrap: wrap; gap: 0; padding-top: 10px; }
  .nav--4 .nav-links { display: contents; }
  .nav--4 .brand { margin-right: auto; }
  .nav--4 .theme-btn, .nav--4 .btn-login { margin-left: 6px; }
  .nav--4 .nav-menu { order: 3; display: flex; flex-basis: 100%; justify-content: center; gap: 4px; padding: 4px 0 6px; }
  /* El encabezado de dos filas mide ≈105 px: que no tape el título al saltar a #planes o #contacto. */
  .nav--4 ~ main #planes { scroll-margin-top: 112px; }
  .nav--4 ~ footer #contacto { scroll-margin-top: 120px; }
}
@media (max-width: 400px) {
  .nav--4 .theme-btn, .nav--4 .btn-login { margin-left: 4px; } /* con 6 px, a 320 «Iniciar sesión» bajaba de fila */
  .nav--4 .nav-menu { gap: 0; }
  .nav--4 .nav-link { padding: 8px 8px; font-size: .92rem; }
}
.mod-plan { white-space: normal; }
.url code { min-width: 0; max-width: 100%; }
@media (max-width: 640px) { .url code { flex: 1 1 100%; } }
@media (max-width: 350px) {
  .nav--4 .nav-link { padding: 8px 6px; font-size: .86rem; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1360px) {
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-intro { min-height: 9em; }
  .trade-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1240px) {
  .extras-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 40rem; }
  .terminal { justify-self: center; max-width: 720px; }
  .trade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fiscal-grid, .online { grid-template-columns: minmax(0, 1fr); }
  .ecf { justify-self: start; }
}
@media (max-width: 820px) {
  /* Con «Contacto» visible, a 768 la fila del menú llegaba al borde. */
  .nav-link { padding: 10px 11px; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .close-band { grid-template-columns: 1fr; }
  .foot-grid, .foot-grid.con-contacto { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  /* Dos filas: marca + tema + «Iniciar sesión» arriba, y Planes · Manual · Contacto debajo. En una
     sola fila no caben (≈460 px de contenido en 354 útiles a 390). */
  .nav-inner { min-height: 0; flex-wrap: wrap; gap: 0; padding-top: 10px; }
  .nav-links { display: contents; }
  .brand { margin-right: auto; }
  .theme-btn, .btn-login { margin-left: 6px; }
  .nav-menu { order: 3; display: flex; flex-basis: 100%; justify-content: center; gap: 4px; padding: 4px 0 6px; }
  .nav-link { padding: 8px 12px; font-size: .98rem; }
  #contacto { scroll-margin-top: 120px; }
  #planes { scroll-margin-top: 112px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
  .brand-word { font-size: 1.45rem; }
  .btn-login { min-height: 42px; padding: .55em 1.1em; font-size: .95rem; }
  .theme-btn { width: 42px; height: 42px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn, .hero-actions .btn-primary { min-width: 0; width: 100%; }
  .hero-note { font-size: 1rem; }
  .trade-grid, .plan-grid { grid-template-columns: 1fr; }
  .plan-desc, .plan-cycles, .plan-intro { min-height: 0; }
  .wa-float { min-height: 56px; width: 56px; padding: 0; justify-content: center; }
  .wa-float span { display: none; }
  .promo { gap: 6px 10px; padding: 10px 14px; }
  .promo-chips { display: none; }
  .promo-bonus { font-size: 1.15rem; }
  .promo-name { font-size: .92rem; flex: 1; min-width: 0; }
  .promo-go { margin-left: 0; font-size: .92rem; }
  .extras-list { grid-template-columns: 1fr; }
  #foot-contacto { grid-column: 1 / -1; }
  .form-row { grid-template-columns: 1fr; }
  .url { flex-wrap: wrap; gap: 4px 16px; }
  .url span { margin-left: 0; text-align: left; }
  .ecf { padding: 22px 18px 18px; }
  .ecf-head { flex-direction: column; }
  .ecf-row { font-size: .92rem; }
  .ecf-total { font-size: 1.3rem; }
  .demo-tag { position: static; display: block; text-align: right; margin-top: 4px; }
}
@media (max-width: 400px) {
  /* Que marca, tema e «Iniciar sesión» quepan en la primera fila también a 360. */
  .theme-btn { width: 38px; height: 38px; }
  .theme-btn, .btn-login { margin-left: 4px; }
}
@media (max-width: 380px) {
  .brand-word { font-size: 1.25rem; }
  .btn-login { padding: .5em .9em; }
}
@media (max-width: 340px) {
  .brand { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-word { font-size: 1.08rem; }
  .btn-login { padding: .45em .75em; font-size: .88rem; }
}
@media (hover: none) {
  .btn-primary:hover svg { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
