/* Zenviora · sitio público. Monocromo, Quicksand, mismo lenguaje visual que la app. */

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/quicksand-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/quicksand-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --alt: #f6f6f6;
  --ink: #0a0a0a;
  --ink-2: #2e2e2e;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --line-strong: #d4d4d4;
  --r: 18px;
  --pill: 999px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0a0a0a; --alt: #131313; --ink: #f5f5f5; --ink-2: #d6d6d6; --muted: #9a9a9a; --line: #222; --line-strong: #333; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.6 "Quicksand", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 28px; }
h3 { font-size: 19px; margin-bottom: 8px; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row.end { justify-content: flex-end; }
.small { font-size: 14px; }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: var(--pill); background: var(--ink); color: var(--bg); border: 1px solid var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; transition: opacity 0.15s ease, transform 0.15s ease; }
.btn:hover { opacity: 0.86; }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.invert { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* encabezado */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { font-weight: 700; letter-spacing: 0.22em; font-size: 15px; text-decoration: none; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav + .top-cta { margin-left: 0; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.top-cta { display: flex; gap: 8px; margin-left: auto; }

/* portada */
.hero { padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 9vw, 110px); }
.hero-in > * { max-width: 860px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); margin: 24px 0 32px; max-width: 680px; }
.note { margin-top: 16px; font-size: 14px; color: var(--muted); }

.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats > div { padding: 28px 20px 28px 0; display: grid; gap: 4px; }
.stats > div + div { padding-left: 24px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats b { font-size: 40px; letter-spacing: -0.03em; }
.stats span { color: var(--muted); font-size: 15px; }

.sec { padding: clamp(64px, 10vw, 120px) 0; }
.sec.alt { background: var(--alt); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 20px; }
.steps .num { display: block; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 14px; letter-spacing: 0.1em; }
.steps p, .card p { color: var(--ink-2); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; justify-content: center; }
.plan { border: 1px solid var(--line-strong); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.plan.pro { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.plan.pro .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.price { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: currentColor; }

.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.two h2 { margin-bottom: 0; }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 500; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--ink-2); }

.cta { background: var(--ink); color: var(--bg); }
.cta h2 { margin-bottom: 28px; }

.foot { border-top: 1px solid var(--line); padding: 40px 0 32px; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.foot-in p { color: var(--muted); margin-top: 8px; max-width: 420px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.foot-links a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .nav { display: none; }
  .top-cta, .nav + .top-cta { margin-left: auto; }
  .steps, .grid { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .row.end { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .plans { grid-template-columns: 1fr; }
  .top-cta .ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* video de presentación con reproductor propio */
.video-sec { padding-top: 0; }
.video-sec h2 { margin-bottom: 24px; }
.vp { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #0a0a0a; border: 1px solid var(--line); box-shadow: 0 24px 60px -30px rgb(0 0 0 / 0.45); outline: none; }
.vp:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.vp video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.vp svg { width: 22px; height: 22px; fill: currentColor; }
.vp-big { position: absolute; left: 20px; bottom: 20px; width: max-content; height: max-content; display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px 14px 18px; border: 0; border-radius: var(--pill); background: #fafafa; color: #0a0a0a; font: 700 16px "Quicksand", system-ui, sans-serif; cursor: pointer; box-shadow: 0 10px 30px rgb(0 0 0 / 0.35); transition: transform 0.2s ease, opacity 0.2s ease; }
.vp-big svg { width: 26px; height: 26px; }
.vp-big:hover { transform: scale(1.04); }
.vp.vp-playing .vp-big { opacity: 0; pointer-events: none; transform: scale(0.9); }
.vp-controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 28px 16px 14px; color: #fafafa; background: linear-gradient(to top, rgb(0 0 0 / 0.7), transparent); opacity: 0; transform: translateY(6px); transition: opacity 0.25s ease, transform 0.25s ease; }
.vp:not(.vp-playing) .vp-controls { opacity: 0; pointer-events: none; }
.vp.vp-playing.vp-active .vp-controls, .vp.vp-playing:focus-within .vp-controls { opacity: 1; transform: none; }
.vp.vp-ended .vp-big { opacity: 1; pointer-events: auto; }
.vp-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.vp-btn:hover { background: rgb(255 255 255 / 0.14); }
.vp-btn:focus-visible, .vp-bar:focus-visible { outline: 2px solid #fafafa; outline-offset: 2px; }
.vp-play .i-pause, .vp.vp-playing .vp-play .i-play { display: none; }
.vp.vp-playing .vp-play .i-pause { display: block; }
.vp-mute .i-off, .vp.vp-muted .vp-mute .i-on { display: none; }
.vp.vp-muted .vp-mute .i-off { display: block; }
.vp-bar { position: relative; flex: 1; height: 6px; border-radius: var(--pill); background: rgb(255 255 255 / 0.25); cursor: pointer; touch-action: none; }
.vp-bar::before { content: ""; position: absolute; inset: -10px 0; }
.vp-buffer, .vp-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; width: 0; }
.vp-buffer { background: rgb(255 255 255 / 0.35); }
.vp-fill { background: #fafafa; }
.vp-fill::after { content: ""; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fafafa; transform: scale(0); transition: transform 0.15s ease; }
.vp-bar:hover .vp-fill::after, .vp-bar:focus-visible .vp-fill::after { transform: scale(1); }
.vp-time { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vp:fullscreen { border-radius: 0; border: 0; }
.vp:fullscreen video { object-fit: contain; }
@media (max-width: 640px) {
  .vp { border-radius: 14px; }
  .vp-big { left: 12px; bottom: 12px; padding: 9px 16px 9px 12px; font-size: 13.5px; }
  .vp-time { display: none; }
  .vp-controls { gap: 6px; padding: 22px 8px 8px; }
}
@media (prefers-reduced-motion: reduce) { .vp-big, .vp-controls { transition: none; } }

/* descargas */
.grid.dl { grid-template-columns: repeat(4, 1fr); }
.grid.dl .card { display: flex; flex-direction: column; gap: 10px; }
.stack-btn { display: grid; gap: 8px; margin-top: auto; }
@media (max-width: 1000px) { .grid.dl { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.dl { grid-template-columns: 1fr; } }

/* guía del Atajo */
.guide { display: grid; gap: 12px; padding-left: 24px; margin: 0; font-size: 17px; }
.guide li::marker { font-weight: 700; }
.guide code, .note code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; padding: 1px 6px; border-radius: 6px; background: var(--alt); border: 1px solid var(--line); }
.sec.alt .guide code { background: var(--bg); }

/* video vertical (grabado en el celular) */
.vp.vertical { aspect-ratio: 9 / 16; max-width: 400px; margin: 0 auto; }
.vp.vertical video { object-fit: contain; }
.vp.vertical .vp-big { left: 50%; top: 66%; bottom: auto; transform: translateX(-50%); }
.vp.vertical .vp-big:hover { transform: translateX(-50%) scale(1.04); }
.vp.vertical.vp-playing .vp-big { transform: translateX(-50%) scale(0.9); }

/* Direcciones para pegar en la app Atajos (guía /atajos). */
.copy-url { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.copy-url code { overflow-wrap: anywhere; }
.install-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* /atajos: índice de videos y reproductor junto a cada paso */
.video-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.video-index a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; background: var(--surface, transparent); }
.video-index a:hover { border-color: var(--ink); }
.video-index span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.step-video { margin: 8px 0 28px; }
.step-video:empty { display: none; }
section[id^="paso-"] { scroll-margin-top: 80px; }

.lead-tight { margin-bottom: 20px; }
.note-first { margin-top: 0; }
.h3-gap { margin-top: 28px; }

/* Menú del celular: botón de tres rayas a la izquierda y panel lateral con todas las secciones */
.menu-btn { display: none; width: 40px; height: 40px; margin-left: -8px; border: 0; background: transparent; color: var(--ink); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 10px; }
.menu-btn span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.menu-btn:focus-visible, .menu-x:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.menu-panel { position: fixed; inset: 0; z-index: 50; }
.menu-shade { position: absolute; inset: 0; background: rgb(0 0 0 / 0.4); opacity: 0; transition: opacity 0.2s ease; }
.menu-drawer { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: var(--bg); color: var(--ink); display: flex; flex-direction: column; gap: 20px; padding: 16px 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; transform: translateX(-100%); transition: transform 0.22s ease; box-shadow: 8px 0 30px rgb(0 0 0 / 0.18); }
.menu-panel.open .menu-shade { opacity: 1; }
.menu-panel.open .menu-drawer { transform: none; }
.menu-head { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.menu-x { width: 40px; height: 40px; border: 0; background: transparent; color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; border-radius: 10px; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a { padding: 14px 4px; font-size: 18px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-links a[aria-current="page"] { color: var(--muted); }
.menu-cta { display: flex; flex-direction: column; gap: 10px; }
.menu-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; }
.menu-legal a { font-size: 14px; color: var(--muted); text-decoration: none; }
html.menu-open { overflow: hidden; }
@media (max-width: 900px) { .menu-btn { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) { .menu-drawer, .menu-shade { transition: none; } }

/* Aprende: videos de educación financiera */
.learn { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 24px; }
.learn-item { display: flex; flex-direction: column; gap: 12px; }
.learn-item video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); background: #000; display: block; }
.learn-item.is-vertical video { aspect-ratio: 9 / 16; max-height: 78vh; }
.learn-item h3 { margin: 0; }
.learn-item p { margin: 0; }
.learn-meta { font-size: 13px; color: var(--muted); }

/* Cuatro planes: dos por fila en pantallas medianas, uno debajo del otro en el celular */
.plans.plans-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); max-width: 1100px; margin: 0 auto; }
.plans-4 .price { font-size: 24px; }
.plans-4 .price .per { font-size: 15px; font-weight: 500; opacity: 0.75; }

/* Sitio apagado desde el panel */
.maint { min-height: 100dvh; display: grid; place-content: center; gap: 18px; padding: 24px; max-width: 640px; margin: 0 auto; }

/* ── planes: del más básico al más completo; Pro Plus destacado ── */
.plans-4 .plan { gap: 12px; padding: 26px 24px; }
.plan-tag { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.plan h3 { margin: 0; font-size: 22px; }
.plans-4 .price.soon { font-size: 18px; color: var(--muted); }
.plan-hook { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.35; }
.plan ul.plan-vs { flex: 0 0 auto; gap: 6px; margin: 0; }
.plan ul.plan-vs li { padding: 6px 10px 6px 30px; border-radius: 10px; background: var(--alt); font-size: 14px; font-weight: 600; }
.plan ul.plan-vs li::before { content: "↑"; width: auto; height: auto; background: none; left: 11px; top: 6px; font-weight: 800; }
.plan-base { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: var(--muted); }
.plan-excl { margin: 0; padding: 12px 14px; border-radius: 12px; border: 1.5px solid currentColor; font-size: 14.5px; line-height: 1.45; }
.plan-excl b { display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.plan-feats li { font-size: 15px; line-height: 1.45; }
.plan-more { border-top: 1px solid var(--line); padding-top: 10px; }
.plan-more summary { cursor: pointer; font-weight: 700; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.plan-more summary::-webkit-details-marker { display: none; }
.plan-more summary::after { content: "+"; font-size: 18px; line-height: 1; }
.plan-more[open] summary::after { content: "−"; }
.plan-more p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.soon-btn { cursor: default; opacity: 0.7; pointer-events: none; }
.plan.featured { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.45); }
.plan.featured .plan-tag, .plan.featured .plan-base, .plan.featured .price.soon { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.plan.featured ul.plan-vs li { background: color-mix(in srgb, var(--bg) 12%, transparent); }
.plan.featured .plan-more { border-top-color: color-mix(in srgb, var(--bg) 20%, transparent); }
.plan.featured .plan-more p { color: color-mix(in srgb, var(--bg) 85%, transparent); }
.plan.featured .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
@media (min-width: 1100px) { .plans.plans-4 { max-width: 1240px; } }
/* Atajos: qué tiene cada plan */
.sc-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 20px; }
.sc-plan { border: 1px solid var(--line-strong); border-radius: var(--r); padding: 22px; }
.sc-plan h3 { margin: 0 0 8px; }
.sc-plan ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.sc-plan.pro { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pro-tag { display: inline-block; vertical-align: middle; margin-left: 6px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: var(--pill); background: var(--ink); color: var(--bg); }
.plans-4 .plan ul.plan-feats { align-content: start; gap: 10px; }
.plans-4 .plan .plan-more { margin-top: auto; }
.soon-btn { justify-content: center; text-align: center; white-space: nowrap; }
