/* ============================================================================
   SITIO PÚBLICO — página de venta, registro, entrar, cuenta y textos legales
   ----------------------------------------------------------------------------
   Usa los tokens y componentes de la app (tokens.css, base.css). Prefijo s-.
   Formas: escritorio ≥ 1100 px · tableta 760–1099 · teléfono < 760.
   ========================================================================== */
@import url("../app/css/tokens.css");
@import url("../app/css/base.css");

html, body { height: auto; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--canvas); overscroll-behavior: auto; font-size: 13px; }
body > main { flex: 1 0 auto; }
a, button { cursor: pointer; }
.s-wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.s-wrap-sm { width: min(980px, calc(100% - 48px)); margin: 0 auto; }
.s-ic { display: block; flex: none; }
.s-math { font-family: var(--math); }
.s-skip { position: absolute; left: 16px; top: -120px; z-index: 50; padding: 8px 12px; border-radius: 8px; background: var(--raised); box-shadow: var(--float); }
.s-skip:focus { top: 8px; }
/* títulos que reciben el foco al cambiar de paso: el lector de pantalla los anuncia, sin marco visible */
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }

/* ---------------------------------------------------------------- MARCA */
/* Uttensio. Isotipo «Ligadura Utt» (tamaño óptico «reducido», ≤ 32 px) desde
   una sola fuente, el sprite icons/isotipo.svg (lo genera docs/marca/logos.js):
   <svg class="ic s-ic s-iso" viewBox="0 0 100 100"><use href="icons/isotipo.svg#u-reducido"></use></svg>.
   Se pinta con --brand (la U y las dos t) y --defl (la deformada), que heredan
   dentro de <use> y siguen el tema; la palabra va en STIX Two Text 500
   (--math) con espaciado de 0.012em, como el logotipo. */
/* --brand viene de ../app/css/tokens.css (importado arriba) */
.s-iso { color: var(--brand); }
.s-wm { font-family: var(--math); font-weight: 500; letter-spacing: .012em; }
.s-logo { display: inline-flex; align-items: center; gap: 2px; color: var(--ink); text-decoration: none; }
.s-logo:hover { text-decoration: none; }
.s-logo b { font-family: var(--math); font-size: 21px; line-height: 1; font-weight: 500; letter-spacing: .012em; }

/* -------------------------------------------------------------- BOTONES */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border: 0; border-radius: 18px; background: var(--fill); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.s-btn:hover { text-decoration: none; background: var(--fill2); }
.s-btn:disabled, .s-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.s-btn-primary, .s-btn-primary:hover { background: var(--accent-fill); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.s-btn-primary:hover { filter: brightness(1.08); }
.s-btn-lg { height: 48px; padding: 0 22px; border-radius: 24px; font-size: 15px; }
.s-btn-xl { height: 50px; border-radius: 25px; font-size: 17px; }
.s-btn-block { display: flex; width: 100%; }
.s-btn-glass, .s-btn-glass:hover { background: var(--glass2); -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx); box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 .5px var(--glass-line), 0 2px 8px rgba(0, 0, 0, .06); }
.s-btn-line, .s-btn-line:hover { height: 44px; border-radius: 22px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--sep2); font-size: 15px; font-weight: 500; }
.s-btn-line:hover { background: var(--raised); filter: brightness(.98); }
.s-btn-danger { color: var(--red-text); }
.s-btn .s-soft { font-weight: 500; }
.s-link { display: inline-flex; align-items: center; gap: 2px; color: var(--accent-text); font-weight: 600; text-decoration: none; }
.s-link:hover { text-decoration: underline; }
.s-linkbtn { display: inline-flex; align-items: center; min-height: 32px; padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; font-weight: 600; }
.s-linkbtn:hover { text-decoration: underline; }
.s-linkbtn:disabled { opacity: .45; pointer-events: none; }
.s-btn.is-busy { position: relative; color: transparent !important; }
.s-btn.is-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: s-spin .8s linear infinite; }
.s-btn:not(.s-btn-primary).is-busy::after { border-color: var(--sep2); border-top-color: var(--ink2); }
@keyframes s-spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------- NAVEGACIÓN */
.s-nav { position: sticky; top: 0; z-index: 20; height: 64px; background: var(--glass); -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx); box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 -.5px 0 var(--sep); }
.s-nav-in { height: 64px; display: flex; align-items: center; gap: 48px; }
.s-nav-links { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 500; }
.s-nav-links a { color: var(--ink2); text-decoration: none; }
.s-nav-links a:hover { color: var(--ink); }
.s-nav-acts { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.s-nav-acts .s-plain { font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
.s-nav-acts .s-plain:hover { text-decoration: underline; }
.s-nav-q { font-size: 14px; color: var(--ink2); }
.s-nav-in.is-narrow { gap: 12px; justify-content: space-between; }
.s-nav-in.is-narrow .s-nav-acts { gap: 12px; }

/* ---------------------------------------------------------------- HÉROE */
.s-hero { position: relative; margin-top: -64px; padding-top: 64px; overflow: hidden; background: var(--canvas); }
.s-hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.s-hero::before, .s-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.s-hero::before { background: linear-gradient(90deg, var(--canvas) 38%, transparent 66%); }
.s-hero::after { background: linear-gradient(0deg, var(--canvas) 0%, transparent 22%); }
.s-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 560px minmax(0, 1fr); column-gap: 40px; min-height: 640px; }
.s-hero-txt { display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 40px 0; }
.s-hero-txt .s-stack { display: flex; flex-direction: column; gap: 20px; }
.s-eyebrow { margin: 0; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--accent-text); }
.s-h1 { margin: 0; font-family: var(--disp); font-size: 56px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.s-h1 > span { display: block; white-space: nowrap; }
.s-lead { margin: 0; max-width: 520px; font-size: 19px; line-height: 28px; color: var(--ink2); }
.s-lead .s-math { font-size: 20px; white-space: nowrap; }
.s-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.s-ctas .s-btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 16px rgba(0, 113, 227, .24); }
.s-ctas .s-btn-glass { padding: 0 16px 0 22px; gap: 4px; }
.s-note { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--ink2); }
.s-hero-fig { position: relative; padding-top: 56px; padding-bottom: 60px; }
.s-sheet { width: 100%; max-width: 560px; border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 .5px var(--paper-edge), 0 30px 60px -16px rgba(0, 0, 0, .16), var(--float); }
.s-sheet-h { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 16px; box-shadow: inset 0 -.5px 0 var(--sep); font-size: 13px; }
.s-sheet-h b { font-weight: 600; white-space: nowrap; }
.s-sheet-h .s-sub { color: var(--ink2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-sheet-h .s-r { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.s-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--fill); font-family: var(--mono); font-size: 12px; color: var(--ink); white-space: nowrap; }
.s-units { font-size: 12px; color: var(--ink2); }
.s-fig { display: block; width: 100%; height: auto; }
.s-formula { position: absolute; right: 0; top: 484px; padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; border-radius: 16px; }
.s-formula-h { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink2); }
.s-eq { display: flex; align-items: center; gap: 0 5px; font-family: var(--math); font-size: 18px; color: var(--ink); white-space: nowrap; }
.s-eq sub { font-size: 12px; line-height: 0; }
.s-frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; font-size: 15px; line-height: 1.2; margin: 0 2px; }
.s-frac > span:first-child { padding: 0 4px 1px; border-bottom: 1px solid currentColor; }
.s-frac > span:last-child { padding: 1px 4px 0; }
.s-int { display: inline-flex; align-items: center; }
.s-int > span:first-child { font-size: 32px; line-height: 1; }
.s-int .s-lims { display: inline-flex; flex-direction: column; justify-content: space-between; height: 42px; font-size: 12px; line-height: 1; margin-left: 1px; }
.s-real { color: var(--real); }
.s-virt { color: var(--virt); }
.s-defl { color: var(--defl); }

/* héroe del teléfono (pantalla de bienvenida) */
.s-hero-m { display: none; }

/* ------------------------------------------------------------ SECCIONES */
.s-sec { padding: 72px 0; }
.s-sec-paper { background: var(--paper); }
.s-sec-canvas { background: var(--canvas); }
.s-sec-h { display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; }
.s-sec-h.is-split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
.s-sec-h.is-center { align-items: center; text-align: center; }
.s-h2 { margin: 0; font-family: var(--disp); font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.s-p { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink2); }
.s-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.s-step { display: flex; flex-direction: column; gap: 20px; }
.s-step-top { display: flex; flex-direction: column; gap: 16px; }
.s-step-n { font-family: var(--disp); font-size: 40px; line-height: 40px; font-weight: 700; letter-spacing: -.02em; color: var(--accent-text); }
.s-step-fig { border-radius: 14px; overflow: hidden; background: var(--canvas); box-shadow: inset 0 0 0 .5px var(--sep); }
.s-step-txt { display: flex; flex-direction: column; gap: 8px; }
.s-h3 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; color: var(--ink); }
.s-step-txt .s-math { font-size: 16px; }
.s-step-txt sub { font-size: 11px; line-height: 0; }

.s-card { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 .5px var(--paper-edge), 0 1px 3px rgba(0, 0, 0, .05); }
.s-card-b { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.s-card-t { margin: 0; min-height: 44px; font-size: 17px; line-height: 22px; font-weight: 600; color: var(--ink); }
.s-card-t .s-math { font-size: 18px; }
.s-card-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.s-card-f > div { display: flex; align-items: center; gap: 8px; }
.s-card-f .s-link { font-size: 15px; white-space: nowrap; }

/* ---------------------------------------------------------------- PRECIO */
.s-price-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.s-plan { width: 520px; max-width: 100%; padding: 32px; display: flex; flex-direction: column; gap: 24px; border-radius: 20px; background: var(--paper); box-shadow: 0 0 0 .5px var(--paper-edge), 0 24px 48px -16px rgba(0, 0, 0, .14), var(--float); }
.s-plan-name { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.s-plan-name .s-ic { color: var(--accent); }
.s-plan-name b { font-family: var(--disp); font-size: 20px; line-height: 24px; font-weight: 700; }
.s-amount { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; color: var(--ink); }
.s-amount .n { font-family: var(--disp); font-size: 64px; line-height: 64px; font-weight: 700; letter-spacing: -.03em; }
.s-amount .c { font-family: var(--disp); font-size: 22px; font-weight: 600; }
.s-amount .p { font-size: 17px; color: var(--ink2); }
.s-amount.is-md .n { font-size: 40px; line-height: 48px; letter-spacing: -.02em; }
.s-amount.is-md .c { font-family: var(--ui); font-size: 17px; }
.s-amount.is-md .p { font-size: 15px; }
.s-lines { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink2); }
.s-lines > span { display: block; }
.s-hr { height: 1px; border: 0; margin: 0; background: var(--sep); }
.s-label { margin: 0; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--ink2); }
.s-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 22px; color: var(--ink); }
.s-checks li { display: flex; align-items: flex-start; gap: 12px; }
.s-checks .s-ic { margin-top: 1px; color: var(--accent); }
.s-checks .s-math { font-size: 16px; line-height: 0; }
.s-secure { margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; line-height: 16px; color: var(--ink2); }
.s-plan .s-btn-xl { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 16px rgba(0, 113, 227, .22); }
.s-after { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 15px; line-height: 22px; color: var(--ink2); }

/* ------------------------------------------------------------- INSTALAR */
.s-install { padding: 48px 0; }
.s-install .s-grid3 { align-items: stretch; }
.s-install-t { align-self: center; display: flex; align-items: flex-start; gap: 16px; }
.s-badge { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.s-install-t h2 { margin: 0 0 8px; font-family: var(--disp); font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -.01em; }
.s-os { padding: 20px; display: flex; flex-direction: column; gap: 12px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 .5px var(--paper-edge), 0 1px 3px rgba(0, 0, 0, .05); }
.s-os.is-mine { box-shadow: 0 0 0 1.5px var(--accent), 0 1px 3px rgba(0, 0, 0, .05); }
.s-os h3 { margin: 0; font-size: 15px; line-height: 20px; font-weight: 600; }
.s-os ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; color: var(--ink2); }
.s-os li { display: flex; align-items: center; gap: 12px; }
.s-os li b { font-weight: 600; color: var(--ink); }
.s-os .s-k { flex: none; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--fill); color: var(--accent-text); }

/* ------------------------------------------------------------------ PIE */
.s-foot { flex: none; background: var(--paper); box-shadow: inset 0 .5px 0 var(--sep); }
.s-foot-in { min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 12px 0; }
.s-foot-l { display: flex; align-items: center; gap: 12px; }
.s-foot-l .s-logo b { font-size: 17px; }
.s-foot small, .s-foot-l span { font-size: 13px; color: var(--ink2); }
.s-foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 13px; }
.s-foot nav a { color: var(--ink2); text-decoration: none; }
.s-foot nav a:hover { color: var(--ink); text-decoration: underline; }
.s-foot.is-min { background: transparent; }
.s-foot.is-min .s-foot-in { min-height: 48px; }

/* ======================================================= FORMULARIOS (auth) */
.s-auth { padding: 32px 0 48px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.s-steps { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; list-style: none; min-height: 28px; }
.s-steps li { display: flex; align-items: center; gap: 12px; }
.s-steps .s-dash { width: 48px; height: 1px; background: var(--sep2); }
.s-steps .s-st { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); }
.s-steps .s-dot { width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--sep2); color: var(--ink2); font-size: 12px; font-weight: 600; }
.s-steps li[aria-current="step"] .s-st { color: var(--ink); font-weight: 600; }
.s-steps li[aria-current="step"] .s-dot { background: var(--accent-fill); box-shadow: none; color: #fff; font-weight: 700; }
.s-steps li.is-done .s-dot { background: var(--accent-soft); box-shadow: none; color: var(--accent-text); }
.s-steps li.is-done .s-st { color: var(--ink); }

.s-reg { width: min(980px, calc(100% - 48px)); display: grid; grid-template-columns: 460px 440px; justify-content: space-between; align-items: stretch; }
.s-plancard { padding: 32px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 .5px var(--paper-edge), var(--float); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.s-plancard > div { display: flex; flex-direction: column; gap: 24px; }
.s-plancard h2 { margin: 0; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--ink2); }
.s-plancard .s-brand { display: flex; align-items: center; gap: 12px; }
.s-plancard .s-brand .s-badge { width: 36px; height: 36px; border-radius: 10px; }
.s-plancard .s-brand b { font-family: var(--disp); font-size: 20px; line-height: 24px; font-weight: 700; }
.s-plancard .s-lines { font-size: 13px; line-height: 18px; }
.s-sched { border-radius: 12px; background: var(--fill); padding: 4px 12px; }
.s-sched > div { height: 44px; display: grid; grid-template-columns: minmax(0, 1fr) 56px 36px; align-items: center; column-gap: 4px; }
.s-sched > div + div { box-shadow: inset 0 .5px 0 var(--sep); }
.s-sched .t { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 16px; font-weight: 500; }
.s-sched .t small { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--ink2); }
.s-sched .v { font-family: var(--mono); font-size: 13px; text-align: right; }
.s-sched .u { font-size: 12px; color: var(--ink2); }
.s-plancard .s-checks { gap: 12px; font-size: 14px; line-height: 20px; }
.s-plancard .s-checks li { align-items: center; }
.s-plancard .s-checks .s-ic { margin-top: 0; }
.s-plancard .s-checks .s-math { font-size: 15px; }
.s-plancard .s-after { justify-content: flex-start; padding-top: 20px; box-shadow: inset 0 .5px 0 var(--sep); font-size: 13px; line-height: 18px; }

.s-form { padding: 32px 0; display: flex; flex-direction: column; gap: 24px; }
.s-form h1 { margin: 0; font-family: var(--disp); font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.01em; }
.s-form .s-intro { margin: -12px 0 0; font-size: 15px; line-height: 22px; color: var(--ink2); }
.s-form .s-group { display: flex; flex-direction: column; gap: 12px; }
.s-or { height: 16px; display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink2); }
.s-or::before, .s-or::after { content: ""; flex: 1; height: 1px; background: var(--sep2); }
.s-fields { display: flex; flex-direction: column; gap: 16px; }
.s-fld { display: flex; flex-direction: column; gap: 8px; }
.s-fld > label, .s-fld .s-fld-l { font-size: 13px; line-height: 16px; font-weight: 500; }
.s-fld-l { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.s-fld-l .s-link, .s-fld-l .s-linkbtn { min-height: 16px; font-size: 13px; font-weight: 500; }
.s-in { width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; outline: none; background: var(--raised); box-shadow: inset 0 0 0 1px var(--sep2); font-size: 15px; color: var(--ink); }
.s-in:focus { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--accent-soft); }
.s-in[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--red), 0 0 0 3px color-mix(in srgb, var(--red) 14%, transparent); }
.s-pw { position: relative; height: 40px; }
.s-pw .s-in { padding-right: 96px; }
.s-pw .s-show { position: absolute; top: 6px; right: 6px; height: 28px; padding: 0 12px; border: 0; border-radius: 14px; background: var(--fill); font-size: 13px; font-weight: 500; color: var(--ink); }
.s-pw .s-show:hover { background: var(--fill2); }
.s-hint { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink2); }
.s-accept { display: flex; align-items: flex-start; gap: 8px; min-height: 20px; font-size: 13px; line-height: 18px; }
.s-accept input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--accent-fill); }
.s-accept a { text-decoration: none; }
.s-accept a:hover { text-decoration: underline; }
.s-submit { display: flex; flex-direction: column; gap: 12px; }
.s-submit .s-btn-lg { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 3px rgba(0, 0, 0, .16); }
.s-submit .s-secure { justify-content: flex-start; font-size: 12px; }
.s-msg { margin: 0; display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 18px; background: var(--fill); color: var(--ink); }
.s-msg .s-ic { margin-top: 1px; }
.s-msg.is-error { background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--red-text); }
.s-msg.is-ok { background: var(--accent-soft); color: var(--ink); }
.s-msg.is-ok .s-ic { color: var(--accent-text); }
.s-msg:empty { display: none; }
.s-alt { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink2); text-align: center; }
.s-alt .s-link { font-weight: 600; }
.s-panel { display: flex; flex-direction: column; gap: 20px; padding: 32px 0; }
.s-panel h1 { margin: 0; font-family: var(--disp); font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.01em; }
.s-panel p { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink2); }
.s-panel p b { color: var(--ink); font-weight: 600; }
.s-big-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
/* Pago embebido (Stripe Embedded Checkout, registro.html). Stripe pinta su
   formulario con el branding de la cuenta, no con el tema de Uttensio: va en
   un marco blanco con color-scheme claro, así se lee igual en el tema oscuro
   y el navegador no pone un fondo opaco distinto detrás del iframe.        */
.s-pay { display: flex; flex-direction: column; gap: 12px; border-radius: 14px; }
.s-pay-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.s-pay-h .s-linkbtn { gap: 2px; margin-left: -4px; padding: 0 6px 0 2px; border-radius: 8px; }
.s-pay-h .s-secure { font-size: 12px; }
.s-pay-frame { width: 100%; min-height: 160px; border-radius: 14px; overflow: hidden; background: #fff; color-scheme: light; box-shadow: 0 0 0 .5px var(--paper-edge), var(--float); }

.s-solo { width: min(440px, calc(100% - 48px)); }
.s-solo .s-form, .s-solo .s-panel { padding-top: 8px; }

/* ----------------------------------------------------------------- CUENTA */
.s-acct { width: min(720px, calc(100% - 48px)); margin: 0 auto; padding: 40px 0 64px; display: flex; flex-direction: column; gap: 24px; }
.s-acct > h1 { margin: 0; font-family: var(--disp); font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.01em; }
.s-box { border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 .5px var(--paper-edge), 0 1px 3px rgba(0, 0, 0, .05); padding: 8px 24px 20px; }
.s-box-h { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.s-box-h h2 { margin: 0; font-size: 15px; font-weight: 600; }
.s-box-h .s-r { margin-left: auto; }
.s-kv { margin: 0; display: grid; grid-template-columns: 160px minmax(0, 1fr); }
.s-kv > dt, .s-kv > dd { margin: 0; min-height: 44px; display: flex; align-items: center; box-shadow: inset 0 .5px 0 var(--sep); font-size: 14px; }
.s-kv > dt { color: var(--ink2); }
.s-kv > dd { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.s-kv .num { font-family: var(--mono); font-size: 13px; }
.s-status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 600; background: var(--fill); color: var(--ink2); }
.s-status::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: currentColor; }
.s-status.is-on { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--ink); }
.s-status.is-on::before { background: var(--green); }
.s-status.is-warn { background: var(--defl-soft); color: var(--defl); }
.s-box-f { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 16px; }
.s-box-f .s-secure { justify-content: flex-start; }
.s-box p.s-p { padding: 4px 0 8px; }
/* la insignia de fundador (.chip-fundador de base.css) y su fecha */
.s-box-h h2 .chip-fundador { height: 24px; font-size: 13px; }
.s-box p.s-fd-desde { padding-bottom: 0; color: var(--ink); font-weight: 600; }
.s-skeleton { height: 14px; width: 60%; border-radius: 7px; background: var(--fill); }

/* ------------------------------------------------------------- LEGALES */
.s-legal { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0 72px; font-size: 16px; line-height: 26px; color: var(--ink); }
.s-legal h1 { margin: 0 0 8px; font-family: var(--disp); font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -.02em; }
.s-legal h2 { margin: 36px 0 8px; font-family: var(--disp); font-size: 20px; line-height: 28px; font-weight: 700; }
.s-legal p, .s-legal ul { margin: 0 0 12px; }
.s-legal ul { padding-left: 22px; }
.s-legal li { margin: 4px 0; }
.s-legal .s-meta { font-size: 14px; color: var(--ink2); }
.s-pending { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 8px; padding: 12px 16px; border-radius: 12px; background: var(--defl-soft); color: var(--ink); font-size: 14px; line-height: 20px; }
.s-pending .s-ic { color: var(--defl); margin-top: 1px; }
.s-tbd { font-family: var(--mono); font-size: .86em; padding: 1px 6px; border-radius: 5px; background: var(--defl-soft); color: var(--defl); white-space: nowrap; }

/* =========================================================== TABLETA */
@media (max-width: 1099px) {
  .s-nav-in { gap: 32px; }
  .s-nav-links { gap: 24px; }
  .s-hero::before { background: linear-gradient(180deg, var(--canvas) 30%, transparent 70%); }
  .s-hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .s-hero-txt { padding: 56px 0 8px; align-items: flex-start; }
  .s-hero-fig { padding-top: 32px; padding-bottom: 72px; width: min(600px, 100%); }
  .s-formula { top: auto; bottom: 24px; }
  .s-grid3 { gap: 24px; }
  .s-install .s-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-install-t { grid-column: 1 / -1; }
  .s-reg { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 999px) {
  .s-grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .s-steps-grid > :last-child, .s-ej-grid > :last-child { grid-column: 1 / -1; max-width: calc(50% - 12px); }
  .s-reg { grid-template-columns: minmax(0, 1fr); width: min(560px, calc(100% - 48px)); }
  .s-reg .s-form { order: -1; padding-top: 0; }
}

/* ========================================================== TELÉFONO */
@media (max-width: 759px) {
  .s-wrap, .s-wrap-sm, .s-reg, .s-solo, .s-acct, .s-legal { width: calc(100% - 32px); }
  html { scroll-padding-top: 16px; }
  /* barra: logo + Entrar en cápsula de vidrio (sin barra fija) */
  .s-nav { position: relative; height: auto; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; padding-top: max(8px, env(safe-area-inset-top)); }
  .s-nav-in { height: 60px; gap: 12px; }
  .s-nav .s-logo b { font-size: 24px; }
  .s-nav-acts .s-plain, .s-nav-acts .s-btn { height: 44px; padding: 0 20px; border-radius: 22px; display: inline-flex; align-items: center; font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--glass); -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx); box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 .5px var(--glass-line), var(--float); filter: none; }
  .s-nav-acts .s-btn-primary { background: var(--accent-fill); color: #fff; }
  .s-nav-links, .s-nav-acts .s-hide-m, .s-nav-q { display: none; }

  /* héroe → pantalla de bienvenida (Movil-Bienvenida) */
  .s-hero { display: none; }
  .s-hero-m { display: flex; flex-direction: column; gap: 20px; padding: 4px 0 32px; }
  .s-hero-m figure { position: relative; margin: 0; padding-bottom: 32px; }
  .s-hero-m .s-mfig { border-radius: 22px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 .5px var(--paper-edge); }
  .s-hero-m figcaption { position: absolute; right: 12px; bottom: 0; height: 56px; padding: 0 16px; border-radius: 18px; display: flex; align-items: center; gap: 4px; font-family: var(--math); font-size: 16px; color: var(--ink); white-space: nowrap; }
  .s-hero-m figcaption sub { font-size: 11px; }
  .s-hero-m .s-int > span:first-child { font-size: 28px; }
  .s-hero-m .s-int .s-lims { height: 36px; font-size: 11px; }
  .s-hero-m h1 { margin: 0; font-family: var(--disp); font-size: 34px; line-height: 40px; font-weight: 700; letter-spacing: -.005em; }
  .s-hero-m h1 span { display: block; }
  .s-hero-m h1 .s-acc { color: var(--accent-text); }
  .s-hero-m .s-t { display: flex; flex-direction: column; gap: 8px; }
  .s-hero-m .s-t p { margin: 0; font-size: 17px; line-height: 22px; color: var(--ink2); }
  .s-feats { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
  .s-feats li { min-height: 32px; display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 22px; }
  .s-feats .s-k { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
  .s-hero-m .s-acts { display: flex; flex-direction: column; gap: 8px; }
  .s-hero-m .s-acts .s-btn-primary { height: 50px; border-radius: 25px; font-size: 17px; gap: 8px; box-shadow: 0 4px 14px rgba(0, 113, 227, .28); }
  .s-hero-m .s-acts .s-btn-primary .s-soft { font-weight: 400; }
  .s-hero-m .s-acts .s-btn-glass { height: 44px; border-radius: 22px; font-size: 17px; background: var(--glass); box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 .5px var(--glass-line), var(--float); }
  .s-hero-m .s-tip { margin: 0; min-height: 20px; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 13px; line-height: 16px; color: var(--ink2); text-align: center; }
  .s-hero-m .s-tip b { font-weight: 600; color: var(--ink); }

  .s-sec { padding: 48px 0; }
  .s-sec-h { margin-bottom: 24px; }
  .s-sec-h.is-split { flex-direction: column; align-items: flex-start; gap: 8px; }
  .s-h2 { font-size: 28px; line-height: 34px; }
  .s-grid3, .s-install .s-grid3 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .s-steps-grid > :last-child, .s-ej-grid > :last-child { max-width: none; }
  .s-ej-grid { gap: 16px; }
  .s-install .s-grid3 { gap: 16px; }
  .s-install-t { margin-bottom: 8px; }
  .s-plan { padding: 24px 20px; }
  .s-amount .n { font-size: 56px; line-height: 56px; }
  .s-foot-in { flex-direction: column; align-items: flex-start; padding: 20px 0 max(20px, env(safe-area-inset-bottom)); }

  .s-auth { padding: 8px 0 32px; gap: 20px; }
  .s-steps .s-dash { width: 24px; }
  .s-steps { gap: 8px; }
  .s-steps li { gap: 8px; }
  .s-plancard { padding: 24px 20px; }
  .s-form { padding: 0; }
  .s-in { height: 44px; font-size: 17px; }
  .s-pw { height: 44px; }
  .s-pw .s-show { top: 8px; }
  .s-btn-line, .s-btn-line:hover { height: 50px; border-radius: 25px; font-size: 17px; }
  .s-form .s-btn-lg { height: 50px; border-radius: 25px; font-size: 17px; }
  .s-pay-h .s-linkbtn { min-height: 44px; font-size: 17px; }
  .s-kv { grid-template-columns: minmax(0, 1fr); }
  .s-kv > dt { min-height: 0; padding-top: 10px; font-size: 13px; }
  .s-kv > dd { min-height: 0; padding-bottom: 10px; box-shadow: none; }
  .s-box { padding: 8px 16px 16px; }
  /* a lo ancho; un texto largo («Cerrar sesión en todos tus dispositivos» a 360 px) baja de renglón en vez de salirse; los de un renglón siguen de 44 px */
  .s-box-f .s-btn { flex: 1 1 100%; height: auto; min-height: 44px; padding-top: 10px; padding-bottom: 10px; border-radius: 22px; font-size: 15px; line-height: 20px; white-space: normal; text-align: center; }
  .s-legal h1 { font-size: 28px; line-height: 34px; }
}
@media (max-width: 380px) {
  .s-hero-m h1 { font-size: 30px; line-height: 36px; }
  .s-hero-m figcaption { right: 4px; padding: 0 12px; }
}

/* ======================================================================
   PÁGINA DE VENTA · aprender, verificar y entender (index.html)
   Las maquetas copian la app con sus mismos tokens: la botonera (.s-app-tools,
   como .sh-tool), el paso oculto del modo estudio (.hj-hide), el botón
   «Salviati» del paso (.hj-deep) y la Comunidad (.cm-*). El avatar de
   Salviati es el símbolo #sv-avatar del propio index.html.
   ==================================================================== */
.s-p-lg { font-size: 17px; line-height: 26px; }
.s-sec-h.is-center .s-p { max-width: 640px; }
.s-h2-2l > span { display: block; text-wrap: balance; }
.s-btn-sm { height: 30px; padding: 0 14px; border-radius: 15px; font-size: 13px; }
.s-hl { padding: 3px 4px; border-radius: 5px; background: var(--hl); color: inherit; }
.s-num { flex: none; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 7px; background: var(--fill); font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink); }
.s-pronto { display: inline-flex; align-items: center; height: 16px; padding: 0 5px; border-radius: 6px; background: var(--raised); box-shadow: 0 0 0 .5px var(--sep2); color: var(--ink2); font-size: 10px; line-height: 13px; font-weight: 600; letter-spacing: .01em; }
.s-sv-av { display: block; flex: none; }
.s-papergrid, .s-mini, .s-sheet-b { background-color: var(--paper); background-image: linear-gradient(var(--paper-grid) 1px, transparent 1px), linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px); background-size: 18px 18px; }

/* héroe: la comunidad que se está formando (solo con plazas de fundador) */
.s-note-fd { flex-wrap: wrap; gap: 6px 10px; }
.s-note-fd .chip-fundador { height: 24px; font-size: 13px; text-decoration: none; }
.s-note-fd .chip-fundador:hover { text-decoration: none; filter: brightness(.97); }
.s-note-fd b { color: var(--ink); font-weight: 600; }
.s-feats li.is-fd .s-k { background: var(--fundador-soft); color: var(--fundador); }

/* -------------------------------------------- Aprende · Verifica · Entiende */
.s-why { align-items: start; }
.s-why-c { display: flex; flex-direction: column; gap: 20px; }
.s-why-t { display: flex; flex-direction: column; gap: 8px; }
.s-kicker { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--accent-text); }
.s-mini { min-height: 260px; padding: 16px; display: flex; flex-direction: column; gap: 12px; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 .5px var(--paper-edge), 0 18px 36px -18px rgba(0, 0, 0, .16), var(--float); }
.s-mini-h { margin: 0; display: flex; align-items: center; gap: 8px; min-height: 30px; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--ink); }
.s-mini-tag { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 600; }
.s-mini-b { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.s-mini-math { font-family: var(--math); font-size: 16px; color: var(--ink); }
/* renglones de fórmula en línea (no flex): así el subíndice baja y no se separa */
.s-mini-math p, p.s-mini-one { margin: 0; line-height: 42px; white-space: nowrap; }
.s-mini-math .s-frac, .s-sh-eq .s-frac, .s-sh-eq .s-int, .s-sh-eq .s-brk, .s-sh-eq .s-lims-in, .s-hl { vertical-align: middle; }
.s-mini-math sub { font-size: 11px; line-height: 0; }
.s-mini-math .s-frac { font-size: 14px; }
.s-mini-b.s-mini-math { gap: 0; padding-left: 32px; }
.s-mini-hide { align-items: flex-start; margin: 4px 0 0 32px; padding: 4px 0 4px 14px; border-left: 2px solid var(--accent); }
.s-mini-goal, .s-mini-hint { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink); }
.s-mini-goal b { font-weight: 600; }
.s-mini-goal .s-math { font-size: 15px; }
.s-mini-goal sub { font-size: 10px; line-height: 0; }
.s-mini-hint { color: var(--ink2); }
.s-sv-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--salviati-soft); color: var(--salviati); font-size: 12px; font-weight: 600; }
.s-sv-t { margin: 0; font-family: var(--disp); font-size: 15px; line-height: 20px; font-weight: 700; color: var(--ink); }
.s-sv-t .s-math { font-size: 16px; }
.s-mini-sv .s-fig { max-width: 300px; }

/* ------------------------------------------- Cómo funciona: el recorrido */
.s-tour { display: flex; flex-direction: column; gap: 32px; }
.s-tabs { align-self: flex-start; max-width: 100%; display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--fill); overflow-x: auto; scrollbar-width: none; }
.s-tabs::-webkit-scrollbar { display: none; }
.s-tab { flex: none; height: 38px; padding: 0 16px 0 10px; border: 0; border-radius: 9px; background: transparent; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink2); white-space: nowrap; }
.s-tab:hover { color: var(--ink); }
.s-tab .n { width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; background: var(--fill); font-size: 12px; font-weight: 700; color: var(--ink2); }
.s-tab[aria-selected="true"] { background: var(--raised); color: var(--ink); font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .1), 0 0 0 .5px var(--sep); }
.s-tab[aria-selected="true"] .n { background: var(--accent-fill); color: #fff; }
.s-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.s-tour:not(.is-js) .s-tabs, .s-tour:not(.is-js) .s-try { display: none; }
.s-tour:not(.is-js) .s-tp + .s-tp { margin-top: 64px; }
.s-tp { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); column-gap: 56px; align-items: center; }
.s-tour.is-js .s-tp { animation: s-in .32s ease both; }
@keyframes s-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .s-tour.is-js .s-tp { animation: none; } }
.s-tp-txt { display: flex; flex-direction: column; gap: 16px; }
.s-h3-lg { font-family: var(--disp); font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -.01em; }
.s-tp-txt .s-checks .s-math { font-size: 16px; line-height: 0; }
.s-tp-fig { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.s-try { margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--ink2); }

/* la ventana de la app */
.s-app { border-radius: 14px; overflow: hidden; background: var(--canvas); box-shadow: 0 0 0 .5px var(--paper-edge), 0 30px 60px -20px rgba(0, 0, 0, .18), var(--float); }
.s-app-top { height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 16px; background: var(--glass); box-shadow: inset 0 -.5px 0 var(--sep); }
.s-app-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 15px; }
.s-app-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ink); }
.s-app-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--ink2); }
.s-app-seg { flex: none; display: inline-flex; padding: 2px; border-radius: 9px; background: var(--fill); font-size: 12px; }
.s-app-seg > * { height: 24px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 7px; color: var(--ink2); font-weight: 500; }
.s-app-seg > b { background: var(--raised); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 .5px var(--sep); }
.s-app-go { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 14px; border-radius: 14px; background: var(--accent-fill); color: #fff; font-size: 13px; font-weight: 600; }
.s-app-tools { display: flex; align-items: stretch; padding: 6px 8px 4px; background: var(--glass); box-shadow: inset 0 -.5px 0 var(--sep); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
.s-app-tools.is-sol { flex-wrap: wrap; row-gap: 6px; -webkit-mask-image: none; mask-image: none; }
.s-app-tools .g { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 6px; }
.s-app-tools .g + .g { box-shadow: inset .5px 0 0 var(--sep2); }
.s-app-tools .r { display: flex; gap: 2px; }
.s-app-tools .t { position: relative; min-width: 54px; height: 46px; padding: 4px 6px 3px; border: 0; border-radius: 8px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink); font: inherit; }
.s-app-tools .t b { font-size: 11px; line-height: 13px; font-weight: 500; white-space: nowrap; }
.s-app-tools .t.is-on, .s-app-tools .t[aria-pressed="true"] { background: var(--fill2); }
.s-app-tools button.t:hover { background: var(--fill); }
.s-app-tools button.t[aria-pressed="true"]:hover { background: var(--fill2); }
.s-app-tools button.t:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.s-app-tools .t.is-off > :not(.s-pronto) { opacity: .38; }
.s-app-tools .s-pronto-t { position: absolute; top: 0; right: -2px; height: 14px; padding: 0 4px; font-size: 9px; }
.s-app-tools small { font-size: 10.5px; line-height: 12px; color: var(--ink2); }
.s-glyph { height: 20px; display: flex; align-items: center; justify-content: center; font-family: var(--math); font-size: 16px; }
.s-glyph sub { font-size: 10px; line-height: 0; }
.s-glyph-mono { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.s-frac.s-frac-xs { font-size: 10px; line-height: 1.05; margin: 0 1px; }
.s-frac-xs > span:first-child { padding: 0 2px; }
.s-frac-xs > span:last-child { padding: 0 2px; }
.s-app-canvas { width: 100%; height: auto; background: var(--canvas); }
.s-app-status { height: 30px; display: flex; align-items: center; gap: 16px; padding: 0 12px; background: var(--glass); box-shadow: inset 0 .5px 0 var(--sep); font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; }
.s-app-status .ok { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.s-app-status .ok .s-ic { color: var(--green); }
.s-app-status .s-math { font-size: 13px; }
.s-app-status sub { font-size: 9px; line-height: 0; }
.s-app-status .u { margin-left: auto; height: 20px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 6px; background: var(--fill); color: var(--ink); }

/* la hoja dentro de la ventana */
.s-sheet-b { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.s-sh-step { margin: 8px 0 0; display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.s-sh-step:first-child { margin-top: 0; }
.s-sh-eq { margin: 0 0 0 34px; line-height: 46px; font-family: var(--math); font-size: 17px; color: var(--ink); }
.s-sh-eq sub { font-size: 12px; line-height: 0; }
.s-sh-eq sup { font-size: 11px; line-height: 0; }
.s-sh-eq .s-frac { font-size: 15px; }
.s-sh-note { display: block; margin-top: -6px; font-family: var(--ui); font-size: 12px; line-height: 20px; color: var(--ink2); }
.s-sh-note i { font-family: var(--math); font-size: 13px; }
.s-brk { font-size: 32px; line-height: 1; font-weight: 300; }
.s-lims-in { display: inline-flex; flex-direction: column; justify-content: space-between; height: 40px; margin: 0 2px 0 -2px; font-size: 11px; line-height: 1; }
.s-demo .v-frac { display: inline; }
.s-demo[data-int="tabla"] .v-integ, .s-demo[data-int="integ"] .v-tabla,
.s-demo[data-num="dec"] .v-frac, .s-demo[data-num="frac"] .v-dec { display: none; }

/* los niveles */
.s-levels { margin: 0; padding: 2px 16px; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 .5px var(--paper-edge), 0 1px 3px rgba(0, 0, 0, .05); }
.s-levels > div { padding: 10px 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 12px; }
.s-levels > div + div { box-shadow: inset 0 .5px 0 var(--sep); }
.s-levels dt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.s-levels dd { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink2); }
.s-levels .is-pronto dt { color: var(--ink2); }
.s-lv { display: grid; grid-template-columns: minmax(0, 1fr) 156px; column-gap: 20px; align-content: start; }
.s-lv-main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.s-lv-p { font-size: 14px; line-height: 20px; color: var(--ink); }
.s-lv-p b { font-weight: 600; }
.s-sh-eq.s-lv-inc { margin: 0; line-height: 22px; font-family: var(--ui); font-size: 14px; color: var(--ink2); }
.s-lv-inc i, .s-lv-inc sub { font-family: var(--math); }
.s-lv-inc i { font-size: 16px; }
.s-deep { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 5px; border-radius: 12px; background: var(--fill); color: var(--accent-text); font-size: 12px; font-weight: 500; }
.s-lv-notes { margin: 40px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.s-lv-notes li { padding-left: 10px; box-shadow: inset 2px 0 0 var(--ink2); font-size: 12px; line-height: 16px; color: var(--ink2); }
.s-lv-sv { grid-column: 1 / -1; justify-self: end; margin-top: 10px; max-width: 340px; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px 12px 12px; border-radius: 16px; }
.s-lv-sv p { margin: 0; font-size: 12.5px; line-height: 17px; color: var(--ink2); }
.s-lv-sv b { display: block; margin-bottom: 2px; font-size: 13px; color: var(--ink); }
.s-demo[data-nivel="libreta"] .lv-ap, .s-demo[data-nivel="libreta"] .lv-sv, .s-demo[data-nivel="apuntes"] .lv-sv { display: none; }
.s-demo[data-nivel="libreta"] .s-lv { grid-template-columns: minmax(0, 1fr); }

/* imprimir */
.s-print { align-items: center; padding: 20px 0 8px; }
.s-print::before { content: ""; position: absolute; top: 20px; left: 50%; width: min(340px, 86%); aspect-ratio: 340 / 440; border-radius: 4px; background: var(--paper); box-shadow: 0 0 0 .5px var(--paper-edge), var(--float); transform: translateX(-50%) rotate(2.6deg) translate(14px, 6px); }
.s-print-page { position: relative; width: min(340px, 86%); border-radius: 4px; box-shadow: 0 0 0 .5px var(--paper-edge), 0 30px 60px -20px rgba(0, 0, 0, .22), var(--float); transform: rotate(-1.2deg); }
.s-print-acts { position: absolute; top: 4px; right: 4%; display: flex; gap: 2px; padding: 4px; border-radius: 14px; }
.s-print-acts span { min-width: 64px; padding: 6px 8px 5px; display: flex; flex-direction: column; align-items: center; gap: 3px; border-radius: 10px; font-size: 11px; font-weight: 500; color: var(--ink); }
.s-print-acts span:first-child { background: var(--fill); }

/* ----------------------------------------- De lo básico a lo complejo */
.s-ruta { margin: 0; padding: 0; list-style: none; }
.s-ruta-c { padding: 24px; border-radius: 16px; background: var(--canvas); box-shadow: inset 0 0 0 .5px var(--sep); }
.s-ruta-h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.s-ruta-n { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-family: var(--disp); font-size: 16px; font-weight: 700; }
.s-ruta-l { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 21px; color: var(--ink); }
.s-ruta-l li, .s-ruta-ley span { position: relative; padding-left: 28px; }
.s-ruta-l .is-pronto, .s-ruta-ley .is-pronto { color: var(--ink2); }
.s-ruta-l .is-ya::before, .s-ruta-ley .is-ya::before { content: ""; position: absolute; left: 0; top: 1.5px; width: 18px; height: 18px; border-radius: 9px; background: var(--accent-soft); }
.s-ruta-l .is-ya::after, .s-ruta-ley .is-ya::after { content: ""; position: absolute; left: 6.5px; top: 5px; width: 4.5px; height: 8.5px; border: solid var(--accent-text); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.s-ruta-l .is-pronto::before, .s-ruta-ley .is-pronto::before { content: ""; position: absolute; left: 1px; top: 2.5px; width: 16px; height: 16px; border-radius: 8px; border: 1.5px dashed var(--ink3); box-sizing: border-box; }
.s-ruta-pie { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px; }
.s-ruta-pie .s-p { flex: 1 1 420px; max-width: 720px; }
.s-ruta-ley { margin: 0; display: flex; gap: 24px; font-size: 13px; line-height: 21px; color: var(--ink); }

/* ------------------------------------------------- La comunidad */
.s-com { position: relative; overflow: hidden; }
.s-com::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 75% at 80% 30%, var(--fundador-soft), transparent 70%); }
.s-com-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); column-gap: 64px; align-items: center; }
.s-com-txt { display: flex; flex-direction: column; gap: 24px; }
.s-eyebrow-fd { display: flex; align-items: center; gap: 6px; color: var(--fundador); }
.s-com-l { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.s-com-l li { display: flex; align-items: flex-start; gap: 14px; }
.s-com-l .s-k { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--fundador-soft); color: var(--fundador); }
.s-com-l li > div { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 22px; color: var(--ink2); }
.s-com-l b { font-size: 16px; font-weight: 600; color: var(--ink); }
.s-com-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.s-com-cta .s-btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 16px rgba(0, 113, 227, .24); }
.s-com-cta .s-note b { color: var(--ink); }
.s-com-fig { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.s-com-fig figcaption { font-size: 12px; line-height: 16px; color: var(--ink2); text-align: center; }
.s-com-app { background: var(--paper); }
.s-com-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 6px; }
.s-com-h > div { display: flex; align-items: center; gap: 10px; }
.s-com-h > div > b { font-family: var(--disp); font-size: 22px; line-height: 28px; font-weight: 700; color: var(--ink); }
.s-com-lh { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 18px 10px; }
.s-com-lh > b { font-size: 13px; font-weight: 600; color: var(--ink2); }
.s-com-list { margin: 0; padding: 0 12px 14px; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.s-com-list > li { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 12px; background: var(--canvas); box-shadow: inset 0 0 0 .5px var(--sep); }
.s-com-list > li.is-mia { box-shadow: inset 0 0 0 1px var(--fundador); }
.s-com-list > li > div { flex: 1; min-width: 0; }
.s-vote { flex: none; width: 56px; height: 44px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--raised); box-shadow: inset 0 0 0 1px var(--sep2); font-size: 11px; line-height: 13px; font-weight: 600; color: var(--ink2); }
.s-vote.is-on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-text); }
.s-com-list .t { margin: 0; font-size: 14px; line-height: 19px; font-weight: 600; color: var(--ink); }
.s-com-list .m { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; line-height: 16px; color: var(--ink2); }
.s-tag, .s-st { height: 20px; padding: 0 7px; display: inline-flex; align-items: center; border-radius: 6px; background: var(--fill); color: var(--ink); font-size: 11px; font-weight: 500; }
.s-st { border-radius: 10px; color: var(--ink2); font-weight: 600; }
.s-tag.is-duda { background: var(--salviati-soft); color: var(--salviati); }   /* como .cm-tag.is-duda de la app */
.s-st.is-plan { background: var(--accent-soft); color: var(--accent-text); }
.s-pipe { margin: 10px 0 0; padding: 0; list-style: none; display: flex; gap: 4px; font-size: 11px; line-height: 14px; color: var(--ink2); }
.s-pipe li { flex: 1; padding-top: 6px; box-shadow: inset 0 2px 0 var(--sep2); }
.s-pipe .is-done { box-shadow: inset 0 2px 0 var(--accent); }
.s-pipe .is-on { color: var(--accent-text); font-weight: 600; box-shadow: inset 0 2px 0 var(--accent); }

/* ------------------------------------------- los cuatro ejemplos gratis */
.s-ej4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.s-ej4 .s-card-t { min-height: 66px; }
.s-ej4 > :last-child { grid-column: auto; max-width: none; }   /* anula el «último a lo ancho» de las rejillas de tres */
.s-ej-head > .s-sec-h { flex: none; }   /* el título en un renglón; el párrafo se acomoda */
.s-ej-head > .s-p { max-width: 520px; }

/* ----------------------------------------------------- instalar y cierre */
.s-install.s-sec-paper .s-os { background: var(--canvas); }
.s-cierre-in { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.s-lema { margin: 8px 0 0; font-family: var(--math); font-size: 42px; line-height: 50px; font-weight: 500; font-style: italic; color: var(--ink); }
.s-lema-a { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink2); }
.s-cierre .s-p { max-width: 560px; }
.s-cierre .s-ctas { justify-content: center; margin-top: 10px; }
.s-cierre .s-ctas .s-btn-glass { padding: 0 22px; }

@media (max-width: 1099px) {
  .s-ej4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-ej4 .s-card-t { min-height: 44px; }
  .s-tp { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .s-tp-txt { max-width: 640px; }
  .s-com-in { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .s-com-fig { width: min(560px, 100%); }
}
@media (max-width: 999px) {
  .s-why > :last-child, .s-ruta > :last-child { grid-column: 1 / -1; max-width: calc(50% - 12px); }
}
@media (max-width: 959px) {
  .s-nav-links .s-nav-x { display: none; }
}
@media (max-width: 759px) {
  .s-why > :last-child, .s-ruta > :last-child { max-width: none; }
  .s-mini { min-height: 0; }
  .s-ej4 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .s-ej4 .s-card-t { min-height: 0; }
  .s-p-lg { font-size: 16px; line-height: 24px; }
  .s-tabs { align-self: stretch; }
  .s-tab { height: 36px; padding: 0 12px 0 8px; font-size: 14px; }
  .s-h3-lg { font-size: 22px; line-height: 28px; }
  .s-app-top { height: 44px; padding: 0 8px 0 12px; }
  .s-app-name small, .s-app-status .s-hide-s { display: none; }
  .s-app-name b { font-size: 12px; }
  .s-app-go { padding: 0 10px; }
  .s-sheet-b { padding: 14px 14px 18px; }
  .s-sh-eq { margin-left: 0; font-size: 16px; }
  .s-lv { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .s-lv-notes { margin-top: 2px; }
  .s-lv-sv { max-width: none; justify-self: stretch; }
  .s-mini-b.s-mini-math, .s-mini-hide { margin-left: 0; padding-left: 0; }
  .s-mini-hide { padding-left: 14px; }
  .s-ruta-c { padding: 20px; }
  .s-lema { font-size: 30px; line-height: 38px; }
  .s-com-list > li { gap: 10px; padding: 10px; }
  .s-vote { width: 50px; }
  .s-pipe { font-size: 10px; }
}
