/* Viral Labs AI — site.css · Identidad «Atlántica Vanguardia».
   Las variables de :root son la única fuente de color. Cian = agencia. Turquesa = solo Seba. */
@font-face { font-family: "Outfit"; src: url("/assets/fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/assets/fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  /* Fondos */
  --bg: #080E1E;
  --surface: #121C33;
  --border: rgba(255, 255, 255, 0.06);
  /* Texto */
  --text: #E2E8F0;
  --text-strong: #F8FAFC;
  --text-muted: #94A3B8;
  /* Marca */
  --brand: #38BDF8;
  --brand-strong: #0284C7;
  --seba: #14B8A6;
  /* Estado */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --gradient: linear-gradient(135deg, #38BDF8, #0284C7);
  /* Forma */
  --radius-card: 12px;
  --radius-btn: 8px;

  /* Derivados (no son colores nuevos) */
  --brand-soft: color-mix(in srgb, var(--brand) 8%, transparent);
  --brand-ring: color-mix(in srgb, var(--brand) 15%, transparent);
  --seba-soft: color-mix(in srgb, var(--seba) 12%, transparent);
  --title: "Outfit", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  interpolate-size: allow-keywords;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 400 16px/1.6 var(--body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--title); color: var(--text-strong); letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: 48px; line-height: 1.1; font-weight: 700; }
h2 { font-size: 34px; line-height: 1.2; font-weight: 700; }
h3 { font-size: 22px; line-height: 1.3; font-weight: 600; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text-strong); color: var(--bg); padding: 8px 12px; border-radius: var(--radius-btn); z-index: 100; }
.skip:focus { left: 8px; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.progress { position: fixed; inset: 0 0 auto 0; height: 2px; background: var(--gradient); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); z-index: 60; }

/* ---------- menú ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.nav.stuck, .nav.solid { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); border-color: var(--border); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 140px; text-decoration: none; font: 700 20px/1 var(--title); letter-spacing: -.02em; color: var(--text-strong); white-space: nowrap; }
.brand img { height: 36px; width: auto; }
.brand b { font-weight: 600; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { position: relative; text-decoration: none; color: var(--text-muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s var(--ease); }
.nav-links a:hover { color: var(--text-strong); }
.nav-links a:hover::after { transform: scaleX(1); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: var(--radius-btn); font: 600 14px/1.2 var(--body); letter-spacing: .04em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn-primary { background: var(--brand); color: var(--bg); }
.btn-primary:hover { background: var(--text-strong); transform: translateY(-1px); }
.btn-ghost { border-color: var(--brand); color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn:disabled { background: var(--surface); color: #475569; cursor: not-allowed; }
.btn-sm { padding: 10px 16px; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- secciones ---------- */
section { padding: 96px 0; position: relative; }
.eyebrow { display: inline-block; font: 600 13px/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head p, .lead { color: var(--text-muted); font-size: 18px; }
.sec-head p { margin-top: 16px; }
.fine { color: var(--text-muted); font-size: 14px; margin-top: 32px; max-width: 720px; }
main a:not(.btn):not(.opt) { color: var(--brand); text-underline-offset: 3px; }

/* ---------- entradas ---------- */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .6s var(--ease), translate .6s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; translate: 0 0; }
.js .rise { opacity: 0; animation: rise .6s var(--ease) var(--d, .1s) forwards; }
@keyframes rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.split .w > span { display: inline-block; translate: 0 115%; animation: up .8s var(--ease) calc(var(--i) * 70ms + .15s) forwards; }
@keyframes up { to { translate: 0 0; } }

/* ---------- hero ---------- */
.hero { min-height: 100svh; padding: 136px 0 0; display: flex; flex-direction: column; overflow-x: clip; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; flex: 1; }
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { max-width: 520px; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 24px; font-size: 14px; color: var(--text-muted); }

/* maqueta del chat (HTML y CSS, sin imágenes) */
.stage { perspective: 1400px; display: grid; place-items: center; padding: 24px 0 40px; }
.phone { position: relative; width: min(360px, 100%); transform-style: preserve-3d;
  transform: rotateY(calc(-12deg * var(--flat, 1) + var(--ry, 0deg))) rotateX(calc(5deg * var(--flat, 1) + var(--rx, 0deg)));
  animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
.chat { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px; }
.phone .chat { border-color: color-mix(in srgb, var(--seba) 35%, transparent); }
.chat-top { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.chat-top strong { display: block; font: 600 16px/1.3 var(--title); color: var(--text-strong); }
.chat-top span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--seba); color: var(--bg); display: grid; place-items: center; font: 700 18px/1 var(--title); flex: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--seba); display: inline-block; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.35); opacity: .6; } }
.chat-body { display: flex; flex-direction: column; gap: 8px; height: 296px; overflow-y: auto; scrollbar-width: none; }
.chat-body::-webkit-scrollbar { display: none; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 12px 12px 12px 4px; font-size: 15px; line-height: 1.45; align-self: flex-start; background: var(--bg); border: 1px solid var(--border); transform-origin: 0 100%; animation: pop .4s var(--ease); }
.bubble.bot { align-self: flex-end; background: var(--seba); border-color: transparent; color: var(--bg); border-radius: 12px 12px 4px 12px; transform-origin: 100% 100%; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.94); } }
.typing { display: flex; gap: 4px; padding: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--bg); animation: typing 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-4px); opacity: .5; } 60% { transform: none; opacity: 1; } }
.chat figcaption, .chat-cap { margin-top: 12px; text-align: center; font-size: 13px; color: var(--text-muted); }
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-btn); font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--text-strong); background: var(--surface); border: 1px solid color-mix(in srgb, var(--seba) 40%, transparent); }
.chip .i { width: 16px; height: 16px; color: var(--seba); }
.chip-a { top: -20px; left: -40px; transform: translateZ(70px); animation: float 6s ease-in-out -2s infinite; }
.chip-b { bottom: 64px; right: -20px; transform: translateZ(110px); animation: float 8s ease-in-out -4s infinite; }

.marquee { position: relative; margin-top: 40px; padding: 16px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { padding: 0 28px; color: var(--text-muted); font-weight: 500; font-size: 14px; white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.marquee span::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--brand); margin-right: -28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- tarjetas ---------- */
.scrub { font: 700 48px/1.1 var(--title); letter-spacing: -.02em; color: var(--text-strong); max-width: 880px; margin-bottom: 64px; text-wrap: balance; }
.js .scrub .w { opacity: .16; transition: opacity .35s; }
.js .scrub .w.on { opacity: 1; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.card-lg { padding: 32px; gap: 16px; }
.card h3 { display: flex; align-items: center; gap: 12px; }
.card h3 .i { width: 24px; height: 24px; color: var(--brand); }
.card p, .checks { color: var(--text-muted); }
.card-seba h3 .i { color: var(--seba); }
.card:hover { border-color: var(--brand); }
.card-seba:hover { border-color: var(--seba); }
/* inclinación 3D y brillo que sigue al cursor */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--ease), border-color .25s, opacity .6s var(--ease), translate .6s var(--ease); transition-delay: 0s, 0s, var(--d, 0s), var(--d, 0s); }
.tilt.live { transition: transform .08s linear, border-color .25s; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--brand-soft), transparent 60%); }
.tilt.live::after { opacity: 1; }
.card-seba.tilt::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--seba-soft), transparent 60%); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 15px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); rotate: -45deg; }
.card-seba .checks li::before { border-color: var(--seba); }

/* mini ilustraciones del problema */
.ill { height: 72px; margin-bottom: 8px; position: relative; }
.ill u { text-decoration: none; font-size: 13px; color: var(--text-muted); }
.ill-msgs { display: flex; flex-direction: column; gap: 6px; }
.ill-msgs b { height: 14px; border-radius: 7px 7px 7px 2px; background: var(--bg); border: 1px solid var(--border); animation: msg 4.5s var(--ease) infinite both; }
.ill-msgs b:nth-child(1) { width: 62%; }
.ill-msgs b:nth-child(2) { width: 44%; animation-delay: .5s; }
.ill-msgs b:nth-child(3) { width: 70%; animation-delay: 1s; }
.ill-msgs u { animation: msg 4.5s var(--ease) 1.6s infinite both; }
@keyframes msg { 0% { opacity: 0; transform: translateY(8px); } 12%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ill-load { display: flex; flex-direction: column; gap: 5px; justify-content: flex-end; }
.ill-load i { height: 9px; border-radius: 3px; background: var(--bg); border: 1px solid var(--border); animation: load 4s var(--ease) infinite both; }
.ill-load i:nth-child(1) { animation-delay: 1.2s; } .ill-load i:nth-child(2) { animation-delay: .9s; } .ill-load i:nth-child(3) { animation-delay: .6s; } .ill-load i:nth-child(4) { animation-delay: .3s; }
@keyframes load { 0% { opacity: 0; transform: translateY(-10px); } 15%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ill-gone { display: flex; align-items: center; }
.ill-gone i { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 2px solid var(--surface); outline: 1px solid var(--border); margin-right: -10px; animation: gone 5s ease-in-out infinite; }
.ill-gone i:nth-child(2) { animation-delay: .6s; } .ill-gone i:nth-child(3) { animation-delay: 1.2s; } .ill-gone i:nth-child(4) { animation-delay: 1.8s; }
@keyframes gone { 0%, 30% { opacity: 1; transform: none; } 60%, 85% { opacity: .15; transform: translateX(12px); } 100% { opacity: 1; transform: none; } }
.ill-bars { display: flex; align-items: flex-end; gap: 8px; }
.ill-bars i { width: 14px; border-radius: 3px 3px 0 0; border: 1px dashed color-mix(in srgb, var(--text-muted) 50%, transparent); border-bottom: 0; animation: bars 3.2s ease-in-out infinite; }
.ill-bars i:nth-child(1) { height: 30%; } .ill-bars i:nth-child(2) { height: 55%; animation-delay: .3s; } .ill-bars i:nth-child(3) { height: 40%; animation-delay: .6s; } .ill-bars i:nth-child(4) { height: 80%; animation-delay: .9s; } .ill-bars i:nth-child(5) { height: 60%; animation-delay: 1.2s; }
.ill-bars u { font: 700 28px/1 var(--title); margin-left: 8px; }
@keyframes bars { 50% { opacity: .35; } }

/* ---------- cómo funciona: carril horizontal ---------- */
.flow-head { margin-bottom: 48px; }
.flow-track { display: grid; gap: 16px; width: min(var(--max), 100% - 32px); margin-inline: auto; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 32px; transition: border-color .4s, opacity .4s; }
.step-n { display: block; font: 700 48px/1 var(--title); letter-spacing: -.02em; color: var(--brand); margin-bottom: 32px; transition: opacity .4s; }
.step-seba .step-n { color: var(--seba); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); }
.flow-line { display: none; }
.flow.is-h { padding: 0; }
.flow.is-h .flow-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.flow.is-h .flow-track { display: flex; gap: 24px; width: max-content; margin: 0; padding-inline: max(16px, calc((100vw - var(--max)) / 2)); will-change: transform; }
.flow.is-h .step { width: 400px; flex: none; opacity: .4; }
.flow.is-h .step.on { opacity: 1; border-color: var(--brand); }
.flow.is-h .step-seba.on { border-color: var(--seba); }
.flow.is-h .flow-line { display: block; height: 2px; background: var(--border); margin-top: 48px; border-radius: 2px; overflow: hidden; }
.flow-line i { display: block; height: 100%; background: var(--gradient); transform-origin: 0 50%; transform: scaleX(var(--pp, 0)); }

/* ---------- Seba ---------- */
.seba { border: 1px solid color-mix(in srgb, var(--seba) 45%, transparent); border-radius: var(--radius-card); padding: 48px; background: linear-gradient(180deg, var(--seba-soft), transparent 40%); }
.seba-head { max-width: 640px; margin-bottom: 40px; }
.seba-head p { color: var(--text-muted); font-size: 18px; margin-top: 16px; }
.seba-head .scope { font-size: 15px; color: var(--seba); font-weight: 500; margin-top: 12px; }
.badge-seba { display: inline-block; font: 600 13px/1 var(--body); letter-spacing: .04em; padding: 8px 12px; border-radius: var(--radius-btn); color: var(--seba); border: 1px solid color-mix(in srgb, var(--seba) 45%, transparent); margin-bottom: 20px; }
.demo-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: start; }
.chat-lg { padding: 24px; background: var(--bg); }
.chat-lg .bubble:not(.bot) { background: var(--surface); }
.chat-lg .chat-body { height: 336px; }
.btn-reset { margin-left: auto; background: none; border: 1px solid var(--border); color: var(--text-muted); border-radius: var(--radius-btn); padding: 8px 12px; font: 600 13px/1 var(--body); cursor: pointer; transition: color .2s, border-color .2s; }
.btn-reset:hover { color: var(--text-strong); border-color: var(--seba); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; min-height: 56px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--border); }
.opt { background: transparent; color: var(--seba); border: 1px solid var(--seba); border-radius: var(--radius-btn); padding: 10px 14px; font: 600 14px/1.2 var(--body); text-decoration: none; cursor: pointer; animation: pop .4s var(--ease) both; transition: background .2s, color .2s, transform .2s var(--ease); }
.opt:hover { background: var(--seba); color: var(--bg); transform: translateY(-1px); }
.record { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; }
.record-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 600 16px/1.3 var(--title); color: var(--text-strong); margin-bottom: 16px; }
.state { font: 600 13px/1 var(--body); font-style: normal; padding: 6px 10px; border-radius: var(--radius-btn); border: 1px solid var(--border); color: var(--text-muted); transition: background .4s, color .4s, border-color .4s; }
.state.live { color: var(--seba); border-color: var(--seba); }
.state.done { background: var(--seba); border-color: var(--seba); color: var(--bg); }
.record dl { margin: 0; }
.record dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 8px; margin-inline: -8px; border-radius: 6px; border-bottom: 1px solid var(--border); }
.record dt { color: var(--text-muted); font-size: 14px; }
.record dd { margin: 0; font-weight: 600; text-align: right; }
.record .flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { background: color-mix(in srgb, var(--seba) 30%, transparent); } 100% { background: transparent; } }
.record-done { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-weight: 600; color: var(--seba); animation: rise .4s var(--ease); }
.record-done[hidden] { display: none; }
.record-done .i { width: 24px; height: 24px; }
.record-done path { stroke-dasharray: 10; stroke-dashoffset: 10; animation: draw .4s var(--ease) .12s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.record-note { color: var(--text-muted); font-size: 14px; margin-top: 16px; }

/* ---------- cómo trabajamos ---------- */
.proc { list-style: none; counter-reset: p; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.proc li { counter-increment: p; border-top: 1px solid var(--border); padding-top: 24px; position: relative; }
.proc li::before { content: counter(p, decimal-leading-zero); display: block; font: 600 14px/1 var(--body); letter-spacing: .04em; color: var(--brand); margin-bottom: 16px; }
.proc li::after { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 1px; background: var(--brand); }
.proc h3 { font-size: 18px; margin-bottom: 8px; }
.proc p { color: var(--text-muted); font-size: 15px; }

/* ---------- preguntas ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.faq-grid .sec-head { margin-bottom: 0; position: sticky; top: 120px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font: 600 18px/1.3 var(--title); color: var(--text-strong); transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: rotate .25s var(--ease); }
.faq details[open] summary::after { rotate: 135deg; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details p { color: var(--text-muted); padding-bottom: 24px; max-width: 560px; }

/* ---------- contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact h2 { margin-bottom: 16px; }
.contact .lead { margin-bottom: 32px; }
.facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 8px; color: var(--text-muted); }
.facts span { display: inline-block; width: 96px; font-size: 14px; }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 32px; display: grid; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.form input, .form select { width: 100%; min-width: 0; font: 400 16px/1.4 var(--body); color: var(--text); background: var(--bg); border: 1px solid var(--surface); border-radius: var(--radius-btn); padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.form .bad { border-color: var(--danger); animation: shake .28s linear; }
.err { font-size: 14px; color: var(--danger); animation: rise .35s var(--ease); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.form .fine { margin: 0; }

/* ---------- pie y botón flotante ---------- */
.foot { border-top: 1px solid var(--border); padding: 48px 0 104px; color: var(--text-muted); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot .brand { margin-bottom: 16px; }
.foot p { margin-top: 4px; }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot a:not(.brand) { text-underline-offset: 3px; text-decoration-color: var(--border); transition: color .2s; }
.foot a:not(.brand):hover { color: var(--text-strong); }
.copy { margin-top: 32px; }
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 55; width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: var(--bg); display: grid; place-items: center; transition: transform .25s var(--ease), background .2s; }
.wa-fab .i { width: 26px; height: 26px; }
.wa-fab:hover { transform: translateY(-2px); background: var(--text-strong); }

/* ---------- páginas legales ---------- */
.legal { padding: 136px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 22px; line-height: 1.3; font-weight: 600; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-muted); }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 20px; display: grid; gap: 8px; }
.legal .meta { font-size: 14px; margin-bottom: 32px; }
.legal strong { color: var(--text); font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  body { font-size: 15px; line-height: 1.5; }
  h1, .scrub { font-size: 34px; line-height: 1.15; }
  h2 { font-size: 26px; }
  h3 { font-size: 18px; }
  .btn { font-size: 13px; }
  section { padding: 64px 0; }
  .hero { padding-top: 112px; }
  .hero-grid, .demo-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4, .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3, .proc { grid-template-columns: 1fr; }
  .faq-grid .sec-head { position: static; }
  .phone { width: min(330px, 86%); }
  .chip-a { left: -8%; }
  .chip-b { right: -8%; }
  .scrub { margin-bottom: 40px; }
  .seba { padding: 24px 16px; }
  .legal { padding: 112px 0 64px; }
  .legal h2 { font-size: 18px; }
}
@media (max-width: 560px) {
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .brand { font-size: 18px; min-width: 0; }
  .brand img { height: 30px; }
}

/* ---------- menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .rise, .js .scrub .w { opacity: 1; translate: none; }
  .split .w > span { translate: none; }
  .phone { transform: none; }
  .record-done path { stroke-dashoffset: 0; }
}


/* =====================================================================
   Capa de dinamismo: profundidad, luz y movimiento con la nueva identidad
   ===================================================================== */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }

/* cursor que acompaña (solo con mouse) */
.cursor { position: fixed; left: 0; top: 0; z-index: 70; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; border: 1px solid var(--brand); pointer-events: none; opacity: 0; transition: opacity .25s, width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s; }
.cursor.on { opacity: .6; }
.cursor.big { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: var(--brand-soft); opacity: .9; }
@media (hover: none) { .cursor { display: none; } }


/* malla 3D del inicio y profundidad al hacer scroll */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mask-image: linear-gradient(#000 60%, transparent); translate: 0 calc(var(--hs, 0) * 90px); }
.hero-copy { translate: 0 calc(var(--hs, 0) * -70px); opacity: calc(1 - var(--hs, 0) * 1.3); }
.stage { translate: 0 calc(var(--hs, 0) * -30px); }
.phone { transform: rotateY(calc(-18deg * var(--flat, 1) + var(--ry, 0deg))) rotateX(calc(8deg * var(--flat, 1) + var(--rx, 0deg))); }

/* borde de luz que recorre el contorno */
.phone .chat, .seba { position: relative; }
.phone .chat::before, .seba::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a), transparent 0 62%, var(--seba) 82%, var(--text-strong) 90%, transparent 100%);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: spin 6s linear infinite; }
.seba::before { animation-duration: 10s; }

/* brillo que cruza el botón principal */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; inset: 0; translate: -120% 0; background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--text-strong) 55%, transparent) 50%, transparent 65%); animation: shine 5s var(--ease) 1.2s infinite; pointer-events: none; }
@keyframes shine { 0% { translate: -120% 0; } 28%, 100% { translate: 120% 0; } }

/* titulares de sección: las palabras suben desde una máscara al entrar */
.split-in .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.split-in .w > span { display: inline-block; translate: 0 115%; transition: translate .8s var(--ease) calc(var(--i) * 55ms); }
.split-in.in .w > span { translate: 0 0; }

/* las tarjetas se levantan en 3D al entrar */
.grid-4, .grid-3, .grid-2 { perspective: 1400px; }
.js .card.reveal { rotate: x -16deg; transform-origin: 50% 0; scale: .96; }
.js .card.reveal.in { rotate: x 0deg; scale: 1; }
.tilt { transition: transform .25s var(--ease), border-color .25s, opacity .6s var(--ease), translate .6s var(--ease), rotate .8s var(--ease), scale .8s var(--ease); transition-delay: 0s, 0s, var(--d, 0s), var(--d, 0s), var(--d, 0s), var(--d, 0s); }

/* los íconos se dibujan */
.js .card h3 .i > * { stroke-dasharray: var(--l); stroke-dashoffset: var(--l); transition: stroke-dashoffset 1.1s var(--ease) calc(var(--d, 0s) + .35s); }
.js .card.in h3 .i > * { stroke-dashoffset: 0; }

/* menú: sección activa */
.nav-links a.active { color: var(--text-strong); }
.nav-links a.active::after { transform: scaleX(1); }

/* cómo funciona: carrusel con profundidad */
.flow.is-h .step { will-change: transform; transition: border-color .4s, opacity .4s; }
.flow.is-h .step.on .step-n { animation: pop .5s var(--ease); }

/* cómo trabajamos: la línea se traza paso a paso */
.js .proc li::after { width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--gradient); transition: transform 1s var(--ease) var(--d, 0s); }
.js .proc li.in::after { transform: scaleX(1); }

/* banda del eslogan, movida por el scroll */
.band { padding: 48px 0; overflow: hidden; display: grid; gap: 8px; }
.band-row { display: flex; gap: 48px; width: max-content; white-space: nowrap; font: 700 clamp(56px, 10vw, 144px)/1 var(--title); letter-spacing: -.03em; will-change: transform; }
.band-row span { color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--brand) 55%, transparent); }
.band-row b { font-weight: 700; color: var(--text-strong); }
.band-row:nth-child(2) { font-size: clamp(40px, 7vw, 96px); }
.band-row:nth-child(2) b { color: var(--seba); }
.band-row:nth-child(2) span { -webkit-text-stroke-color: color-mix(in srgb, var(--seba) 55%, transparent); }

/* Seba: pulso al agendar */
.record { position: relative; }
.record.celebrate::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--seba); pointer-events: none; animation: burst 1s var(--ease) forwards; }
@keyframes burst { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.08); } }
.record.celebrate { border-color: var(--seba); transition: border-color .4s; }
.avatar { position: relative; }
.avatar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--seba); animation: ring 2.6s ease-out infinite; }

/* botón flotante */
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--brand); animation: ring 2.6s ease-out infinite; }
@keyframes ring { to { transform: scale(1.7); opacity: 0; } }

.contact { overflow: hidden; }
.contact .wrap { position: relative; }

@media (max-width: 960px) {
  .band { padding: 32px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-canvas, .cursor { display: none; }
  .hero-copy, .stage { translate: none; opacity: 1; }
  .split-in .w > span { translate: none; }
  .js .card.reveal { rotate: none; scale: none; }
  .js .card h3 .i > * { stroke-dashoffset: 0; }
  .js .proc li::after { transform: none; }
  .btn-primary::after { display: none; }
}


/* =====================================================================
   Una sola página: fondo continuo e hilo conductor (sin cortes entre secciones)
   ===================================================================== */
main, .foot { position: relative; z-index: 1; }

/* fondo fijo: la misma cuadrícula y las mismas luces acompañan todo el recorrido */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg::before, .bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--brand) 1.2px, transparent 1.6px); background-size: 28px 28px; }
.bg::before { opacity: .08; mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 20%, transparent 100%); }
.bg::after { opacity: .45; mask-image: radial-gradient(240px circle at var(--px, -999px) var(--py, -999px), #000, transparent); }
.bg i { position: absolute; width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; border-radius: 50%; filter: blur(100px); opacity: .2; background: var(--brand); transition: background 1.4s var(--ease); will-change: transform; }
/* las luces viajan con el scroll: --p va de 0 (arriba) a 1 (final de la página) */
.bg i:nth-child(1) { right: -10%; top: -22%; transform: translate3d(calc(var(--p, 0) * -34vw), calc(var(--p, 0) * 70vh), 0); }
.bg i:nth-child(2) { left: -16%; top: 46%; background: var(--brand-strong); transform: translate3d(calc(var(--p, 0) * 44vw), calc(var(--p, 0) * -56vh), 0); }
.bg i:nth-child(3) { right: 6%; bottom: -46%; opacity: .14; transform: translate3d(calc(var(--p, 0) * -26vw), calc(var(--p, 0) * -36vh), 0); }
/* al llegar a Seba, la luz pasa de cian a turquesa y vuelve al salir */
.in-seba .bg i { background: var(--seba); }

/* hilo conductor */
.thread { position: absolute; left: 0; top: 0; width: 100%; z-index: -1; pointer-events: none; overflow: visible; }
.thread path { fill: none; stroke-width: 1.5; }
.thread .rail { stroke: var(--border); }
.thread .draw { stroke: url(#thr); stroke-linecap: round; }
.thread-dot { position: absolute; left: 0; top: 0; z-index: -1; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--text-strong); box-shadow: 0 0 0 6px var(--brand-soft), 0 0 24px 4px var(--brand); opacity: 0; transition: opacity .4s; }
.thread-dot.on { opacity: 1; }

/* las secciones se encadenan: mismo ritmo, sin líneas divisorias */
section { padding: 88px 0; }
.band { padding: 24px 0 8px; }

@media (max-width: 960px) {
  section { padding: 56px 0; }
  .bg i { width: 96vw; height: 96vw; filter: blur(64px); opacity: .16; }
  .thread .rail { opacity: .6; }
}
@media (prefers-reduced-motion: reduce) {
  .thread-dot { display: none; }
  .bg i { transform: none; }
}

/* =====================================================================
   Libro de Reclamaciones y marcadores de datos pendientes
   ===================================================================== */
.legal .wrap { max-width: 800px; }
.rform { padding: 0; background: none; border: 0; gap: 24px; margin-top: 16px; }
.rform fieldset { margin: 0; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); padding: 24px; display: grid; gap: 16px; }
.rform legend { font: 600 18px/1.3 var(--title); color: var(--text-strong); padding: 0 8px; margin-left: -8px; }
.rform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rform .row > * { min-width: 0; }
.form textarea { width: 100%; min-width: 0; font: 400 16px/1.5 var(--body); color: var(--text); background: var(--bg); border: 1px solid var(--surface); border-radius: var(--radius-btn); padding: 12px 14px; resize: vertical; transition: border-color .15s, box-shadow .15s; }
.form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.form input[type=checkbox], .form input[type=radio] { width: auto; margin-top: 3px; accent-color: var(--brand); }
.form label.check, .form label.radio { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text); }
.form label.radio { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-btn); cursor: pointer; transition: border-color .15s; }
.form label.radio:hover, .form label.radio:has(input:checked) { border-color: var(--brand); }
.form label.radio i { display: block; font-style: normal; font-weight: 400; font-size: 14px; color: var(--text-muted); }
.rform .grupo { border: 0; padding: 0; background: none; gap: 8px; }
.rform .grupo legend { font: 500 14px/1.4 var(--body); color: var(--text-muted); padding: 0; margin: 0 0 8px; }
.form .ayuda { display: block; font-weight: 400; font-size: 13px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pend { background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning); padding: 0 6px; border-radius: 4px; outline: 1px dashed var(--warning); font-style: normal; }
.note { padding: 12px 16px; border: 1px solid var(--warning); border-radius: var(--radius-btn); color: var(--text); }
.ok { color: var(--success); }
.hoja { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 32px; }
.hoja[hidden], .solo-form[hidden] { display: none; }
.hoja .meta { margin-bottom: 16px; }
.hoja section { margin-top: 24px; }
.hoja h3 { font-size: 18px; margin-bottom: 8px; }
.hoja dl { margin: 0; }
.hoja dl div { display: grid; grid-template-columns: 190px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.hoja dt { color: var(--text-muted); font-size: 14px; }
.hoja dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 560px) {
  .rform .row, .hoja dl div { grid-template-columns: 1fr; }
  .rform fieldset { padding: 16px; }
  .hoja { padding: 20px 16px; }
}
@media print {
  body { background: #fff; color: #000; }
  .nav, .foot, .wa-fab, .skip, .progress, .no-print { display: none !important; }
  .legal { padding: 0; }
  .hoja { border: 0; background: none; padding: 0; }
  .hoja *, .legal h1 { color: #000 !important; }
  .hoja dl div { border-color: #999; }
}
/* el título de cada bloque queda sobre su borde, con el fondo de la página para que no se corte */
.rform > fieldset > legend { background: var(--bg); border-radius: 4px; }
