/* ============================================================
   IGNITE · igniteplus.app — sistema visual de ventas
   Lenguaje: navy profundo, fotografía atlética, flama, headlines
   two-tone caps. Tokens espejo de pymeos-web/src/app/globals.css.
   Self-contained · self-hosted font · cero requests externos.
   ============================================================ */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-var.woff2') format('woff2-variations'),
       url('/fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* — Marca IGNITE (canónico) — */
  --ignite: #0044CC;            /* primario · botones, links, fills */
  --ignite-strong: #2E66E0;
  --ignite-bright: #5590FF;     /* acento eléctrico · second-tone headline, glows */
  --ignite-soft: rgba(0, 68, 204, .14);
  --ignite-glow: rgba(0, 68, 204, .45);
  --flame-a: #0957da;
  --flame-b: #43b6f6;
  --cyan: #00B4D8;              /* acento puntual */
  --gold: #d4a84a;              /* SOLO partnership Mayweather/Fitsi */

  /* — Paleta navy (fondos · nunca negro puro) — */
  --bg:            #0A1628;
  --bg-2:          #0D1B2A;
  --surface:       #102A43;
  --surface-2:     #14233A;
  --line:          rgba(120, 160, 220, .14);
  --line-strong:   rgba(120, 160, 220, .26);

  /* — Texto — */
  --text:      #EEF3FA;
  --text-soft: #C2D0E2;
  --text-dim:  #8597AE;

  /* — Tipografía — */
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* — Ritmo — */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 18px;
  --radius-sm: 12px;

  /* — Motion — */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .6s;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--ignite-bright); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ignite-bright); margin-bottom: 1.1rem; display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--ignite-bright); display: inline-block; }

/* ---------- tipografía display ---------- */
.display {
  font-weight: 900;
  text-transform: uppercase;
  line-height: .94;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1.display { font-size: clamp(2.9rem, 8.5vw, 6rem); }
h2.display { font-size: clamp(2.1rem, 5.5vw, 3.9rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.accent { color: var(--ignite-bright); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--text-soft); font-weight: 400; max-width: 46ch; }
.muted { color: var(--text-dim); }
.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem; border-radius: 999px; font-weight: 700; font-size: 1rem;
  letter-spacing: .01em; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ignite); color: #fff;
  box-shadow: 0 10px 30px -8px var(--ignite-glow), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { background: var(--ignite-strong); transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--ignite-glow); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--ignite-bright); color: #fff; transform: translateY(-2px); background: var(--ignite-soft); }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.08rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gutter);
  transition: background .3s, backdrop-filter .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 22, 40, .82); backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line); padding-block: .7rem;
}
.nav-logo { display: inline-flex; align-items: center; gap: .6rem; }
.nav-logo svg { height: 26px; width: auto; }
.nav-logo .mark { height: 26px; width: 26px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .95rem; color: var(--text-soft); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: .9rem; }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 6rem; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(67,182,246,.16), transparent 55%),
    radial-gradient(90% 80% at 12% 90%, var(--ignite-soft), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: repeating-linear-gradient(115deg, transparent 0 38px, rgba(85,144,255,.05) 38px 39px);
  mask-image: radial-gradient(80% 80% at 75% 25%, #000, transparent 75%);
  opacity: .8;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; width: 100%; }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { margin-bottom: 2.2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.4rem; font-size: .9rem; color: var(--text-dim); display: flex; align-items: center; gap: .5rem; }
.hero-note svg { width: 16px; height: 16px; color: var(--ignite-bright); }
.hero-visual { position: relative; display: grid; place-items: center; }
.flame-stage { position: relative; display: grid; place-items: center; width: min(86%, 392px); margin-inline: auto; perspective: 720px; transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .25s ease-out; }
.flame-halo {
  position: absolute; inset: -14%; border-radius: 50%; z-index: 0; filter: blur(10px);
  background: radial-gradient(circle at 50% 56%, rgba(67,182,246,.38), rgba(0,68,204,.20) 40%, transparent 70%);
}
.hero-flame {
  position: relative; z-index: 1; width: 100%;
  filter: drop-shadow(0 0 55px var(--ignite-glow)) drop-shadow(0 26px 40px rgba(0,0,0,.5));
}
.ember {
  position: absolute; left: 50%; bottom: 26%; z-index: 0; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, var(--flame-b), var(--ignite) 70%); opacity: 0;
  animation: ember-rise 3.3s ease-in infinite;
}
.ember.e1 { margin-left: -34px; animation-delay: 0s; }
.ember.e2 { margin-left: 12px; width: 5px; height: 5px; animation-delay: 1.1s; }
.ember.e3 { margin-left: 30px; animation-delay: 2s; }
.ember.e4 { margin-left: -12px; width: 4px; height: 4px; animation-delay: 2.8s; }
.ember.e5 { margin-left: 24px; width: 5px; height: 5px; animation-delay: 3.5s; }
@keyframes flame-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -20px; } }
@keyframes flame-sway { 0%,100% { rotate: -2deg; } 50% { rotate: 2.2deg; } }
@keyframes flame-flicker {
  0%,100% { filter: drop-shadow(0 22px 60px var(--ignite-glow)) brightness(1); transform: scale(1) skewX(0deg); }
  18% { filter: drop-shadow(0 30px 78px var(--ignite-glow)) brightness(1.12); transform: scale(1.025) skewX(-1deg); }
  42% { filter: drop-shadow(0 16px 48px var(--ignite-glow)) brightness(.94); transform: scale(.978) skewX(.7deg); }
  68% { filter: drop-shadow(0 28px 70px var(--ignite-glow)) brightness(1.07); transform: scale(1.014) skewX(-.4deg); }
}
@keyframes halo-breath { 0%,100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.07); } }
@keyframes ember-rise {
  0% { opacity: 0; transform: translateY(0) scale(1); }
  14% { opacity: .9; }
  80% { opacity: .5; }
  100% { opacity: 0; transform: translateY(-150px) scale(.4); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-flame, .flame-halo, .ember { animation: none !important; }
  .ember { opacity: 0; }
}
/* capas de fuego vivo */
.flame-aura { position: absolute; z-index: 0; width: 100%; opacity: .45; filter: blur(8px) saturate(1.3);
  animation: flame-float 4.4s var(--ease) infinite, flame-sway 5.6s ease-in-out infinite reverse; }
.flame-core { position: absolute; z-index: 0; top: 44%; left: 50%; width: 38%; height: 38%; transform: translate(-50%,-50%);
  border-radius: 50%; filter: blur(12px); background: radial-gradient(circle, rgba(150,205,255,.78), rgba(67,182,246,.34) 46%, transparent 72%);
  animation: core-pulse 1.9s ease-in-out infinite; }
.flame-ground { position: absolute; z-index: 0; bottom: 2%; left: 50%; width: 52%; height: 22px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 70%); filter: blur(7px); }
.ember.e6 { margin-left: -26px; width: 5px; height: 5px; animation-delay: .6s; }
.ember.e7 { margin-left: 38px; width: 4px; height: 4px; animation-delay: 1.7s; }
.ember.e8 { margin-left: 4px; width: 6px; height: 6px; animation-delay: 2.4s; }
@keyframes core-pulse { 0%,100% { opacity: .55; transform: translate(-50%,-50%) scale(.9); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.14); } }
@keyframes ground-breath { 0%,100% { opacity: .6; transform: translateX(-50%) scaleX(1); } 50% { opacity: .4; transform: translateX(-50%) scaleX(.86); } }
/* trío de flamas: convergen en la base, se avivan y calman (ignite/extinguish) */
.flame-trio { position: relative; width: 100%; z-index: 1; animation: flame-float 5s var(--ease) infinite; }
.flame3 { width: 100%; transform-origin: 50% 87%; }
.fl-center { position: relative; display: block; z-index: 3; filter: drop-shadow(0 0 52px var(--ignite-glow)); animation: fire-c 2.6s ease-in-out infinite; }
.fl-right { position: absolute; inset: 0; z-index: 2; rotate: 8deg; filter: blur(.4px) drop-shadow(0 0 30px var(--ignite-glow)); animation: fire-r 3s ease-in-out infinite; }
.fl-left { position: absolute; inset: 0; z-index: 1; rotate: -11deg; filter: blur(.6px) drop-shadow(0 0 30px var(--ignite-glow)); animation: fire-l 3.4s ease-in-out infinite; }
@keyframes fire-c { 0%,100% { opacity: .85; transform: scaleY(1) scaleX(1); } 45% { opacity: 1; transform: scaleY(1.05) scaleX(.98); } 72% { opacity: .8; transform: scaleY(.97) scaleX(1.01); } }
@keyframes fire-r { 0%,100% { opacity: .42; transform: scale(.93); } 40% { opacity: .72; transform: scale(1); } 75% { opacity: .46; transform: scale(.9); } }
@keyframes fire-l { 0%,100% { opacity: .5; transform: scale(.9); } 35% { opacity: .36; transform: scale(.95); } 62% { opacity: .7; transform: scale(.87); } }
@media (prefers-reduced-motion: reduce) {
  .flame-aura, .flame-core, .flame-ground, .flame-trio, .flame3 { animation: none; }
  .fl-right, .fl-left { opacity: .4; }
  .flame-stage { transform: none !important; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero .lead { margin-inline: auto; }
  .hero-cta, .hero-note { justify-content: center; }
  .hero-visual { order: -1; }
  .flame-stage { width: min(62%, 240px); }
}

/* ---------- trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--bg-2); }
.trust .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: 1.6rem; }
.trust-label { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
.trust-logos { display: flex; align-items: center; gap: 2.4rem; flex-wrap: wrap; opacity: .85; }
.trust-logos span { font-weight: 800; letter-spacing: .04em; color: var(--text-soft); }
.trust-logos .gold { color: var(--gold); }

/* ---------- audience fork ---------- */
.fork-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 820px) { .fork-grid { grid-template-columns: 1fr; } }
.fork-card {
  position: relative; padding: clamp(1.8rem, 3vw, 2.6rem); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.fork-card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--flame-a), var(--flame-b)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.fork-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 60px -30px var(--ignite-glow); }
.fork-card:hover::after { transform: scaleX(1); }
.fork-card .kicker { color: var(--ignite-bright); }
.fork-card h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; margin: .5rem 0 .8rem; }
.fork-card p { color: var(--text-soft); margin-bottom: 1.5rem; }
.fork-card .btn { width: 100%; }

/* ---------- feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature + .feature { margin-top: clamp(3.5rem, 7vw, 6rem); }
.feature.reverse .feature-media { order: -1; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.reverse .feature-media { order: 0; } }
.feature h2 { margin-bottom: 1.2rem; }
.feature .lead { margin-bottom: 1.8rem; }

.steps { display: grid; gap: 1rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
  flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; background: var(--ignite-soft); color: var(--ignite-bright); border: 1px solid var(--line-strong);
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .2rem; }
.step p { color: var(--text-dim); font-size: .96rem; }

.feature-media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); aspect-ratio: 4 / 3; display: grid; place-items: center;
}
.feature-media .mark { width: 42%; opacity: .9; filter: drop-shadow(0 20px 50px var(--ignite-glow)); }
.feature-media .glow { position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 40%, var(--ignite-soft), transparent 70%); }

/* ---------- manifesto ---------- */
.manifesto { text-align: center; background: var(--bg-2); border-block: 1px solid var(--line); }
.manifesto .wrap { max-width: 920px; }
.manifesto h2 { margin-bottom: 1.2rem; }
.manifesto p { font-size: clamp(1.05rem, 1.9vw, 1.35rem); color: var(--text-soft); }

/* ---------- value cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card {
  padding: 1.8rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ignite-soft); margin-bottom: 1.1rem; }
.card-ico svg { width: 22px; height: 22px; color: var(--ignite-bright); }
.card h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: .5rem; }
.card p { color: var(--text-dim); font-size: .96rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin-inline: auto; display: grid; gap: .8rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.4rem; text-align: left; font-weight: 700; font-size: 1.05rem; }
.faq-q .chev { flex: none; transition: transform .3s var(--ease); color: var(--ignite-bright); }
.faq-item[open] .faq-q .chev, .faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a { padding: 0 1.4rem; max-height: 0; overflow: hidden; transition: max-height .35s var(--ease), padding .35s var(--ease); color: var(--text-soft); }
.faq-item.open .faq-a { padding: 0 1.4rem 1.3rem; max-height: 320px; }

/* ---------- CTA + form ---------- */
.cta-final { text-align: center; }
.cta-final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 100% at 50% 0%, var(--ignite-soft), transparent 65%);
}
.lead-form { max-width: 540px; margin: 2.2rem auto 0; display: grid; gap: .9rem; text-align: left; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: var(--radius-sm); background: var(--bg-2);
  border: 1px solid var(--line-strong); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ignite-bright); box-shadow: 0 0 0 3px var(--ignite-soft); }
.field textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .92rem; min-height: 1.2em; }
.form-status.ok { color: #4ade80; }
.form-status.err { color: #f87171; }
.form-note { font-size: .8rem; color: var(--text-dim); text-align: center; }
.form-note a { color: var(--ignite-bright); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: 3rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer-logo svg { height: 24px; }
.footer-col h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: .9rem; font-weight: 700; }
.footer-col a { display: block; color: var(--text-soft); font-size: .95rem; margin-bottom: .55rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--text-dim); }

/* ---------- scroll reveal (degrada visible sin JS) ---------- */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.has-js .reveal { opacity: 0; transform: translateY(22px); }
.has-js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .has-js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- legal pages ---------- */
.legal { padding-top: 8rem; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; letter-spacing: -.02em; margin-bottom: .5rem; }
.legal .updated { color: var(--text-dim); font-size: .9rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.4rem; font-weight: 800; margin: 2.2rem 0 .8rem; color: #fff; }
.legal h3 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; }
.legal p, .legal li { color: var(--text-soft); margin-bottom: .9rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; }
.legal li { margin-bottom: .5rem; }
.legal a { color: var(--ignite-bright); }

/* ---------- utilidades (evitan estilos inline · CSP estricta) ---------- */
.tac { text-align: center; }
.eyebrow.is-center { display: flex; justify-content: center; }
.mt-lg { margin-top: clamp(3rem, 6vw, 5rem); }
.mt-xl { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 2.5rem; }
.lead-center { margin: 1rem auto 0; }
.footer-tag { margin-top: 1rem; max-width: 30ch; }
.footer-bottom.bare { border: 0; margin: 0; padding: 0; }
.link-accent { color: var(--ignite-bright); }
.flame-center { margin: 0 auto 2rem; }
.lead-404 { margin: 1.4rem auto 2rem; }
.form-note a, .legal p a, .legal li a { text-decoration: underline; }

/* ---------- segmented control ---------- */
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 999px; margin-bottom: .3rem; }
.seg-btn { position: relative; z-index: 2; padding: .78rem 1rem; border-radius: 999px; font-weight: 600; font-size: .98rem; color: var(--text-dim); transition: color .25s; }
.seg-btn.is-active { color: #fff; }
.seg-thumb { position: absolute; z-index: 1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ignite); box-shadow: 0 8px 20px -8px var(--ignite-glow), inset 0 1px 0 rgba(255,255,255,.18); transition: transform .34s var(--ease); }
.seg[data-aud="b2b"] .seg-thumb { transform: translateX(100%); }

/* ---------- validación inline + reveal progresivo ---------- */
.input-wrap { position: relative; }
.field-ok { position: absolute; right: 12px; top: 50%; transform: translateY(-50%) scale(.5); color: #4ade80; opacity: 0; transition: opacity .2s, transform .25s var(--ease); pointer-events: none; }
.field-ok svg { width: 18px; height: 18px; }
.input-wrap.valid .field-ok { opacity: 1; transform: translateY(-50%) scale(1); }
.input-wrap.valid input { padding-right: 40px; border-color: rgba(74,222,128,.55); }
.more-toggle { justify-self: start; color: var(--ignite-bright); font-size: .9rem; font-weight: 600; padding: .15rem 0; }
.more-toggle:hover { text-decoration: underline; }
.collapse[hidden] { display: none; }
.collapse { animation: field-in .34s var(--ease); }
@keyframes field-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- botón loading / success ---------- */
.btn-spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-label { opacity: .65; }
.btn.is-loading .btn-spin { display: inline-block; }
.btn.is-success, .btn.is-success:hover { background: #16a34a; box-shadow: 0 10px 30px -8px rgba(22,163,74,.5); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- CTA pulso + stagger de tarjetas ---------- */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 10px 30px -8px var(--ignite-glow), 0 0 0 0 rgba(0,68,204,.0), inset 0 1px 0 rgba(255,255,255,.18); }
  50% { box-shadow: 0 12px 38px -6px var(--ignite-glow), 0 0 0 7px rgba(0,68,204,.10), inset 0 1px 0 rgba(255,255,255,.18); }
}
.hero-cta .btn-primary { animation: cta-pulse 4.5s ease-in-out 1.5s infinite; }
.fork-card.reveal:nth-child(2) { transition-delay: .09s; }
.cards .card.reveal:nth-child(2) { transition-delay: .08s; }
.cards .card.reveal:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .hero-cta .btn-primary, .btn-spin, .collapse { animation: none; }
  .seg-thumb, .field-ok { transition: none; }
}

/* ===================== MOCKUPS DE PRODUCTO ===================== */
.feature-media.bare { background: none; border: 0; aspect-ratio: auto; }
.device-wrap { position: relative; display: grid; place-items: center; width: 100%; }
.device-glow { position: absolute; inset: -6% -10%; z-index: 0; border-radius: 50%; filter: blur(20px);
  background: radial-gradient(circle at 55% 42%, rgba(67,182,246,.26), rgba(0,68,204,.16) 44%, transparent 72%);
  animation: halo-breath 4.4s ease-in-out infinite; }

/* --- teléfono --- */
.phone { position: relative; z-index: 1; width: min(72%, 268px); aspect-ratio: 9 / 18.7; border-radius: 36px;
  background: linear-gradient(160deg, #182a44, #0a1628); border: 1px solid var(--line-strong);
  padding: 11px; box-shadow: 0 44px 90px -34px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.07); }
.phone::before { content: ""; position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 84px; height: 20px; background: #0a1628; border-radius: 0 0 13px 13px; z-index: 3; }
.phone-screen { position: relative; height: 100%; border-radius: 26px; overflow: hidden; padding: 24px 14px 14px;
  background: radial-gradient(120% 75% at 50% 0%, #102a43, #0a1628 72%); display: flex; flex-direction: column; gap: 11px; }
.app-head { display: flex; align-items: center; gap: 7px; }
.app-head img { width: 18px; height: 18px; }
.app-h-t { font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.app-h-d { margin-left: auto; font-size: 10px; color: var(--text-dim); }
.screen-label { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--ignite-bright); font-weight: 700; }
.deck { position: relative; flex: 1; }
.dcard { position: absolute; inset: 0 0 auto 0; border-radius: 16px; padding: 15px;
  background: linear-gradient(180deg, rgba(22,38,62,.96), rgba(13,27,42,.96)); border: 1px solid var(--line-strong);
  opacity: 0; animation: deck-cycle 9s var(--ease) infinite; }
.dcard:nth-child(1) { animation-delay: 0s; }
.dcard:nth-child(2) { animation-delay: 3s; }
.dcard:nth-child(3) { animation-delay: 6s; }
.dc-k { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ignite-bright); font-weight: 700; }
.dc-t { font-size: 17px; font-weight: 800; line-height: 1.1; margin: 7px 0 3px; color: var(--text); }
.dc-s { font-size: 11px; color: var(--text-dim); }
.dc-btn { margin-top: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border-radius: 11px; background: var(--ignite); color: #fff; font-size: 11px; font-weight: 700; }
.dc-btn svg { width: 13px; height: 13px; }
.deck-dots { display: flex; gap: 5px; justify-content: center; }
.deck-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
@keyframes deck-cycle {
  0% { opacity: 0; transform: translateY(16px) scale(.97); }
  4%, 30% { opacity: 1; transform: translateY(0) scale(1); }
  39%, 100% { opacity: 0; transform: translateY(-14px) scale(.97); }
}

/* --- panel del operador (B2B) --- */
.panel { position: relative; z-index: 1; width: 100%; border-radius: 18px; padding: 18px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line-strong);
  box-shadow: 0 44px 90px -42px rgba(0,0,0,.7); }
.panel-head { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.panel-head img { width: 20px; height: 20px; }
.panel-head b { font-size: 14px; font-weight: 800; }
.panel-head .muted { font-size: 11px; margin-left: auto; }
.panel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 14px; }
.pstat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; }
.pstat b { font-size: 21px; font-weight: 800; display: block; line-height: 1; }
.pstat span { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.prow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.pav { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; background: var(--ignite-soft); color: var(--ignite-bright); flex: none; }
.pname { font-size: 12px; font-weight: 600; flex: none; width: 64px; }
.pbar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ignite), var(--ignite-bright)); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.reveal.in .pbar i { transform: scaleX(1); }
.pbar.w90 i { width: 90%; } .pbar.w74 i { width: 74%; } .pbar.w58 i { width: 58%; } .pbar.w26 i { width: 26%; }
.pstatus { font-size: 10px; color: var(--ignite-bright); flex: none; width: 58px; text-align: right; font-weight: 600; }
.pstatus.cool { color: var(--text-dim); }
@media (prefers-reduced-motion: reduce) {
  .dcard, .device-glow { animation: none; }
  .dcard:nth-child(1) { opacity: 1; }
  .dcard:nth-child(2), .dcard:nth-child(3) { display: none; }
  .pbar i { transition: none; transform: scaleX(1); }
}
