/* =========================================================
   NORVENTIS · Agentes de IA
   Paleta: azules marinos, azules medios, azules claros, blancos
   ========================================================= */
:root {
  --navy-950: #020a1f;
  --navy-900: #041233;
  --navy-850: #061a45;
  --navy-800: #0a2358;
  --blue-700: #0e3a8f;
  --blue-600: #1d5bd8;
  --blue-500: #2f7bf5;
  --sky-400: #5fb2ff;
  --sky-300: #8ccbff;
  --sky-200: #bfe2ff;
  --sky-100: #e3f2ff;
  --ice: #f3f8ff;
  --white: #ffffff;
  --ink: #06122b;
  --muted: #52627e;
  --line-light: rgba(6, 18, 43, 0.12);
  --line-dark: rgba(191, 226, 255, 0.14);

  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--white);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.container { width: min(1240px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- progreso ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 100; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue-500), var(--sky-300)); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0;
  background: var(--blue-600); color: var(--white);
  font-weight: 700; font-size: 15px; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(47, 123, 245, 0.7);
  transition: transform .35s var(--ease), background .3s, box-shadow .3s;
}
.btn span { transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); background: var(--blue-700); box-shadow: 0 16px 40px -12px rgba(47, 123, 245, 0.85); }
.btn:hover span { transform: translateX(4px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--sky-300); outline-offset: 3px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.35); box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.08); box-shadow: none; }
.btn-light { background: var(--white); color: var(--navy-900); box-shadow: 0 12px 30px -12px rgba(140, 203, 255, .6); }
.btn-light:hover { background: var(--sky-100); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- tipografía ---------- */
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--sky-300); }
.eyebrow .line { width: 28px; height: 1px; background: currentColor; }
.eyebrow.center { justify-content: center; }
.eyebrow.ink { color: var(--blue-600); }
.h2 { margin: 0 0 22px; font-size: clamp(36px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.h2 em { color: var(--sky-400); font-size: 1.06em; }
.light .h2 em, .services .h2 em { color: var(--blue-600); }
.muted { color: var(--muted); font-size: 18px; margin: 0; }
.muted-light { color: rgba(227, 242, 255, .72); font-size: 18px; max-width: 46ch; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 14px var(--gutter) auto; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 12px 10px 18px; border-radius: 999px;
  transition: background .4s, backdrop-filter .4s, box-shadow .4s, transform .5s var(--ease);
}
.nav.scrolled { background: rgba(4, 18, 51, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 10px 40px -20px rgba(0,0,0,.6), inset 0 0 0 1px var(--line-dark); }
.nav.hide { transform: translateY(-130%); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: .18em; font-size: 14px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.78); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--sky-300); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(4,18,51,.6); position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; transition: transform .3s; }
.nav-toggle span:first-child { top: 17px; } .nav-toggle span:last-child { top: 25px; }
.nav.open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 0; isolation: isolate; }
.hero-mosaic { position: absolute; inset: -20% -10% -20% 28%; z-index: -3; perspective: 1400px; }
.mosaic-track { display: flex; gap: 18px; height: 100%; transform: rotate(-11deg) rotateX(14deg) rotateY(-14deg); transform-origin: 30% 50%; }
.m-col { flex: 0 0 clamp(170px, 17vw, 250px); display: flex; flex-direction: column; gap: 18px; animation: colUp 48s linear infinite; will-change: transform; }
.m-col.down { animation-name: colDown; animation-duration: 56s; }
.m-col:nth-child(3) { animation-duration: 62s; }
@keyframes colUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes colDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.hero-shade { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(90deg, var(--navy-950) 0%, rgba(2,10,31,.94) 30%, rgba(2,10,31,.55) 58%, rgba(2,10,31,.25) 100%),
  linear-gradient(0deg, var(--navy-950) 0%, transparent 32%),
  linear-gradient(180deg, rgba(2,10,31,.7) 0%, transparent 25%); }
.hero-glow { position: absolute; z-index: -1; width: 720px; height: 720px; left: var(--mx, 30%); top: var(--my, 40%); transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(47,123,245,.28), transparent 60%); pointer-events: none; transition: left .6s var(--ease), top .6s var(--ease); }
.hero-content { position: relative; }
.hero-title { margin: 0; font-size: clamp(46px, 8vw, 112px); line-height: .95; letter-spacing: -0.045em; font-weight: 800; max-width: 14ch; }
.hero-title .split { display: block; }
.hero-serif { margin: 18px 0 26px; font-family: var(--serif); font-size: clamp(24px, 3vw, 38px); line-height: 1.3; color: var(--sky-200); font-style: italic; }
.hero-serif em { color: var(--sky-400); }
.hero-lead { max-width: 50ch; margin: 0 0 34px; color: rgba(227,242,255,.78); font-size: 18px; }
.hero-lead strong { color: var(--white); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-live {
  position: absolute; right: var(--gutter); top: 54%; z-index: 2;
  display: flex; align-items: center; gap: 14px; max-width: 360px;
  padding: 14px 16px; border-radius: 16px;
  background: rgba(4, 18, 51, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line-dark), 0 30px 60px -30px rgba(0,0,0,.7);
}
.hero-live small { color: var(--sky-300); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero-live p { margin: 2px 0 0; font-size: 14px; line-height: 1.35; }
.pulse { flex: 0 0 10px; height: 10px; border-radius: 50%; background: var(--sky-400); box-shadow: 0 0 0 0 rgba(95,178,255,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(95,178,255,0); } 100% { box-shadow: 0 0 0 0 rgba(95,178,255,0); } }
.chip { flex: none; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(140,203,255,.16); color: var(--sky-200); white-space: nowrap; }
.chip.ok { background: rgba(95,178,255,.9); color: var(--navy-900); }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr auto; gap: 30px; align-items: end; padding-top: 70px; padding-bottom: 34px; }
.hero-stats div { display: flex; gap: 14px; align-items: flex-start; }
.hero-stats strong { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: var(--sky-300); }
.hero-stats span { font-size: 13px; line-height: 1.35; color: rgba(227,242,255,.7); max-width: 22ch; }
.scroll-cue { flex-direction: column; align-items: center !important; gap: 8px !important; }
.scroll-cue span { font-size: 11px !important; letter-spacing: .3em; text-transform: uppercase; }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--sky-300), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Tiles ("pantallas en vivo") ---------- */
.tile { position: relative; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); box-shadow: inset 0 0 0 1px var(--line-dark), 0 30px 50px -30px rgba(0,0,0,.8); aspect-ratio: 4 / 5; font-size: 11px; color: var(--sky-100); }
.tile.wide { aspect-ratio: 4 / 3; }
.tile.photo img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s ease-in-out infinite alternate; filter: saturate(.8) contrast(1.05); }
.tile.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,18,51,.1), rgba(4,18,51,.75)), linear-gradient(120deg, rgba(29,91,216,.35), transparent 60%); mix-blend-mode: normal; }
@keyframes kenburns { from { transform: scale(1.05) translate(0,0); } to { transform: scale(1.22) translate(-3%, -4%); } }
.tile .t-label { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(4,18,51,.75); backdrop-filter: blur(8px); font-weight: 600; font-size: 11px; line-height: 1.3; }
.tile .t-label::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sky-400); box-shadow: 0 0 10px var(--sky-400); }
.tile .t-head { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line-dark); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-300); }
.tile .t-head::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sky-400); }
.tile .t-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; }
.tile .live-i { animation: tileIn 6s var(--ease) infinite; opacity: 0; }
@keyframes tileIn { 0% { opacity: 0; transform: translateY(8px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.bub { max-width: 82%; padding: 7px 10px; border-radius: 12px; line-height: 1.35; }
.bub.in { background: rgba(255,255,255,.1); border-bottom-left-radius: 4px; }
.bub.out { align-self: flex-end; background: var(--blue-600); color: #fff; border-bottom-right-radius: 4px; }
.bub.ai { align-self: flex-end; background: rgba(95,178,255,.18); color: var(--sky-100); border: 1px dashed rgba(140,203,255,.5); }
.doc-line { height: 7px; border-radius: 4px; background: rgba(255,255,255,.1); }
.doc-line.hl { background: rgba(95,178,255,.45); }
.scanbar { position: absolute; left: 0; right: 0; height: 30px; background: linear-gradient(180deg, transparent, rgba(95,178,255,.35), transparent); animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 0% { top: 30px; } 50% { top: 70%; } 100% { top: 30px; } }
.field-x { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 8px; background: rgba(95,178,255,.12); font-weight: 600; }
.field-x b { color: var(--sky-300); }
.cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.cal span { height: 18px; border-radius: 4px; background: rgba(255,255,255,.07); }
.cal span.on { background: var(--blue-500); animation: calOn 5s ease-in-out infinite; }
.cal span.on2 { background: var(--sky-400); animation: calOn 5s ease-in-out 1.5s infinite; }
@keyframes calOn { 0%, 15% { opacity: .15; } 30%, 100% { opacity: 1; } }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kanban > div { display: flex; flex-direction: column; gap: 5px; padding: 5px; border-radius: 8px; background: rgba(255,255,255,.05); min-height: 90px; }
.kanban small { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--sky-300); }
.kcard { height: 22px; border-radius: 5px; background: rgba(255,255,255,.12); }
.kcard.move { background: var(--sky-400); animation: kmove 6s var(--ease) infinite; }
@keyframes kmove { 0%, 20% { transform: translateX(0); } 45%, 70% { transform: translateX(calc(100% + 11px)); } 90%, 100% { transform: translateX(calc(200% + 22px)); } }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding-top: 6px; }
.bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(var(--sky-400), var(--blue-600)); animation: grow 4s var(--ease) infinite alternate; transform-origin: bottom; }
@keyframes grow { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.kpi { display: flex; justify-content: space-between; align-items: baseline; }
.kpi strong { font-size: 22px; color: #fff; letter-spacing: -.03em; }
.kpi small { color: var(--sky-300); font-weight: 700; }
.mail { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.05); }
.mail i { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.15); flex: none; }
.mail p { margin: 0; flex: 1; line-height: 1.2; }
.mail .tg { font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: rgba(95,178,255,.2); color: var(--sky-200); animation: tileIn 6s infinite; }
.agent-node { display: grid; place-items: center; gap: 8px; height: 100%; padding: 18px; text-align: center; }
.agent-node .ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, var(--blue-500), var(--navy-800)); box-shadow: 0 0 0 8px rgba(47,123,245,.15), 0 0 0 16px rgba(47,123,245,.07); animation: breathe 3s ease-in-out infinite; font-size: 24px; }
@keyframes breathe { 50% { box-shadow: 0 0 0 12px rgba(47,123,245,.2), 0 0 0 26px rgba(47,123,245,.05); } }
.typing-dots { display: inline-flex; gap: 4px; }
.typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--sky-300); animation: blink 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .2s; } .typing-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.code-l { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 11px; line-height: 1.6; white-space: pre; color: var(--sky-200); }
.code-l b { color: var(--sky-400); font-weight: 500; } .code-l i { color: #9fb3d9; font-style: normal; }

/* ---------- CIFRA (pinned wall) ---------- */
.figure { position: relative; height: 100svh; overflow: hidden; background: var(--navy-950); display: grid; place-items: center; }
.figure-wall { position: absolute; inset: -4% -4%; display: flex; flex-direction: column; gap: 8px; }
.wall-row { display: flex; gap: 8px; flex: 1; }
.wall-row:nth-child(even) { margin-left: -60px; }
.brick { flex: 1 0 110px; border-radius: 6px; background: var(--navy-850); transition: background .5s var(--ease), box-shadow .5s, transform .5s var(--ease); }
.brick.lit { background: var(--blue-700); }
.brick.hot { background: var(--sky-400); box-shadow: 0 0 30px rgba(95,178,255,.55); }
.figure-inner { position: relative; z-index: 2; text-align: center; padding: 40px var(--gutter); max-width: 900px; }
.figure-inner::before { content: ""; position: absolute; inset: -10% -20%; z-index: -1; background: radial-gradient(closest-side, rgba(2,10,31,.92), rgba(2,10,31,.6) 60%, transparent); }
.figure-number { margin: 0; font-size: clamp(80px, 17vw, 230px); line-height: .9; font-weight: 800; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.figure-number sup { font-size: .32em; color: var(--sky-400); vertical-align: super; letter-spacing: 0; margin-left: 6px; }
.figure-serif { margin: 6px 0 22px; font-family: var(--serif); font-style: italic; font-size: clamp(30px, 4vw, 52px); color: var(--sky-300); line-height: 1; }
.figure-copy { margin: 0 auto 30px; max-width: 56ch; color: rgba(227,242,255,.78); }
.figure-note { display: block; margin-top: 18px; color: rgba(227,242,255,.68); font-size: 12px; }

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; background: var(--sky-200); color: var(--navy-900); padding: 22px 0; }
.marquee-track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-size: clamp(34px, 5vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.marquee em { font-size: clamp(38px, 5.4vw, 70px); line-height: 1; color: var(--blue-700); }
.marquee i { width: 22px; height: 22px; background: var(--blue-600); transform: rotate(45deg); border-radius: 3px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- LIGHT sections ---------- */
.light { background: var(--ice); color: var(--ink); }
.promise { padding: clamp(120px, 18vh, 200px) 0; }
.promise-text { margin: 0 0 40px; max-width: 20ch; font-size: clamp(36px, 5.6vw, 76px); line-height: 1.06; letter-spacing: -.04em; font-weight: 800; }
.promise-text .w { color: rgba(6,18,43,.13); transition: color .2s; }
.promise-text .w.on { color: var(--ink); }
.promise-text em .w.on, .promise-text .w.on em { color: var(--blue-600); }
.promise-text em { font-size: 1.05em; }

.audience { padding: 40px 0 clamp(100px, 14vh, 160px); }
.split-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: end; margin-bottom: 60px; }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); }
.card4 { padding: 34px 28px 40px; border-right: 1px solid var(--line-light); transition: background .4s; }
.card4:last-child { border-right: 0; }
.card4:hover { background: var(--white); }
.card4 .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sky-100); color: var(--blue-600); margin-bottom: 40px; transition: transform .5s var(--ease); }
.card4:hover .ico { transform: rotate(90deg) scale(1.08); }
.card4 i { font-family: var(--serif); color: var(--blue-600); font-size: 20px; }
.card4 h3 { margin: 2px 0 10px; font-size: 24px; letter-spacing: -.03em; line-height: 1.1; }
.card4 p { margin: 0; color: var(--muted); font-size: 15px; }
.fit-row { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; margin-top: 70px; padding-top: 40px; border-top: 1px solid var(--line-light); }
.fit-row p { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.fit-row em { color: var(--blue-600); }

/* ---------- SISTEMA ---------- */
.dark { background: var(--navy-950); }
.system { padding: clamp(110px, 16vh, 180px) 0; background: radial-gradient(80% 60% at 75% 50%, rgba(14,58,143,.35), transparent), var(--navy-950); }
.system-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.scenario-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 30px 0 22px; }
.scenario-tabs button { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-dark); background: transparent; color: rgba(227,242,255,.8); font-size: 14px; font-weight: 600; transition: all .3s; }
.scenario-tabs button[aria-selected="true"] { background: var(--sky-200); color: var(--navy-900); border-color: var(--sky-200); }
.system-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-height: 260px; }
.system-log li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 10px 12px; border-radius: 12px; opacity: .7; transition: opacity .4s, background .4s; font-size: 14px; }
.system-log li b { display: block; font-weight: 700; }
.system-log li span { color: rgba(227,242,255,.8); font-size: 13px; line-height: 1.4; }
.system-log li .n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-dark); font-size: 11px; font-weight: 700; color: var(--sky-300); }
.system-log li.done { opacity: .85; }
.system-log li.active { opacity: 1; background: rgba(95,178,255,.1); }
.system-log li.active .n { background: var(--sky-400); color: var(--navy-900); border-color: var(--sky-400); }
.system-log li.hidden-step { display: none; }
.system-outcome { margin-top: 14px; min-height: 52px; padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(140,203,255,.35); color: var(--sky-200); font-weight: 600; font-size: 15px; opacity: 0; transform: translateY(8px); transition: all .5s var(--ease); }
.system-outcome.show { opacity: 1; transform: none; }
.system-stage { position: relative; aspect-ratio: 1 / 1; max-height: 640px; width: 100%; border-radius: 28px; background: linear-gradient(160deg, rgba(10,35,88,.55), rgba(4,18,51,.4)); box-shadow: inset 0 0 0 1px var(--line-dark); overflow: hidden; }
.system-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(140,203,255,.16) 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(circle at center, #000 30%, transparent 75%); }
.system-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.system-lines line { stroke: rgba(140,203,255,.18); stroke-width: .25; stroke-dasharray: 1 1; vector-effect: non-scaling-stroke; }
.system-lines line { stroke-width: 1.2; }
.system-lines line.on { stroke: var(--sky-400); stroke-dasharray: none; filter: drop-shadow(0 0 4px var(--sky-400)); }
.dept { position: absolute; transform: translate(-50%, -50%); width: 30%; max-width: 190px; padding: 12px 14px; border-radius: 16px; background: rgba(6,26,69,.92); box-shadow: inset 0 0 0 1px var(--line-dark); transition: box-shadow .4s, transform .5s var(--ease), background .4s; z-index: 2; }
.dept .dh { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.dept .dh i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(95,178,255,.15); font-style: normal; font-size: 13px; }
.dept small { display: block; margin-top: 4px; color: rgba(227,242,255,.55); font-size: 11px; line-height: 1.35; }
.dept.active { background: var(--navy-800); box-shadow: inset 0 0 0 1.5px var(--sky-400), 0 0 40px -6px rgba(95,178,255,.6); transform: translate(-50%, -50%) scale(1.06); }
.dept.active .dh i { background: var(--sky-400); }
.system-core, .system-human { position: absolute; transform: translate(-50%, -50%); z-index: 2; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-200); line-height: 1.25; }
.system-core { left: 50%; top: 50%; }
.system-core img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 0 0 10px rgba(47,123,245,.14), 0 0 0 22px rgba(47,123,245,.06), 0 0 60px rgba(47,123,245,.5); animation: breathe 3s ease-in-out infinite; }
.system-human { left: 50%; top: 92%; flex-direction: row; display: flex; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(6,26,69,.9); box-shadow: inset 0 0 0 1px var(--line-dark); transition: all .4s; text-align: left; }
.system-human .avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-100); font-size: 15px; }
.system-human.active { background: var(--sky-200); color: var(--navy-900); box-shadow: 0 0 40px rgba(191,226,255,.5); }
.system-packet { position: absolute; z-index: 3; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(95,178,255,.4), 0 0 24px 6px var(--sky-400); opacity: 0; left: 50%; top: 50%; }

/* ---------- EMBUDO ---------- */
.funnel { padding: 40px 0 clamp(110px, 16vh, 180px); }
.funnel-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.badge-card { display: flex; align-items: center; gap: 18px; margin: 30px 0; padding: 18px 22px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line-dark); max-width: 430px; }
.badge-card strong { font-size: 44px; line-height: 1; color: var(--sky-300); font-weight: 800; }
.badge-card p { margin: 0; font-size: 14px; color: rgba(227,242,255,.8); }
.funnel-bars { display: flex; flex-direction: column; gap: 12px; }
.fbar { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.fbar label { text-align: right; line-height: 1.15; }
.fbar label b { display: block; font-size: 15px; }
.fbar label small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(227,242,255,.5); }
.fbar.final label b { color: var(--sky-300); }
.track { position: relative; height: 58px; border-radius: 12px; background: var(--navy-850); overflow: hidden; }
.track .fill { position: absolute; inset: 0 auto 0 0; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--blue-700), var(--blue-600)); border-radius: 12px; }
.fbar.final .fill { background: linear-gradient(90deg, var(--sky-400), var(--sky-200)); }
.track .dots { position: absolute; inset: 0; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 5px 6px; align-content: center; }
.track .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.85); opacity: 0; transform: scale(0); transition: opacity .3s, transform .3s var(--ease); }
.track .dots i.on { opacity: 1; transform: scale(1); }
.fbar.final .dots i { background: var(--navy-900); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-left: 136px; margin-top: 6px; }
.week span { aspect-ratio: 1.2; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-dark); padding: 6px 8px; font-size: 12px; color: rgba(227,242,255,.7); font-weight: 700; transition: background .4s; }
.week span.on { background: rgba(95,178,255,.22); color: var(--sky-200); }

/* ---------- SERVICIOS (horizontal) ---------- */
.services { background: var(--white); color: var(--ink); }
.services-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 110px 0 60px; }
.services-head { display: flex; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.services-head .eyebrow { width: 100%; margin-bottom: 0; }
.services-head .h2 { margin: 0; flex: 1; }
.services-count { margin: 0; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.services-count span:first-child { color: var(--blue-600); font-size: 28px; }
.services-track { display: flex; gap: 26px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.svc { flex: 0 0 min(78vw, 820px); display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border-radius: 26px; overflow: hidden; background: var(--ice); box-shadow: inset 0 0 0 1px var(--line-light); min-height: 420px; }
.svc-visual { position: relative; background: linear-gradient(160deg, var(--navy-850), var(--navy-950)); display: grid; place-items: center; padding: 34px; }
.svc-visual .tile { width: 100%; max-width: 330px; aspect-ratio: 4 / 4.2; font-size: 12px; }
.svc-copy { padding: 40px 38px; display: flex; flex-direction: column; justify-content: center; }
.svc-copy i { font-family: var(--serif); color: var(--blue-600); font-size: 24px; }
.svc-copy h3 { margin: 4px 0 14px; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.035em; line-height: 1.05; }
.svc-copy p { margin: 0 0 20px; color: var(--muted); font-size: 16px; }
.svc-copy ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.svc-copy li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
.svc-copy li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231d5bd8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- REEL / PLAYER ---------- */
.reel { padding: clamp(110px, 16vh, 180px) 0; background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); }
.reel-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: end; margin-bottom: 50px; }
.reel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reel-stats strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.04em; color: var(--sky-300); line-height: 1.1; }
.reel-stats span { font-size: 13px; color: rgba(227,242,255,.62); line-height: 1.3; display: block; }
.player { border-radius: 24px; overflow: hidden; background: var(--navy-850); box-shadow: inset 0 0 0 1px var(--line-dark), 0 60px 120px -50px rgba(47,123,245,.55); transform-origin: center top; }
.player-bar { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line-dark); font-size: 13px; }
.dots3 { display: flex; gap: 6px; } .dots3 i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.player-title { flex: 1; color: rgba(227,242,255,.7); font-weight: 600; }
.player-chapter { font-weight: 700; color: var(--sky-300); font-variant-numeric: tabular-nums; }
.player-screen { display: grid; grid-template-columns: 1fr 1.2fr 1fr; min-height: 420px; }
.p-col { padding: 20px; border-right: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 12px; }
.p-col:last-child { border-right: 0; }
.p-col header { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: rgba(227,242,255,.6); margin-bottom: 6px; }
.p-col header span { width: 8px; height: 8px; border-radius: 50%; }
.wa-dot { background: #6ee7b7; } .ag-dot { background: var(--sky-400); } .hu-dot { background: var(--sky-100); }
.p-chat { background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.p-msgs { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.4; }
.msg.in { background: rgba(255,255,255,.1); border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; background: var(--blue-600); border-bottom-right-radius: 4px; }
.p-step { padding: 12px 14px; border-radius: 14px; background: rgba(95,178,255,.08); box-shadow: inset 0 0 0 1px var(--line-dark); }
.p-step small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-300); margin-bottom: 4px; }
.p-step p { margin: 0; font-size: 14px; }
.slots { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.slots span { padding: 4px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.08); }
.slots .taken { opacity: .35; text-decoration: line-through; }
.slots .pick { background: var(--sky-400); color: var(--navy-900); }
.typing { min-height: 42px; }
.typing::after { content: "▍"; color: var(--sky-400); animation: blink 1s infinite; }
.approve { padding: 16px; border-radius: 16px; background: rgba(191,226,255,.08); box-shadow: inset 0 0 0 1px rgba(191,226,255,.25); }
.approve small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-200); }
.approve p { margin: 6px 0 14px; font-size: 14px; }
.approve button { width: 100%; padding: 11px; border-radius: 12px; border: 0; background: var(--white); color: var(--navy-900); font-weight: 700; font-size: 14px; transition: transform .2s, background .2s; }
.approve button.pressed { transform: scale(.95); background: var(--sky-300); }
.p-done { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--sky-400); color: var(--navy-900); font-weight: 700; font-size: 14px; }
.p-done span { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--navy-900); color: var(--sky-300); }
.p-done p { margin: 0; line-height: 1.3; }
[data-step] { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
[data-step].show { opacity: 1; transform: none; }
.player-controls { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line-dark); }
.play { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--white); color: var(--navy-900); font-size: 11px; font-weight: 800; }
.player-progress { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.player-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-500), var(--sky-300)); }
.player-time { font-size: 12px; font-weight: 700; color: rgba(227,242,255,.6); font-variant-numeric: tabular-nums; }

/* ---------- CALCULADORA ---------- */
.calc { padding: clamp(110px, 16vh, 180px) 0; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.calc-form { padding: 36px; border-radius: 26px; background: var(--white); box-shadow: 0 30px 60px -40px rgba(6,18,43,.35), inset 0 0 0 1px var(--line-light); display: flex; flex-direction: column; gap: 30px; }
.range label { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.range output { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--blue-600); white-space: nowrap; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--blue-500) var(--p, 50%), var(--sky-100) var(--p, 50%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--white); border: 6px solid var(--blue-500); box-shadow: 0 4px 14px rgba(29,91,216,.4); cursor: grab; transition: transform .2s; }
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 6px solid var(--blue-500); cursor: grab; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 600; font-size: 15px; margin-bottom: 14px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--ice); box-shadow: inset 0 0 0 1px var(--line-light); transition: all .25s; }
.chips span::before { content: "+"; font-weight: 800; color: var(--blue-600); }
.chips input:checked + span { background: var(--navy-900); color: var(--white); box-shadow: none; }
.chips input:checked + span::before { content: "✓"; color: var(--sky-300); }
.chips input:focus-visible + span { outline: 3px solid var(--sky-300); outline-offset: 2px; }
.calc-result { position: relative; overflow: hidden; padding: 40px; border-radius: 26px; color: var(--white); background: radial-gradient(90% 70% at 100% 0%, rgba(47,123,245,.5), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-950)); display: flex; flex-direction: column; }
.res-main { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.res-main span { font-size: clamp(64px, 8vw, 112px); line-height: .9; font-weight: 800; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.res-main small { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--sky-300); }
.res-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0; }
.res-row div { padding: 16px; border-radius: 16px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line-dark); }
.res-row strong { display: block; font-size: 26px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.res-row span { font-size: 12px; color: rgba(227,242,255,.65); line-height: 1.3; display: block; }
.res-bars { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.res-bars > div { display: grid; grid-template-columns: 96px 1fr 80px; gap: 12px; align-items: center; font-size: 13px; }
.res-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.rb { height: 12px; border-radius: 12px; background: rgba(255,255,255,.08); overflow: hidden; }
.rb i { display: block; height: 100%; width: 100%; border-radius: 12px; background: rgba(255,255,255,.5); transform-origin: left; transition: transform .7s var(--ease); }
.rb i.after { background: linear-gradient(90deg, var(--sky-400), var(--sky-200)); }
.res-note { color: rgba(227,242,255,.7); font-size: 14px; margin: 0 0 26px; }
.res-note b { color: var(--sky-300); }
.calc-result .btn { align-self: flex-start; margin-top: auto; }

/* ---------- PROYECTOS ---------- */
.projects { padding: 0 0 clamp(110px, 16vh, 180px); overflow: hidden; }
.proj-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 44px; }
.proj-nav { display: flex; align-items: center; gap: 10px; }
.proj-count { margin-right: 10px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.proj-count b { color: var(--blue-600); font-size: 22px; }
.proj-nav button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--navy-900); color: #fff; font-size: 18px; transition: transform .3s var(--ease), background .3s; }
.proj-nav button:hover { transform: scale(1.08); background: var(--blue-600); }
.proj-viewport { overflow: visible; }
.proj-track { display: flex; gap: 26px; transition: transform .8s var(--ease); touch-action: pan-y; }
.proj { flex: 0 0 min(88%, 1000px); display: grid; grid-template-columns: 1.15fr 1fr; border-radius: 26px; overflow: hidden; background: var(--white); box-shadow: 0 30px 60px -40px rgba(6,18,43,.35), inset 0 0 0 1px var(--line-light); transition: opacity .6s, transform .8s var(--ease); }
.proj:not(.current) { opacity: .45; transform: scale(.96); }
.proj-media { position: relative; min-height: 420px; overflow: hidden; }
.proj-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.proj.current .proj-media img { transform: scale(1); }
.proj-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(140deg, rgba(4,18,51,.15), rgba(4,18,51,.65)); }
.proj-ui { position: absolute; z-index: 2; right: 20px; bottom: 20px; width: min(62%, 300px); }
.proj-ui .tile { aspect-ratio: 4 / 3.4; }
.proj-copy { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.tag { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.tag span { padding: 4px 10px; border-radius: 999px; background: var(--sky-100); color: var(--blue-700); font-size: 12px; }
.proj-copy h3 { margin: 0 0 14px; font-size: clamp(30px, 3vw, 42px); letter-spacing: -.04em; line-height: 1; }
.proj-copy p { margin: 0 0 18px; color: var(--muted); }
.proj-copy ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.proj-copy li { padding: 7px 12px; border-radius: 999px; background: var(--ice); box-shadow: inset 0 0 0 1px var(--line-light); font-size: 13px; font-weight: 600; }

/* ---------- MÉTODO ---------- */
.method { padding: clamp(110px, 16vh, 180px) 0; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 70px; }
.step-line { position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: var(--line-dark); }
.step-line span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--blue-500), var(--sky-300)); box-shadow: 0 0 12px var(--sky-400); }
.step { position: relative; padding-top: 70px; }
.step::before { content: ""; position: absolute; top: 14px; left: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--navy-950); box-shadow: inset 0 0 0 2px var(--sky-400); transition: background .4s, box-shadow .4s; }
.step.on::before { background: var(--sky-400); box-shadow: 0 0 0 6px rgba(95,178,255,.2); }
.step i { font-family: var(--serif); font-size: 22px; color: var(--sky-300); }
.step h3 { margin: 4px 0 10px; font-size: 22px; letter-spacing: -.03em; line-height: 1.15; }
.step p { margin: 0; color: rgba(227,242,255,.68); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(110px, 16vh, 180px) 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line-light); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 24px 0; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sky-100); color: var(--blue-600); font-size: 20px; transition: transform .4s var(--ease), background .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--navy-900); color: #fff; }
.faq-list p { margin: -6px 0 24px; color: var(--muted); max-width: 60ch; }

/* ---------- CONTACTO ---------- */
.contact { position: relative; overflow: hidden; padding: clamp(110px, 16vh, 180px) 0; }
.contact-glow { position: absolute; width: 900px; height: 900px; right: -300px; top: -200px; background: radial-gradient(circle, rgba(47,123,245,.35), transparent 60%); }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.contact-title { margin: 0 0 22px; font-size: clamp(42px, 6vw, 84px); line-height: 1; letter-spacing: -.045em; font-weight: 800; }
.contact-title em { color: var(--sky-400); }
.calc-summary { margin-top: 24px; padding: 16px 18px; border-radius: 14px; background: rgba(95,178,255,.12); box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--sky-100); font-size: 15px; }
.contact-form { padding: 36px; border-radius: 26px; background: var(--white); color: var(--ink); display: flex; flex-direction: column; gap: 18px; box-shadow: 0 60px 120px -50px rgba(47,123,245,.6); }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--ink); }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid #9fb0c9; background: var(--white); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(47,123,245,.18); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c2253c; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #33415c; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue-600); flex: none; }
.form-status { margin: 0; min-height: 22px; font-size: 14px; font-weight: 600; color: var(--blue-700); }
.form-status.err { color: #c2253c; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line-dark); padding: 40px 0; background: var(--navy-950); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: rgba(227,242,255,.6); }
.footer-grid p { margin: 0; }
.footer-legal a { color: rgba(227,242,255,.75); }

/* ---------- reveal helpers (JS añade .js) ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); }
.js .rl { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .14em 0; margin-bottom: -.14em; }
.js .rl > span { display: inline-block; transform: translateY(110%); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .hero-live { display: none; }
  .system-grid, .funnel-grid, .calc-grid, .contact-grid, .faq-grid, .reel-head { grid-template-columns: 1fr; }
  .system-stage { max-width: 640px; margin: 0 auto; }
  .cards4 { grid-template-columns: repeat(2, 1fr); }
  .card4:nth-child(2) { border-right: 0; }
  .card4:nth-child(-n+2) { border-bottom: 1px solid var(--line-light); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .step-line { display: none; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 76px var(--gutter) auto; flex-direction: column; gap: 0; padding: 10px; border-radius: 22px; background: rgba(4,18,51,.96); box-shadow: inset 0 0 0 1px var(--line-dark); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: all .35s var(--ease); }
  .nav-links a { padding: 14px 16px; font-size: 17px; }
  .nav-links a::after { display: none; }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav-toggle { display: block; }
  .nav > .btn-sm { display: none; }
  .hero-mosaic { inset: -10% -40% -10% -10%; opacity: .55; }
  .hero-shade { background: linear-gradient(0deg, var(--navy-950) 10%, rgba(2,10,31,.75) 60%, rgba(2,10,31,.55) 100%); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .scroll-cue { display: none !important; }
  .split-head { grid-template-columns: 1fr; gap: 20px; }
  .services-pin { min-height: 0; padding: 90px 0; }
  .services-track { width: auto; flex-direction: column; padding: 0 var(--gutter); }
  .svc, .proj { grid-template-columns: 1fr; flex: none; width: 100%; }
  .svc-visual { min-height: 280px; }
  .proj { flex: 0 0 100%; }
  .proj-media { min-height: 280px; }
  .player-screen { grid-template-columns: 1fr; }
  .p-col { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .res-row { grid-template-columns: 1fr; }
  .figure-wall .brick { flex-basis: 70px; }
  .week { margin-left: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-stats { grid-template-columns: 1fr; gap: 18px; padding-top: 40px; }
  .cards4 { grid-template-columns: 1fr; }
  .card4 { border-right: 0; border-bottom: 1px solid var(--line-light); }
  .steps { grid-template-columns: 1fr; }
  .fbar { grid-template-columns: 78px 1fr; gap: 10px; }
  .fbar label small { display: none; }
  .track { height: 46px; }
  .calc-form, .calc-result, .contact-form { padding: 24px; }
  .res-bars > div { grid-template-columns: 80px 1fr 64px; }
  .reel-stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .reel-stats strong { font-size: 22px; }
  .dept { width: 34%; padding: 8px 9px; }
  .dept small { display: none; }
  .dept .dh { font-size: 11px; gap: 6px; }
  .dept .dh i { width: 20px; height: 20px; font-size: 11px; }
  .system-core img { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .rl > span { transform: none; }
}

/* ---------- cifra: total vs recuperable ---------- */
.figure-copy strong { color: var(--white); }
.figure-recover { margin: 0 auto 28px; max-width: 56ch; padding: 14px 18px; border-radius: 14px; background: rgba(95,178,255,.1); box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--sky-100); font-size: 15px; line-height: 1.5; }
.figure-recover b { color: var(--sky-300); }

/* ---------- calculadora: supuestos ---------- */
.res-total { margin: 0 0 14px; color: rgba(227,242,255,.85); font-size: 15px; }
.res-total b { color: var(--white); font-variant-numeric: tabular-nums; }
.res-main small { font-size: 24px; line-height: 1.1; max-width: 14ch; }
.assumptions { border-top: 1px solid var(--line-light); padding: 4px 0 0; }
.assumptions summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 15px; list-style: none; display: flex; align-items: center; gap: 8px; }
.assumptions summary::-webkit-details-marker { display: none; }
.assumptions summary::after { content: "▾"; margin-left: auto; color: var(--blue-600); transition: transform .3s var(--ease); }
.assumptions[open] summary::after { transform: rotate(180deg); }
.assumptions summary small { color: var(--muted); font-weight: 600; }
.assumptions > p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.assump-grid, .assump-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.assump-row { margin-top: 14px; }
.assump-grid label, .assump-row label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.assump-grid input, .assump-row input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid #9fb0c9; background: var(--white); color: var(--ink); font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; }
.assump-grid input:focus, .assump-row input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(47,123,245,.18); }
.pct { position: relative; display: block; }
.pct input { padding-right: 30px; }
.pct i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-weight: 700; }
.link-btn { margin: 14px 0 10px; padding: 0; border: 0; background: none; color: var(--blue-600); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- formulario de contacto: estados ---------- */
.contact-card { position: relative; }
.contact-form small { font-weight: 500; color: #4a5a76; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-error { margin: 6px 0 0; min-height: 0; font-size: 13px; font-weight: 600; color: #b3203a; line-height: 1.35; }
.field-error:empty { display: none; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3203a; box-shadow: 0 0 0 3px rgba(179,32,58,.14); }
.consent input[aria-invalid="true"] { outline: 2px solid #b3203a; outline-offset: 2px; }
.form-status.err { color: #b3203a; }
.btn:disabled { opacity: .75; cursor: progress; transform: none; }
.btn .spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(4,18,51,.25); border-top-color: var(--navy-900); animation: spin .7s linear infinite; }
.contact-form.loading .spinner { display: inline-block; }
.contact-form.loading .btn-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { padding: 44px 36px; border-radius: 26px; background: var(--white); color: var(--ink); text-align: center; box-shadow: 0 60px 120px -50px rgba(47,123,245,.6); outline: none; }
.form-success[hidden] { display: none; }
.ok-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--blue-600); color: #fff; font-size: 30px; font-weight: 800; }
.form-success h3 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.03em; }
.form-success p { margin: 0; color: var(--muted); }

@media (max-width: 560px) { .assump-grid, .assump-row { grid-template-columns: 1fr; } }
