/* IntegrIA Tech — estilos globales */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --void: #05070D;
  --navy: #0A0F1E;
  --blue: #1E5BFF;
  --cyan: #00D4FF;
  --white: #FFFFFF;
  --paper: #F2F5FA;
  --ink: #0A1E4A;
  --ink-2: #3F5680;
  --mist: #A9B4CC;
  --line-d: rgba(169, 180, 204, 0.16);
  --line-l: #D6DEEA;
  --danger: #E5484D;
  --display: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;
  --body: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.ia {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Fondo ---------- */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; opacity: 0; transition: opacity 1.2s ease; }
#gl.ready { opacity: 1; }
.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 70% 45%, var(--glow-1), transparent 70%),
    radial-gradient(40% 40% at 20% 80%, var(--glow-2), transparent 70%);
}
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(70% 60% at 50% 50%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000 20%, transparent 80%);
}
/* Sin WebGL: esfera de respaldo hecha con CSS */
.no-gl .glow {
  background:
    radial-gradient(circle at 72% 48%, rgba(0, 212, 255, .22) 0, rgba(30, 91, 255, .28) 12%, transparent 26%),
    radial-gradient(60% 50% at 70% 45%, var(--glow-1), transparent 70%);
}
main { position: relative; z-index: 1; }

/* Transición entre idiomas */
.sweep { position: fixed; inset: 0; z-index: 70; pointer-events: none; background: var(--blue); transform: scaleX(0); transform-origin: left; }
html.leaving .sweep { transition: transform .45s var(--ease); transform: scaleX(1); }

/* ---------- Menú ---------- */
.nav {
  position: fixed; z-index: 40; left: 0; right: 0; top: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) var(--gutter) 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--fg); transition: color .35s ease;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--panel); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  opacity: 0; transition: opacity .3s ease, background .35s ease, border-color .35s ease;
}
.nav.scrolled::before { opacity: 1; }
.nav.on-light::before { background: rgba(255, 255, 255, .85); border-bottom-color: var(--line-l); }
.nav.on-light { color: var(--ink); }
.nav.on-light .ia { background: none; color: var(--blue); }
.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.logo b { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -.045em; }
.logo b .ia { font-weight: 700; letter-spacing: -.02em; margin-left: .02em; }
.logo .tag { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 14px; }
.nav-links a:not(.lang):hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-pages { display: flex; align-items: center; gap: 28px; }
.menu-btn {
  display: none; position: relative; width: 44px; height: 44px; flex: none;
  border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; cursor: pointer;
}
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.nav.open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.lang { border: 1px solid currentColor; border-radius: 999px; padding: 6px 12px; font: 500 12px var(--mono); letter-spacing: .1em; }
.lang .off { opacity: .45; }

/* ---------- Hero ---------- */
.hero {
  min-height: 88svh; padding: 120px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.eyebrow { color: var(--fg-2); display: flex; gap: 14px; align-items: center; margin: 0; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--cyan); }
h1 {
  font-family: var(--display); font-weight: 500; margin: 0;
  font-size: clamp(2.4rem, 6.2vw, 6.2rem); line-height: 1; letter-spacing: -.045em;
}
h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
h1.h1-home { font-size: clamp(2.2rem, 5.4vw, 5.6rem); }
h1 .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--intro, .2s) + var(--i, 0) * .1s); }
h1 .accent > span {
  background: linear-gradient(90deg, var(--blue) 0%, var(--cyan-text) 35%, var(--blue) 65%, var(--cyan-text) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1.1s var(--ease) both, shimmer 7s linear infinite;
  animation-delay: calc(var(--intro, .2s) + var(--i, 0) * .1s), 0s;
}
@keyframes shimmer { to { background-position: -300% 0; } }
@keyframes rise { from { transform: translateY(110%); } to { transform: translateY(0); } }
.fade-in { animation: fade 1s ease both; animation-delay: calc(var(--intro, .2s) + .45s); }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero-foot p { max-width: 36rem; margin: 0; color: var(--fg-2); font-size: 17px; line-height: 1.65; }

/* ---------- Hero centrado (inicio) ---------- */
.hero--center { align-items: center; text-align: center; justify-content: center; gap: 26px; padding-top: 140px; }
.hero--center .hero-mark { width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 0 48px rgba(0, 212, 255, .18); }
.hero--center .eyebrow { justify-content: center; gap: 10px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; background: var(--glass); }
.hero--center .eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.hero--center h1.h1-home { font-size: clamp(2.3rem, 7vw, 7.2rem); margin-top: 6px; }
.hero--center .hero-foot { flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
.hero--center .hero-foot p { max-width: 46rem; font-size: clamp(17px, 1.4vw, 20px); }
.hero--center .ctas { justify-content: center; }
.hero--center .scroll-hint { margin-top: 18px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; cursor: pointer;
  font: 500 15px var(--body); padding: 15px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--cyan); color: var(--void); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: var(--glass); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn[disabled] { opacity: .6; cursor: progress; }
.scroll-hint { color: var(--fg-2); display: flex; align-items: center; gap: 10px; }
.scroll-hint i { width: 1px; height: 36px; background: linear-gradient(var(--cyan), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Método ---------- */
.step { min-height: 82vh; display: flex; align-items: center; padding: 64px var(--gutter); }
.panel { max-width: 31rem; display: grid; gap: 18px; }
.panel .idx { color: var(--cyan-text); }
.panel h3 { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4.2vw, 3.6rem); letter-spacing: -.04em; line-height: 1; margin: 0; }
.panel p { color: var(--fg-2); font-size: 17px; margin: 0; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.tags li { font: 500 11px var(--mono); letter-spacing: .08em; border: 1px solid var(--line); color: var(--fg-2); padding: 5px 10px; border-radius: 999px; }
.hud {
  position: fixed; z-index: 30; right: var(--gutter); bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
  display: grid; gap: 10px; width: 230px; color: var(--fg-2);
  opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; pointer-events: none;
}
.hud.on { opacity: 1; transform: none; }
.hud .track { height: 2px; background: var(--line); position: relative; }
.hud .track i { position: absolute; inset: 0; background: var(--cyan); transform-origin: left; transform: scaleX(0); }
.hud b { color: var(--fg); font-weight: 500; }

/* ---------- Zona clara ---------- */
.light-zone { position: relative; background: var(--white); color: var(--ink); }
.light-sec { padding: clamp(64px, 9vw, 112px) var(--gutter); }
.kicker { color: var(--blue); margin: 0; }
.big {
  font-family: var(--display); font-weight: 500; letter-spacing: -.045em; line-height: 1;
  font-size: clamp(2.2rem, 4.8vw, 4.6rem); margin: 16px 0 0; max-width: 16ch; text-wrap: balance;
}
.big em { font-style: normal; background: linear-gradient(90deg, var(--blue) 0%, var(--cyan-text) 35%, var(--blue) 65%, var(--cyan-text) 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s linear infinite; }
.svc-groups { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 48px; }
.svc-group h3 { margin: 0 0 8px; display: flex; justify-content: space-between; color: var(--ink-2); font-weight: 500; }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.svc {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 40px; gap: 24px; align-items: center;
  padding: 20px 16px; border-bottom: 1px solid var(--line-l); overflow: hidden;
}
.svc::before { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.svc > * { position: relative; transition: color .3s; }
.svc .name { font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: -.025em; line-height: 1.15; margin: 0; }
.svc .desc { color: var(--ink-2); font-size: 15px; margin: 0; }
.svc .arrow { justify-self: end; font-size: 22px; transform: translateX(-8px); opacity: .35; transition: transform .5s var(--ease), opacity .3s, color .3s; }
@media (hover: hover) {
  .svc:hover::before { transform: scaleX(1); }
  .svc:hover > * { color: #fff; }
  .svc:hover .arrow { transform: none; opacity: 1; }
}

.figures { background: var(--paper); }
.fig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-l); margin-top: 40px; }
.fig { padding: 32px 24px 8px 0; display: grid; gap: 12px; align-content: start; }
.fig + .fig { border-left: 1px solid var(--line-l); padding-left: 24px; }
.fig .num { font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 6vw, 5.4rem); line-height: .9; letter-spacing: -.05em; color: var(--blue); font-variant-numeric: tabular-nums; }
.fig .lbl { font-weight: 600; font-size: 17px; }
.fig .sub { color: var(--ink-2); font-size: 14px; }

.founders { background: var(--paper); padding-top: 0; }
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: 40px; }
.founder { display: grid; gap: 18px; align-content: start; }
.portrait {
  position: relative; aspect-ratio: 4 / 3; max-height: 320px; max-width: 100%; border-radius: 4px; overflow: hidden;
  background-color: var(--navy);
  background-image:
    radial-gradient(70% 70% at 70% 30%, rgba(30, 91, 255, .45), transparent 70%),
    linear-gradient(rgba(169, 180, 204, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 180, 204, .1) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  display: flex; align-items: flex-end; padding: 20px;
  transition: transform .8s var(--ease);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); mix-blend-mode: luminosity; }
.portrait .ini { font-family: var(--display); font-weight: 300; font-size: clamp(4rem, 10vw, 8rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--cyan); letter-spacing: -.04em; }
@media (hover: hover) { .founder:hover .portrait { transform: scale(.98); } }
.founder h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2vw, 1.8rem); letter-spacing: -.03em; margin: 0; line-height: 1.1; }
.founder .role { color: var(--blue); margin: 0; }
.founder p { margin: 0; color: var(--ink-2); max-width: 36rem; }
.creds { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.creds li { font: 500 11px var(--mono); letter-spacing: .06em; border: 1px solid var(--line-l); background: var(--white); padding: 5px 10px; border-radius: 999px; color: var(--ink); }

/* ---------- Contacto ---------- */
.contact { padding: 110px var(--gutter) 32px; display: grid; gap: 56px; }
.contact .kicker { color: var(--cyan-text); }
.contact h2 { font-family: var(--display); font-weight: 500; font-size: clamp(2.2rem, 5vw, 4.8rem); letter-spacing: -.045em; line-height: 1; margin: 16px 0 0; max-width: 16ch; text-wrap: balance; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-info { display: grid; gap: 28px; }
.contact-info p { margin: 0; color: var(--fg-2); max-width: 28rem; }
.mail-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.mail { font-family: var(--mono); font-size: clamp(15px, 2vw, 20px); padding: 13px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); text-decoration: none; }
.mail:hover { border-color: var(--cyan); }
.where { color: var(--fg-2); }

.form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px;
  padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--fg-2); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px var(--body); color: var(--fg);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 13px 14px;
  transition: border-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%), linear-gradient(135deg, var(--fg-2) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; color: var(--fg-2); font-size: 14px; }
.check input { margin-top: 4px; accent-color: var(--blue); width: 16px; height: 16px; flex: none; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.status { font-size: 14px; color: var(--fg-2); margin: 0; }
.status.ok { color: var(--cyan-text); }
.status.err { color: #FF8A8E; }
.hp { position: absolute; left: -9999px; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--fg-2); border-top: 1px solid var(--line); padding-top: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }

/* ---------- Página legal ---------- */
.legal { padding: 120px var(--gutter) 64px; }
.legal-body { max-width: 46rem; display: grid; gap: 18px; color: var(--ink-2); }
.legal-body h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.03em; font-size: 1.5rem; color: var(--ink); margin: 28px 0 0; }
.legal-body p, .legal-body ul { margin: 0; }
.legal-body .note { font-size: 14px; border-left: 2px solid var(--blue); padding-left: 14px; }

/* ---------- Bloque azul (Desarrollo) ---------- */
.sec-blue {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(0, 212, 255, .28), transparent 60%),
    linear-gradient(135deg, #1E5BFF 0%, #1546D6 100%);
  color: #fff;
  padding-top: clamp(64px, 9vw, 120px);
}
.sec-blue .kicker, .sec-blue .svc-group h3 { color: rgba(255, 255, 255, .78); }
.sec-blue .big em { color: var(--void); }
.sec-blue .svc-groups { margin-top: 0; }
.sec-blue .big + .svc-detail-list, .sec-blue .big + .svc-groups { margin-top: clamp(48px, 7vw, 96px); }
.sec-blue .svc-list, .sec-blue .svc-detail-list { border-top-color: #fff; }
.sec-blue .svc, .sec-blue .svc-detail { border-bottom-color: rgba(255, 255, 255, .22); }
.sec-blue .svc .desc { color: rgba(255, 255, 255, .8); }
.sec-blue .svc::before { background: var(--void); }
.sec-blue .svc .arrow { opacity: .6; }
.sec-blue .more-link { color: #fff; }
.sec-blue .svc-detail .mono { color: rgba(255, 255, 255, .7); }
.sec-blue .svc-detail .when p:last-child { color: rgba(255, 255, 255, .85); }
.sec-blue .svc-detail li { color: #fff; }
.sec-blue .svc-detail li::before { background: var(--cyan); }
.sec-blue :focus-visible { outline-color: #fff; }

/* ---------- Animaciones de las fases ---------- */
.step .panel { position: relative; }
.step .panel > * { position: relative; }

/* 01 Diagnóstico: escaneo */
.fx-scan {
  position: absolute !important; left: -12px; right: -12px; top: 0; height: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 18px 3px rgba(0, 212, 255, .55);
}
html.anim .step-scan:not(.in) .panel > :not(.fx-scan) { clip-path: inset(0 0 100% 0); }
html.anim .step-scan.in .fx-scan { animation: scanMove 1.4s cubic-bezier(.45, 0, .25, 1) both; }
html.anim .step-scan.in .panel > :not(.fx-scan) { animation: scanReveal .8s cubic-bezier(.45, 0, .25, 1) both; }
html.anim .step-scan.in .panel > :nth-child(2) { animation-delay: .05s; }
html.anim .step-scan.in .panel > :nth-child(3) { animation-delay: .25s; }
html.anim .step-scan.in .panel > :nth-child(4) { animation-delay: .5s; }
html.anim .step-scan.in .panel > :nth-child(5) { animation-delay: .8s; }
@keyframes scanMove { 0% { top: 0; opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes scanReveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* 02 Diseño: plano que se dibuja */
.fx-frame { position: absolute !important; inset: -18px; pointer-events: none; }
.fx-frame i { position: absolute; background: rgba(0, 212, 255, .55); }
.fx-frame i:nth-child(1) { top: 0; left: 0; right: 0; height: 1px; transform-origin: left; }
.fx-frame i:nth-child(2) { top: 0; right: 0; bottom: 0; width: 1px; transform-origin: top; }
.fx-frame i:nth-child(3) { bottom: 0; left: 0; right: 0; height: 1px; transform-origin: right; }
.fx-frame i:nth-child(4) { top: 0; left: 0; bottom: 0; width: 1px; transform-origin: bottom; }
.fx-frame::before, .fx-frame::after { content: ""; position: absolute; width: 9px; height: 9px; border: 1px solid var(--cyan); }
.fx-frame::before { top: -4px; left: -4px; }
.fx-frame::after { bottom: -4px; right: -4px; }
html.anim .step-draw:not(.in) .fx-frame i:nth-child(odd) { transform: scaleX(0); }
html.anim .step-draw:not(.in) .fx-frame i:nth-child(even) { transform: scaleY(0); }
html.anim .step-draw:not(.in) .fx-frame::before, html.anim .step-draw:not(.in) .fx-frame::after { opacity: 0; }
html.anim .step-draw:not(.in) .panel > :not(.fx-frame) { opacity: 0; }
html.anim .step-draw.in .fx-frame i:nth-child(odd) { animation: drawX .45s cubic-bezier(.65, 0, .35, 1) both; }
html.anim .step-draw.in .fx-frame i:nth-child(even) { animation: drawY .45s cubic-bezier(.65, 0, .35, 1) both; }
html.anim .step-draw.in .fx-frame i:nth-child(2) { animation-delay: .45s; }
html.anim .step-draw.in .fx-frame i:nth-child(3) { animation-delay: .9s; }
html.anim .step-draw.in .fx-frame i:nth-child(4) { animation-delay: 1.35s; }
html.anim .step-draw.in .fx-frame::before { animation: fade .3s ease both; }
html.anim .step-draw.in .fx-frame::after { animation: fade .3s ease .9s both; }
html.anim .step-draw.in .panel > :not(.fx-frame) { animation: fade .8s var(--ease) both; }
html.anim .step-draw.in .panel > :nth-child(2) { animation-delay: .3s; }
html.anim .step-draw.in .panel > :nth-child(3) { animation-delay: .45s; }
html.anim .step-draw.in .panel > :nth-child(4) { animation-delay: .6s; }
html.anim .step-draw.in .panel > :nth-child(5) { animation-delay: .75s; }
@keyframes drawX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drawY { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* 03 Ejecución: barra de avance */
.fx-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.fx-progress .bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.fx-progress .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform-origin: left; }
.fx-progress .pct { color: var(--cyan-text); min-width: 4ch; text-align: right; font-variant-numeric: tabular-nums; }
html.anim .step-build:not(.in) .panel > .idx,
html.anim .step-build:not(.in) .panel > h3,
html.anim .step-build:not(.in) .panel > p { opacity: 0; transform: translateX(-40px); }
html.anim .step-build:not(.in) .fx-progress .bar i { transform: scaleX(0); }
html.anim .step-build:not(.in) .tags li { opacity: 0; transform: scale(.6); }
html.anim .step-build.in .panel > .idx,
html.anim .step-build.in .panel > h3,
html.anim .step-build.in .panel > p { animation: slideIn .7s var(--ease) both; }
html.anim .step-build.in .panel > h3 { animation-delay: .1s; }
html.anim .step-build.in .panel > p { animation-delay: .2s; }
html.anim .step-build.in .fx-progress .bar i { animation: fillBar 1.8s cubic-bezier(.65, 0, .35, 1) .4s both; }
html.anim .step-build.in .tags li { animation: pop .5s var(--ease) both; }
html.anim .step-build.in .tags li:nth-child(1) { animation-delay: .9s; }
html.anim .step-build.in .tags li:nth-child(2) { animation-delay: 1.4s; }
html.anim .step-build.in .tags li:nth-child(3) { animation-delay: 1.9s; }
.step-build .tags li { border-color: rgba(0, 212, 255, .35); }
@keyframes slideIn { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes fillBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* 04 Operación: pulso */
.fx-pulse { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--fg-2); }
.fx-pulse svg { width: 200px; height: 40px; flex: none; overflow: visible; }
.fx-pulse polyline { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 0; filter: drop-shadow(0 0 4px rgba(0, 212, 255, .7)); }
.fx-pulse .dot { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--cyan); vertical-align: 1px; }
html.anim .step-pulse:not(.in) .panel > :not(.fx-pulse) { opacity: 0; filter: blur(10px); }
html.anim .step-pulse:not(.in) .fx-pulse { opacity: 0; }
html.anim .step-pulse.in .panel > :not(.fx-pulse) { animation: blurIn 1s ease both; }
html.anim .step-pulse.in .panel > h3 { animation-delay: .15s; }
html.anim .step-pulse.in .panel > p { animation-delay: .3s; }
html.anim .step-pulse.in .panel > ul { animation-delay: .45s; }
html.anim .step-pulse.in .fx-pulse { animation: fade .6s ease .6s both; }
html.anim .step-pulse.in .fx-pulse polyline { animation: ecg 2.6s ease-in-out .8s infinite both; }
html.anim .step-pulse.in .fx-pulse .dot { animation: beat 1.3s ease-in-out infinite; }
@keyframes blurIn { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: blur(0); } }
@keyframes ecg { 0% { stroke-dashoffset: 300; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -300; } }
@keyframes beat { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, .7); } 50% { box-shadow: 0 0 0 7px rgba(0, 212, 255, 0); } }

/* ---------- Páginas internas ---------- */
.page-hero { min-height: 62svh; justify-content: flex-end; gap: 32px; }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 5.6rem); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

.more { margin: 48px 0 0; }
.more-link { display: inline-flex; gap: 10px; align-items: center; font-weight: 500; font-size: 17px; color: var(--blue); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.more-link span { transition: transform .4s var(--ease); }
.more-link:hover span { transform: translateX(6px); }

.svc-detail-list { margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--ink); }
.svc-detail {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px 40px;
  padding: 28px 0; border-bottom: 1px solid var(--line-l); scroll-margin-top: 100px;
}
.svc-detail h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -.025em; line-height: 1.15; margin: 0; }
.svc-detail .when, .svc-detail .deliv { display: grid; gap: 8px; align-content: start; }
.svc-detail .when p, .svc-detail .deliv p { margin: 0; }
.svc-detail .mono { color: var(--blue); font-size: 11px; }
.svc-detail .when p:last-child { color: var(--ink-2); }
.svc-detail ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.svc-detail li { padding-left: 18px; position: relative; color: var(--ink); }
.svc-detail li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--blue); }
.svc-detail .basis { grid-column: 2 / -1; color: var(--ink-2); margin: 0; }

.band { padding: clamp(64px, 9vw, 112px) var(--gutter); display: grid; gap: 18px; }
.band .kicker { color: var(--cyan-text); }
.band h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 3.8vw, 3.4rem); letter-spacing: -.04em; line-height: 1.05; margin: 0; max-width: 20ch; text-wrap: balance; }
.band p:last-child { color: var(--fg-2); font-size: 17px; max-width: 42rem; margin: 0; }
.band-ice {
  background:
    radial-gradient(70% 120% at 100% 100%, rgba(30, 91, 255, .14), transparent 60%),
    #EAF1FF;
  color: var(--ink);
}
.band-ice .kicker { color: var(--blue); }
.band-ice h2 em { font-style: normal; color: var(--blue); }
.band-ice p:last-child { color: var(--ink-2); }

/* Filas alternadas */
.svc-detail { padding-inline: 20px; }
.svc-detail:nth-child(even) { background: #F1F5FF; }
.sec-blue .svc-detail:nth-child(even) { background: rgba(5, 7, 13, .16); }
.svc:nth-child(even) { background: #F1F5FF; }
.sec-blue .svc:nth-child(even) { background: rgba(5, 7, 13, .16); }

.person { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); margin-top: 28px; align-items: start; }
.person .big { margin: 0; font-size: clamp(1.9rem, 3.6vw, 3.2rem); max-width: none; }
.person-body { display: grid; gap: 24px; }
.lead { font-size: 17px; color: var(--ink-2); margin: 0; max-width: 40rem; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line-l); }
.timeline li { display: grid; grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-l); align-items: baseline; }
.timeline .mono { color: var(--blue); font-size: 11px; }
.timeline b { font-weight: 600; }
.timeline span:last-child { color: var(--ink-2); }

.principles { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.principles li { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line-l); display: grid; gap: 10px; align-content: start; }
.principles li:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line-l); }
.principles .mono { color: var(--blue); }
.principles h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem, 1.7vw, 1.4rem); letter-spacing: -.02em; margin: 0; }
.principles p { margin: 0; color: var(--ink-2); max-width: 30rem; }

.facts { margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-l); }
.facts div { padding: 20px 20px 0 0; display: grid; gap: 6px; }
.facts dt { color: var(--ink-2); font-size: 11px; }
.facts dd { margin: 0; font-weight: 500; }

.contact-page { padding-top: 120px; gap: 48px; }
.contact-page h1 { font-size: clamp(2.4rem, 5.6vw, 5.6rem); margin-top: 16px; }
.legal-foot { margin: 0 var(--gutter); padding-bottom: 40px; color: var(--ink-2); border-top-color: var(--line-l); }
.legal-foot a:hover { color: var(--ink); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; z-index: 60; left: 0; top: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid #fff; border-radius: 50%; pointer-events: none; mix-blend-mode: difference; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, opacity .3s; display: none; opacity: 0; }
.cursor.big { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: #fff; }
html.has-cursor .cursor { display: block; }
html.has-cursor.cursor-live .cursor { opacity: 1; }
html.has-cursor.cursor-live, html.has-cursor.cursor-live a, html.has-cursor.cursor-live button { cursor: none; }

/* ---------- Responsive ---------- */

/* ---------- Portada: compacta y centrada ---------- */
main.home .hero--center { min-height: 0; padding: 120px var(--gutter) 48px; gap: 22px; }
main.home .step { min-height: 0; padding: 72px var(--gutter); justify-content: center; }
main.home .panel { max-width: 38rem; text-align: center; justify-items: center; }
main.home .tags, main.home .creds, main.home .mail-row { justify-content: center; }
main.home .fx-progress { width: 100%; }
main.home .light-sec { padding: clamp(48px, 6vw, 80px) var(--gutter); text-align: center; }
main.home .big, main.home .contact h2 { margin-left: auto; margin-right: auto; }
main.home .founders .big { max-width: 24ch; }
main.home .svc-groups { margin-top: clamp(28px, 4vw, 48px); }
main.home .sec-blue .big + .svc-groups { margin-top: clamp(32px, 5vw, 64px); }
main.home .svc-group h3 { justify-content: center; gap: 24px; }
main.home .svc { text-align: left; }
main.home .fig-grid { margin-top: 28px; }
main.home .fig { padding: 28px 24px 8px; justify-items: center; }
main.home .f-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
main.home .founder { justify-items: center; gap: 12px; padding: 28px 22px 26px; background: var(--white); border: 1px solid var(--line-l); border-radius: 16px; }
main.home .portrait { width: 96px; height: 96px; aspect-ratio: 1; max-height: none; border-radius: 50%; padding: 0; align-items: center; justify-content: center; border: 2px solid rgba(30, 91, 255, .35); box-shadow: 0 0 0 5px rgba(30, 91, 255, .08); }
main.home .portrait img { filter: none; mix-blend-mode: normal; object-position: 50% 20%; }
main.home .portrait .ini { font-size: 2rem; line-height: 1; }
main.home .founder h3 { font-size: 1.3rem; }
main.home .founder p { font-size: 15px; max-width: 30rem; }
main.home .contact { padding: 72px var(--gutter) 28px; gap: 36px; text-align: center; justify-items: center; }
main.home .contact-info { justify-items: center; }
main.home .contact-info p { max-width: 34rem; }
main.home .foot { width: 100%; justify-content: center; }
@media (max-width: 860px) { main.home .f-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .nav-links { gap: 10px; }
  .menu-btn { display: inline-block; }
  .nav.open::before { opacity: 1; }
  .nav-pages {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px var(--gutter) 28px;
    background: var(--solid); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s ease, transform .4s var(--ease), visibility .3s;
  }
  .nav.open .nav-pages { opacity: 1; visibility: visible; transform: none; }
  .nav-pages a {
    font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -.02em;
    padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none;
  }
  .nav-pages a[aria-current="page"] { color: var(--cyan); text-decoration: none; }
  .nav.on-light .nav-pages { background: rgba(255, 255, 255, .97); border-bottom-color: var(--line-l); }
  .nav.on-light .nav-pages a { color: var(--ink); border-bottom-color: var(--line-l); }
  .nav.on-light .nav-pages a[aria-current="page"] { color: var(--blue); }
  .panel { background: var(--panel); border: 1px solid var(--line); padding: 24px; border-radius: 6px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .svc { grid-template-columns: minmax(0, 1fr) 28px; gap: 6px 16px; padding: 16px 12px; }
  .svc .desc { grid-column: 1; grid-row: 2; }
  .svc .arrow { grid-row: 1 / span 2; grid-column: 2; }
  .fig-grid { grid-template-columns: minmax(0, 1fr); }
  .fig + .fig { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-l); }
  .f-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .hud { display: none; }
  .svc-detail { grid-template-columns: minmax(0, 1fr); }
  .svc-detail .basis { grid-column: 1; }
  .person { grid-template-columns: minmax(0, 1fr); }
  .person .portrait { max-width: 420px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principles li:nth-child(even) { padding-left: 0; border-left: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-frame { inset: 6px; }
  .fx-scan { left: 0; right: 0; }
  .fx-pulse svg { width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  h1 .line > span, .fade-in, .scroll-hint i { animation: none; }
  .svc::before, .portrait, .btn, #gl { transition: none; }
}

/* ---------- Temas: oscuro (por defecto, data-theme="dark" en <html>) y claro ---------- */
:root {
  --bg: #F7FAFF;
  --bg-grad: linear-gradient(180deg, #FFFFFF 0%, #EAF1FF 40%, #F7FAFF 100%);
  --fg: #0A1E4A; --fg-2: #3F5680;
  --line: rgba(30, 91, 255, .16);
  --panel: rgba(255, 255, 255, .72); --panel-2: rgba(255, 255, 255, .92);
  --glass: rgba(255, 255, 255, .62); --solid: rgba(255, 255, 255, .97);
  --cyan-text: #0096C7;
  --glow-1: rgba(30, 91, 255, .14); --glow-2: rgba(0, 212, 255, .16);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #05070D; --bg-grad: none;
  --fg: #FFFFFF; --fg-2: #A9B4CC;
  --line: rgba(169, 180, 204, .16);
  --panel: rgba(5, 7, 13, .62); --panel-2: rgba(10, 15, 30, .8);
  --glass: rgba(5, 7, 13, .5); --solid: rgba(5, 7, 13, .96);
  --cyan-text: #00D4FF;
  --glow-1: rgba(30, 91, 255, .18); --glow-2: rgba(0, 212, 255, .07);
}
body { background-color: var(--bg); background-image: var(--bg-grad); }
.theme-btn { width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; cursor: pointer; }
.theme-btn svg { width: 15px; height: 15px; }
.theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: block; }
html[data-theme="dark"] .theme-btn .moon { display: none; }
.hero--center h1 .accent { display: inline-block; padding: .04em .22em .08em; border-radius: .28em; background: linear-gradient(90deg, rgba(30, 91, 255, .10), rgba(0, 212, 255, .16)); }
/* Paneles de las fases: fondo semitransparente con padding para leer sin tapar el globo */
main.home .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px 32px 32px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 16px 48px rgba(10, 30, 74, .08); }
main.home .founder { box-shadow: 0 12px 32px rgba(30, 91, 255, .08); }
/* Portada: listas de servicios en bloque angosto y centrado */
main.home .svc-groups { max-width: 58rem; margin-left: auto; margin-right: auto; }
main.home .svc { grid-template-columns: minmax(0, 1fr); gap: 4px; justify-items: center; text-align: center; padding: 18px 16px; }
main.home .svc .desc { grid-column: 1; grid-row: 2; max-width: 40rem; }
main.home .svc .arrow { display: none; }
main.home .sec-blue { padding-top: clamp(40px, 5vw, 64px); }
main.home .light-sec:not(.sec-blue) { padding-bottom: clamp(40px, 5vw, 64px); }
main.home .sec-blue .svc-groups { margin-top: 0; }
/* Nosotros: fotos redondas, pequenas y a color */
.person { grid-template-columns: auto minmax(0, 1fr); }
.person .portrait { width: 150px; height: 150px; aspect-ratio: 1; max-height: none; border-radius: 50%; padding: 0; align-items: center; justify-content: center; border: 2px solid rgba(30, 91, 255, .35); box-shadow: 0 0 0 6px rgba(30, 91, 255, .08); }
.person .portrait img { filter: none; mix-blend-mode: normal; object-position: 50% 20%; }
