
/* =========================================================
   [NOMBRE_PRODUCTO] — Landing Lean Six Sigma SaaS
   1) Variables y reset
   ========================================================= */
:root{
  --bg:#0B1220; --bg-elev:#11192B; --bg-elev-2:#18223A; --bg-elev-3:#1E2A45;
  --fg:#E8EDF7; --fg-muted:#9AA7BE; --fg-dim:#6A7895;
  --accent:#B8FF3D; --accent-2:#00E5FF; --warn:#FFB020; --alert:#FF3B3B;
  --border:rgba(232,237,247,.10); --border-strong:rgba(232,237,247,.22);
  --grid:rgba(0,229,255,.07); --grid-strong:rgba(0,229,255,.18);
  --shadow:0 30px 60px -20px rgba(0,0,0,.6);
  --shadow-soft:0 10px 30px -10px rgba(0,0,0,.45);
  --font-display:'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --r-sm:8px; --r-md:14px; --r-lg:22px;
  --maxw:1240px;
  --pad-x:clamp(20px, 5vw, 64px);
  --section-y:clamp(64px, 9vw, 140px);
  --ease:cubic-bezier(.2,.7,.2,1);
}

*,*::before,*::after{box-sizing:border-box}
*{margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  background:var(--bg); color:var(--fg);
  font-family:var(--font-body); font-size:16px; line-height:1.6;
  font-weight:400; overflow-x:hidden;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
ul,ol{list-style:none}
:focus-visible{outline:2px solid var(--accent-2);outline-offset:3px;border-radius:4px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* =========================================================
   2) Tipografía base
   ========================================================= */
h1,h2,h3,h4{font-family:var(--font-display);font-weight:600;line-height:1.08;letter-spacing:-.02em}
h1{font-size:clamp(2.4rem, 6vw, 4.6rem)}
h2{font-size:clamp(1.9rem, 4vw, 3rem)}
h3{font-size:clamp(1.25rem, 2vw, 1.55rem)}
p{color:var(--fg-muted)}
.mono{font-family:var(--font-mono);font-variant-numeric:tabular-nums}
.eyebrow{
  font-family:var(--font-mono); font-size:.78rem; letter-spacing:.18em;
  text-transform:uppercase; color:var(--accent-2);
  display:inline-flex; align-items:center; gap:.6em;
}
.eyebrow::before{content:"";width:24px;height:1px;background:var(--accent-2);display:inline-block}
.container{max-width:var(--maxw);margin:0 auto;padding:0 var(--pad-x)}
.section{padding:var(--section-y) 0;position:relative}

/* =========================================================
   3) Botones y utilidades
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.55em;
  padding:.95em 1.5em; border-radius:var(--r-sm);
  font-family:var(--font-display); font-weight:500; font-size:1rem;
  letter-spacing:.01em; border:1px solid transparent;
  transition:transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  will-change:transform; text-align:center;
}
.btn-primary{background:var(--accent);color:#0B1220;box-shadow:0 8px 30px -8px rgba(184,255,61,.5)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 14px 36px -10px rgba(184,255,61,.65)}
.btn-ghost{background:transparent;color:var(--fg);border-color:var(--border-strong)}
.btn-ghost:hover{background:var(--bg-elev-2);border-color:var(--accent-2);color:var(--accent-2)}
[data-magnetic]{transition:transform .15s var(--ease)}
.tag{
  display:inline-flex; align-items:center; gap:.45em;
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.1em;
  padding:.32em .7em; border:1px solid var(--border); border-radius:999px;
  color:var(--fg-muted); background:var(--bg-elev);
}
.tag.warn{color:var(--warn);border-color:rgba(255,176,32,.4)}
.tag.alert{color:var(--alert);border-color:rgba(255,59,59,.4)}
.tag.ok{color:var(--accent);border-color:rgba(184,255,61,.4)}

/* =========================================================
   4) Header fijo
   ========================================================= */
.header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding-top:env(safe-area-inset-top);
  transition:background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom:1px solid transparent;
}
.header.is-scrolled{
  background:rgba(11,18,32,.72); backdrop-filter:saturate(140%) blur(14px);
  border-bottom-color:var(--border);
}

.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  max-width:var(--maxw); margin:0 auto; padding:.9rem var(--pad-x);
}
.logo{display:flex;align-items:center;gap:.6rem;font-family:var(--font-display);font-weight:600;font-size:1.05rem;letter-spacing:-.01em}
.logo__mark{width:32px;height:32px;color:var(--accent)}
.nav{display:flex;align-items:center;gap:1.6rem}
.nav__links{display:flex;align-items:center;gap:1.4rem}
.nav__links a{font-size:.92rem;color:var(--fg-muted);transition:color .2s}
.nav__links a:hover{color:var(--fg)}
.nav__cta{display:flex;gap:.6rem;align-items:center}
.burger{display:none;width:42px;height:42px;border-radius:8px;border:1px solid var(--border);align-items:center;justify-content:center}
.burger span{display:block;width:18px;height:2px;background:var(--fg);position:relative}
.burger span::before,.burger span::after{content:"";position:absolute;left:0;width:18px;height:2px;background:var(--fg);transition:transform .25s var(--ease)}
.burger span::before{top:-6px}.burger span::after{top:6px}
.burger.is-open span{background:transparent}
.burger.is-open span::before{top:0;transform:rotate(45deg)}
.burger.is-open span::after{top:0;transform:rotate(-45deg)}
.mobile-menu{
  position:fixed; inset:0; top:0; left:0; right:0; bottom:0;
  background:rgba(11,18,32,.96); backdrop-filter:blur(14px);
  z-index:90; padding:calc(env(safe-area-inset-top) + 80px) var(--pad-x) 2rem;
  display:none; flex-direction:column; gap:.4rem;
}
.mobile-menu.is-open{display:flex}
.mobile-menu a{padding:.9rem 0; font-family:var(--font-display); font-size:1.2rem; border-bottom:1px solid var(--border)}
.mobile-menu a:hover{color:var(--accent-2)}
.mobile-menu .btn{margin-top:1rem}
@media (max-width:880px){
  .nav__links{display:none}
  .burger{display:flex}
  .nav__cta .btn-ghost,.nav__cta .btn-primary{display:none}
}

/* =========================================================
   5) HERO — parallax multicapa
   ========================================================= */
.hero{
  position:relative; min-height:100svh; min-height:100vh;
  display:flex; align-items:center; overflow:hidden;
  padding-top:calc(env(safe-area-inset-top) + 80px);
}
.hero__bg{
  position:absolute; inset:-20% -10%; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 80%);
  -webkit-mask-image:radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 80%);
}
.hero__bellcurve{
  position:absolute; left:50%; top:68%; z-index:1; width:120%; height:70%;
  transform:translate(-50%,-50%); opacity:.38; color:var(--accent-2); pointer-events:none;
  will-change:transform;
}
.hero__controllines{
  position:absolute; left:0; right:0; top:72%; z-index:2; pointer-events:none; will-change:transform;
}
.hero__controllines svg{width:100%;height:auto;opacity:.22}
.hero__dots{
  position:absolute; left:0; right:0; top:55%; bottom:0; z-index:3; pointer-events:none; will-change:transform;
}
.hero__dot{
  position:absolute; width:8px; height:8px; border-radius:50%;
  background:var(--accent); box-shadow:0 0 12px rgba(184,255,61,.55);
}
.hero__dot.dim{background:var(--accent-2);box-shadow:0 0 10px rgba(0,229,255,.4)}
.hero__dot.warn{background:var(--warn);box-shadow:0 0 12px rgba(255,176,32,.55)}
.hero__inner{
  position:relative; z-index:5; max-width:var(--maxw); margin:0 auto;
  padding:0 var(--pad-x); width:100%;
}
.hero__title{max-width:18ch; font-size:clamp(2.4rem, 6vw, 4.8rem)}
.hero__title .hl{color:var(--accent); position:relative}
.hero__sub{
  margin-top:1.4rem; max-width:60ch; font-size:clamp(1rem, 1.6vw, 1.18rem);
  color:var(--fg-muted); line-height:1.55;
}
.hero__cta{margin-top:2rem; display:flex; gap:.8rem; flex-wrap:wrap}
.hero__meta{
  margin-top:2.4rem; display:flex; gap:1.6rem; flex-wrap:wrap;
  font-family:var(--font-mono); font-size:.78rem; color:var(--fg-dim); letter-spacing:.04em;
}
.hero__meta span{display:inline-flex;align-items:center;gap:.5em}
.hero__meta .dot-ok{width:8px;height:8px;border-radius:50%;background:var(--accent);display:inline-block}
.scroll-ind{
  position:absolute; bottom:24px; left:50%; transform:translateX(-50%); z-index:6;
  display:flex; flex-direction:column; align-items:center; gap:.6rem;
  color:var(--fg-dim); font-family:var(--font-mono); font-size:.7rem; letter-spacing:.18em;
}
.scroll-ind__line{width:1px;height:48px;background:linear-gradient(var(--accent-2),transparent);position:relative;overflow:hidden}
.scroll-ind__line::after{content:"";position:absolute;top:-50%;left:0;width:100%;height:50%;background:var(--accent);animation:scrollPulse 2.2s var(--ease) infinite}
@keyframes scrollPulse{0%{transform:translateY(-100%)}60%,100%{transform:translateY(220%)}}

/* Divisores SVG entre secciones */
.divider{position:relative;height:0;z-index:1}
.divider svg{position:absolute;bottom:-1px;left:0;width:100%;height:80px;display:block;color:var(--bg-elev)}
.divider.flip svg{transform:scaleY(-1);bottom:auto;top:-1px}
.divider.tilt svg{color:var(--bg-elev)}
.wave-divider{height:80px}

/* =========================================================
   6) Sección "El problema"
   ========================================================= */
.problem{position:relative; background:var(--bg-elev); overflow:hidden}
.problem__noise{
  position:absolute; inset:0; z-index:0; opacity:.35; pointer-events:none;
  background-image:
    repeating-linear-gradient(0deg, var(--grid-strong) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, var(--grid-strong) 0 1px, transparent 1px 22px);
  will-change:transform; mask-image:radial-gradient(ellipse 80% 70% at 50% 40%, #000 0%, transparent 85%);
}
.problem__inner{position:relative;z-index:2}
.problem__grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:1rem; margin-top:2.4rem;
}
.pain-card{
  padding:1.4rem; border:1px solid var(--border); border-radius:var(--r-md);
  background:var(--bg-elev-2); position:relative; overflow:hidden;
  transition:transform .3s var(--ease), border-color .3s var(--ease);
}
.pain-card:hover{transform:translateY(-4px);border-color:var(--alert)}
.pain-card__icon{width:32px;height:32px;color:var(--alert);margin-bottom:.8rem}
.pain-card h3{font-size:1.05rem;margin-bottom:.4rem}
.pain-card p{font-size:.92rem;color:var(--fg-muted)}
.problem__dpmo{
  margin-top:2.6rem; padding:1.6rem; border:1px solid var(--border);
  border-left:3px solid var(--warn); border-radius:var(--r-md);
  background:linear-gradient(90deg, rgba(255,176,32,.08), transparent 60%);
  display:flex; gap:1.4rem; align-items:center; flex-wrap:wrap;
}
.problem__dpmo .num{font-family:var(--font-mono); font-size:clamp(1.8rem,4vw,2.6rem); color:var(--warn); font-weight:700}
.problem__dpmo .lbl{font-size:.92rem;color:var(--fg-muted);max-width:42ch}

/* =========================================================
   7) Módulos — tarjetas con parallax escalonado
   ========================================================= */
.modules{position:relative}
.modules__head{max-width:60ch}
.modules__grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:1.2rem; margin-top:2.4rem;
}
.module{
  position:relative; padding:1.6rem; border:1px solid var(--border); border-radius:var(--r-lg);
  background:linear-gradient(180deg, var(--bg-elev), var(--bg-elev-2));
  overflow:hidden; transition:transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  will-change:transform;
}
.module:hover{transform:translateY(-6px);border-color:var(--accent-2);box-shadow:var(--shadow-soft)}
.module__num{
  position:absolute; top:.6rem; right:1rem; font-family:var(--font-mono); font-size:3.4rem;
  color:var(--bg-elev-3); line-height:1; font-weight:700; pointer-events:none;
}
.module__icon{width:42px;height:42px;color:var(--accent);margin-bottom:1rem}
.module h3{font-size:1.2rem;margin-bottom:.6rem;padding-right:3rem}
.module__purp{font-size:.95rem;color:var(--fg);margin-bottom:.8rem}
.module__ben{font-size:.85rem;color:var(--fg-muted);padding-top:.8rem;border-top:1px solid var(--border)}
.module__ben strong{color:var(--accent);font-family:var(--font-mono)}
.module__tags{margin-top:.7rem;display:flex;gap:.4rem;flex-wrap:wrap}

/* =========================================================
   8) Ruta DMAIC/DMADV — scroll horizontal pinned
   ========================================================= */
.dmaic{position:relative; background:var(--bg-elev); height:340vh}
.dmaic__sticky{position:sticky; top:0; height:100vh; overflow:hidden; display:flex; flex-direction:column; justify-content:center; align-items:stretch}
.dmaic__head{position:relative;z-index:3; padding:0 var(--pad-x); margin-bottom:1.5rem; flex:0 0 auto}
.dmaic__track-wrap{position:relative; z-index:2; padding:0 var(--pad-x); flex:0 0 auto; overflow:hidden; height:220px}
.dmaic__track{
  display:flex; gap:1.4rem; will-change:transform;
  width:max-content; align-items:flex-start; height:220px;
}
.dmaic__lane-label{font-family:var(--font-mono); font-size:.78rem; letter-spacing:.14em; color:var(--accent-2); margin-bottom:.6rem}
.phase{
  flex:0 0 240px; padding:1.2rem; border:1px solid var(--border); border-radius:var(--r-md);
  background:var(--bg-elev-2); position:relative; min-height:160px;
}
.phase.dmaic{border-top:3px solid var(--accent)}
.phase.dmadv{border-top:3px solid var(--accent-2)}
.phase__letter{font-family:var(--font-display); font-size:2.4rem; font-weight:700; line-height:1; color:var(--accent)}
.phase.dmadv .phase__letter{color:var(--accent-2)}
.phase__name{font-family:var(--font-display); font-size:1.05rem; margin-top:.3rem}
.phase__desc{font-size:.85rem; color:var(--fg-muted); margin-top:.4rem}
.tollgate{
  flex:0 0 220px; padding:1rem 1.2rem; border:1px dashed var(--border-strong);
  border-radius:var(--r-md); background:rgba(255,176,32,.04); position:relative; min-height:160px;
}
.tollgate__icon{width:28px;height:28px;color:var(--warn);margin-bottom:.5rem}
.tollgate h4{font-family:var(--font-display); font-size:.95rem; color:var(--warn); margin-bottom:.4rem}
.tollgate ul{font-size:.78rem; color:var(--fg-muted); display:flex; flex-direction:column; gap:.3rem}
.tollgate li{padding-left:1rem; position:relative}
.tollgate li::before{content:"✓";position:absolute;left:0;color:var(--accent);font-family:var(--font-mono)}
@media (max-width:768px){
  .dmaic{height:auto}
  .dmaic__sticky{position:relative; top:auto; height:auto; padding:var(--section-y) 0}
  .dmaic__track-wrap{overflow-x:auto; scrollbar-width:thin}
  .dmaic__track{transform:none !important}
}

/* =========================================================
   9) Demo visual interactiva — mockups con parallax
   ========================================================= */
.demo{position:relative; overflow:hidden}
.demo__grid{
  display:grid; grid-template-columns: auto 1.5fr; gap:2rem; align-items:start; margin-top:1.6rem;
}
@media (max-width:880px){.demo__grid{grid-template-columns:1fr; gap:1.6rem; justify-items:center}}

/* Mockup móvil */
.phone{
  position:relative; width:320px; flex-shrink:0;
  border-radius:32px; border:2px solid var(--border-strong);
  background:var(--bg-elev-2); padding:1.4rem 1rem 1.2rem;
  box-shadow:var(--shadow);
  will-change:transform;
}
.phone__notch{position:absolute;top:8px;left:50%;transform:translateX(-50%);width:80px;height:18px;background:var(--bg);border-radius:0 0 14px 14px}
.phone__screen{padding-top:1.4rem}
.phone__badge{
  display:inline-flex; align-items:center; gap:.4em; font-family:var(--font-mono); font-size:.68rem;
  color:var(--warn); border:1px solid rgba(255,176,32,.4); border-radius:999px; padding:.3em .6em;
  background:rgba(255,176,32,.08); margin-bottom:.8rem;
}
.phone__badge .pulse{width:6px;height:6px;border-radius:50%;background:var(--warn);animation:pulse 1.4s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}
.phone__title{font-family:var(--font-display);font-size:1.05rem;margin-bottom:.6rem}
.phone__field{margin-bottom:.6rem}
.phone__field label{display:block;font-size:.72rem;color:var(--fg-dim);margin-bottom:.2rem;font-family:var(--font-mono)}
.phone__field .input{
  display:block; width:100%; min-height:48px; padding:.6rem .7rem; border-radius:8px;
  background:var(--bg-elev-3); border:1px solid var(--border); font-size:.85rem; color:var(--fg-muted);
}
.phone__actions{display:flex;gap:.4rem;margin-top:.8rem}
.phone__actions .btn{flex:1;font-size:.78rem;padding:.6rem}
.phone__likert{display:flex;gap:.2rem;justify-content:space-between;margin-top:.4rem}
.phone__likert .star{flex:1;text-align:center;padding:.5rem 0;border-radius:6px;background:var(--bg-elev-3);font-size:.78rem;color:var(--fg-muted)}
.phone__likert .star.active{background:var(--accent);color:#0B1220;font-weight:600}

/* Mockup dashboard */
.dash{
  position:relative; border:1px solid var(--border); border-radius:var(--r-lg);
  background:linear-gradient(180deg, var(--bg-elev), var(--bg-elev-2));
  padding:1.4rem 1.4rem 1.2rem; box-shadow:var(--shadow);
  will-change:transform; display:flex; flex-direction:column;
}
.dash__top{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}
.dash__title{font-family:var(--font-display);font-size:1.05rem}
.dash__live{display:inline-flex;align-items:center;gap:.4em;font-family:var(--font-mono);font-size:.72rem;color:var(--accent)}
.dash__live .pulse{width:7px;height:7px;border-radius:50%;background:var(--accent);animation:pulse 1.4s infinite}
.dash__chart{position:relative;border:1px solid var(--border);border-radius:var(--r-md);background:var(--bg);padding:1rem}
.dash__chart svg{width:100%;height:auto}
.dash__legend{display:flex;gap:1.2rem;margin-top:.8rem;flex-wrap:wrap;font-family:var(--font-mono);font-size:.72rem;color:var(--fg-dim)}
.dash__legend .lg{display:inline-flex;align-items:center;gap:.4em}
.dash__legend .lg .sw{width:10px;height:2px;display:inline-block}
.dash__alert{
  position:absolute; top:14%; right:8%; opacity:0; transform:translateY(-10px) scale(.96);
  transition:opacity .5s var(--ease), transform .5s var(--ease);
  background:rgba(255,176,32,.12); border:1px solid var(--warn); color:var(--warn);
  padding:.55rem .85rem; border-radius:8px; font-family:var(--font-mono); font-size:.75rem;
  backdrop-filter:blur(8px);
}
.dash__alert .blink{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--warn);margin-right:.4em;animation:pulse 1s infinite}
.is-alerted .dash__alert{opacity:1;transform:translateY(0) scale(1)}
.dash__alert-card{
  margin-top:.9rem; padding:.8rem 1rem; border:1px solid var(--alert);
  background:rgba(255,59,59,.08); border-radius:var(--r-md); color:var(--fg);
  display:flex; gap:.7rem; align-items:center; opacity:0; transform:translateY(8px);
  transition:opacity .5s var(--ease) .25s, transform .5s var(--ease) .25s;
}
.is-alerted .dash__alert-card{opacity:1;transform:translateY(0)}
.dash__alert-card .ic{width:24px;height:24px;color:var(--alert);flex-shrink:0}
.dash__alert-card strong{color:var(--alert);display:block;font-size:.9rem}
.dash__alert-card span{font-size:.78rem;color:var(--fg-muted)}
.demo__note{margin-top:1.2rem;font-family:var(--font-mono);font-size:.72rem;color:var(--fg-dim);letter-spacing:.04em}

/* =========================================================
   10) Cifras clave — count-up + escalera sigma
   ========================================================= */
.cifras{position:relative; background:var(--bg-elev)}
.cifras__grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(200px,1fr)); gap:1rem; margin-top:1.6rem;
}
.cifra{
  padding:1.4rem; border:1px solid var(--border); border-radius:var(--r-md); background:var(--bg-elev-2);
  position:relative; overflow:hidden;
}
.cifra__num{font-family:var(--font-mono); font-size:clamp(2.4rem, 5vw, 3.6rem); font-weight:700; line-height:1; color:var(--accent); letter-spacing:-.02em}
.cifra__num.warn{color:var(--warn)}
.cifra__num.cyan{color:var(--accent-2)}
.cifra__lbl{font-size:.88rem;color:var(--fg-muted);margin-top:.5rem}
.cifra__sub{font-family:var(--font-mono); font-size:.7rem; color:var(--fg-dim); margin-top:.3rem; letter-spacing:.05em}

/* Escalera sigma */
.sigma{margin-top:2rem}
.sigma__title{font-family:var(--font-mono);font-size:.82rem;color:var(--fg-dim);letter-spacing:.12em;text-transform:uppercase;margin-bottom:1rem}
.sigma__ladder{display:grid;grid-template-columns:repeat(6,1fr);gap:.5rem}
@media (max-width:780px){.sigma__ladder{grid-template-columns:repeat(3,1fr)}}
.sigma__step{
  padding:.9rem; border:1px solid var(--border); border-radius:var(--r-sm);
  background:var(--bg-elev-2); position:relative; overflow:hidden;
  opacity:.5; transition:opacity .6s var(--ease), border-color .6s var(--ease);
}
.sigma__step.is-filled{opacity:1}
.sigma__step.is-filled::before{
  content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(184,255,61,.12), transparent 70%);
}
.sigma__level{font-family:var(--font-display);font-size:1.4rem;font-weight:700;color:var(--accent)}
.sigma__dpmo{font-family:var(--font-mono);font-size:.85rem;color:var(--fg);margin-top:.3rem}
.sigma__yield{font-family:var(--font-mono);font-size:.7rem;color:var(--fg-dim);margin-top:.2rem}
.sigma__step.is-filled .sigma__level{color:var(--accent)}

/* =========================================================
   11) Roles (RBAC) — pirámide animada
   ========================================================= */
.roles{position:relative}
.roles__grid{display:grid;grid-template-columns:1fr 1fr;gap:2.4rem;align-items:center;margin-top:1.6rem}
@media (max-width:880px){.roles__grid{grid-template-columns:1fr;gap:1.6rem}}
.pyramid{position:relative;aspect-ratio:1.4/1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:.3rem}
.pyr-row{display:flex;align-items:flex-end;justify-content:center;color:var(--bg);font-family:var(--font-display);font-weight:600;font-size:.82rem;position:relative;opacity:0;transform:translateY(20px);transition:opacity .6s var(--ease), transform .6s var(--ease);padding-bottom:.5rem;letter-spacing:.01em}
.pyr-row.is-visible{opacity:1;transform:translateY(0)}
.pyr-row span{position:relative;z-index:2;padding:0 .6rem;text-align:center;line-height:1.1}
.pyr-row.r1{width:34%;height:22%;background:var(--accent);clip-path:polygon(50% 0, 100% 100%, 0 100%);padding-top:1.4rem;transition-delay:.05s}
.pyr-row.r1 span{color:#0B1220;font-size:.72rem}
.pyr-row.r2{width:52%;height:22%;background:#86D900;clip-path:polygon(0 0, 100% 0, 86% 100%, 14% 100%);transition-delay:.15s}
.pyr-row.r2 span{color:#0B1220}
.pyr-row.r3{width:70%;height:22%;background:#4FA800;clip-path:polygon(0 0, 100% 0, 90% 100%, 10% 100%);transition-delay:.25s}
.pyr-row.r3 span{color:#fff}
.pyr-row.r4{width:86%;height:22%;background:#2C7A00;clip-path:polygon(0 0, 100% 0, 93% 100%, 7% 100%);transition-delay:.35s}
.pyr-row.r4 span{color:#fff}
.pyr-row.r5{width:100%;height:22%;background:#0E3500;clip-path:polygon(0 0, 100% 0, 100% 100%, 0 100%);transition-delay:.45s}
.pyr-row.r5 span{color:var(--accent)}
.roles__list li{padding:1rem 0;border-bottom:1px solid var(--border);display:grid;grid-template-columns:120px 1fr;gap:1rem;align-items:start}
.roles__list .role-name{font-family:var(--font-mono);font-size:.82rem;color:var(--accent);letter-spacing:.06em;font-weight:600}
.roles__list .role-desc{font-size:.9rem;color:var(--fg-muted)}

/* =========================================================
   12) Seguridad y gobernanza
   ========================================================= */
.security{position:relative; background:var(--bg-elev)}
.security__lead{max-width:60ch;margin-top:1rem;color:var(--fg-muted);font-size:1.02rem}
.security__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-top:1.6rem}
@media (max-width:980px){.security__grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.security__grid{grid-template-columns:1fr}}
.sec-card{padding:1.4rem;border:1px solid var(--border);border-radius:var(--r-md);background:var(--bg-elev-2);will-change:transform;display:flex;flex-direction:column;gap:.4rem;min-height:200px}
.sec-card__icon{width:34px;height:34px;color:var(--accent-2);margin-bottom:.4rem}
.sec-card h3{font-size:1.05rem;margin-bottom:.2rem}
.sec-card p{font-size:.88rem;color:var(--fg-muted);flex:1}
.sec-card code{font-family:var(--font-mono);font-size:.78rem;color:var(--accent);background:var(--bg);padding:.1em .35em;border-radius:4px}
.sec-card__meta{margin-top:.6rem;padding-top:.6rem;border-top:1px solid var(--border);font-family:var(--font-mono);font-size:.7rem;color:var(--fg-dim);letter-spacing:.06em}

/* =========================================================
   13) Adopción sin fricción
   ========================================================= */
.adoption{position:relative}
.adoption__lead{max-width:60ch;margin-top:1rem;color:var(--fg-muted);font-size:1.02rem}
.adoption__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-top:1.6rem}
@media (max-width:980px){.adoption__grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.adoption__grid{grid-template-columns:1fr}}
.adopt-card{padding:1.4rem;border:1px solid var(--border);border-radius:var(--r-md);background:var(--bg-elev-2);position:relative;display:flex;flex-direction:column;gap:.4rem;min-height:200px}
.adopt-card .step{font-family:var(--font-mono);font-size:.78rem;color:var(--accent-2);letter-spacing:.12em;margin-bottom:.2rem}
.adopt-card h3{font-size:1.1rem;margin-bottom:.2rem}
.adopt-card p{font-size:.88rem;color:var(--fg-muted);flex:1}
.adopt-card__meta{margin-top:.6rem;padding-top:.6rem;border-top:1px solid var(--border);font-family:var(--font-mono);font-size:.7rem;color:var(--accent);letter-spacing:.06em}

/* =========================================================
   14) FAQ — acordeón accesible
   ========================================================= */
.faq{position:relative; background:var(--bg-elev)}
.faq__list{margin-top:2.4rem;max-width:820px}
.faq__item{border:1px solid var(--border);border-radius:var(--r-md);background:var(--bg-elev-2);margin-bottom:.6rem;overflow:hidden}
.faq__trigger{
  width:100%; display:flex; justify-content:space-between; align-items:center; gap:1rem;
  padding:1.1rem 1.2rem; text-align:left; font-family:var(--font-display); font-size:1rem; font-weight:500;
}
.faq__trigger .ic{flex-shrink:0;width:18px;height:18px;color:var(--accent);transition:transform .3s var(--ease)}
.faq__item.is-open .ic{transform:rotate(45deg)}
.faq__panel{max-height:0;overflow:hidden;transition:max-height .35s var(--ease)}
.faq__panel-inner{padding:0 1.2rem 1.2rem;color:var(--fg-muted);font-size:.92rem;line-height:1.6}
.faq__item.is-open .faq__panel{max-height:340px}

/* =========================================================
   15) CTA final
   ========================================================= */
.cta-final{position:relative; overflow:hidden; min-height:90vh; display:flex;align-items:center;padding-top:120px}
.cta-final__bg{position:absolute;inset:0;z-index:0;opacity:.4;background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);background-size:80px 80px;will-change:transform}
.cta-final__curve{position:absolute;left:50%;bottom:0;width:140%;transform:translateX(-50%);opacity:.3;color:var(--accent);z-index:1;will-change:transform}
.cta-final__inner{position:relative;z-index:3;width:100%;max-width:var(--maxw);margin:0 auto;padding:0 var(--pad-x);display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center}
@media (max-width:880px){.cta-final__inner{grid-template-columns:1fr;gap:2rem}}
.cta-final__title{font-size:clamp(2rem,4.5vw,3.2rem);max-width:18ch}
.cta-final__sub{margin-top:1rem;color:var(--fg-muted);font-size:1.05rem;max-width:36ch}
.form-card{padding:1.6rem;border:1px solid var(--border-strong);border-radius:var(--r-lg);background:var(--bg-elev);box-shadow:var(--shadow)}
.form-row{margin-bottom:.9rem}
.form-row label{display:block;font-family:var(--font-mono);font-size:.74rem;color:var(--fg-dim);margin-bottom:.3rem;letter-spacing:.06em}
.form-row input,.form-row textarea,.form-row select{
  width:100%; padding:.8rem .9rem; border-radius:8px; background:var(--bg); color:var(--fg);
  border:1px solid var(--border); font-family:var(--font-body); font-size:.95rem; transition:border-color .2s;
}
.form-row input:focus,.form-row textarea:focus,.form-row select:focus{outline:none;border-color:var(--accent-2)}
.form-row textarea{min-height:80px;resize:vertical}
.form-card .btn{width:100%;margin-top:.4rem}
.form-success{display:none;flex-direction:column;align-items:center;gap:.8rem;text-align:center;padding:2rem 0}
.form-success.is-shown{display:flex}
.form-success .ic{width:48px;height:48px;color:var(--accent)}
.form-success h3{color:var(--accent)}
.form-success p{font-size:.92rem}
[data-cta-fields].is-hidden,[data-cta-success].is-hidden{display:none}

/* =========================================================
   16) Footer
   ========================================================= */
.footer{background:var(--bg-elev);padding:3rem 0 2rem;border-top:1px solid var(--border)}
.footer__grid{display:grid;grid-template-columns:1.4fr repeat(2,1fr);gap:2rem}
@media (max-width:680px){.footer__grid{grid-template-columns:1fr}}
.footer__brand .logo{margin-bottom:.8rem}
.footer__brand p{font-size:.85rem;color:var(--fg-muted);max-width:36ch}
.footer h4{font-family:var(--font-mono);font-size:.74rem;letter-spacing:.12em;text-transform:uppercase;color:var(--fg-dim);margin-bottom:.8rem}
.footer ul li{margin-bottom:.5rem}
.footer ul a{font-size:.88rem;color:var(--fg-muted);transition:color .2s}
.footer ul a:hover{color:var(--accent-2)}
.footer__bottom{margin-top:2.4rem;padding-top:1.4rem;border-top:1px solid var(--border);display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-family:var(--font-mono);font-size:.74rem;color:var(--fg-dim)}

/* =========================================================
   17) Reveal animations
   Por defecto (no-js) el contenido es visible.
   Con JS, .js activa el estado oculto hasta que .is-visible lo revela.
   ========================================================= */
[data-reveal]{opacity:1;transform:none;transition:opacity .7s var(--ease), transform .7s var(--ease)}
.js [data-reveal]{opacity:0;transform:translateY(28px);will-change:transform,opacity}
.js [data-reveal].is-visible{opacity:1;transform:translateY(0)}
.js [data-reveal][data-reveal-delay="1"]{transition-delay:.08s}
.js [data-reveal][data-reveal-delay="2"]{transition-delay:.16s}
.js [data-reveal][data-reveal-delay="3"]{transition-delay:.24s}
.js [data-reveal][data-reveal-delay="4"]{transition-delay:.32s}

/* =========================================================
   18) Accesibilidad: reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important}
  .js [data-reveal]{opacity:1;transform:none}
  [data-px]{transform:none !important}
  .scroll-ind__line::after{animation:none;opacity:0}
  .hero__dot{box-shadow:none}
}

@media (max-width:768px){
  .hero{min-height:100svh}
  .hero__bellcurve{opacity:.35}
  .module__num{font-size:2.4rem}
  .nav__cta .btn-primary{padding:.7em 1em;font-size:.85rem}
}

.access-card{display:flex;flex-direction:column;gap:1rem}.access-card h3{margin:0}.access-card p{margin:0}.access-card .btn{width:100%;margin-top:.4rem}.access-link{color:var(--accent-2);text-align:center;font-size:.88rem}.footer a[href="/app"]{cursor:pointer}
