/* Web pública de Yumiedits.
   Clara por defecto, con un capítulo oscuro (los ejemplos) y modo oscuro si el sistema lo pide.
   Un solo acento: el amarillo de los subtítulos, siempre de fondo con texto oscuro encima (como texto
   sobre blanco no se lee).
   Formas: botones y chips en píldora, tarjetas y capturas 22px, campos 12px, el móvil 42px. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --line: rgba(0, 0, 0, 0.09);
  --accent: #ffd400;
  --accent-ink: #141414;
  --accent-soft: rgba(255, 212, 0, 0.2);
  --ok: #18804a;
  --bad: #c62828;
  --chapter-dark: #0b0b0c;
  --page-bg: var(--bg);
  --shadow: 0 1px 2px rgba(20, 20, 30, 0.05), 0 18px 40px -18px rgba(20, 20, 30, 0.18);
  --radius-card: 22px;
  --radius-field: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10; --bg-soft: #161618; --surface: #1c1c1f; --ink: #f4f4f5; --ink-2: #a1a1aa; --line: rgba(255, 255, 255, 0.1);
    --accent-soft: rgba(255, 212, 0, 0.14); --ok: #3ddc84; --bad: #ff6b6b; --chapter-dark: #060607;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  }
}
/* Capítulo oscuro (los ejemplos): mientras cruza el centro de la pantalla, toda la página pasa a
   oscuro (site.js), así lo que asoma de las secciones de al lado también se lee. */
:root[data-chapter="dark"] {
  --page-bg: var(--chapter-dark); --bg-soft: #161618; --surface: #1c1c1f; --ink: #f4f4f5; --ink-2: #a1a1aa; --line: rgba(255, 255, 255, 0.1);
  --accent-soft: rgba(255, 212, 0, 0.14); --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}
body, .tile, .plan, .rows, .final, .nav, .tab, .cycle { transition: background-color 0.45s ease, color 0.45s ease; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font: 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
section { position: relative; }
.section { padding-block: clamp(80px, 11vw, 150px); }

/* ── Tipografía ─────────────────────────────────────────────────────────────────────────────── */
.display, h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.032em; }
h1 { font-size: clamp(42px, 6.3vw, 82px); line-height: 1.02; }
h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; }
.lead { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.42; color: var(--ink-2); max-width: 34ch; }
h1 + .lead, h2 + .lead { margin-top: 18px; }
[tabindex="-1"]:focus { outline: none; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; max-width: 46ch; }
/* La palabra resaltada, como en los subtítulos de los reels. */
.mark { background: var(--accent); color: var(--accent-ink); border-radius: 0.14em; padding: 0 0.1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ── Botones ────────────────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  font-weight: 600; font-size: 17px; white-space: nowrap; text-decoration: none;
  transition: transform 0.15s var(--ease), background-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 8px 20px -10px rgba(160, 130, 0, 0.6); }
.btn-primary:hover { background: #ffdc2e; }
.btn-ghost { background: var(--bg-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: color-mix(in srgb, var(--bg-soft) 80%, var(--ink) 6%); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; color: var(--ink); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat; transition: background-size 0.3s var(--ease); padding-bottom: 2px; }
.link:hover { background-size: 100% 3px; }
.link i { font-size: 15px; transition: transform 0.2s var(--ease); }
.link:hover i { transform: translateX(3px); }

/* ── Navegación ─────────────────────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; transition: background-color 0.3s, box-shadow 0.3s; }
.nav.is-scrolled { background: color-mix(in srgb, var(--page-bg) 74%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 60px; width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.wordmark span { background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 1px 5px 2px; margin-left: 1px; }
.nav-links { display: flex; gap: 26px; font-size: 15px; }
.nav-links a, .nav-login { text-decoration: none; color: var(--ink); opacity: 0.78; transition: opacity 0.15s; }
.nav-links a:hover, .nav-login:hover { opacity: 1; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; }
.nav-menu { display: none; width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--bg-soft); font-size: 20px; align-items: center; justify-content: center; }
.nav-mobile { border-top: 1px solid var(--line); background: var(--page-bg); padding: 12px var(--gutter) 20px; }
.nav-mobile a { display: block; padding: 12px 0; font-size: 19px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) {
  .nav-links, .nav-login { display: none; }
  .nav-menu { display: inline-flex; }
  .nav-actions { gap: 10px; }
}

/* ── El móvil (marco de los reels) ──────────────────────────────────────────────────────────── */
.phone {
  position: relative; aspect-ratio: 9 / 16; padding: 9px; border-radius: 42px; background: #111113;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 40px 80px -30px rgba(20, 20, 30, 0.5), 0 14px 30px -14px rgba(20, 20, 30, 0.35);
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: #000; isolation: isolate; }
.screen > video, .screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sound {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px; color: #fff;
  background: rgba(20, 20, 22, 0.5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.sound:hover { background: rgba(20, 20, 22, 0.7); }

/* ── Hero ───────────────────────────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(28px, 5vw, 72px) clamp(64px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 6vw, 96px); }
.hero h1 { font-size: clamp(42px, 5.4vw, 74px); }
.hero .lead { margin-top: 22px; }
.hero-ctas { display: flex; align-items: center; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-phone { justify-self: center; width: clamp(250px, 23vw, 320px); transform: translateY(calc(var(--p, 0) * -70px)) scale(calc(1 - var(--p, 0) * 0.05)); }
.hero-copy { opacity: calc(1 - var(--p, 0) * 0.9); transform: translateY(calc(var(--p, 0) * -24px)); }
.float { animation: float 6.5s ease-in-out infinite alternate; }
@keyframes float { from { translate: 0 -5px; } to { translate: 0 7px; } }
/* Titular que se ilumina palabra a palabra, como los subtítulos. */
.say .w { display: inline-block; border-radius: 0.14em; padding: 0 0.07em; transition: background-color 0.12s, color 0.12s, transform 0.18s var(--ease); }
.say .w.on { background: var(--accent); color: var(--accent-ink); transform: scale(1.035); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone { width: min(280px, 72vw); }
}

/* ── Escena: de clips sueltos a reel terminado ──────────────────────────────────────────────── */
.scene { height: 420vh; }
.scene-pin { position: sticky; top: 0; height: 100dvh; display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: clamp(24px, 4vw, 64px); width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.scene h2 { max-width: 11ch; }
.steps { margin-top: 36px; display: grid; gap: 6px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 16px; color: var(--ink-2); transition: color 0.3s, background-color 0.3s, opacity 0.3s; opacity: 0.55; }
.steps li i { font-size: 22px; width: 36px; height: 36px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-soft); color: var(--ink-2); transition: background-color 0.3s, color 0.3s; }
.steps li.on { color: var(--ink); opacity: 1; background: var(--bg-soft); }
.steps li.on i { background: var(--accent); color: var(--accent-ink); }
.steps strong { display: block; font-size: 18px; letter-spacing: -0.01em; }
.steps span { font-size: 15px; }
.stage { position: relative; height: min(78dvh, 720px); display: grid; place-items: center; }
.stage .phone { height: 100%; width: auto; max-width: 100%; }
.stage .screen img { opacity: 0; transition: opacity 0.5s ease; }
.stage .screen img.on { opacity: 1; }
.clips { position: absolute; inset: 0; pointer-events: none; }
.clip {
  --e: 0; position: absolute; left: 50%; top: 50%; width: clamp(70px, 8vw, 104px); aspect-ratio: 9 / 16; margin: -9% 0 0 -4%;
  border-radius: 12px; overflow: hidden; background: #222; box-shadow: 0 16px 30px -14px rgba(20, 20, 30, 0.5);
  transform: translate(calc(var(--x) * (1 - var(--e))), calc(var(--y) * (1 - var(--e)))) rotate(calc(var(--r) * (1 - var(--e)))) scale(calc(1 - var(--e) * 0.55));
  opacity: calc(1 - var(--e) * var(--e));
}
.clip img { width: 100%; height: 100%; object-fit: cover; }
.clip span { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, 0.55); border-radius: 6px; padding: 1px 5px; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .scene { height: 380vh; }
  .scene-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: center; gap: 16px; padding-block: 72px 24px; }
  .scene h2 { font-size: 30px; max-width: none; }
  .steps { margin-top: 12px; }
  .steps li:not(.on) { display: none; }
  .stage { height: 52dvh; }
}
@media (prefers-reduced-motion: reduce) {
  .scene { height: auto; }
  .scene-pin { position: static; height: auto; padding-block: 100px; }
  .steps li { opacity: 1; color: var(--ink); }
  .steps li:not(.on) { display: grid; }
  .clips { display: none; }
}

/* ── Cómo funciona ─────────────────────────────────────────────────────────────────────────── */
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); margin-top: 36px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tab { position: relative; border: 0; background: none; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 16px; color: var(--ink-2); white-space: nowrap; overflow: hidden; transition: color 0.2s, background-color 0.2s; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 20, 30, 0.12); }
.tab .bar { position: absolute; left: 20px; right: 20px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.tab[aria-selected="true"].running .bar { animation: fill var(--tab-ms, 7000ms) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.panels { margin-top: 36px; }
.panel figcaption { margin: 22px auto 0; max-width: 46ch; color: var(--ink-2); font-size: 18px; }
.shot { border-radius: var(--radius-card); overflow: hidden; background: #0e0e10; box-shadow: var(--shadow), 0 0 0 1px var(--line); aspect-ratio: 16 / 10.4; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.panel { animation: panel-in 0.5s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } }

/* ── Antes y después ───────────────────────────────────────────────────────────────────────── */
.compare-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: clamp(32px, 6vw, 96px); }
.compare { position: relative; justify-self: center; width: min(400px, 100%); aspect-ratio: 9 / 16; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow); --pos: 50%; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.35); pointer-events: none; }
.compare .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 999px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.compare .handle i { position: absolute; top: 50%; left: 50%; z-index: 1; transform: translate(-50%, -50%); font-size: 20px; color: #141414; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-legend { display: flex; justify-content: space-between; width: min(400px, 100%); margin: 14px auto 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.compare-copy p { margin-top: 20px; }
@media (max-width: 860px) { .compare-grid { grid-template-columns: 1fr; } .compare { width: min(340px, 100%); } }

/* ── Todo lo que lleva tu reel (bento) ─────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 330px; gap: 16px; margin-top: 48px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius-card); background: var(--bg-soft); padding: 28px; }
.tile h3 { font-size: 22px; position: relative; z-index: 1; }
.tile p { color: var(--ink-2); font-size: 16px; max-width: 30ch; margin-top: 6px; position: relative; z-index: 1; }
.tile-styles { grid-column: span 4; grid-row: span 2; }
.tile-resources { grid-column: span 2; }
.tile-outro { grid-column: span 2; }
.tile-review { grid-column: span 3; }
.tile-check { grid-column: span 3; background: var(--accent-soft); }
/* Las imágenes van abajo, sin empujar el texto. */
.fan { position: absolute; left: 28px; right: 28px; bottom: 0; height: 74%; }
.fan img { position: absolute; bottom: -34px; width: 27%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); transition: transform 0.45s var(--ease); }
.fan img:nth-child(1) { left: 0; transform: rotate(-7deg); }
.fan img:nth-child(2) { left: 24.5%; bottom: -8px; transform: rotate(-2deg); }
.fan img:nth-child(3) { left: 49%; bottom: -20px; transform: rotate(3deg); }
.fan img:nth-child(4) { left: 73%; bottom: -46px; transform: rotate(8deg); }
.tile-styles:hover .fan img:nth-child(odd) { transform: rotate(0) translateY(-10px); }
.tile-styles:hover .fan img:nth-child(even) { transform: rotate(0) translateY(-18px); }
.peek { position: absolute; right: 28px; bottom: -24px; width: 46%; aspect-ratio: 9 / 14; object-fit: cover; object-position: top; border-radius: 16px; box-shadow: var(--shadow); transition: transform 0.45s var(--ease); }
.tile:hover .peek { transform: translateY(-8px); }
.tile-review .peek { left: 28px; right: auto; bottom: 0; width: calc(100% - 56px); height: 56%; aspect-ratio: auto; object-position: 100% 12%; border-radius: 14px 14px 0 0; }
.checks { display: grid; gap: 12px; margin-top: 24px; font-size: 17px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks i { font-size: 22px; }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 320px; }
  .tile-styles { grid-column: span 2; grid-row: span 2; }
  .tile-resources, .tile-outro { grid-column: span 1; }
  .tile-review, .tile-check { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 340px; }
  .tile-styles, .tile-resources, .tile-outro, .tile-review, .tile-check { grid-column: auto; }
  .tile-styles { grid-row: span 1; height: 460px; }
  .fan img { width: 40%; }
  .fan img:nth-child(2) { left: 30%; }
  .fan img:nth-child(3) { left: 60%; }
  .fan img:nth-child(4) { display: none; }
  .tile-check { height: auto; }
}

/* ── Ejemplos (capítulo oscuro) ────────────────────────────────────────────────────────────── */
.examples { padding-block: clamp(110px, 14vw, 190px); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); transition: color 0.45s; }
:root[data-chapter="dark"] .eyebrow { color: var(--accent); }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--accent); } }
.examples h2 { margin-top: 12px; max-width: 20ch; }
.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 56px; }
.reel .phone { padding: 7px; border-radius: 34px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.reel .screen { border-radius: 27px; }
.reel figcaption { margin-top: 18px; }
.reel strong { display: block; font-size: 18px; }
.reel span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 960px) {
  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .reel { flex: 0 0 min(62vw, 250px); scroll-snap-align: start; }
}

/* ── Precios ───────────────────────────────────────────────────────────────────────────────── */
.cycle { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); margin-top: 32px; }
.cycle button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.cycle button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 20, 30, 0.12); }
.save { font-size: 12px; font-weight: 700; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 2px 8px; }
:root:not([data-cycle="anual"]) .anual, :root[data-cycle="anual"] .mensual { display: none; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; text-align: left; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.plan.best { box-shadow: 0 0 0 2px var(--ink), var(--shadow); }
.badge { position: absolute; top: -13px; left: 28px; font-size: 13px; font-weight: 700; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 4px 12px; }
.plan h3 { font-size: 24px; }
.plan-for { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.price { margin-top: 24px; font-family: var(--font-display); font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); margin-left: 4px; }
.price-note { color: var(--ink-2); font-size: 14px; margin-top: 8px; min-height: 21px; }
.plan-videos { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plan-videos strong { font-size: 18px; }
.plan-videos span { font-size: 14px; color: var(--ink-2); }
.features { display: grid; gap: 10px; margin: 18px 0 28px; font-size: 16px; }
.features li { display: flex; gap: 10px; align-items: flex-start; }
.features i { font-size: 18px; margin-top: 3px; flex: none; }
.plan .btn { margin-top: auto; }
.trial { display: flex; justify-content: center; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-top: 36px; color: var(--ink-2); }
.trial strong { color: var(--ink); }
@media (max-width: 960px) { .plan-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ── Preguntas ─────────────────────────────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: 100px; }
.faq-head p { margin-top: 18px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { font-size: 20px; color: var(--ink-2); transition: transform 0.25s var(--ease); flex: none; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-2); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-head { position: static; } }

/* ── Llamada final y pie ───────────────────────────────────────────────────────────────────── */
.final { border-radius: 32px; background: var(--bg-soft); padding: clamp(56px, 8vw, 110px) var(--gutter); text-align: center; }
.final p { margin: 18px auto 34px; }
.footer { padding-block: 64px 40px; font-size: 14px; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer .wordmark { font-size: 18px; }
.footer p { margin-top: 10px; max-width: 30ch; }
.footer h3 { font-size: 13px; color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.footer li + li { margin-top: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ── Precios: tabla para comparar ──────────────────────────────────────────────────────────── */
.price-head { padding-bottom: 40px; }
.price-head h1 { font-size: clamp(40px, 5.6vw, 72px); }
.compare-table { margin-top: 40px; }
.row.head { display: grid; grid-template-columns: 40% repeat(3, 20%); position: sticky; top: 64px; z-index: 2; padding: 14px 0; font-weight: 700; border-radius: 14px; background: color-mix(in srgb, var(--page-bg) 88%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px var(--line); }
.row.head span:not(:first-child) { text-align: center; }
table.group { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; margin-top: 34px; background: var(--surface); border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--line); font-size: 16px; }
table.group caption { caption-side: top; text-align: left; font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 0 4px 10px; }
table.group th, table.group td { padding: 15px 22px; }
table.group th[scope="row"] { text-align: left; font-weight: 500; width: 40%; }
table.group td { text-align: center; font-variant-numeric: tabular-nums; }
table.group tbody tr:nth-child(even) > * { background: var(--bg-soft); }
table.group tbody tr:first-child > :first-child { border-top-left-radius: var(--radius-card); }
table.group tbody tr:first-child > :last-child { border-top-right-radius: var(--radius-card); }
table.group tbody tr:last-child > :first-child { border-bottom-left-radius: var(--radius-card); }
table.group tbody tr:last-child > :last-child { border-bottom-right-radius: var(--radius-card); }
table.group i { font-size: 20px; vertical-align: middle; }
.anchor { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.anchor div { border-radius: var(--radius-card); padding: 32px; background: var(--bg-soft); }
.anchor div:last-child { background: var(--accent); color: var(--accent-ink); }
.anchor strong { display: block; font-family: var(--font-display); font-size: clamp(44px, 6vw, 72px); letter-spacing: -0.04em; line-height: 1; margin-bottom: 12px; }
.anchor div:last-child .muted { color: rgba(20, 20, 20, 0.72); }
.note { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 760px) {
  .row.head { grid-template-columns: 34% repeat(3, 22%); font-size: 13px; }
  table.group { font-size: 14px; }
  table.group th, table.group td { padding: 12px 8px; }
  table.group th[scope="row"] { width: 34%; padding-left: 14px; }
  .anchor { grid-template-columns: 1fr; }
}

/* ── Formularios (entrar, crear cuenta, recuperar) ─────────────────────────────────────────── */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-main { display: flex; flex-direction: column; padding: 24px var(--gutter) 40px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; }
.auth-top a:not(.wordmark) { color: var(--ink-2); text-decoration: none; }
.auth-top a:not(.wordmark):hover { color: var(--ink); }
.auth-form { width: min(400px, 100%); margin: auto; padding-block: 48px; }
.auth-form h1 { font-size: clamp(32px, 4vw, 42px); }
.auth-form .lead { font-size: 17px; margin-top: 10px; max-width: none; }
.auth-side { position: relative; background: var(--bg-soft); display: grid; place-items: center; overflow: hidden; padding: 40px; }
.auth-side .phone { width: min(300px, 70%); }
.auth-side p { position: absolute; left: 40px; right: 40px; bottom: 36px; text-align: center; color: var(--ink-2); font-size: 15px; }
.fields { display: grid; gap: 18px; margin-top: 32px; }
.field { display: grid; gap: 7px; }
.field label, .field .label { font-size: 15px; font-weight: 600; }
.field .help { font-size: 13px; color: var(--ink-2); }
.field .error { font-size: 13px; color: var(--bad); font-weight: 600; }
.input { position: relative; }
.input input {
  width: 100%; height: 50px; padding: 0 16px; border-radius: var(--radius-field); border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  background: var(--surface); font-size: 17px; transition: border-color 0.15s, box-shadow 0.15s;
}
.input input::placeholder { color: color-mix(in srgb, var(--ink-2) 80%, transparent); }
.input input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.input input[aria-invalid="true"] { border-color: var(--bad); }
.input .reveal { position: absolute; right: 6px; top: 6px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
.input .reveal:hover { color: var(--ink); background: var(--bg-soft); }
.input:has(.reveal) input { padding-right: 52px; }
.code-box summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.code-box summary::-webkit-details-marker { display: none; }
.code-box summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--bg-soft); color: var(--ink); font-weight: 700; }
.code-box[open] summary { margin-bottom: 12px; color: var(--ink); }
.code-box[open] summary::before { content: "−"; }
.code-box .input input { text-transform: uppercase; letter-spacing: 0.04em; }
.help.ok { color: var(--ok); font-weight: 600; }
.help.error { color: var(--bad); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.check a { color: var(--ink); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.row-between a { font-size: 14px; color: var(--ink-2); }
.or { display: flex; align-items: center; gap: 14px; margin: 22px 0; font-size: 14px; color: var(--ink-2); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-note { margin-top: 28px; font-size: 15px; color: var(--ink-2); text-align: center; }
.form-note a { color: var(--ink); font-weight: 600; }
.alert { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--bg-soft); font-size: 15px; }
.alert i { font-size: 20px; flex: none; }
.alert.bad { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.chip { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); font-size: 15px; }
.chip i { font-size: 20px; flex: none; }
.done-icon { width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center; font-size: 30px; background: var(--accent); color: var(--accent-ink); margin-bottom: 24px; }
.spin { width: 18px; height: 18px; border-radius: 999px; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ── Páginas legales (aviso legal, privacidad, cookies, condiciones) ──────────────────────────── */
/* Texto largo para leer: columna de unos 70 caracteres y el índice fijo al lado (en el móvil, sin índice). */
.legal { padding-block: clamp(48px, 7vw, 96px) clamp(72px, 9vw, 120px); }
.legal-head { max-width: 760px; }
.legal-head h1 { font-size: clamp(40px, 5.4vw, 68px); margin-top: 10px; }
.legal-head .lead { max-width: 50ch; }
.legal-date { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.legal-draft { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); font-size: 15px; }
.legal-draft i { font-size: 20px; flex: none; }
mark.pendiente { background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 1px 6px; font-weight: 600; }
.legal-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; margin-top: clamp(40px, 6vw, 72px); }
.legal-toc { position: sticky; top: 88px; max-height: calc(100dvh - 110px); overflow-y: auto; font-size: 14px; }
.legal-toc h2 { font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--ink); margin-bottom: 12px; }
.legal-toc li + li { margin-top: 9px; }
.legal-toc a { color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--ink); }
.legal-body { max-width: 70ch; font-size: 17px; line-height: 1.62; }
.legal-body h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.022em; margin-top: 60px; scroll-margin-top: 84px; }
.legal-body > h2:first-child { margin-top: 0; }
.legal-body p, .legal-body ul, .legal-body ol, .legal-body .table-wrap, .legal-body .legal-form { margin-top: 16px; }
.legal-body h2 + p, .legal-body h2 + ul, .legal-body h2 + ol, .legal-body h2 + .table-wrap { margin-top: 18px; }
.legal-body ul { list-style: disc; padding-left: 22px; }
.legal-body ol { list-style: decimal; padding-left: 22px; }
.legal-body li + li { margin-top: 10px; }
.legal-body li::marker { color: var(--ink-2); }
.legal-body a { text-underline-offset: 3px; }
.legal-body code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; padding: 1px 6px; border-radius: 6px; background: var(--bg-soft); }
.legal-body ul.legal-data { list-style: none; padding: 20px 22px; border-radius: 16px; background: var(--bg-soft); }
.legal-summary { margin-bottom: 60px; padding: 26px 28px; border-radius: var(--radius-card); background: var(--bg-soft); }
.legal-body .legal-summary h2 { margin-top: 0; font-size: 21px; letter-spacing: -0.015em; }
.legal-body .legal-summary ul { list-style: none; padding: 0; margin-top: 14px; }
.legal-summary li { display: flex; gap: 12px; align-items: flex-start; }
.legal-summary li i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 2px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13px; }
.table-wrap { overflow-x: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 13px 16px; }
.legal-body thead th { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--bg-soft); }
.legal-body tbody tr + tr > * { border-top: 1px solid var(--line); }
.legal-body tbody th { font-weight: 600; }
.legal-form { padding: 22px 24px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; }
.legal-body .legal-form p { margin-top: 12px; }
.legal-body .legal-form p:first-child { margin-top: 0; }
.legal-form .small { color: var(--ink-2); }
@media (max-width: 860px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
  .legal-summary { padding: 22px 20px; margin-bottom: 44px; }
  .legal-body h2 { margin-top: 48px; }
  .legal-body table { font-size: 14px; }
  .legal-body th, .legal-body td { padding: 11px 12px; }
}

/* ── Aparecer al entrar en pantalla ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  /* Solo con JavaScript (clase js en <html>): sin él, todo se ve desde el principio. */
  .js .reveal-up { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .reveal-up.is-in { opacity: 1; transform: none; }
  .js .wipe { clip-path: inset(0 0 100% 0); transform: translateY(0.25em); transition: clip-path 0.9s var(--ease), transform 0.9s var(--ease); }
  .js .wipe.is-in { clip-path: inset(-0.2em -0.2em -0.3em -0.2em); transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hero-phone, .hero-copy { transform: none; opacity: 1; }
}
