/* =========================================================
   groowguys v7 — AI-native product UI
   Tipografía: Geist + Geist Mono (OFL).
   Acento: Instrument Serif italic (la itálica firma de la marca).
   ========================================================= */
@font-face { font-family: "Geist"; src: url("fonts/Geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #000; --paper: #fff;
  --ash: #8b8b8b; --mute: #b9b9b9;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14); --line-3: rgba(255,255,255,.22);
  --surface: #0b0b0b; --surface-2: #121212;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", var(--mono);
  --serif: "Instrument Serif", Georgia, serif;
  --s-1: .8125rem; --s0: 1rem; --s1: 1.0625rem; --s2: 1.3125rem;
  --s3: clamp(1.5rem, 1.15rem + 1.2vw, 2rem);
  --s4: clamp(2.1rem, 1.3rem + 2.8vw, 3.5rem);
  --s5: clamp(2.6rem, 1.2rem + 4.6vw, 5.4rem);
  --wrap: 1200px; --gutter: clamp(18px, 4vw, 40px); --section: clamp(96px, 12vw, 160px);
  --ease: cubic-bezier(.2,.7,.1,1);
  --radius: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: var(--s0); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; }
h1 em, h2 em, h3 em, .manifesto em, .legal-hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--paper); color: var(--ink); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.mark { width: 100%; height: 100%; }
.burst line { stroke: currentColor; stroke-linecap: round; }

/* Grano sobre todo el sitio: profundidad, menos "plano" */
.grain { position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Header: barra flotante ---------- */
.site-header { position: fixed; inset: 14px 0 auto 0; z-index: 50; }
.bar { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 10px 0 18px; border-radius: 16px; background: rgba(14,14,14,.72); border: 1px solid var(--line-2); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 10px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .logo { width: 30px; height: 30px; flex: 0 0 30px; transition: transform .8s var(--ease); }
.brand:hover .logo { transform: rotate(45deg); }
.brand b { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; }
.nav { display: flex; gap: 2px; }
.nav a { text-decoration: none; font-size: .875rem; color: var(--mute); padding: 8px 14px; border-radius: 10px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--paper); background: rgba(255,255,255,.05); }
.nav a.active { color: var(--paper); background: rgba(255,255,255,.09); }
.bar-cta { display: flex; align-items: center; gap: 6px; }
.link-mail { font-size: .875rem; color: var(--mute); text-decoration: none; padding: 8px 12px; }
.link-mail:hover { color: var(--paper); }
.menu-btn { display: none; }

/* ---------- Botones ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 12px; font: 500 .9375rem var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.btn svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--solid { background: var(--paper); color: var(--ink); border: 1px solid var(--paper); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
.btn--solid:hover { box-shadow: 0 0 34px rgba(255,255,255,.28); }
.btn--ghost { background: rgba(255,255,255,.03); color: var(--paper); border: 1px solid var(--line-3); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
.btn--sm { height: 40px; padding: 0 16px; font-size: .875rem; border-radius: 10px; }

/* ---------- Etiquetas ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--ash); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 10px rgba(255,255,255,.9); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.tag { display: inline-block; background: var(--paper); color: var(--ink); font-weight: 600; font-size: var(--s-1); padding: 4px 11px; line-height: 1.4; border-radius: 4px; }
.chip { display: inline-block; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; font-size: .75rem; color: var(--mute); background: rgba(255,255,255,.02); }

/* ---------- Ventanas (UI de producto) ---------- */
.win { position: relative; border-radius: var(--radius); background: linear-gradient(180deg, #161616, #0a0a0a 40%); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.07); overflow: hidden; }
.chrome { height: 38px; display: flex; align-items: center; gap: 14px; padding: 0 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.chrome .dots { display: flex; gap: 6px; }
.chrome .dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3a; }
.chrome .dots i:first-child { background: #8a8a8a; }
.chrome .path { font-size: .75rem; color: var(--ash); font-family: var(--mono); letter-spacing: 0; }
.pbody { padding: clamp(22px, 3.4vw, 40px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 170px 0 0; overflow: hidden; text-align: center; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 96px 96px; background-position: center top; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%); }
.hero-glow { position: absolute; left: 50%; top: 52%; width: 1100px; height: 700px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(255,255,255,.16), transparent 62%); pointer-events: none; }
.spotlight { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.07), transparent 60%); }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: var(--s5); margin-top: 22px; max-width: 19ch; }
.hero h1 em { display: inline; }
.hero .lede { margin-top: 24px; font-size: var(--s1); color: var(--mute); max-width: 52ch; }
.hero .actions { margin-top: 34px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Escenario 3D */
.stage { position: relative; z-index: 1; height: clamp(380px, 46vw, 600px); margin-top: 56px; perspective: 1600px; }
.scene { position: absolute; left: 50%; top: 0; width: min(1080px, 94vw); height: 100%; transform: translateX(-50%) rotateX(var(--rx, 16deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transform-origin: 50% 100%; transition: transform .5s var(--ease); }
.floor { position: absolute; left: -40%; right: -40%; bottom: -10%; height: 70%; transform: rotateX(78deg); transform-origin: bottom; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 50% 90% at 50% 100%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 50% 90% at 50% 100%, #000 20%, transparent 75%); animation: floor 6s linear infinite; }
@keyframes floor { to { background-position: 0 64px, 0 0; } }
.beam { position: absolute; left: 50%; bottom: 0; width: 60%; height: 80%; transform: translateX(-50%); background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(255,255,255,.22), transparent 70%); filter: blur(10px); }

.w-main { position: absolute; left: 50%; top: 4%; width: 62%; height: 86%; transform: translateX(-50%) translateZ(0); text-align: left; }
.w-main .wbody { display: grid; grid-template-columns: 54px 1fr; height: calc(100% - 38px); }
.wside { border-right: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wside i { width: 22px; height: 22px; border-radius: 7px; background: #1c1c1c; }
.wside i.on { background: var(--paper); }
.dash { padding: 18px; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; min-height: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpis div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: rgba(255,255,255,.02); }
.kpis small { display: block; font-size: .6875rem; color: var(--ash); margin-bottom: 8px; }
.sk { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #2a2a2a, #4a4a4a, #2a2a2a); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
.w60 { width: 60%; } .w40 { width: 40%; } .w50 { width: 50%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.chart { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-height: 0; background: rgba(255,255,255,.015); }
.chart svg { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); }
.chart .line { fill: none; stroke: var(--paper); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.6s var(--ease) .6s forwards; }
.chart .area { fill: url(#none); fill: rgba(255,255,255,.06); opacity: 0; animation: fadeIn 1.4s ease 1.6s forwards; }
.cursor-line { position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, rgba(255,255,255,.6), transparent); left: 10%; animation: sweepX 5s ease-in-out infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes sweepX { 50% { left: 88%; } }
.rows { display: grid; gap: 7px; }
.rows span { height: 10px; border-radius: 5px; background: #191919; }
.rows span:nth-child(1) { width: 92%; } .rows span:nth-child(2) { width: 76%; } .rows span:nth-child(3) { width: 84%; }

.w-agent { position: absolute; left: 0; bottom: 6%; width: 36%; transform: translateZ(80px); text-align: left; animation: hover 7s ease-in-out infinite; }
.w-agent .wbody { padding: 14px 16px 16px; }
.status { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--mute); margin-bottom: 10px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: hit 1.8s ease-out infinite; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-family: var(--mono); font-size: .75rem; }
.log li { display: flex; gap: 8px; color: #6f6f6f; opacity: 0; animation: logline 9s var(--ease) infinite; animation-delay: calc(var(--i) * .9s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log li .pfx { color: var(--paper); flex: 0 0 auto; }
.log li.ok { color: var(--mute); }
@keyframes logline { 0% { opacity: 0; transform: translateX(-6px); } 4%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }

.cards { position: absolute; right: 0; top: 30%; width: 34%; transform: translateZ(120px); text-align: left; animation: hover 8s ease-in-out -2s infinite; }
.lcard { border-radius: 14px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #1a1a1a, #0d0d0d); padding: 12px 16px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lcard b { font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.lcard.c3, .lcard.c2 { margin: 0 18px -8px; color: #5c5c5c; background: #0e0e0e; }
.lcard.c2 { margin: 0 9px -8px; color: #8a8a8a; background: #121212; }
.lcard.c1 { position: relative; padding: 16px 18px; }
.lcard.c1 p { font-size: .8125rem; color: var(--mute); margin-top: 6px; line-height: 1.45; }
.lcard.c1 svg { margin-top: 12px; height: 38px; width: 100%; }
.lcard.c1 svg path { fill: none; stroke: var(--paper); stroke-width: 1.5; }
.lcard.c1 svg path.base { stroke: #3a3a3a; stroke-dasharray: 4 4; }
@keyframes hover { 50% { translate: 0 -10px; } }
@keyframes hit { 70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.stage-note { position: relative; z-index: 2; font-size: .6875rem; color: #555; margin-top: 14px; }

.marquee { position: relative; z-index: 2; margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee .track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 24px; padding: 20px 24px 20px 0; font-size: var(--s1); font-weight: 500; white-space: nowrap; }
.marquee span i { width: 18px; height: 18px; display: inline-block; }
.marquee span.dim { color: #555; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Statement ---------- */
.statement { padding: clamp(110px, 13vw, 180px) 0 clamp(40px, 6vw, 80px); text-align: center; }
.words { font-size: var(--s4); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; max-width: 24ch; margin: 0 auto; }
.words .wd { color: #2a2a2a; transition: color .35s; }
.words .wd.lit { color: var(--paper); }

/* ---------- Secciones ---------- */
.section { padding: var(--section) 0; position: relative; }
.head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: clamp(44px, 6vw, 72px); }
.head h2 { font-size: var(--s4); margin-top: 16px; max-width: 20ch; }
.head p { margin-top: 18px; font-size: var(--s1); color: var(--mute); max-width: 52ch; }

/* Mapa del sistema */
.map-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.flow { position: absolute; left: 12.5%; right: 12.5%; top: 36px; height: 2px; }
.flow svg { width: 100%; height: 2px; overflow: visible; }
.flow line { stroke: var(--line-2); stroke-width: 2; }
.flow line.dash { stroke: var(--paper); stroke-dasharray: 6 14; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -40; } }
.node { position: relative; z-index: 1; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.node .dot { width: 72px; height: 72px; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #1a1a1a, #0b0b0b); display: grid; place-items: center; position: relative; transition: background .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.node .dot > span { width: 38px; height: 38px; }
.node:hover .dot { border-color: rgba(255,255,255,.45); transform: translateY(-3px); }
.node .name { font-weight: 500; }
.node[aria-pressed="true"] .dot { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: 0 0 40px rgba(255,255,255,.35); }
.node[aria-pressed="true"] .dot::before { content: ""; position: absolute; inset: -9px; border-radius: 26px; border: 1px solid rgba(255,255,255,.6); animation: ping 2s var(--ease) infinite; }
@keyframes ping { from { opacity: .8; transform: scale(.94); } to { opacity: 0; transform: scale(1.25); } }
.node .flag { font-size: .6875rem; font-weight: 600; background: var(--paper); color: var(--ink); padding: 2px 9px; border-radius: 999px; opacity: 0; transform: translateY(-4px); transition: .3s var(--ease); }
.node[aria-pressed="true"] .flag { opacity: 1; transform: none; }
.data-bar { position: relative; margin-top: 36px; height: 44px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: var(--s-1); color: var(--ash); overflow: hidden; font-family: var(--mono); }
.data-bar b { color: var(--paper); font-weight: 500; }
.data-bar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; left: -30%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { to { left: 100%; } }
.readout { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; min-height: 84px; }
.readout h3 { font-size: var(--s3); }
.readout p { color: var(--mute); font-size: var(--s1); }
.readout .swap { transition: opacity .25s; }
.readout.fade .swap { opacity: 0; }

/* Sistemas */
.systems { display: grid; grid-template-columns: 5fr 7fr; gap: 20px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 100px; }
.tab { text-align: left; font: inherit; color: var(--mute); background: rgba(255,255,255,.015); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; cursor: pointer; display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; transition: border-color .25s, color .25s, background .25s, box-shadow .25s; }
.tab .ic { width: 36px; height: 36px; }
.tab b { display: block; font-weight: 500; font-size: var(--s1); color: inherit; }
.tab small { display: block; font-size: .75rem; color: var(--ash); }
.tab .arr { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: .25s; }
.tab .arr svg { width: 12px; height: 12px; }
.tab:hover { border-color: var(--line-3); color: var(--paper); }
.tab[aria-selected="true"] { background: linear-gradient(180deg, #1b1b1b, #101010); color: var(--paper); border-color: rgba(255,255,255,.35); box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 12px 40px rgba(0,0,0,.5); }
.tab[aria-selected="true"] .arr { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.panel[hidden] { display: none; }
.panel .top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.panel h3 { font-size: var(--s4); margin-top: 18px; }
.panel .sum { margin-top: 12px; color: var(--mute); font-size: var(--s1); max-width: 44ch; }
.panel dl { margin: 30px 0 0; display: grid; gap: 20px; border-top: 1px solid var(--line); padding-top: 26px; }
.panel dt { font-weight: 500; margin-bottom: 4px; }
.panel dd { margin: 0; color: var(--mute); }
.panel .caps { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.panel.show { animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }

/* Ilustraciones por sistema */
.viz-box { position: relative; height: 180px; margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #050505; }
.viz-box::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 24px 24px; }
.radar .rings { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 31px, #262626 31px 32px); }
.radar .sweep { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255,255,255,.25), transparent 70deg); animation: spin 4s linear infinite; }
.radar i { font-style: normal; position: absolute; left: var(--x); top: var(--y); width: 7px; height: 7px; border-radius: 50%; background: #555; }
.radar i.hit { background: var(--paper); animation: hit 2s ease-out infinite; }
.radar i.hit span { position: absolute; left: 14px; top: -7px; font-size: .6875rem; font-weight: 600; background: var(--paper); color: var(--ink); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.network svg { position: relative; width: 100%; height: 100%; }
.network .links line { stroke: #444; stroke-width: 1.2; stroke-dasharray: 4 6; animation: flow 1.4s linear infinite; }
.network .nodes circle { fill: #050505; stroke: var(--paper); stroke-width: 1.5; animation: node 3s ease-in-out infinite; }
.network .nodes circle:nth-child(2) { animation-delay: .5s; } .network .nodes circle:nth-child(3) { animation-delay: 1s; } .network .nodes circle:nth-child(4) { animation-delay: 1.5s; } .network .nodes circle:nth-child(5) { animation-delay: 2s; } .network .nodes circle:nth-child(6) { animation-delay: 2.5s; }
@keyframes node { 0%, 70%, 100% { fill: #050505; } 20% { fill: var(--paper); } }
.network .hub { fill: var(--paper); }
.network .lbl text { fill: #7a7a7a; font: 500 10px var(--sans); text-anchor: middle; }
.pipeline .cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.pipeline .cols span { border-right: 1px dashed #262626; font-size: .6875rem; font-weight: 500; color: #7a7a7a; padding: 12px; font-family: var(--mono); }
.pipeline .cols span:last-child { border-right: 0; color: var(--paper); }
.pipeline .lane { position: absolute; left: 0; right: 0; top: 55%; height: 1px; background: #2a2a2a; }
.pipeline .lane i { position: absolute; top: -5px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 14px rgba(255,255,255,.7); animation: travel 4s linear infinite; animation-delay: var(--d); }
@keyframes travel { 0% { left: 2%; opacity: 0; } 8%, 92% { opacity: 1; } 100% { left: 95%; opacity: 0; } }
.chat { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 16px; }
.chat .msg { position: relative; max-width: 78%; font-size: .8125rem; line-height: 1.4; padding: 8px 12px; border-radius: 12px; opacity: 0; animation: msg 7s var(--ease) infinite; }
.chat .msg.in { background: #1b1b1b; color: #d6d6d6; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat .msg.out { background: var(--paper); color: var(--ink); align-self: flex-end; border-bottom-right-radius: 4px; animation-delay: 1.4s; }
.chat .msg.typing { display: inline-flex; gap: 4px; padding: 11px 14px; animation-delay: 2.8s; }
.chat .msg.typing b { width: 5px; height: 5px; border-radius: 50%; background: #aaa; animation: typing 1.2s infinite; }
.chat .msg.typing b:nth-child(2) { animation-delay: .15s; } .chat .msg.typing b:nth-child(3) { animation-delay: .3s; }
@keyframes msg { 0% { opacity: 0; transform: translateY(8px); } 6%, 85% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes typing { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.barsviz { display: flex; align-items: flex-end; gap: 8px; padding: 18px 20px 0; }
.barsviz i { position: relative; flex: 1; height: var(--h); background: var(--paper); border-radius: 5px 5px 0 0; transform-origin: bottom; animation: grow 3.6s var(--ease) infinite; animation-delay: var(--d); }
.barsviz i:nth-child(-n+5) { background: #3a3a3a; }
@keyframes grow { 0% { transform: scaleY(.2); } 40%, 80% { transform: scaleY(1); } 100% { transform: scaleY(.2); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Proceso */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.progress { position: absolute; left: 24px; right: 24px; top: 46px; height: 1px; background: var(--line-2); z-index: 1; }
.progress i { position: absolute; inset: 0 100% 0 0; background: var(--paper); transition: right 2.2s var(--ease) .2s; }
.steps.in .progress i { right: 0; }
.progress::after { content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 12px #fff; animation: runner 5s linear infinite; opacity: 0; }
.steps.in .progress::after { opacity: 1; }
@keyframes runner { to { left: calc(100% - 7px); } }
.step { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: linear-gradient(180deg, #111, #070707); transition: border-color .3s, transform .35s var(--ease); }
.step:hover { border-color: var(--line-3); transform: translateY(-4px); }
.step .num { position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: #0b0b0b; display: grid; place-items: center; font-weight: 500; font-size: var(--s-1); transition: background .4s, color .4s; transition-delay: var(--delay, 0s); }
.steps.in .step .num { background: var(--paper); color: var(--ink); }
.step .viz { height: 60px; margin: 26px 0 20px; }
.step .viz svg { height: 100%; width: auto; }
.step h3 { font-size: var(--s3); margin-bottom: 8px; }
.step p { color: var(--mute); font-size: .9375rem; }
.loop-note { margin-top: 40px; display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--mute); text-align: left; }
.loop-note svg { width: 24px; height: 24px; flex: 0 0 24px; animation: spin 8s linear infinite; }

/* Marquee de contorno */
.outline-marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.outline-marquee .track { display: flex; align-items: center; width: max-content; animation: slide 44s linear infinite reverse; }
.outline-marquee span { font-size: clamp(3rem, 2rem + 4vw, 6rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: transparent; -webkit-text-stroke: 1px #4a4a4a; padding: 0 28px; white-space: nowrap; transition: color .3s, -webkit-text-stroke-color .3s; }
.outline-marquee span:hover { color: var(--paper); -webkit-text-stroke-color: var(--paper); }
.outline-marquee i { width: 40px; height: 40px; flex: 0 0 40px; color: #4a4a4a; animation: spin 12s linear infinite; }

/* About */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.manifesto { font-size: var(--s5); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; margin-top: 18px; }
.about .copy { margin-top: 30px; display: grid; gap: 16px; color: var(--mute); font-size: var(--s1); max-width: 54ch; }
.venn { width: 100%; max-width: 420px; justify-self: center; }
.venn circle.c { fill: none; stroke: rgba(255,255,255,.7); stroke-width: 1; transform-origin: center; transform-box: fill-box; animation: breathe 6s ease-in-out infinite; }
.venn circle.c:nth-of-type(2) { animation-delay: -2s; } .venn circle.c:nth-of-type(3) { animation-delay: -4s; }
@keyframes breathe { 50% { transform: scale(1.04); } }
.venn text { font-family: var(--sans); fill: var(--paper); font-weight: 500; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq h2 { font-size: var(--s4); margin-top: 16px; }
.faq .side p { margin: 16px 0 26px; color: var(--mute); max-width: 32ch; }
.qa { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.015); padding: 4px 24px; }
.qa details + details { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; font-weight: 500; font-size: var(--s1); }
.qa summary::-webkit-details-marker { display: none; }
.qa .pm { flex: 0 0 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-2); position: relative; transition: background .25s, transform .35s var(--ease); }
.qa .pm::before, .qa .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.qa .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa details[open] .pm { background: var(--paper); color: var(--ink); }
.qa .pm::after { transition: transform .35s var(--ease); }
.qa details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa .a { padding: 0 52px 24px 0; color: var(--mute); }

/* Contacto */
.contact { position: relative; overflow: hidden; text-align: center; border: 1px solid var(--line-2); border-radius: 28px; padding: clamp(56px, 8vw, 120px) clamp(24px, 6vw, 80px); background: #050505; display: flex; flex-direction: column; align-items: center; }
.contact-grid { position: absolute; left: -20%; right: -20%; bottom: -30%; height: 90%; transform: perspective(700px) rotateX(70deg); transform-origin: bottom; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 50% 80% at 50% 100%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 50% 80% at 50% 100%, #000 20%, transparent 75%); animation: floor 6s linear infinite; }
.contact-glow { position: absolute; left: 50%; bottom: -40%; width: 900px; height: 600px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(255,255,255,.22), transparent 60%); }
.contact > *:not(.contact-grid):not(.contact-glow) { position: relative; }
.contact h2 { font-size: var(--s5); max-width: 15ch; margin-top: 18px; }
.contact p { margin-top: 20px; font-size: var(--s1); color: var(--mute); max-width: 44ch; }
.contact .actions { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Footer */
.site-footer { padding: 56px 0 32px; }
.site-footer .row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer .row + .row { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: var(--s-1); color: var(--ash); }
.flinks { display: flex; gap: 22px; flex-wrap: wrap; }
.flinks a { text-decoration: none; color: var(--mute); font-size: .9375rem; overflow-wrap: anywhere; }
.flinks a:hover, .legal-links a:hover { color: var(--paper); }
.legal-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.legal-links a { text-decoration: none; color: var(--ash); }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .2s, color .2s; }
.socials a:hover { background: var(--paper); color: var(--ink); }
.socials svg { width: 16px; height: 16px; }

/* Legal */
.legal-hero { padding: 170px 0 40px; }
.legal-hero h1 { font-size: var(--s4); margin-top: 16px; }
.legal-hero p { margin-top: 14px; color: var(--mute); }
.lang-switch { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.lang-switch a { text-decoration: none; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 16px; font-size: .875rem; }
.lang-switch a:hover { background: var(--paper); color: var(--ink); }
.legal { padding-bottom: 120px; }
.legal article { max-width: 760px; scroll-margin-top: 110px; }
.legal article + article { margin-top: 80px; padding-top: 52px; border-top: 1px solid var(--line); }
.legal .updated { color: var(--ash); font-size: var(--s-1); }
.legal h2 { font-size: var(--s2); margin: 34px 0 10px; letter-spacing: -0.02em; }
.legal p { color: var(--mute); }
.legal p + p { margin-top: 12px; }
.legal strong { color: var(--paper); font-weight: 600; }

/* Selector de correo */
.mail-pop { position: fixed; z-index: 120; width: 240px; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 8px; border: 1px solid #d9d9d9; box-shadow: 0 18px 50px rgba(0,0,0,.5); animation: popIn .22s var(--ease); }
.mail-pop[hidden] { display: none; }
.mail-pop .mail-to { font-size: var(--s-1); color: #666; padding: 8px 12px 6px; }
.mail-pop a, .mail-pop button { display: block; width: 100%; text-align: left; font: 500 .9375rem var(--sans); color: var(--ink); text-decoration: none; background: none; border: 0; padding: 10px 12px; border-radius: 9px; cursor: pointer; }
.mail-pop a:hover, .mail-pop button:hover, .mail-pop a:focus-visible, .mail-pop button:focus-visible { background: #efefef; outline: none; }
.mail-pop button { border-top: 1px solid #e6e6e6; border-radius: 0 0 9px 9px; margin-top: 4px; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } }

/* Barra de progreso y brillo de tarjetas */
.scroll-bar { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--paper); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; pointer-events: none; }
.spot { isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .3s; background: radial-gradient(380px circle at var(--cx, 50%) var(--cy, 50%), rgba(255,255,255,.07), transparent 65%); }
.spot:hover::after { opacity: 1; }
.tab.spot { position: relative; }

.mobile-menu { display: none; }

@media (max-width: 960px) {
  .nav { display: none; }
  .systems, .about, .faq { grid-template-columns: 1fr; }
  .tabs { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .progress { display: none; }
}
@media (max-width: 820px) {
  .site-header { inset: 10px 0 auto 0; }
  .bar { height: 56px; padding: 0 8px 0 14px; }
  .bar-cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--paper); font: 500 .875rem var(--sans); cursor: pointer; }
  .menu-btn .bars { width: 16px; height: 10px; position: relative; }
  .menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
  .menu-btn .bars::before { top: 0; } .menu-btn .bars::after { top: 8px; }
  body.menu-open .menu-btn .bars::before { top: 4px; transform: rotate(45deg); }
  body.menu-open .menu-btn .bars::after { top: 4px; transform: rotate(-45deg); }
  body.menu-open { overflow: hidden; }
  .mobile-menu { display: flex; position: fixed; inset: 0; z-index: 49; background: var(--ink); padding: 100px var(--gutter) 36px; flex-direction: column; justify-content: space-between; opacity: 0; visibility: hidden; transition: .3s var(--ease); overflow: hidden; }
  body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
  .mobile-menu nav { display: grid; position: relative; z-index: 1; }
  .mobile-menu nav a { text-decoration: none; font-weight: 500; font-size: 2rem; letter-spacing: -0.035em; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { position: relative; z-index: 1; width: 100%; }
  .mobile-menu .bg { position: absolute; width: 460px; height: 460px; right: -200px; bottom: -160px; color: #141414; animation: spin 80s linear infinite; }

  .hero { padding-top: 130px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .stage { height: 440px; margin-top: 40px; perspective: 900px; }
  .scene { width: 100%; }
  .w-main { width: 92%; height: 64%; top: 0; }
  .w-main .wbody { grid-template-columns: 1fr; }
  .wside { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; } .kpis div:nth-child(3) { display: none; }
  .w-agent { width: 76%; left: 2%; bottom: 2%; }
  .cards { width: 62%; right: 2%; top: 44%; }
  .cards { display: none; }
  .w-agent { width: 84%; left: 8%; }
  .marquee span { font-size: var(--s0); }

  .words { font-size: var(--s3); }
  .map-track { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .flow { display: none; }
  .node .dot { width: 64px; height: 64px; }
  .data-bar { flex-direction: column; justify-content: center; height: auto; padding: 12px; gap: 2px; text-align: center; }
  .readout { grid-template-columns: 1fr; gap: 10px; }
  .tab { padding: 14px; grid-template-columns: 32px 1fr auto; gap: 12px; }
  .tab .ic { width: 32px; height: 32px; }
  .viz-box { height: 150px; }
  .steps { grid-template-columns: 1fr; }
  .qa { padding: 4px 18px; }
  .qa .a { padding-right: 0; }
  .contact { border-radius: 22px; }
  .contact .actions .btn { flex: 1 1 100%; }
  .outline-marquee i { width: 28px; height: 28px; flex-basis: 28px; }
  .site-footer .row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .log li, .chat .msg { opacity: 1; }
  .chart .line { stroke-dashoffset: 0; } .chart .area { opacity: 1; }
  .words .wd { color: var(--paper); }
  html { scroll-behavior: auto; }
}

/* =========================================================
   v8 · black premium: domo luminoso, arcos, stack, titulares plateados
   ========================================================= */
:root { --surface: #070707; }
.hero h1, .head h2, .manifesto, .contact h2, .faq h2, .panel h3 { background: linear-gradient(180deg, #fff 35%, #9d9d9d 105%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 em, .head h2 em, .manifesto em, .contact h2 em, .faq h2 em { background: inherit; -webkit-background-clip: text; background-clip: text; }

/* Domo en el escenario */
.dome { position: absolute; left: 50%; bottom: -16%; width: 128%; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); transform: translateX(-50%) translateZ(-60px); pointer-events: none; opacity: 0; animation: domeIn 2.2s var(--ease) .3s forwards; }
.dome svg, .contact-dome svg { width: 100%; height: auto; overflow: visible; }
.dome-ticks { transform-origin: 500px 520px; animation: tickSpin 60s linear infinite; }
.dome-core { animation: corePulse 6s ease-in-out infinite; transform-origin: 500px 520px; }
@keyframes domeIn { to { opacity: 1; } }
@keyframes tickSpin { to { transform: rotate(-360deg); } }
@keyframes corePulse { 50% { opacity: .7; transform: scale(1.06); } }
.hero-glow { opacity: .55; }
.beam { opacity: .6; }

/* Stack */
.stack { position: relative; z-index: 2; margin-top: 56px; }
.stack-cap { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); margin-bottom: 14px; }
.stack .marquee { margin-top: 0; }
.stack .marquee span { color: #8f8f8f; font-weight: 500; font-size: var(--s1); }
.stack .marquee span i { opacity: .5; }

/* Arcos del método */
.arcs { height: clamp(160px, 22vw, 290px); margin-bottom: -30px; }
.arcs svg { width: 100%; height: 100%; overflow: visible; }
.arcs .base { stroke: rgba(255,255,255,.14); stroke-width: 1; }
.arcs .guide { stroke: rgba(255,255,255,.18); stroke-width: 1; stroke-dasharray: 3 5; }
.arcs .arc { fill: none; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.arcs .glow { fill: none; stroke-width: 8; opacity: 0; }
.arcs .peak { fill: #fff; opacity: 0; }
.arcs text { fill: #8b8b8b; font: 500 13px var(--sans); text-anchor: middle; opacity: 0; }
.arcs.in .arc { animation: drawArc 1.4s var(--ease) forwards; animation-delay: calc(var(--i) * .35s + .2s); }
.arcs.in .glow { animation: glowIn 1.4s ease forwards; animation-delay: calc(var(--i) * .35s + .9s); }
.arcs.in .peak, .arcs.in text { animation: fadeIn .6s ease forwards; animation-delay: calc(var(--i) * .35s + 1.2s); }
@keyframes drawArc { to { stroke-dashoffset: 0; } }
@keyframes glowIn { to { opacity: .45; } }
.step .viz { display: none; }
.step h3 { margin-top: 24px; }

/* Contacto: domo en lugar de cuadrícula */
.contact { background: radial-gradient(ellipse 80% 60% at 50% 110%, #1a1a1a, #050505 70%); }
.contact-dome { position: absolute; left: 50%; bottom: -4%; width: 100%; max-width: 1100px; transform: translateX(-50%); pointer-events: none; opacity: .55; -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%); mask-image: linear-gradient(to bottom, #000 50%, transparent 100%); }
.contact-glow { opacity: .5; }

/* Ventanas con borde degradado premium */
.win { border-color: rgba(255,255,255,.12); background: linear-gradient(180deg, #141414, #070707 45%); box-shadow: 0 40px 100px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.02); }

@media (max-width: 820px) {
  .dome { width: 170%; bottom: 4%; }
  .stack { margin-top: 36px; }
  .arcs { height: 130px; margin-bottom: -10px; }
  .arcs text { font-size: 22px; }
  .contact-dome { width: 220%; bottom: -2%; }
}
@media (prefers-reduced-motion: reduce) {
  .dome { opacity: 1; }
  .arcs .arc { stroke-dashoffset: 0; } .arcs .peak, .arcs text { opacity: 1; } .arcs .glow { opacity: .45; }
}

.stage-note { margin-top: 22px; }
