/* Landing pública de MindSign Docs. Usa los tokens de docs.css (se carga antes). */

.landing { background: var(--paper); }
.l-in { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.landing h1 { font-size: clamp(36px, 7vw, 64px); letter-spacing: -.04em; line-height: 1.02; margin-bottom: 18px; }
.landing h1 .b { color: var(--brand); }
.landing h2 { font-size: clamp(24px, 3.6vw, 34px); letter-spacing: -.03em; line-height: 1.15; max-width: 22ch; }
.landing h3 { font-size: 17px; margin-bottom: 6px; }
.landing p { max-width: 62ch; }
.ico { display: block; }

/* Barra superior */
.l-top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.l-top-in { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.l-nav { display: flex; gap: 2px; }
.l-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; padding: 7px 10px; border-radius: 9px; }
.l-nav a:hover { background: var(--neutral-tint); color: var(--ink); }
.l-acciones { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.l-ingresar { font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink); }
.l-ingresar:hover { color: var(--brand); }
@media (max-width: 920px) { .l-nav { display: none; } }
@media (max-width: 400px) { .l-top .wm { font-size: 18px; } .l-acciones { gap: 10px; } .l-acciones .btn { padding: 7px 10px; } }

/* ── Hero: fondo en capas y escena 3D ─────────────────────────────────────── */
.l-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper); isolation: isolate; }
.l-fondo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.l-fondo > span { position: absolute; }
.l-malla { inset: 0; background:
  radial-gradient(60% 70% at 85% 10%, color-mix(in srgb, var(--brand) 22%, transparent) 0%, transparent 60%),
  radial-gradient(45% 55% at 60% 90%, color-mix(in srgb, #7C3AED 14%, transparent) 0%, transparent 65%),
  radial-gradient(40% 50% at 10% 20%, color-mix(in srgb, #0EA5E9 10%, transparent) 0%, transparent 60%); }
.l-grilla { inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 40%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 60% at 70% 40%, #000 0%, transparent 75%); }
.l-mancha { border-radius: 50%; filter: blur(70px); opacity: .55; }
.l-mancha.m1 { width: 380px; height: 380px; right: 4%; top: -80px; background: color-mix(in srgb, var(--brand) 45%, transparent); }
.l-mancha.m2 { width: 300px; height: 300px; right: 30%; bottom: -120px; background: color-mix(in srgb, #8B5CF6 35%, transparent); }
.l-mancha.m3 { width: 220px; height: 220px; left: -60px; top: 30%; background: color-mix(in srgb, #38BDF8 25%, transparent); }

.l-hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
@media (min-width: 900px) { .l-hero-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); padding-top: 64px; padding-bottom: 72px; } }
.l-bajada { font-size: clamp(17px, 2.2vw, 20px); color: var(--text); margin-bottom: 24px; }
.l-cta { margin-bottom: 12px; }

.l-escena { position: relative; height: 560px; perspective: 1400px; --px: 0; --py: 0; }
@media (max-width: 520px) { .l-escena { height: 520px; } }
.l-capa { position: absolute; will-change: transform; }
.prof-1 { inset: 0; display: grid; place-items: center; transform: translate3d(calc(var(--px) * 8px), calc(var(--py) * 8px), 0); }
.prof-2 { transform: translate3d(calc(var(--px) * 22px), calc(var(--py) * 22px), 0); }
.prof-3 { transform: translate3d(calc(var(--px) * 36px), calc(var(--py) * 36px), 0); }
.f-codigo { left: -10%; top: 60%; }
.f-sello { right: -2%; bottom: 10%; }
.f-folio { right: 4%; top: 3%; }
@media (max-width: 899px) { .f-codigo { left: 0; } }
@media (max-width: 520px) { .f-codigo, .f-folio { display: none; } .f-sello { right: 0; bottom: 2%; } }

/* Celular en perspectiva, con sombra en capas y reflejo. Siempre claro, como un teléfono. */
.l-telefono { position: relative; width: 290px; height: 540px; display: flex; flex-direction: column; background: #FFFFFF; border: 10px solid #0B0A1F; border-radius: 40px; overflow: hidden; color: #1E1B4B;
  transform: rotateY(calc(-14deg + var(--px) * 5deg)) rotateX(calc(7deg - var(--py) * 4deg)) rotateZ(1.5deg);
  box-shadow: 0 1px 1px rgba(11, 10, 31, .12), 0 6px 12px rgba(11, 10, 31, .12), 0 24px 40px -8px rgba(30, 27, 75, .28), 0 60px 90px -20px rgba(79, 70, 229, .35); }
.l-telefono::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 30px;
  background: linear-gradient(115deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .18) 100%); mix-blend-mode: soft-light; }
@media (max-width: 520px) { .l-telefono { width: 260px; height: 500px; } }
.tel-top { display: flex; align-items: center; gap: 8px; padding: 14px 16px 11px; border-bottom: 1px solid #EDEEF3; border-top: 4px solid #0F766E; font-size: 13px; font-weight: 700; }
.tel-co { width: 26px; height: 26px; border-radius: 7px; background: #0F766E; color: #fff; display: grid; place-items: center; font-size: 11px; }
.tel-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.tel-pasos { display: flex; gap: 6px; margin-bottom: 14px; }
.tel-pasos span { flex: 1; height: 4px; border-radius: 4px; background: #E2E3EB; overflow: hidden; position: relative; }
.tel-pasos span::after { content: ""; position: absolute; inset: 0; background: #4F46E5; transform-origin: left; }
.tel-pantalla { position: relative; flex: 1; }
.tel-esc { position: absolute; inset: 0; opacity: 0; }
.tel-esc.e4 { opacity: 1; }
.tel-k { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #7A7B92; margin: 0 0 4px; }
.tel-t { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; line-height: 1.2; }
.tel-s { font-size: 12.5px; color: #5F5F7A; margin: 0 0 12px; }
.centro { text-align: center; }
.tel-doc { border: 1px solid #E2E3EB; border-radius: 10px; padding: 12px; font-size: 11.5px; color: #5F5F7A; line-height: 1.5; margin-bottom: 14px; }
.tel-doc b { color: #1E1B4B; font-size: 12.5px; }
.tel-btn { background: #4F46E5; color: #fff; text-align: center; font-weight: 700; border-radius: 12px; padding: 12px; font-size: 13.5px; }
.tel-btn.sec { background: #EEF0FE; color: #4F46E5; margin-top: 14px; }
.tel-hoja { height: 210px; border: 1px solid #E2E3EB; border-radius: 8px; overflow: hidden; padding: 12px; background: #FAFAFC; }
.tel-lineas i { display: block; height: 6px; border-radius: 3px; background: #E2E3EB; margin-bottom: 9px; }
.tel-lineas i.c { width: 62%; margin-bottom: 18px; }
.tel-acepto { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; font-weight: 700; }
.tel-caja { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #4F46E5; display: grid; place-items: center; background: #EEF0FE; }
.tel-caja svg { width: 16px; height: 16px; }
.tel-tic { fill: none; stroke: #4F46E5; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 0; }
.tel-otp { display: flex; gap: 5px; margin: 4px 0 12px; }
.tel-otp span { flex: 1; height: 40px; border: 1.5px solid #C7CCFB; border-radius: 9px; display: grid; place-items: center; font-family: var(--mono); font-size: 17px; font-weight: 500; }
.tel-rubrica { border-bottom: 1.5px dashed #C9CAD6; height: 70px; display: flex; align-items: flex-end; }
.tel-rubrica svg { width: 100%; height: 60px; }
.tel-trazo { fill: none; stroke: #1E1B4B; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 520; stroke-dashoffset: 0; }
.tel-ok { width: 84px; height: 84px; margin: 36px auto 14px; color: #1F8A5B; }
.tel-ok svg { width: 100%; height: 100%; }
.tel-aro { fill: #E7F5EE; stroke: #1F8A5B; stroke-width: 2.6; stroke-dasharray: 126; stroke-dashoffset: 0; }
.tel-visto { fill: none; stroke: #1F8A5B; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 34; stroke-dashoffset: 0; }
.tel-pie { font-size: 10px; color: #7A7B92; text-align: center; padding: 8px 14px 14px; }

/* Tarjetas flotantes */
.l-flota { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; font-size: 12.5px; line-height: 1.35; color: var(--text);
  background: color-mix(in srgb, var(--paper) 82%, transparent); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 2px 6px rgba(30, 27, 75, .08), 0 18px 36px -12px rgba(30, 27, 75, .25); }
.l-flota b { color: var(--ink); }
.l-flota.mono { font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 8px 12px; }
.l-flota-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); flex: none; }
.l-flota.sello .l-flota-ico { background: var(--seal-tint); color: var(--seal); }

/* Cifras */
.l-cifras { border-bottom: 1px solid var(--line); background: var(--paper); }
.l-cifras-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
@media (min-width: 820px) { .l-cifras-in { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.l-cifras p { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.l-cifras b { font-size: 40px; font-weight: 800; letter-spacing: -.04em; color: var(--brand); line-height: 1; font-variant-numeric: tabular-nums; }
.l-cifras span { font-size: 14px; color: var(--muted); }

/* Bandas */
.l-banda { padding: 64px 0; }
.l-banda.alt { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.l-banda h2 { margin-bottom: 14px; }
.l-dos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
@media (min-width: 900px) { .l-dos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.l-grid3 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
@media (min-width: 680px) { .l-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .l-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.l-grid3 .card + .card, .l-pronto .card + .card, .l-planes .card + .card { margin-top: 0; }
.l-grid3 p, .l-pronto p { color: var(--muted); font-size: 14.5px; margin: 0; }
.l-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.l-ico.sello { background: var(--seal-tint); color: var(--seal); }

/* Pasos del firmante */
.l-pasos { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); counter-reset: paso; }
@media (min-width: 820px) { .l-pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.l-pasos li { position: relative; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--paper); }
.l-pasos p { color: var(--muted); margin: 0; font-size: 15px; }
.l-num { position: absolute; top: 18px; right: 20px; font-family: var(--mono); font-size: 28px; font-weight: 500; color: var(--line); }

/* Listas con check */
.l-check { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.l-check li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.l-check .ico { color: var(--seal); width: 20px; height: 20px; margin-top: 2px; }

/* Maqueta del correo */
.l-correo { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: #2B2A45; max-width: 520px; width: 100%; box-shadow: var(--shadow); justify-self: center; }
.lc-banda { background: linear-gradient(120deg, #1E1B4B, #4F46E5); color: #fff; padding: 18px 22px; display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; }
.lc-banda .b { color: #C7CCFB; }
.lc-banda .prod { font-family: var(--mono); font-weight: 500; letter-spacing: 0; font-size: 11px; border: 1.3px solid #C7CCFB; color: #C7CCFB; border-radius: 5px; padding: 2px 6px; }
.lc-c { padding: 22px; }
.lc-c p { font-size: 14px; margin: 0 0 14px; }
.lc-t { font-size: 18px !important; font-weight: 800; color: #1E1B4B; letter-spacing: -.02em; }
.lc-cta { display: inline-block; background: #4F46E5; color: #fff; font-weight: 700; border-radius: 10px; padding: 11px 18px; font-size: 14px; }
.lc-meta { font-size: 12px; color: #7A7B92; border-top: 1px solid #EDEEF3; padding: 12px 22px; }

/* Próximamente */
.l-pronto { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
@media (min-width: 680px) { .l-pronto { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.l-pronto .card { border-style: dashed; background: transparent; }
.l-pronto-t { margin: 12px 0 6px; flex-wrap: nowrap; }
.l-pronto-t .l-ico { margin: 0; flex: none; }
.l-pronto-t h3 { margin: 0; }

/* Planes */
.l-planes { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: 28px; align-items: stretch; }
@media (min-width: 680px) { .l-planes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .l-planes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.l-plan { display: flex; flex-direction: column; gap: 6px; }
.l-plan .l-check { margin-bottom: 18px; flex: 1; }
.l-plan.destacado { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.l-plan .pill { align-self: flex-start; }
.l-precio { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin: 0; }
.l-precio span { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* Verificación */
.mono-input { font-family: var(--mono); letter-spacing: .02em; }
.l-verif form { width: 100%; max-width: 460px; justify-self: center; }

/* Preguntas */
.l-faq { max-width: 820px; }
.l-faq details { padding: 0; margin-top: 10px; }
.l-faq details + details { margin-top: 10px; }
.l-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: "+"; font-family: var(--mono); color: var(--brand); font-size: 20px; line-height: 1; }
.l-faq details[open] summary::after { content: "−"; }
.l-faq details p { padding: 0 20px 18px; margin: 0; color: var(--text); }

/* Cierre y pie */
.l-final { padding: 64px 0; text-align: center; background: #0B0A1F; color: #CFCFF5; background-image: radial-gradient(120% 90% at 85% 0%, #15123A 0%, #0B0A1F 60%); }
.l-final h2 { color: #FFFFFF; margin: 0 auto 10px; }
.l-final p { margin: 0 auto 22px; }
.l-final .l-cta { justify-content: center; }
.l-final .btn.sec { color: #FFFFFF; border-color: rgba(255, 255, 255, .3); }
.l-final .btn.sec:hover { background: rgba(255, 255, 255, .08); }
.l-pie { border-top: 1px solid var(--line); background: var(--paper); }
.l-pie-in { padding-top: 28px; padding-bottom: 36px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; color: var(--muted); font-size: 14px; }
.l-pie-in p { margin: 0; }
.l-pie-in .small { flex-basis: 100%; }
@media (max-width: 520px) { .l-ancho { display: none; } }
.landing section[id] { scroll-margin-top: 72px; }
.l-acciones .btn { gap: .28em; }

/* ── Pasos conectados por una línea ───────────────────────────────────────── */
.l-pasos-wrap { position: relative; }
.l-pasos-linea { position: absolute; z-index: 0; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 30%, transparent)); border-radius: 2px;
  left: 44px; top: 28px; bottom: 28px; width: 2px; transform-origin: top; transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
@media (min-width: 820px) { .l-pasos-linea { top: 72px; bottom: auto; left: 12%; right: 12%; width: auto; height: 2px; transform-origin: left; } }
.l-pasos { position: relative; z-index: 1; }
.l-pasos-wrap.por-revelar .l-pasos-linea { transform: scaleY(0); }
@media (min-width: 820px) { .l-pasos-wrap.por-revelar .l-pasos-linea { transform: scaleX(0); } }

/* ── Pila de versiones del PDF, en 3D ─────────────────────────────────────── */
.l-evid { margin-bottom: 8px; }
.l-pila { position: relative; height: 360px; perspective: 1100px; }
.l-hoja { position: absolute; left: 50%; top: 50%; width: 210px; height: 270px; margin: -135px 0 0 -105px; padding: 18px 18px 14px; border-radius: 10px; background: #FFFFFF; color: #1E1B4B;
  border: 1px solid #E2E3EB; box-shadow: 0 1px 2px rgba(30, 27, 75, .08), 0 14px 28px -10px rgba(30, 27, 75, .3);
  display: flex; flex-direction: column; gap: 8px; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.l-hoja i { display: block; height: 6px; border-radius: 3px; background: #E2E3EB; }
.l-hoja i.c { width: 60%; }
.l-hoja svg { width: 120px; height: 30px; margin-top: auto; }
.l-hoja svg path { fill: none; stroke: #1E1B4B; stroke-width: 2; stroke-linecap: round; }
.l-hoja-k { font-family: var(--mono); font-size: 10.5px; color: #4F46E5; letter-spacing: .02em; }
.l-hoja-h { font-family: var(--mono); font-size: 9.5px; color: #7A7B92; margin-top: auto; }
.l-hoja svg + .l-hoja-h { margin-top: 0; }
.l-hoja-sello { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; color: #1F8A5B; background: #E7F5EE; border-radius: 99px; padding: 4px 10px 4px 6px; font-size: 11px; }
.l-hoja-sello + .l-hoja-h { margin-top: 0; }
.l-hoja-sello .ico { width: 18px; height: 18px; }
.l-hoja.h1 { transform: rotateX(54deg) rotateZ(-36deg) translate3d(-70px, 80px, 0); }
.l-hoja.h2 { transform: rotateX(54deg) rotateZ(-36deg) translate3d(-35px, 40px, 50px); }
.l-hoja.h3 { transform: rotateX(54deg) rotateZ(-36deg) translate3d(0, 0, 100px); }
.l-pila.por-revelar .l-hoja { transform: rotateX(54deg) rotateZ(-36deg) translate3d(0, 0, 0); }
@media (hover: hover) { .l-pila:hover .l-hoja.h3 { transform: rotateX(54deg) rotateZ(-36deg) translate3d(20px, -24px, 140px); } }

/* ── Tarjetas con elevación y brillo ──────────────────────────────────────── */
.brilla { position: relative; isolation: isolate; transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .7s ease; }
.brilla::before, .brilla::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease; }
.brilla::before { z-index: -1; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--brand) 14%, transparent), transparent 65%); }
.brilla::after { z-index: -2; box-shadow: 0 2px 6px rgba(30, 27, 75, .06), 0 22px 40px -16px rgba(30, 27, 75, .28); }
@media (hover: hover) {
  .brilla:hover { transform: translateY(-4px); }
  .brilla:hover::before, .brilla:hover::after { opacity: 1; }
}

/* ── Aparición al hacer scroll (solo si el JS marcó el elemento) ──────────── */
.revelar { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.revelar.por-revelar { opacity: 0; transform: translateY(26px); }
.l-pasos li.revelar:nth-child(2), .l-grid3 .revelar:nth-child(3n+2), .l-planes .revelar:nth-child(2), .l-cifras .revelar:nth-child(2) { transition-delay: .08s; }
.l-pasos li.revelar:nth-child(3), .l-grid3 .revelar:nth-child(3n), .l-planes .revelar:nth-child(3), .l-cifras .revelar:nth-child(3) { transition-delay: .16s; }
.l-planes .revelar:nth-child(4), .l-cifras .revelar:nth-child(4) { transition-delay: .24s; }

/* ── Movimiento: solo si la persona no pidió reducirlo ────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .l-mancha.m1 { animation: deriva 18s ease-in-out infinite alternate; }
  .l-mancha.m2 { animation: deriva 22s ease-in-out infinite alternate-reverse; }
  .l-mancha.m3 { animation: deriva 26s ease-in-out infinite alternate; }
  .l-flota { animation: flotar 7s ease-in-out infinite; }
  .f-sello .l-flota { animation-duration: 8.5s; animation-delay: -3s; }
  .f-folio .l-flota { animation-duration: 9s; animation-delay: -5s; }

  /* Secuencia del celular: un ciclo de 16 s que cuenta los 3 pasos. */
  .tel-esc, .tel-pasos span::after, .tel-lineas, .tel-tic, .tel-otp b, .tel-trazo, .tel-aro, .tel-visto, .tel-btn.pulsa, .tel-ok {
    animation-duration: 16s; animation-iteration-count: infinite; animation-timing-function: ease; animation-fill-mode: backwards; }
  .tel-esc.e1 { animation-name: esc1; }
  .tel-esc.e2 { animation-name: esc2; }
  .tel-esc.e3 { animation-name: esc3; }
  .tel-esc.e4 { animation-name: esc4; }
  .tel-pasos .p2::after { animation-name: barra2; animation-delay: 4s; }
  .tel-pasos .p3::after { animation-name: barra3; animation-delay: 8s; }
  .tel-btn.pulsa { animation-name: pulsa; }
  .tel-lineas { animation-name: leer; animation-delay: 4.3s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  .tel-tic { animation-name: trazo-tic; animation-delay: 6.6s; }
  .tel-otp b { display: inline-block; animation-name: digito; }
  .tel-otp .d1 { animation-delay: 8.6s; } .tel-otp .d2 { animation-delay: 8.95s; } .tel-otp .d3 { animation-delay: 9.3s; }
  .tel-otp .d4 { animation-delay: 9.65s; } .tel-otp .d5 { animation-delay: 10s; } .tel-otp .d6 { animation-delay: 10.35s; }
  .tel-trazo { animation-name: trazo-rubrica; animation-delay: 10.7s; animation-timing-function: cubic-bezier(.45, .05, .35, 1); }
  .tel-ok { animation-name: sello-entra; animation-delay: 12.3s; }
  .tel-aro { animation-name: trazo-aro; animation-delay: 12.3s; }
  .tel-visto { animation-name: trazo-visto; animation-delay: 12.9s; }
  .l-hero.pausa *, .l-hero.pausa *::after { animation-play-state: paused !important; }
}
@keyframes deriva { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, 30px, 0) scale(1.12); } }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes esc1 { 0%, 22% { opacity: 1; transform: none; } 25%, 97% { opacity: 0; transform: translateX(-14px); } 100% { opacity: 1; transform: none; } }
@keyframes esc2 { 0%, 23% { opacity: 0; transform: translateX(14px); } 26%, 47% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; transform: translateX(-14px); } }
@keyframes esc3 { 0%, 48% { opacity: 0; transform: translateX(14px); } 51%, 74% { opacity: 1; transform: none; } 77%, 100% { opacity: 0; transform: translateX(-14px); } }
@keyframes esc4 { 0%, 75% { opacity: 0; transform: scale(.96); } 78%, 96% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: none; } }
@keyframes barra2 { 0% { transform: scaleX(0); } 4%, 74% { transform: scaleX(1); } 75%, 100% { transform: scaleX(0); } }
@keyframes barra3 { 0% { transform: scaleX(0); } 4%, 49% { transform: scaleX(1); } 50%, 100% { transform: scaleX(0); } }
@keyframes pulsa { 0%, 15% { transform: scale(1); } 17% { transform: scale(.95); } 19%, 100% { transform: scale(1); } }
@keyframes leer { 0% { transform: translateY(0); } 12%, 100% { transform: translateY(-120px); } }
@keyframes trazo-tic { 0% { stroke-dashoffset: 20; } 2%, 100% { stroke-dashoffset: 0; } }
@keyframes digito { 0% { opacity: 0; transform: translateY(6px); } 1.5%, 40% { opacity: 1; transform: none; } 41%, 100% { opacity: 0; } }
@keyframes trazo-rubrica { 0% { stroke-dashoffset: 520; } 8%, 100% { stroke-dashoffset: 0; } }
@keyframes sello-entra { 0% { transform: scale(.6); opacity: 0; } 3% { transform: scale(1.06); opacity: 1; } 5%, 100% { transform: scale(1); opacity: 1; } }
@keyframes trazo-aro { 0% { stroke-dashoffset: 126; } 5%, 100% { stroke-dashoffset: 0; } }
@keyframes trazo-visto { 0% { stroke-dashoffset: 34; } 3%, 100% { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .revelar, .brilla, .l-hoja, .l-pasos-linea { transition: none !important; }
  .revelar.por-revelar { opacity: 1; transform: none; }
}
/* La etiqueta de cada versión va abajo: es la parte que asoma bajo la hoja siguiente. */
.l-hoja svg, .l-hoja-sello { order: 8; }
.l-hoja-k { order: 9; margin-top: auto; }
.l-hoja-h { order: 10; margin-top: 0 !important; }
.l-hoja svg, .l-hoja-sello { margin-top: 0; }
