/* =====================================================================
   EducaQuix · sistema web compartido (claro + oscuro)
   Paleta única: #0EC9B4 #0A9E8E #C9F4EE #7FE3D6 #E2F6F3 #05233B #FFFFFF #FF8FA3 #FFC23D (+ #F2505F solo "problema/antes")
   Tipos: Poppins (titulares 600, texto 400/500) · Georgia Italic acento · subrayado ondulado turquesa
   ===================================================================== */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/poppins-regular.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/poppins-medium.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/poppins-semibold.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/poppins-bold.woff2) format("woff2"); }

:root {
  --turq: #0EC9B4; --turq-d: #0A9E8E; --menta: #C9F4EE; --agua: #7FE3D6; --bruma: #E2F6F3;
  --navy: #05233B; --blanco: #FFFFFF; --rosa: #FF8FA3; --sol: #FFC23D; --rojo: #F2505F;

  --bg: #FFFFFF;
  --bg-tint: #F1FBF9;               /* bruma al 50 % sobre blanco */
  --bg-soft: var(--bruma);
  --surface: #FFFFFF;
  --surface-2: #F6FCFB;
  --text: var(--navy);
  --text-2: rgba(5, 35, 59, .74);
  --text-3: rgba(5, 35, 59, .66);   /* letra pequeña legal: legible (≥ 4.5:1) */
  --line: rgba(5, 35, 59, .10);
  --line-2: rgba(10, 158, 142, .18);
  --acc: var(--turq-d);             /* palabra acento Georgia */
  --chip: var(--menta);
  --chip-text: var(--navy);
  --shadow-sm: 0 1px 2px rgba(5, 35, 59, .06), 0 4px 14px -6px rgba(10, 158, 142, .25);
  --shadow: 0 1px 2px rgba(5, 35, 59, .05), 0 18px 40px -18px rgba(10, 158, 142, .38);
  --shadow-lg: 0 2px 4px rgba(5, 35, 59, .05), 0 40px 80px -36px rgba(5, 35, 59, .38), 0 24px 60px -30px rgba(10, 158, 142, .35);
  --ring: 0 0 0 3px var(--bg), 0 0 0 5px var(--turq-d);

  --logo-icon: var(--navy); --logo-text: var(--turq); --logo-itop: var(--navy);

  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace;

  --r-sm: 12px; --r: 20px; --r-lg: 28px; --r-pill: 999px;
  --gut: 16px;
  --maxw: 1200px;
  --sec-y: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
@media (min-width: 640px) { :root { --gut: 24px; } }
@media (min-width: 1024px) { :root { --gut: 32px; --sec-y: 96px; } }

/* ---------- dark variant ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #04192B; --bg-tint: #051F35; --bg-soft: #062741; --surface: #0A2C47; --surface-2: #0C3452;
    --text: #EAF7F5; --text-2: rgba(234, 247, 245, .78); --text-3: rgba(234, 247, 245, .68);
    --line: rgba(255, 255, 255, .10); --line-2: rgba(127, 227, 214, .18);
    --acc: var(--agua); --chip: rgba(14, 201, 180, .16); --chip-text: #CFF6F0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 18px 40px -20px rgba(0, 0, 0, .6);
    --shadow-lg: 0 40px 80px -36px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
    --logo-icon: #FFFFFF; --logo-text: var(--turq); --logo-itop: #FFFFFF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #04192B; --bg-tint: #051F35; --bg-soft: #062741; --surface: #0A2C47; --surface-2: #0C3452;
  --text: #EAF7F5; --text-2: rgba(234, 247, 245, .78); --text-3: rgba(234, 247, 245, .68);
  --line: rgba(255, 255, 255, .10); --line-2: rgba(127, 227, 214, .18);
  --acc: var(--agua); --chip: rgba(14, 201, 180, .16); --chip-text: #CFF6F0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 18px 40px -20px rgba(0, 0, 0, .6);
  --shadow-lg: 0 40px 80px -36px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
  --logo-icon: #FFFFFF; --logo-text: var(--turq); --logo-itop: #FFFFFF;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--turq-d); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--agua); color: var(--navy); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: calc(880px + var(--gut) * 2); }
.sec { position: relative; padding-block: var(--sec-y); }
.sec--tint { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 22%, var(--bg-tint) 78%, var(--bg) 100%); }
.sec--soft { background: var(--bg-soft); }
.sec__head { max-width: 760px; margin-bottom: 40px; }
.sec__head--center { margin-inline: auto; text-align: center; }
@media (min-width: 1024px) { .sec__head { margin-bottom: 56px; } }
.grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- type ---------- */
.h1 { font-size: clamp(2.15rem, 1.35rem + 3.9vw, 4.35rem); line-height: 1.04; letter-spacing: -.028em; font-weight: 600; text-wrap: balance; }
.h2 { font-size: clamp(1.8rem, 1.25rem + 2.3vw, 3.05rem); line-height: 1.08; letter-spacing: -.024em; font-weight: 600; text-wrap: balance; }
.h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.3; letter-spacing: -.01em; font-weight: 600; }
.h4 { font-size: 1.02rem; line-height: 1.35; font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); line-height: 1.62; color: var(--text-2); text-wrap: pretty; }
.muted { color: var(--text-2); }
.small { font-size: .875rem; line-height: 1.55; }
.tiny { font-size: .78rem; line-height: 1.5; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.acc { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--acc); letter-spacing: -.01em; font-size: 1.06em; }
.wave { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='12' viewBox='0 0 44 12'%3E%3Cpath d='M0 6 C 5.5 0.5, 16.5 0.5, 22 6 S 38.5 11.5, 44 6' fill='none' stroke='%230EC9B4' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: .82em .23em; background-position: 0 100%; padding-bottom: .16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.legal { font-size: .78rem; line-height: 1.45; color: var(--text-3); font-weight: 400; letter-spacing: .005em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: var(--r-pill); background: var(--chip); color: var(--chip-text);
  font-size: .8rem; font-weight: 600; letter-spacing: .01em; line-height: 1.2; margin-bottom: 18px; }
.eyebrow .ico { width: 18px; height: 18px; color: var(--turq-d); }
:root[data-theme="dark"] .eyebrow .ico { color: var(--agua); }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--turq); box-shadow: 0 0 0 4px rgba(14, 201, 180, .22); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .02em; padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--chip); color: var(--chip-text); white-space: nowrap; line-height: 1.4; }
.tag--line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }
.tag--sol { background: rgba(255, 194, 61, .22); color: var(--text); }
.tag--rojo { background: rgba(242, 80, 95, .12); color: #B3202F; }
:root[data-theme="dark"] .tag--rojo { color: #FFB3BB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag--rojo { color: #FFB3BB; } }

/* ---------- icons ---------- */
.ico { width: 24px; height: 24px; flex: none; color: currentColor; }
.ico-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--chip); color: var(--turq-d); flex: none; }
.ico-badge .ico { width: 28px; height: 28px; }
.ico-badge--navy { background: var(--navy); color: var(--agua); }
.ico-badge--round { border-radius: 50%; }
:root[data-theme="dark"] .ico-badge { color: var(--agua); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ico-badge { color: var(--agua); } }

/* ---------- buttons ---------- */
.btn { --b-bg: var(--turq); --b-fg: var(--navy); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: var(--r-pill); border: 0; background: var(--b-bg); color: var(--b-fg); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  letter-spacing: -.005em; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s; box-shadow: 0 10px 24px -12px rgba(10, 158, 142, .8); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(10, 158, 142, .9); }
.btn:active { transform: translateY(0); }
.btn .ico, .btn svg { width: 20px; height: 20px; flex: none; }
.btn--navy { --b-bg: var(--navy); --b-fg: #fff; box-shadow: 0 10px 24px -12px rgba(5, 35, 59, .7); }
:root[data-theme="dark"] .btn--navy { --b-bg: #fff; --b-fg: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--navy { --b-bg: #fff; --b-fg: var(--navy); } }
.btn--ghost { --b-bg: transparent; --b-fg: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--turq); background: var(--surface); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.06rem; }
.btn--block { width: 100%; white-space: normal; text-align: center; }
.link { color: var(--text); font-weight: 600; text-decoration: none; background: linear-gradient(var(--turq), var(--turq)) 0 100% / 100% 2px no-repeat; padding-bottom: 2px; transition: background-size .2s; }
.link:hover { background-size: 100% 100%; background-image: linear-gradient(var(--menta), var(--menta)); color: var(--navy); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--text); }
.arrow-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- cards ---------- */
.card { position: relative; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line-2); padding: 24px; }
@media (min-width: 900px) { .card { padding: 32px; } }
.card--flat { box-shadow: none; }
.card--pad-sm { padding: 20px; }

/* ---------- logo & line badges (lockups) ---------- */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo svg { height: 38px; width: auto; }
.lg-i { fill: var(--logo-icon); } .lg-t { fill: var(--logo-text); } .lg-a { fill: var(--logo-itop); }
.lockup { display: inline-block; }
.lockup svg { width: 100%; height: auto; overflow: visible; }
.lk-pill { fill: var(--turq); } .lk-pill-t { fill: #fff; font-family: var(--font); font-weight: 600; letter-spacing: .03em; }
.lk-st { fill: var(--navy); stroke: #fff; } .lk-st-t { fill: #fff; font-family: var(--font); font-weight: 600; letter-spacing: .02em; }
.lk-peel { fill: var(--menta); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(5, 35, 59, .35); }
.nav__in { display: flex; align-items: center; gap: 12px; height: 68px; }
.nav__logo svg { height: 34px; }
.nav__links { display: none; gap: 4px; margin-left: 20px; }
.nav__links a { padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--text-2); transition: color .15s, background-color .15s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); background: var(--chip); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav__access { display: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--text); }
.icon-btn:hover { background: var(--chip); }
.icon-btn svg { width: 22px; height: 22px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; } :root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.nav__burger { display: inline-grid; }
.nav__trial { display: none; }
@media (min-width: 420px) { .nav__trial { display: inline-flex; } }
@media (min-width: 1080px) { .nav__links { display: flex; } .nav__access { display: inline-flex; } .nav__burger { display: none; } }
.drawer { position: fixed; inset: 68px 0 auto 0; z-index: 49; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(5, 35, 59, .45);
  padding: 12px var(--gut) 24px; display: grid; gap: 4px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s; }
.drawer.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s, transform .25s var(--ease); }
.drawer a:not(.btn) { padding: 14px 8px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.drawer .btn { margin-top: 14px; }
@media (min-width: 1080px) { .drawer { display: none; } }

/* ---------- switch (el "botón mágico" y los módulos usan el mismo componente) ---------- */
.sw { --w: 52px; --h: 30px; position: relative; display: inline-flex; flex: none; width: var(--w); height: var(--h); border-radius: var(--r-pill); border: 0; padding: 0;
  background: rgba(5, 35, 59, .18); transition: background-color .28s var(--ease), box-shadow .28s; box-shadow: inset 0 1px 2px rgba(5, 35, 59, .15); }
:root[data-theme="dark"] .sw { background: rgba(255, 255, 255, .18); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sw { background: rgba(255, 255, 255, .18); } }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(var(--h) - 6px); height: calc(var(--h) - 6px); border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(5, 35, 59, .3); transition: transform .32s var(--spring); }
.sw[aria-checked="true"] { background: var(--turq) !important; }
.sw[aria-checked="true"]::after { transform: translateX(calc(var(--w) - var(--h))); }
.sw:disabled { cursor: not-allowed; opacity: .45; }
.sw.is-locked { cursor: default; opacity: 1; }
.sw.is-locked::before { content: ""; position: absolute; left: 9px; top: 50%; width: 10px; height: 10px; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305233B' stroke-width='3' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center/contain no-repeat; }
.sw--sm { --w: 42px; --h: 24px; }
.sw--lg { --w: 64px; --h: 36px; }

/* ---------- segmented single-select ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg__opt { position: relative; border: 0; background: transparent; padding: 9px 16px; min-height: 40px; border-radius: 12px; font-weight: 500; font-size: .92rem; color: var(--text-2);
  transition: background-color .2s, color .2s, box-shadow .2s; display: inline-flex; align-items: center; gap: 8px; }
.seg__opt:hover { color: var(--text); background: var(--chip); }
.seg__opt[aria-checked="true"] { background: var(--navy); color: #fff; box-shadow: 0 6px 16px -8px rgba(5, 35, 59, .6); }
:root[data-theme="dark"] .seg__opt[aria-checked="true"] { background: var(--turq); color: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg__opt[aria-checked="true"] { background: var(--turq); color: var(--navy); } }
.seg__opt .dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; opacity: .6; flex: none; }
.seg__opt[aria-checked="true"] .dot { box-shadow: inset 0 0 0 5px var(--turq); opacity: 1; }

/* chips (single select) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--text); padding: 8px 14px; min-height: 40px; border-radius: var(--r-pill);
  font-size: .9rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: box-shadow .2s, background-color .2s; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--turq); }
.chip[aria-checked="true"] { background: var(--navy); color: #fff; box-shadow: none; }
:root[data-theme="dark"] .chip[aria-checked="true"] { background: var(--turq); color: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip[aria-checked="true"] { background: var(--turq); color: var(--navy); } }

/* ---------- Quixi ---------- */
.qx { position: relative; display: inline-block; width: 160px; aspect-ratio: 1; flex: none; }
.qx img, .qx svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.qx .qx-d { display: none; }
:root[data-theme="dark"] .qx .qx-l { display: none; } :root[data-theme="dark"] .qx .qx-d { display: block; }
.qx.is-lottie img { visibility: hidden; }
.qx .qx-anim { position: absolute; inset: 0; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field__hint { font-size: .8rem; color: var(--text-3); }
.input { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 1rem;
  transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: var(--text-3); opacity: .8; }
.input:focus { outline: none; border-color: var(--turq); box-shadow: 0 0 0 4px rgba(14, 201, 180, .2); }
.input[aria-invalid="true"] { border-color: var(--rojo); box-shadow: 0 0 0 4px rgba(242, 80, 95, .14); }
.field__err { font-size: .82rem; color: #B3202F; font-weight: 500; display: none; }
:root[data-theme="dark"] .field__err { color: #FFB3BB; }
.field.has-error .field__err { display: block; }
.input-icon { position: relative; }
.input-icon .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-3); pointer-events: none; }
.input-icon .input { padding-left: 44px; }
.captcha { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: var(--surface-2); }
.captcha__box { width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--text-3); flex: none; }
.captcha__t { font-size: .88rem; line-height: 1.35; }
.captcha__t small { display: block; color: var(--text-3); font-size: .74rem; }
.captcha__mark { margin-left: auto; font-size: .66rem; color: var(--text-3); text-align: center; line-height: 1.2; }

/* ---------- list with checks ---------- */
.checks { display: grid; gap: 12px; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.checks li::before { content: ""; width: 24px; height: 24px; border-radius: 50%; margin-top: 1px;
  background: var(--turq) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305233B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/15px no-repeat; }

/* ---------- steps (secuencias reales: 3 toques, chat, referidos) ---------- */
.steps { display: grid; gap: 14px; counter-reset: st; list-style: none; padding: 0; }
.step { counter-increment: st; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.step::before { content: counter(st); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 600; font-size: 1.05rem; }
:root[data-theme="dark"] .step::before { background: var(--turq); color: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step::before { background: var(--turq); color: var(--navy); } }

/* ---------- logos strip ---------- */
.clients { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1024px) { .clients { grid-template-columns: 300px 1fr; gap: 48px; } }
.clients__big { display: flex; align-items: baseline; gap: 10px; }
.clients__num { font-size: clamp(2.8rem, 2rem + 3vw, 4.2rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.clients__num span { color: var(--turq); }
.clients__logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .clients__logos { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.clients__logo { display: grid; place-items: center; height: 92px; padding: 12px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-sm); border: 1px solid var(--line-2); }
.clients__logo img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.clients__logo--wide img { max-height: 44px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: var(--r); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; position: relative; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--chip)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A9E8E' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--text-2); }

/* ---------- trial / access ---------- */
.trial { position: relative; overflow: hidden; border-radius: 36px; background: var(--navy); color: #fff; padding: 36px 20px; isolation: isolate; }
@media (min-width: 900px) { .trial { padding: 64px; } }
.trial::before { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -200px; top: -260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(14, 201, 180, .45), rgba(14, 201, 180, 0)); }
.trial::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -220px; bottom: -300px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(127, 227, 214, .25), rgba(127, 227, 214, 0)); }
:root[data-theme="dark"] .trial { background: #062C49; box-shadow: 0 0 0 1px rgba(127, 227, 214, .14); }
.trial__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.trial__grid > * { min-width: 0; }
@media (min-width: 1000px) { .trial__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.trial .h2 { color: #fff; }
.trial .acc { color: var(--agua); }
.trial .lead { color: rgba(255, 255, 255, .82); }
.trial .legal { color: rgba(255, 255, 255, .72); }
.trial .checks li { color: rgba(255, 255, 255, .9); }
.trial__form { background: var(--surface); color: var(--text); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); display: grid; gap: 16px; position: relative; }
@media (min-width: 640px) { .trial__form { padding: 30px; } }
.trial__form h3 { display: flex; align-items: center; gap: 10px; }
.trial__done { display: none; text-align: center; gap: 10px; justify-items: center; padding: 10px 0; }
.trial__form.is-done > :not(.trial__done) { display: none; }
.trial__form.is-done .trial__done { display: grid; }
.trial__quixi { display: none; }
@media (min-width: 1000px) { .trial__quixi { display: block; position: absolute; width: 150px; left: -118px; bottom: -8px; } }
.access { display: grid; gap: 16px; align-items: center; margin-top: 20px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
@media (min-width: 900px) { .access { grid-template-columns: auto 1fr auto; padding: 22px 28px; gap: 24px; } }
.access__form { display: flex; gap: 10px; flex-wrap: wrap; }
.access__form .input-icon { flex: 1 1 220px; }
.access__msg { font-size: .85rem; color: var(--text-2); min-height: 1.2em; }

/* ---------- footer ---------- */
.foot { background: var(--bg-soft); padding: 64px 0 32px; }
.foot__grid { display: grid; gap: 32px 20px; grid-template-columns: 1fr 1fr; }
.foot__grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot__grid > :first-child { grid-column: auto; } }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 1.3fr repeat(3, 1fr); } }
.foot h3 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; font-weight: 600; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; }
.foot a:hover { color: var(--turq-d); }
.foot__tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; font-family: var(--serif); font-style: italic; color: var(--acc); font-size: .95rem; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- decorations ---------- */
.blob { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(2px); z-index: 0; }
.blob--a { background: radial-gradient(closest-side, rgba(127, 227, 214, .55), rgba(127, 227, 214, 0)); }
.blob--b { background: radial-gradient(closest-side, rgba(201, 244, 238, .9), rgba(201, 244, 238, 0)); }
:root[data-theme="dark"] .blob--a { background: radial-gradient(closest-side, rgba(14, 201, 180, .22), rgba(14, 201, 180, 0)); }
:root[data-theme="dark"] .blob--b { background: radial-gradient(closest-side, rgba(127, 227, 214, .12), rgba(127, 227, 214, 0)); }
.pattern { position: absolute; inset: 0; pointer-events: none; z-index: 0; background: url(img/patron-iconos.svg) 0 0 / 420px auto repeat;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%); }
:root[data-theme="dark"] .pattern { background-image: url(img/patron-iconos-oscuro.svg); }
.spark { width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; 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; transition-delay: 0ms !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- print (páginas web) ---------- */
@media print {
  .nav, .drawer, .skip { display: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
}

/* Caja «Acceso por RUC»: con la columna del formulario en `auto`, algunos navegadores le daban
   todo el ancho al campo y el texto del medio quedaba en una tira de una palabra por línea. Se
   fija un mínimo para el texto y un tope para el formulario: se ve igual que en el diseño. */
@media (min-width: 900px) { .access { grid-template-columns: auto minmax(220px, 1fr) minmax(0, 420px); } }
