/* ==========================================================================
   Wiselook · /prueba-gratis · borrador local (Encabo, 15-oct-2026)
   Mobile-first: los estilos base son los de 375 px; las media queries suben.
   Tokens de marca observados en wiselook.ai (ver research/brand-tokens.css).
   No es canon del cliente: no hay brand-context.json aprobado.
   ========================================================================== */

:root {
  /* núcleo de marca (observado) */
  --primary: #371BFF;
  --primary-deep: #2A12D6;        /* hover del primario: mismo tono, más oscuro */
  --navy: #170B6B;
  --sky: #8CB4FF;
  --orange: #FF9966;              /* solo sobre navy (7,71:1); sobre blanco da 2,10:1 */
  --orange-ui: #D9692F;           /* PROPUESTA · 3,49:1 · bordes y elementos gráficos */
  --orange-text: #B84D12;         /* PROPUESTA · 5,11:1 · texto naranja pequeño sobre blanco */
  --ink: #3E4247;
  --muted: #5B6476;               /* algo más oscuro que #64748B para pasar AA también sobre tint */
  --white: #FFFFFF;
  --tint-50: #F8FBFF;
  --tint-100: #E8F2FF;
  --mist: #EEF0F7;
  --track: #E6E8F0;
  --border: #E2E8F0;
  --green: #1B6E37;               /* PROPUESTA · verde de «Listo» oscurecido para AA sobre su fondo */
  --green-bg: #DDF2E2;
  --hl: rgba(140, 180, 255, .45); /* marcador azul de los teasers y el poster */
  --claire: linear-gradient(140deg, #E4E8FF, #BCC6FF 60%, #A7B3FF);

  --font: "PP Pangram Sans", "Albert Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: 16px;
  --maxw: 1200px;
  --bar-h: 60px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --ease-ui: cubic-bezier(.4, 0, .2, 1);

  --shadow-card: 0 1px 2px rgba(23, 11, 107, .04), 0 12px 32px -18px rgba(23, 11, 107, .22);
  --shadow-float: 0 1px 2px rgba(23, 11, 107, .05), 0 24px 56px -30px rgba(23, 11, 107, .45);
  --ring: 0 0 0 1px rgba(23, 11, 107, .07);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
b, strong { font-weight: 700; }
h1, h2, h3 { margin: 0; color: var(--navy); font-weight: 700; text-wrap: balance; }
p, li, .lead, figcaption { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.s-navy :focus-visible { outline-color: var(--sky); }

.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

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

/* ---------- tipografía ---------- */
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px; font-weight: 700; line-height: 1.4;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
}
h1 {
  font-size: clamp(34px, 9vw, 56px);
  line-height: 1.05;
  letter-spacing: -.025em;
}
h2 {
  font-size: clamp(30px, 7.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -.02em;
}
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
.lead { font-size: 17px; line-height: 1.55; color: var(--ink); margin: 18px 0 0; max-width: 60ch; }

/* el marcador de la marca: subrayado grueso azul claro detrás de la frase clave */
.mark-hl, .draw {
  background-image: linear-gradient(var(--hl), var(--hl));
  background-repeat: no-repeat;
  background-size: 100% 40%;
  background-position: 0 88%;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
  padding: 0 .06em;
  margin: 0 -.06em;
}
.hl-or { color: var(--orange); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
section { position: relative; padding: 56px 0; }
section[id] { scroll-margin-top: calc(var(--bar-h) + 12px); }
.s-tint { background: var(--tint-50); }
.s-navy { background: var(--navy); color: rgba(255, 255, 255, .82); }
.s-navy h2, .s-navy h3 { color: var(--white); }
.s-navy .eyebrow { color: var(--sky); }
.s-navy .lead { color: rgba(255, 255, 255, .82); }
.sec-head { max-width: 760px; }
.sec-head-c { margin: 0 auto; text-align: center; }
.sec-head-c .lead { margin-left: auto; margin-right: auto; }
.split > * + * { margin-top: 36px; }

/* ---------- botones ---------- */
.ctas {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 28px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 12px;
  border-radius: 999px; border: 1.5px solid var(--primary);
  font-family: var(--font); font-size: clamp(14px, 4.27vw, 16px); font-weight: 600; line-height: 1.1;
  white-space: nowrap; text-decoration: none; text-align: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s var(--ease-ui), background-color .18s var(--ease-ui), border-color .18s var(--ease-ui), box-shadow .18s var(--ease-ui), color .18s var(--ease-ui);
}
.btn-1 { background: var(--primary); color: var(--white); box-shadow: 0 1px 2px rgba(23, 11, 107, .12), 0 8px 18px -12px rgba(23, 11, 107, .45); }
.btn-2 { background: transparent; color: var(--primary); }
.btn:active { transform: scale(.96); }
@media (hover: hover) {
  .btn-1:hover { background: var(--primary-deep); border-color: var(--primary-deep); transform: translateY(-1px); box-shadow: 0 1px 2px rgba(23, 11, 107, .14), 0 12px 22px -12px rgba(23, 11, 107, .5); }
  .btn-2:hover { background: var(--tint-100); transform: translateY(-1px); }
  .btn:active { transform: scale(.96); }
}
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14.5px; }

/* ---------- barra superior ---------- */
.bar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
          backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 rgba(23, 11, 107, 0);
  transition: box-shadow .25s var(--ease-ui);
}
.is-scrolled .bar { box-shadow: 0 1px 0 rgba(23, 11, 107, .08); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--bar-h); }
.mark { display: inline-flex; align-items: center; min-height: 44px; }
.mark img { height: 24px; width: auto; }
.bar-ctas { display: none; }

/* ---------- 1 · hero ---------- */
.hero { padding: 28px 0 56px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 45% at 100% 0%, rgba(167, 179, 255, .32), transparent 70%),
    radial-gradient(55% 40% at 0% 100%, rgba(255, 153, 102, .13), transparent 70%),
    var(--tint-50);
}
.hero { isolation: isolate; }
.hero h1 { color: var(--navy); }
.hero .lead { margin-top: 16px; }
.hero .ctas { margin-top: 24px; }

.hero-media { margin: 32px 0 0; }
.vid {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: 18px; overflow: hidden;
  background: var(--white);
  box-shadow: var(--ring), var(--shadow-float);
}
.vid-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(55% 70% at 92% 8%, rgba(167, 179, 255, .55), transparent 70%),
    radial-gradient(50% 60% at 6% 100%, rgba(255, 153, 102, .28), transparent 70%),
    var(--white);
}
.vid-blob { position: absolute; border-radius: 50%; filter: blur(28px); opacity: .55; }
.vid-blob-a { width: 40%; aspect-ratio: 1; right: -6%; top: -18%; background: #C7CEFF; animation: drift 14s ease-in-out infinite; }
.vid-blob-b { width: 32%; aspect-ratio: 1; left: -6%; bottom: -16%; background: #FFD3BD; animation: drift 16s ease-in-out infinite reverse; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-6%, 8%); } }
.vid-ph-card { position: relative; text-align: center; padding: 0 16px; }
.vid-ph-card .claire-av { margin: 0 auto 12px; }
.vid-ph-t1, .vid-ph-t2 {
  margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.1;
  font-size: clamp(20px, 6vw, 34px); color: var(--navy);
}
.vid-ph-t2 { color: var(--primary); }
.vid-ph-tag {
  position: absolute; left: 12px; top: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: rgba(255, 255, 255, .85); padding: 5px 10px; border-radius: 999px;
  box-shadow: var(--ring);
}
.vid-el {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s var(--ease-ui);
  background: transparent;
}
.vid.is-ready .vid-el { opacity: 1; }
.vid.is-ready .vid-ph { visibility: hidden; }
.vid.is-ready { cursor: pointer; }

/* barra de logos: pasa de derecha a izquierda en bucle. Dos copias iguales se desplazan
   su propio ancho a la vez; cada una mide como mínimo lo que la barra, así nunca queda hueco */
.logos {
  --gap: 40px;
  display: flex; overflow: hidden;
  margin: 28px calc(var(--pad) * -1) 0; padding: 20px 0 0;
  border-top: 1px solid rgba(23, 11, 107, .08);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.logos-set {
  flex: none; min-width: 100%;
  list-style: none; margin: 0; padding: 0 var(--gap) 0 0;
  display: flex; align-items: center; justify-content: space-around; gap: var(--gap);
  animation: logos 34s linear infinite;
}
.logos-set li {
  flex: none; display: flex; align-items: center; gap: 10px;
  white-space: nowrap; font-size: 13.5px; line-height: 1.3; font-weight: 500; color: var(--ink);
}
.logos-set img, .lg-rgpd { flex: none; width: auto; height: 38px; }
.logos-set .lg-uam { height: 24px; }
.lg-rgpd { width: 38px; }
@keyframes logos { to { transform: translateX(-100%); } }
@media (hover: hover) { .logos:hover .logos-set { animation-play-state: paused; } }

/* Claire: el «blob» lavanda que respira (keyframes de la web) */
.claire-av {
  display: inline-block; flex: none; width: 32px; height: 32px;
  background: var(--claire);
  box-shadow: 0 10px 24px -12px rgba(124, 141, 255, .6), inset 6px 8px 16px rgba(255, 255, 255, .55);
  border-radius: 42% 58% 62% 38% / 46% 44% 56% 54%;
  animation: blob 7.5s ease-in-out infinite;
}
.claire-av-lg { width: 46px; height: 46px; display: block; }
.claire-av-sm { width: 24px; height: 24px; }
@keyframes blob {
  0%, 100% { border-radius: 42% 58% 62% 38% / 46% 44% 56% 54%; }
  50% { border-radius: 60% 40% 42% 58% / 56% 58% 42% 44%; }
}

/* entrada del hero al cargar (solo con JS; sin JS se ve todo) */
.js .ld { animation: rise .7s var(--ease) both; }
.js .ld-1 { animation-delay: .05s; }
.js .ld-2 { animation-delay: .12s; }
.js .ld-3 { animation-delay: .22s; }
.js .ld-4 { animation-delay: .32s; }
.js .ld-5 { animation-delay: .4s; }
.js .ld-m { animation-delay: .3s; }
.js .ld-6 { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .hero .mark-hl { animation: draw .9s var(--ease) .75s both; }
@keyframes draw { from { background-size: 0% 40%; } to { background-size: 100% 40%; } }

/* ---------- 2 · problema ---------- */
.problem { overflow-x: clip; }
.claims { position: relative; display: grid; gap: 12px; max-width: 440px; }
.claim-card {
  position: relative;
  background: var(--white); border-radius: 16px; padding: 16px 18px 18px;
  box-shadow: var(--ring), var(--shadow-card);
}
.claim-card.c2 { margin-left: 28px; }
.claim-card.c3 { margin-left: 10px; }
.claim-src {
  display: block; margin-bottom: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.claim-card p { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--navy); }
.stars-row { display: flex; align-items: center; gap: 8px; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; fill: var(--orange-ui); stroke: none; }
.stamp {
  position: absolute; right: 12px; top: 12px;
  padding: 5px 9px 4px;
  border: 1.5px solid var(--orange-ui); border-radius: 6px;
  background: #FFF4EE; color: var(--orange-text);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2;
  white-space: nowrap;
  transform: rotate(-6deg);
}
.js .claims[data-anim] .stamp { opacity: 0; transform: rotate(-6deg) scale(1.25); }
.js .claims[data-anim].go .stamp {
  opacity: 1; transform: rotate(-6deg) scale(1);
  transition: opacity .2s var(--ease-ui), transform .38s cubic-bezier(.2, .9, .3, 1.25);
}
.js .claims.go .c1 .stamp { transition-delay: .35s; }
.js .claims.go .c2 .stamp { transition-delay: .7s; }
.js .claims.go .c3 .stamp { transition-delay: 1.05s; }

.pains { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--border); }
.pains li {
  position: relative; padding: 15px 0 15px 26px;
  border-bottom: 1px solid var(--border);
  font-size: 16px; line-height: 1.55; color: var(--ink);
}
.pains li::before {
  content: ""; position: absolute; left: 3px; top: 26px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
}
.pains b { color: var(--navy); }

/* ---------- 3 · cómo funciona ---------- */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 56px; }
.step { display: grid; gap: 22px; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 14px; border-radius: 10px;
  background: var(--tint-100); color: var(--primary);
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step-copy p { color: var(--ink); margin: 0; max-width: 46ch; }

.mock {
  position: relative; width: 100%; max-width: 460px;
  background: var(--white); border-radius: 20px; padding: 16px;
  box-shadow: var(--ring), var(--shadow-float);
  font-size: 14px; line-height: 1.45;
}
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.mock-head b { color: var(--navy); font-size: 15px; }
.mock-tag {
  position: absolute; top: -10px; right: 14px; z-index: 2;
  box-shadow: var(--ring), 0 6px 14px -8px rgba(23, 11, 107, .35);
  flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: var(--white); padding: 4px 9px; border-radius: 999px;
}

/* paso 1: biblioteca */
.lib-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lib-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px;
  border-radius: 12px; border: 1px solid var(--border);
  transition: border-color .3s var(--ease-ui), background-color .3s var(--ease-ui);
}
.lib-item b { display: block; color: var(--navy); font-size: 14.5px; font-weight: 600; }
.chk {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--border); display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .25s var(--ease-ui), border-color .25s var(--ease-ui);
}
.chk svg { width: 14px; height: 14px; fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.25); transition: opacity .25s cubic-bezier(.2, 0, 0, 1), transform .25s cubic-bezier(.2, 0, 0, 1); }
.lib-item.is-sel { border-color: var(--primary); background: var(--tint-50); }
.lib-item.is-sel .chk { background: var(--primary); border-color: var(--primary); }
.lib-item.is-sel .chk svg { opacity: 1; transform: scale(1); }
.lib-link {
  display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 10px 10px 12px;
  border-radius: 12px; background: var(--tint-50); color: var(--navy); font-size: 13.5px; font-weight: 500;
}
.lib-link .ic { width: 18px; height: 18px; color: var(--primary); }
.lib-link > span:nth-child(2) { flex: 1; min-width: 0; }
.lib-copy {
  position: relative; flex: none; display: inline-grid;
  padding: 6px 12px; border-radius: 999px; background: var(--primary); color: var(--white);
  font-size: 12.5px; font-weight: 600;
}
.lib-copy > span { grid-area: 1 / 1; text-align: center; transition: opacity .25s var(--ease-ui); }
.lc-b { opacity: 0; }
/* animación del paso 1 cuando está en pantalla */
.js .lib[data-anim] .lib-item.is-sel { border-color: var(--border); background: transparent; }
.js .lib[data-anim] .lib-item.is-sel .chk { background: transparent; border-color: var(--border); }
.js .lib[data-anim] .lib-item.is-sel .chk svg { opacity: 0; transform: scale(.25); }
.js .lib[data-anim].go .lib-item.is-sel { border-color: var(--primary); background: var(--tint-50); transition-delay: .45s; }
.js .lib[data-anim].go .lib-item.is-sel .chk { background: var(--primary); border-color: var(--primary); transition-delay: .45s; }
.js .lib[data-anim].go .lib-item.is-sel .chk svg { opacity: 1; transform: scale(1); transition-delay: .5s; }
.js .lib[data-anim].go .lc-a { animation: swapOut 1.6s var(--ease-ui) 1s both; }
.js .lib[data-anim].go .lc-b { animation: swapIn 1.6s var(--ease-ui) 1s both; }
@keyframes swapOut { 0%, 100% { opacity: 1; } 15%, 80% { opacity: 0; } }
@keyframes swapIn { 0%, 100% { opacity: 0; } 15%, 80% { opacity: 1; } }

/* paso 2: conversación con Claire */
.chat { padding: 0; overflow: hidden; }
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.chat-who { flex: 1; min-width: 0; line-height: 1.25; }
.chat-who b { display: block; color: var(--navy); font-size: 14px; }
.chat-who small { color: var(--muted); font-size: 11.5px; }
.chat-prog { flex: none; display: grid; gap: 6px; justify-items: end; }
.chat-prog b { color: var(--primary); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chat-bar { display: block; width: 92px; height: 4px; border-radius: 4px; background: var(--track); overflow: hidden; }
.chat-bar i { display: block; height: 100%; width: var(--p, 100%); border-radius: 4px; background: var(--primary); transition: width .6s var(--ease-ui); }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.msg { position: relative; max-width: 86%; padding: 10px 13px; font-size: 14px; line-height: 1.5; }
.msg-in {
  align-self: flex-start; margin-left: 38px;
  background: var(--tint-50); color: var(--ink);
  border: 1px solid var(--border); border-radius: 4px 16px 16px 16px;
}
.msg-in::before {
  content: ""; position: absolute; left: -38px; top: 0; width: 28px; height: 28px;
  background: var(--claire); border-radius: 42% 58% 62% 38% / 46% 44% 56% 54%;
  box-shadow: inset 4px 5px 10px rgba(255, 255, 255, .55);
}
.msg-out {
  align-self: flex-end; margin-right: 38px;
  background: var(--primary); color: var(--white);
  border-radius: 16px 4px 16px 16px;
}
.u-av {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange); color: var(--navy);
  font-size: 12px; font-weight: 700; font-style: normal;
}
.msg-out .u-av { position: absolute; right: -38px; top: 0; }
.typing { display: none; align-self: flex-start; margin-left: 38px; gap: 4px; padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: var(--tint-50); border: 1px solid var(--border); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: tdot 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 80%, 100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
/* mientras se reproduce (JS): mensajes ocultos hasta su turno */
.chat.is-playing .msg { display: none; }
.chat.is-playing .msg.is-shown { display: block; animation: msgIn .35s var(--ease) both; }
.chat.is-playing .typing.is-on { display: inline-flex; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* paso 3: informe */
.rep-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rep-who b { display: block; font-size: 14.5px; }
.rep-row { padding: 12px 0; border-top: 1px solid var(--border); }
.rep-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.rep-top span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.rep-top b { font-size: 13.5px; color: var(--primary); font-weight: 600; }
.seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.seg i { height: 7px; border-radius: 4px; background: var(--track); transition: background-color .3s var(--ease-ui); }
.seg.n2 i:nth-child(-n+2), .seg.n3 i:nth-child(-n+3), .seg.n4 i:nth-child(-n+4) { background: var(--primary); }
.js .report[data-anim] .seg i { background: var(--track); }
.js .report[data-anim].go .seg.n2 i:nth-child(-n+2),
.js .report[data-anim].go .seg.n3 i:nth-child(-n+3),
.js .report[data-anim].go .seg.n4 i:nth-child(-n+4) { background: var(--primary); }
.js .report.go .seg i:nth-child(2) { transition-delay: .1s; }
.js .report.go .seg i:nth-child(3) { transition-delay: .2s; }
.js .report.go .seg i:nth-child(4) { transition-delay: .3s; }
.rep-ev { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--tint-50); color: var(--ink); font-size: 13.5px; line-height: 1.5; }
.rep-ev-lab { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.rep-ev .draw { color: var(--navy); font-weight: 600; }
.js .report[data-anim] .draw { background-size: 0% 40%; }
.js .report[data-anim].go .draw { background-size: 100% 40%; transition: background-size .9s var(--ease) .55s; }
.rep-row-last { padding-bottom: 14px; }
.rep-scale {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 10.5px; line-height: 1.25; color: var(--muted); text-align: center;
}

.ctas-c { max-width: 460px; margin-left: auto; margin-right: auto; }
.steps + .ctas { margin-top: 48px; }

/* ---------- 4 · casos de uso ---------- */
.use-grid { display: grid; margin-top: 28px; border-top: 1px solid var(--border); }
.use {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.use-ic {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tint-100); color: var(--primary);
}
.use h3 { font-size: 18px; margin-bottom: 4px; }
.use-tx p { margin: 0; color: var(--ink); font-size: 15.5px; line-height: 1.5; }
.use-viz {
  margin-top: auto; padding: 14px; border-radius: 14px; background: var(--tint-50);
  display: grid; gap: 8px;
}
.vr-cap { font-size: 11.5px; color: var(--muted); }
.vr { display: flex; align-items: center; gap: 10px; }
.vr i, .va i, .vl i {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); box-shadow: var(--ring);
  font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--navy);
}
.vr b { display: block; height: 7px; flex: 1; border-radius: 4px; background: var(--track); position: relative; overflow: hidden; }
.vr b::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 4px; background: var(--primary); transition: width .9s var(--ease); }
.js .viz-rank[data-anim] .vr b::after { width: 0; }
.js .viz-rank[data-anim].go .vr b::after { width: var(--w); }

/* pregunta abierta tras los casos (Rocío, 20-oct): la misma pareja de CTA, en una banda clara */
.ask { margin-top: 32px; padding: 26px 18px 22px; border-radius: 20px; background: var(--tint-50); box-shadow: var(--ring); text-align: center; }
.ask-t { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--navy); }
.ask-s { margin: 6px auto 0; max-width: 46ch; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.ask .ctas { margin-top: 18px; }
.js .viz-rank.go .vr:nth-of-type(3) b::after { transition-delay: .12s; }
.js .viz-rank.go .vr:nth-of-type(4) b::after { transition-delay: .24s; }
.va, .vl { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.va em, .vl em {
  font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--tint-100); color: var(--primary);
}
.vl em.ok { background: var(--green-bg); color: var(--green); }
.vl em.near { background: #FFEFE6; color: var(--orange-text); }
.vl em.gap { background: var(--mist); color: #475569; }
.js .use-viz[data-anim] em { opacity: 0; transform: translateX(6px); }
.js .use-viz[data-anim].go em { opacity: 1; transform: none; transition: opacity .35s var(--ease-ui), transform .35s var(--ease-ui); }
.js .use-viz.go > span:nth-child(2) em { transition-delay: .12s; }
.js .use-viz.go > span:nth-child(3) em { transition-delay: .24s; }

/* ---------- 5 · diferencial (navy) ---------- */
.diff-list { list-style: none; margin: 0; padding: 0; }
.diff-list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.diff-list li:last-child { padding-bottom: 0; }
.dn { font-size: 34px; font-weight: 700; line-height: 1; color: var(--sky); font-variant-numeric: tabular-nums; }
.diff-list h3 { margin-bottom: 8px; }
.diff-list p { color: rgba(255, 255, 255, .8); margin: 0; }
.ai-warn { margin-top: 18px; display: grid; gap: 10px; padding: 16px 14px 14px; }
.msg-sm { font-size: 13px; max-width: 92%; }
.ai-warn .msg-in { margin-left: 32px; }
.ai-warn .msg-in::before { display: none; }
.ai-warn .msg-in .claire-av { position: absolute; left: -32px; top: 0; }
.ai-warn .msg-out { margin-right: 32px; }
.ai-warn .msg-out .u-av { right: -32px; width: 24px; height: 24px; font-size: 11px; }
.ai-flag {
  display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 9px 11px;
  border-radius: 10px; background: #FFF4EE; color: var(--orange-text); font-size: 12.5px; line-height: 1.35;
  box-shadow: inset 0 0 0 1px rgba(217, 105, 47, .35);
}
.ai-flag .ic { width: 16px; height: 16px; }
.ai-flag b { font-weight: 700; }

/* ---------- 6 · por qué merece la pena (solo la cifra) ---------- */
.worth { padding: 44px 0; }
.worth-math {
  margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--primary);
  font-size: clamp(20px, 5.4vw, 28px); font-weight: 600; line-height: 1.35; letter-spacing: -.01em;
  color: var(--navy); max-width: 30ch;
}

/* ---------- 7 · respaldo ---------- */
.cred-list { list-style: none; margin: 28px auto 0; padding: 0; display: grid; gap: 10px; max-width: 420px; }
.cred-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.35; font-weight: 500; color: var(--navy); }
.cred-list .ic {
  width: 32px; height: 32px; padding: 6px; border-radius: 9px;
  background: var(--white); color: var(--primary); box-shadow: var(--ring); stroke-width: 1.6;
}
.trust-link {
  display: flex; align-items: center; gap: 8px; width: max-content; min-height: 44px; margin: 14px auto 0;
  color: var(--primary); font-size: 15px; font-weight: 600; text-decoration: none;
}
.trust-link .ic { width: 18px; height: 18px; transition: transform .2s var(--ease-ui); }
.trust-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.trust-link:hover .ic { transform: translateX(3px); }

.pend-row { display: grid; gap: 26px; margin-top: 40px; }
.logo-slot {
  display: flex; align-items: center; justify-content: center; min-height: 64px;
  border-radius: 14px; background: var(--white);
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.clients { text-align: center; padding: 18px 16px; border-radius: 16px; }
.clients-t { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.clients-l { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; }
.clients-l li { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--navy); opacity: .72; }

.testis { display: grid; gap: 22px; margin-top: 30px; }
.testi {
  margin: 0; padding: 20px; border-radius: 18px; background: var(--white);
  box-shadow: var(--ring), var(--shadow-card);
}
.testi blockquote { margin: 0; }
.testi blockquote p { font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--navy); }
.testi figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

.press { margin: 44px auto 0; max-width: 760px; text-align: center; }
.press blockquote { margin: 0; }
.press blockquote p {
  font-size: clamp(20px, 5.4vw, 30px); font-weight: 600; line-height: 1.3; letter-spacing: -.015em; color: var(--navy);
}
.press figcaption { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.press a { color: var(--primary); font-weight: 600; text-underline-offset: 3px; }
.proof .ctas { margin-top: 40px; }

/* ---------- pendientes de permiso (borrador) ----------
   Interruptor único: SHOW_PENDING en script.js (o ?pendientes=0 en la URL).
   Con la clase .no-pending en <html> desaparecen todos de golpe. */
[data-pending] { position: relative; outline: 1.5px dashed var(--orange-text); outline-offset: 5px; }
[data-pending]::after {
  content: attr(data-pending);
  position: absolute; top: -14px; left: 14px; z-index: 3; pointer-events: none;
  padding: 4px 9px; border-radius: 999px;
  background: var(--orange-text); color: var(--white);
  font: 700 10.5px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.logo-slot[data-pending] { outline-offset: 2px; }
.logo-slot[data-pending]::after { top: -10px; left: 10px; }
.no-pending [data-pending] { display: none !important; }

/* ---------- 8 · preguntas ---------- */
.faq { margin-top: 30px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 18px 40px 18px 0; min-height: 44px;
  font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--navy);
  transition: color .18s var(--ease-ui);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 24px; width: 10px; height: 10px;
  border: solid var(--primary); border-width: 0 2px 2px 0; transform: rotate(45deg);
  transition: transform .25s var(--ease-ui);
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
@media (hover: hover) { .faq summary:hover { color: var(--primary); } }
.faq .ans { padding: 0 0 20px; color: var(--ink); max-width: 64ch; }
.faq details[open] .ans { animation: ansIn .3s var(--ease) both; }
@keyframes ansIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq .ans a { color: var(--primary); font-weight: 600; text-underline-offset: 3px; }

/* ---------- pie ---------- */
.foot { padding: 32px 0; border-top: 1px solid var(--border); background: var(--white); }
.foot-in { display: grid; gap: 14px; justify-items: start; }
.foot img { height: 20px; width: auto; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-nav a, .foot-nav .foot-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); text-decoration: none; }
.foot-nav a:hover, .foot-nav .foot-link:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- barra fija móvil ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
          backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 -1px 0 rgba(23, 11, 107, .08), 0 -12px 28px -18px rgba(23, 11, 107, .3);
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%); visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s linear .3s;
}
.sticky.on { transform: translateY(0); visibility: visible; transition: transform .3s var(--ease), visibility 0s; }
.sticky-in { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 520px; margin: 0 auto; }
.sticky .btn { min-height: 48px; }
/* reserva el hueco de la barra para que nunca tape el final de la página */
body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }

/* ---------- toast de borrador ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 90;
  width: max-content; max-width: calc(100vw - 32px);
  padding: 12px 16px; border-radius: 14px;
  background: var(--navy); color: var(--white); font-size: 14px; line-height: 1.4;
  box-shadow: 0 18px 40px -18px rgba(23, 11, 107, .7);
  opacity: 0; transform: translate(-50%, 8px); pointer-events: none;
  transition: opacity .2s var(--ease-ui), transform .2s var(--ease-ui);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast:empty { display: none; }

/* ---------- modal de vídeo ---------- */
.vmodal { padding: 0; border: 0; background: transparent; width: min(1040px, calc(100vw - 32px)); max-width: none; overflow: visible; }
.vmodal::backdrop { background: rgba(23, 11, 107, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.vmodal-in { position: relative; }
.vmodal video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; }
.vmodal-x {
  position: absolute; right: 0; top: -54px;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .14); color: var(--white);
  transition: background-color .18s var(--ease-ui);
}
.vmodal-x:hover { background: rgba(255, 255, 255, .26); }

/* ---------- reveal por scroll (sistema de la landing de Preply) ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .rv.is-on { opacity: 1; transform: none; }
.js .pains .rv:nth-child(2), .js .use-grid .rv:nth-child(2) { transition-delay: .07s; }
.js .pains .rv:nth-child(3), .js .use-grid .rv:nth-child(3) { transition-delay: .14s; }
.js .pains .rv:nth-child(4) { transition-delay: .21s; }

/* lo decorativo o secundario solo en escritorio: en móvil satura */
@media (max-width: 719px) {
  .d-only { display: none !important; }
}

/* ============ ≥ 480 px ============ */
@media (min-width: 480px) {
  .claim-card p { font-size: 18px; }
}

/* ============ ≥ 720 px (tableta y escritorio) ============ */
@media (min-width: 720px) {
  :root { --pad: 32px; --bar-h: 68px; }
  body { font-size: 17px; padding-bottom: 0; }
  section { padding: 104px 0; }
  .lead { font-size: 19px; }
  h3 { font-size: 21px; }

  .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
  .btn { min-height: 54px; padding: 0 28px; font-size: 16px; }
  .btn-sm { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
  .ctas-c { justify-content: center; max-width: none; }

  .mark img { height: 26px; }
  .bar-ctas {
    display: flex; gap: 8px;
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .25s var(--ease-ui), transform .25s var(--ease-ui), visibility 0s linear .25s;
  }
  .past-hero .bar-ctas { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease-ui), transform .25s var(--ease-ui), visibility 0s; }

  .hero { padding: 56px 0 72px; }
  .logos { --gap: 56px; }
  .logos-set li { font-size: 14px; }

  .claims { max-width: 480px; }
  .pains { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }

  .use-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; border-top: 0; margin-top: 36px; }
  .use {
    display: flex; flex-direction: column; gap: 0; padding: 26px; border-bottom: 0;
    background: var(--white); border-radius: 20px; box-shadow: var(--ring), var(--shadow-card);
    transition: transform .25s var(--ease-ui), box-shadow .25s var(--ease-ui);
  }
  .use-ic { margin-bottom: 16px; }
  .use h3 { font-size: 20px; margin-bottom: 8px; }
  .use-tx + .use-viz { margin-top: 20px; }
  .ask { margin-top: 40px; padding: 36px 32px; }
  .ask-t { font-size: 24px; }
  .ask-s { font-size: 17px; }
  .ask .ctas { margin-top: 22px; }

  .worth { padding: 72px 0; }

  .cred-list { grid-template-columns: repeat(4, 1fr); gap: 22px 20px; margin-top: 36px; max-width: none; }
  .cred-list li { align-items: flex-start; }
  .cred-list li { font-size: 15px; }
  .pend-row { grid-template-columns: 200px 1fr; align-items: center; max-width: 820px; margin-left: auto; margin-right: auto; }
  .testis { grid-template-columns: 1fr 1fr; gap: 18px; }

  .foot-in { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
  .foot-nav { justify-content: center; }

  .sticky { display: none; }
  .toast { bottom: 28px; }
  .js .rv { transform: translateY(24px); }
}

/* ============ ≥ 1000 px ============ */
@media (min-width: 1000px) {
  .hero { padding: 72px 0 64px; min-height: calc(100svh - var(--bar-h)); display: flex; align-items: center; }
  .hero-grid {
    display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    column-gap: 56px; align-items: center;
  }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-media { grid-column: 2; grid-row: 1; margin: 0; }
  .logos { grid-column: 1 / -1; grid-row: 2; margin-top: 56px; }
  .hero .lead { font-size: 20px; max-width: 34em; }
  .vid { border-radius: 22px; }

  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
  .split > * + * { margin-top: 0; }
  .problem .claims { justify-self: end; width: 100%; }
  .diff .split { align-items: start; }
  .diff .sec-head { position: sticky; top: calc(var(--bar-h) + 40px); }

  .steps { gap: 88px; margin-top: 64px; }
  .step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
  .step .mock { justify-self: end; }
  .step:nth-child(even) .step-copy { order: 2; }
  .step:nth-child(even) .mock { justify-self: start; }
  .step h3 { font-size: 26px; }
  .step-copy p { font-size: 18px; }


  .faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
  .faq-wrap .faq { margin-top: 0; }
  .faq-wrap .sec-head { position: sticky; top: calc(var(--bar-h) + 40px); }
}
@media (hover: hover) and (min-width: 720px) {
  .use:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(55, 27, 255, .18), var(--shadow-float); }
}

/* ---------- movimiento reducido: todo visible, nada se mueve ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; }
  .claire-av { border-radius: 50%; }
  /* la barra de logos se queda quieta: una sola copia, repartida en filas */
  .logos { margin-left: 0; margin-right: 0; -webkit-mask-image: none; mask-image: none; }
  .logos-set { animation: none; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; justify-content: center; gap: 14px 28px; padding: 0; }
  .logos-set[aria-hidden] { display: none; }
}

/* ---------- banner de cookies ---------- */
.ck {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 95;
  max-width: 440px; padding: 20px;
  background: var(--white); color: var(--ink);
  border-radius: 20px; box-shadow: var(--shadow-float), var(--ring);
  font-size: 14.5px; line-height: 1.5;
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.ck.on { opacity: 1; transform: none; }
.ck[hidden] { display: none; }
.ck-t { font-size: 17px; margin-bottom: 6px; }
.ck-d { color: var(--muted); }
.ck-d a { color: var(--primary); }
.ck-cfg { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.ck-cfg[hidden] { display: none; }
.ck-opt { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.ck-opt input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--primary); }
.ck-opt b { color: var(--navy); }
.ck-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.ck-more, .foot-link { background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
.ck-more { text-decoration: underline; text-underline-offset: 3px; }
.ck-more { display: block; margin: 12px auto 0; color: var(--muted); font-size: 14px; min-height: 24px; }
.ck-more[hidden] { display: none; }
@media (min-width: 720px) { .ck { left: 24px; right: auto; bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .ck { transition: none; } }
