/* =========================================================
   NEXA Process: estilos
   Paleta: azul marino #0B2F4F · verde #00A86B
   ========================================================= */

:root {
  --navy: #0B2F4F;
  --navy-700: #12406A;
  --navy-900: #061C30;
  --green: #00A86B;
  --green-600: #008F5B;
  --green-300: #3DDC97;
  --ink: #0B2F4F;
  --text: #33475B;
  --muted: #6B7C8F;
  --line: #E3E9EF;
  --bg: #FFFFFF;
  --bg-soft: #F4F7FA;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(11, 47, 79, .25);
  --shadow-lg: 0 40px 80px -30px rgba(11, 47, 79, .45);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }

.text-grad {
  background: linear-gradient(100deg, var(--green) 0%, #1BC488 50%, var(--green) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
.section--dark .text-grad, .cta .text-grad { background-image: linear-gradient(100deg, var(--green-300), #8BF0C4, var(--green-300)); background-size: 200% auto; }
@keyframes shine { to { background-position: 200% center; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 10px 25px -10px rgba(0, 168, 107, .7); }
.btn--primary:hover { background: var(--green-600); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(0, 168, 107, .75); }
.btn--ghost { color: var(--navy); border-color: rgba(11, 47, 79, .18); background: rgba(255, 255, 255, .6); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-size: .85rem; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-300); background: var(--navy); padding: 9px 18px; border-radius: 999px; margin-bottom: 20px;
  box-shadow: 0 10px 24px -12px rgba(11, 47, 79, .6);
}
.eyebrow--light { color: var(--navy); background: var(--green-300); box-shadow: 0 10px 30px -10px rgba(61, 220, 151, .6); }
.eyebrow--lg { font-size: 1rem; padding: 12px 24px; }
.eyebrow .ico { width: 18px; height: 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-300); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s, box-shadow .3s, padding .3s; padding: 18px 0; }
.nav.is-scrolled { background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--line); padding: 10px 0; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { width: 150px; height: auto; aspect-ratio: 785 / 310; color: var(--navy); }
.logo--light { color: #fff; }
.nav__links { display: flex; align-items: center; gap: 28px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy); }
.nav__links a:not(.btn) { position: relative; padding: 4px 0; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav__toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 108px 0 56px; overflow: hidden; background: linear-gradient(180deg, #F7FAFC 0%, #FFFFFF 100%); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: float 18s ease-in-out infinite; }
.blob--1 { width: 520px; height: 520px; background: rgba(0, 168, 107, .35); top: -120px; right: -120px; }
.blob--2 { width: 460px; height: 460px; background: rgba(11, 47, 79, .25); bottom: -160px; left: -140px; animation-delay: -6s; }
.blob--3 { width: 600px; height: 600px; background: rgba(0, 168, 107, .25); top: 10%; right: -200px; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.06); } 66% { transform: translate(-30px, 30px) scale(.95); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(11, 47, 79, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 47, 79, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; }
.hero__title { font-size: clamp(2.2rem, 4vw, 3.3rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 22px; }
.hero__lead { font-size: 1.15rem; max-width: 560px; color: var(--text); }
.hero__lead strong { color: var(--navy); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .92rem; color: var(--muted); }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust .ico { width: 18px; height: 18px; color: var(--green); stroke-width: 2.6; }

.hero__visual { position: relative; padding: 2.4em 0 4.6em; min-width: 0; font-size: clamp(11px, 1.45vh, 15px); }
.hero__copy { min-width: 0; }
.demo { font-size: clamp(11px, 1.45vh, 15px); position: relative; z-index: 2; background: #fff; border-radius: 1.375em; box-shadow: var(--shadow-lg); border: 0.0625em solid var(--line); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transition: transform .6s var(--ease); }
.hero__visual:hover .demo { transform: perspective(1400px) rotateY(0) rotateX(0); }
.demo__bar { display: flex; align-items: center; gap: 0.4375em; padding: 0.875em 1.125em; background: var(--bg-soft); border-bottom: 0.0625em solid var(--line); }
.demo__bar span { width: 0.6875em; height: 0.6875em; border-radius: 50%; background: #D5DEE7; }
.demo__bar span:first-child { background: #FF6B6B; } .demo__bar span:nth-child(2) { background: #FFC94D; } .demo__bar span:nth-child(3) { background: #3DDC97; }
.demo__bar p { margin: 0 0 0 0.75em; font-size: .8em; font-weight: 600; color: var(--muted); }
.demo__body { padding: 1.25em; }
.demo__status { margin-bottom: 0.875em; }
.demo__ai { display: flex; align-items: center; gap: 0.75em; margin-bottom: 0.75em; }
.demo__ai-mark { width: 2.375em; height: 2.375em; padding: 0.4375em; border-radius: 0.6875em; background: rgba(0, 168, 107, .1); color: var(--navy); flex-shrink: 0; }
.demo__ai strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: .95em; }
.demo__ai small { color: var(--muted); font-size: .8em; }
.demo__progress { height: 0.375em; background: var(--bg-soft); border-radius: 0.375em; overflow: hidden; }
.demo__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), #3DDC97); border-radius: 0.375em; transition: width .5s var(--ease); }
.demo__list { list-style: none; padding: 0; margin: 0; }
.demo__list li { position: relative; overflow: hidden; display: flex; align-items: center; gap: 0.75em; padding: 0.625em 0.75em; border-radius: 0.75em; transition: background .4s, opacity .4s, transform .4s var(--ease); }
.demo__list li + li { margin-top: 0.25em; }
.demo__list li > div { flex: 1; min-width: 0; }
.demo__list b { display: block; font-size: .86em; color: var(--navy); }
.demo__list em { display: block; font-style: normal; font-size: .78em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av { width: 2.95em; height: 2.95em; border-radius: .87em; display: grid; place-items: center; font-size: .72em; font-weight: 700; font-family: var(--font-head); background: var(--bg-soft); color: var(--navy); flex-shrink: 0; }
.tag { font-size: .7em; font-weight: 700; font-family: var(--font-head); padding: .36em .8em; border-radius: 62.4375em; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .3s var(--ease); white-space: nowrap; }
.demo__list li.is-scanning { background: rgba(11, 47, 79, .05); }
.demo__list li.is-scanning::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 0.75em; background: linear-gradient(90deg, transparent, rgba(0, 168, 107, .18), transparent); animation: scan .6s linear; }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.demo__list li.is-invoice { background: rgba(0, 168, 107, .08); }
.demo__list li.is-invoice .av { background: var(--green); color: #fff; }
.demo__list li.is-invoice .tag { opacity: 1; transform: scale(1); background: var(--green); color: #fff; }
.demo__list li.is-other { opacity: .45; }
.demo__list li.is-other .tag { opacity: 1; transform: scale(1); background: var(--bg-soft); color: var(--muted); }
.demo__footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75em; margin-top: 1em; padding-top: 1em; border-top: 0.0625em solid var(--line); }
.demo__footer small { display: block; color: var(--muted); font-size: .76em; }
.demo__footer strong { font-family: var(--font-head); color: var(--navy); font-size: 1.05em; }
.demo__footer .btn { font-size: .85em; padding: .6em 1.1em; pointer-events: none; opacity: .4; transition: opacity .4s, transform .4s; }
.demo__footer .btn.is-ready { opacity: 1; animation: pop .5s var(--ease); }
.demo__footer .btn .ico { width: 1em; height: 1em; }
@keyframes pop { 50% { transform: scale(1.08); } }

.float-card { font-size: clamp(11px, 1.45vh, 15px); position: absolute; z-index: 3; display: flex; align-items: center; gap: 0.75em; background: #fff; padding: 0.75em 1em; border-radius: 0.875em; box-shadow: var(--shadow); border: 0.0625em solid var(--line); animation: bob 6s ease-in-out infinite; }
.float-card .ico { width: 2.125em; height: 2.125em; padding: 0.4375em; border-radius: 0.625em; background: rgba(0, 168, 107, .12); color: var(--green); }
.float-card strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: .98em; line-height: 1.2; }
.float-card small { color: var(--muted); font-size: .76em; }
.float-card--a { bottom: 0; left: -1.75em; }
.float-card--b { top: 0; right: -1.5em; animation-delay: -3s; }
.float-card--b .ico { background: rgba(11, 47, 79, .08); color: var(--navy); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(11, 47, 79, .3); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--green); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee-section { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.marquee-title { text-align: center; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 22px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--font-head); font-weight: 700; color: var(--navy); padding: 12px 22px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); white-space: nowrap; font-size: .95rem; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding: 92px 0; overflow: hidden; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: radial-gradient(ellipse at top left, var(--navy-700), var(--navy) 45%, var(--navy-900)); color: rgba(255, 255, 255, .78); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { margin: 0 auto 48px; text-align: center; }
.section__head h2 { font-size: clamp(1.8rem, 3.3vw, 2.7rem); }
.section__head p { max-width: 760px; margin-left: auto; margin-right: auto; }
.section__head p { font-size: 1.1rem; color: var(--muted); }
.section--dark .section__head p { color: rgba(255, 255, 255, .7); }
.section__head--left { text-align: left; margin: 0 0 32px; }
.section__head--left p { margin-left: 0; }

/* Problema: Antes / Con NEXA */
.pains { list-style: none; padding: 0; margin: 0 auto; max-width: 1080px; display: grid; gap: 14px; }
.pain { position: relative; display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: center; gap: 22px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.pain:hover { box-shadow: var(--shadow); border-color: transparent; }
.pain.reveal { transform: translateY(24px); }
.pain.reveal.is-visible { transform: none; }
.pain__num { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: #fff; background: linear-gradient(135deg, var(--navy), var(--navy-700)); box-shadow: 0 12px 24px -12px rgba(11, 47, 79, .7); transition: background .4s, transform .4s var(--ease); }
.pain:hover .pain__num { background: linear-gradient(135deg, var(--green), var(--green-600)); transform: rotate(-6deg); }
.pain__label { display: inline-block; font-family: var(--font-head); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pain h3 { margin: 0 0 4px; font-size: 1.08rem; }
.pain p { color: var(--muted); font-size: .94rem; margin: 0; }
.pain__arrow { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-soft); color: var(--green); transition: background .3s, color .3s, transform .4s var(--ease); }
.pain__arrow .ico { width: 20px; height: 20px; stroke-width: 2.5; }
.pain:hover .pain__arrow { background: var(--green); color: #fff; transform: translateX(4px); }
.pain__after { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 14px 18px; border-radius: 14px; background: linear-gradient(135deg, rgba(0, 168, 107, .1), rgba(0, 168, 107, .04)); border: 1px solid rgba(0, 168, 107, .18); }
.pain__after .pain__label { color: var(--green-600); }
.pain__after p { color: var(--navy); font-weight: 500; }

/* Soluciones: carrusel centrado */
.carousel { --cw: min(400px, 82vw); position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
.carousel__track { position: relative; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 16px calc(50vw - var(--cw) / 2) 32px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 78%, transparent 100%); }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.no-anim .card { transition: none; }
.carousel__count { margin: 4px 0 0; font-family: var(--font-head); font-size: .85rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.carousel__count span:first-child { color: var(--navy); font-weight: 800; }
.card { position: relative; flex: 0 0 var(--cw); scroll-snap-align: center; display: flex; flex-direction: column; background: #fff; border-radius: 22px; border: 1px solid var(--line); overflow: hidden; cursor: pointer; opacity: .35; transform: scale(.9); filter: saturate(.4); transition: transform .5s var(--ease), opacity .5s, filter .5s, box-shadow .4s var(--ease); }
.card.is-active { opacity: 1; transform: none; filter: none; cursor: default; box-shadow: var(--shadow); }
.card.is-active:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__visual { position: relative; height: 170px; display: flex; align-items: center; padding-left: 30px; overflow: hidden; background: radial-gradient(circle at 30% 20%, var(--navy-700), var(--navy) 60%, var(--navy-900)); }
.card__visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 24px 24px; }
.card__visual::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(0, 168, 107, .35); filter: blur(50px); right: -50px; bottom: -70px; transition: transform .6s var(--ease); }
.card.is-active .card__visual::after { transform: translate(-40px, -20px) scale(1.2); }
.card__icon { position: relative; z-index: 1; width: 68px; height: 68px; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(135deg, var(--green), var(--green-600)); color: #fff; box-shadow: 0 16px 30px -10px rgba(0, 168, 107, .7); transition: transform .5s var(--ease); }
.card__icon .ico { width: 32px; height: 32px; }
.card.is-active .card__icon { transform: rotate(-8deg) scale(1.06); }
.chip { position: absolute; z-index: 2; font-family: var(--font-head); font-size: .72rem; font-weight: 700; white-space: nowrap; padding: 7px 11px; border-radius: 10px; background: rgba(255, 255, 255, .95); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); animation: bob 5s ease-in-out infinite; }
.chip--a { top: 36px; right: 20px; }
.chip--b { bottom: 36px; right: 36px; background: var(--green-300); color: var(--navy); animation-delay: -2.5s; }
.card__content { position: relative; padding: 26px 28px 30px; flex: 1; }
.card__num { position: absolute; top: 18px; right: 24px; font-family: var(--font-head); font-weight: 800; font-size: .85rem; color: #C3D0DC; letter-spacing: .05em; }
.card p { color: var(--muted); font-size: .95rem; }
.card ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.card li { position: relative; padding-left: 26px; font-size: .9rem; color: var(--navy); font-weight: 500; }
.card li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: rgba(0, 168, 107, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300A86B' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* Caso práctico */
.case { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.step { display: flex; gap: 20px; padding: 18px 20px; border-radius: var(--radius-sm); transition: background .3s; }
.step:hover { background: rgba(255, 255, 255, .05); }
.step__n { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: var(--navy); background: var(--green-300); }
.step h3 { margin-bottom: 4px; font-size: 1.1rem; }
.step p { margin: 0; font-size: .95rem; color: rgba(255, 255, 255, .68); }
.case__stats { display: grid; gap: 18px; }
.case .eyebrow--lg { margin-bottom: 24px; }
.stat { padding: 28px 30px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(6px); transition: transform .35s var(--ease), border-color .35s; }
.stat:hover { transform: translateX(-6px); border-color: rgba(61, 220, 151, .5); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.05; color: var(--green-300); }
.stat > span { color: rgba(255, 255, 255, .75); }
.disclaimer { font-size: .78rem; color: rgba(255, 255, 255, .45); margin: 4px 0 0; }

/* Método */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.timeline__line { position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: var(--line); }
.timeline__line span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--navy)); transition: width 1.6s var(--ease); }
.phase { position: relative; text-align: center; padding: 0 8px; }
.phase__n { position: relative; z-index: 1; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 24px; border-radius: 50%; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--navy); background: #fff; border: 2px solid var(--line); transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease); }
.phase:hover .phase__n, .phase.is-visible .phase__n { background: var(--navy); color: #fff; border-color: var(--navy); }
.phase:hover .phase__n { transform: scale(1.1); background: var(--green); border-color: var(--green); }
.phase p { color: var(--muted); font-size: .95rem; }
.phase__tag { display: inline-block; font-size: .75rem; font-weight: 700; font-family: var(--font-head); color: var(--green-600); background: rgba(0, 168, 107, .1); padding: 5px 12px; border-radius: 999px; }

/* Por qué */
.why { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.why__intro p { color: var(--muted); font-size: 1.05rem; }
.motto { display: flex; gap: 18px; align-items: flex-start; margin-top: 30px; padding: 24px; border-radius: var(--radius); background: #fff; border-left: 4px solid var(--green); box-shadow: var(--shadow); }
.motto__mark { width: 46px; height: 46px; flex-shrink: 0; color: var(--navy); }
.motto p { margin: 0; font-size: .97rem; }
.motto strong { font-family: var(--font-head); color: var(--navy); font-size: 1.1rem; }
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { padding: 28px 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 16px; background: rgba(0, 168, 107, .12); color: var(--green-600); }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* FAQ */
.faq__list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: rgba(0, 168, 107, .4); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 168, 107, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300A86B' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 22px; margin: 0; color: var(--muted); }

/* Contacto */
.cta__inner { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.cta__copy p { font-size: 1.08rem; color: rgba(255, 255, 255, .72); }
.contact-list { list-style: none; padding: 0; margin: 30px 0 26px; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.contact-list__icon { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: rgba(61, 220, 151, .15); color: var(--green-300); }
.contact-list small { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .55); }
.contact-list strong { color: #fff; font-family: var(--font-head); font-size: .96rem; }
.contact-list span:not(.contact-list__icon) { display: block; color: rgba(255, 255, 255, .7); font-size: .9rem; }
.contact-list { margin-bottom: 0; }
.socials { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(255, 255, 255, .08); color: #fff; transition: background .3s, transform .3s var(--ease); }
.socials a:hover { background: var(--green); transform: translateY(-3px); }
.socials .ico { width: 18px; height: 18px; }
.socials span { font-size: .82rem; color: var(--green-300); margin-left: 6px; }
.form { background: #fff; color: var(--text); border-radius: 24px; padding: 36px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); display: grid; gap: 16px; }
.form h3 { color: var(--navy); font-size: 1.4rem; margin: 0 0 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-family: var(--font-head); font-size: .85rem; font-weight: 600; color: var(--navy); }
.form label em { font-style: normal; font-weight: 500; color: var(--muted); }
.form input, .form textarea { font: inherit; font-family: var(--font-body); font-size: .97rem; font-weight: 400; color: var(--navy); padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-soft); transition: border-color .25s, background .25s, box-shadow .25s; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(0, 168, 107, .12); }
.form .form__check { display: flex; align-items: flex-start; gap: 10px; font-family: var(--font-body); font-weight: 400; font-size: .85rem; color: var(--muted); }
.form__check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); flex-shrink: 0; }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-size: .9rem; min-height: 1.4em; }
.form__status.is-ok { color: var(--green-600); }
.form__status.is-info { color: var(--navy); }
.form__status.is-error { color: #D64545; }

/* Pie */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .6); padding: 72px 0 28px; font-size: .93rem; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__brand .logo { width: 170px; margin-bottom: 18px; }
.footer__brand p { max-width: 380px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { color: #fff; font-size: .95rem; margin-bottom: 8px; }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: var(--green-300); }
.footer__social small { color: var(--green-300); font-size: .8rem; }

/* Página de preguntas frecuentes */
.page-hero { padding-top: 150px; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; }
.faq-cta { text-align: center; padding: 80px 0; }
.faq-cta__inner { position: relative; }
.faq-cta p { color: rgba(255, 255, 255, .72); font-size: 1.08rem; margin-bottom: 26px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 24px; font-size: .84rem; }
.footer__bottom p { margin: 0; }

/* ---------- Animaciones de aparición ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner, .case, .why { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero { padding-top: 130px; }
  .hero__visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .cta__inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 860px) {
  .pain { grid-template-columns: auto 1fr; gap: 14px 16px; }
  .pain__arrow { display: none; }
  .pain__after { grid-column: 1 / -1; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 96px 24px 32px; flex-direction: column; align-items: stretch; gap: 6px;
    background: #fff; box-shadow: var(--shadow-lg); transform: translateY(-110%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; z-index: -1;
  }
  .nav__links.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
  .nav__links a:not(.btn) { padding: 12px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 14px; padding: 14px; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .timeline__line { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .eyebrow { font-size: .7rem; letter-spacing: .1em; }
  .container { padding: 0 16px; }
  .section { padding: 68px 0; }
  .section__head { margin-bottom: 36px; }
  .logo { width: 128px; }
  .hero { padding: 116px 0 90px; min-height: auto; }
  .hero__cta .btn { width: 100%; }
  .why__grid, .timeline, .form__row, .footer__inner { grid-template-columns: 1fr; }
  .carousel { --cw: 72vw; }
  .carousel__track { gap: 12px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); }
  .card__visual { height: 140px; padding-left: 20px; }
  .card__icon { width: 56px; height: 56px; border-radius: 16px; }
  .chip--a { top: 26px; right: 14px; }
  .chip--b { bottom: 26px; right: 22px; }
  .card__content { padding: 22px 20px 24px; }
  .page-hero { padding-top: 120px; }
  .form { padding: 26px 20px; }
  .form .btn { width: 100%; }
  .eyebrow--lg { font-size: .85rem; padding: 10px 18px; }
  .demo { transform: none; }
  .demo__body { padding: 14px; }
  .demo__list li { padding: 8px; }
  .tag { display: none; }
  .demo__list li.is-invoice .tag { display: inline-block; }
  .hero__visual { padding: 40px 0 76px; }
  .float-card--a { left: -6px; }
  .float-card--b { right: -6px; }
  .float-card { padding: 9px 12px; }
  .scroll-hint { display: none; }
  .motto { flex-direction: column; }
  .faq summary { padding: 18px 20px; font-size: .98rem; }
  .faq details p { padding: 0 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
