/* ==========================================================
   IMAOB creative studio — tema claro, scroll tradicional
   ========================================================== */
:root {
  --bg: #f3f6fb;
  --bg-2: #e9eef7;
  --white: #ffffff;
  --ink: #0b1430;
  --ink-2: #27314d;
  --muted: #5e6a86;
  --blue: #1769ff;
  --blue-2: #0b4fd6;
  --blue-soft: #e8f0ff;
  --cyan: #2ec5ff;
  --navy: #071a44;
  --navy-2: #0e2d6e;
  --line: #dde4f0;
  --shadow: 0 10px 30px rgba(12, 32, 90, .08);
  --shadow-lg: 0 30px 70px rgba(12, 32, 90, .16);
  --radius: 18px;
  --font-h: "Sora", system-ui, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
  --nav-h: 72px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
html, body { margin: 0; }
body { font-family: var(--font-b); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-h); margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
.container { width: min(1440px, 100% - 48px); margin-inline: auto; }
.eyebrow { display: inline-block; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.eyebrow--light { color: #9fb6e6; }
.h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; }
.accent { color: var(--blue); }
.accent-light { color: #7fc7ff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--navy); display: grid; place-content: center; gap: 18px; transition: opacity .7s, visibility .7s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__logo { width: clamp(200px, 30vw, 380px); height: auto; margin: 0 auto; filter: drop-shadow(0 8px 20px rgba(0,0,0,.6)); animation: pulse 1.8s ease-in-out infinite; }
.loader__bar { width: 200px; height: 3px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; margin: 0 auto; }
.loader__bar span { display: block; height: 100%; width: 30%; background: linear-gradient(90deg, var(--blue), var(--cyan)); animation: load 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.03); } }
@keyframes load { 0% { transform: translateX(-120%); } 100% { transform: translateX(400%); } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 14px; border: 1px solid transparent; cursor: pointer; font-family: var(--font-b); transition: transform .25s, box-shadow .25s, background .25s, border-color .25s, color .25s; white-space: nowrap; }
.btn .arrow { font-style: normal; transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(23, 105, 255, .3); }
.btn--primary:hover { background: var(--blue-2); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(23, 105, 255, .4); }
.btn--outline { background: transparent; color: var(--ink); border-color: #cbd5e6; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { background: #fff; color: var(--navy); }
.btn--play { background: transparent; color: var(--ink-2); padding-left: 0; }
.btn--play .play { font-style: normal; font-size: 10px; display: grid; place-content: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); transition: transform .25s, box-shadow .25s; }
.btn--play:hover .play { transform: scale(1.08); box-shadow: var(--shadow-lg); }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h); background: linear-gradient(90deg, var(--navy), var(--navy-2) 70%, #0b2a6d); color: #fff; box-shadow: 0 6px 30px rgba(5, 20, 60, .25); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-h); font-weight: 700; font-size: 26px; letter-spacing: .02em; }
.brand__name sup { font-size: 10px; margin-left: 2px; }
.brand__sub { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; opacity: .8; margin-top: 3px; }
.nav__links { display: flex; gap: clamp(16px, 2.6vw, 40px); font-size: 14px; font-weight: 500; }
.nav__links a { position: relative; padding: 8px 0; color: #dbe5ff; transition: color .25s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--cyan); transform: scaleX(0); transition: transform .3s; }
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 16px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: transparent; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 16px; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
.nav.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .burger span:nth-child(2) { opacity: 0; }
.nav.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero / slider (fondo degradado azul) ---------- */
.hero { position: relative; padding-top: var(--nav-h); color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #061640 0%, #0a2a6c 45%, #1259e6 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, transparent, rgba(3, 12, 40, .35)); pointer-events: none; }
.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .8; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero__glow--a { width: 620px; height: 620px; right: -160px; top: -80px; background: radial-gradient(circle, rgba(46,197,255,.35), transparent 65%); }
.hero__glow--b { width: 520px; height: 520px; left: -200px; bottom: -160px; background: radial-gradient(circle, rgba(23,105,255,.45), transparent 65%); }
.hero { height: 100vh; min-height: 640px; display: flex; flex-direction: column; }
.hero__inner { position: relative; z-index: 1; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: 0 0 70px; }
.lab { height: min(64vh, 640px); }
/* Indicador de scroll */
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 10px; font-size: 12px; color: #9fc4ff; letter-spacing: .04em; transition: opacity .4s; }
.scroll-cue i { width: 22px; height: 34px; border: 1.5px solid rgba(255,255,255,.45); border-radius: 12px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--cyan); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.hero__copy { padding-left: clamp(0px, 2vw, 32px); }
.slider { position: relative; min-height: 400px; }
.slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; pointer-events: none; }
.slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.hero .eyebrow { color: #9fc4ff; }
.slide__title { font-size: clamp(34px, 4vw, 58px); font-weight: 500; color: #fff; max-width: 13ch; }
.slide__title .word { display: inline-block; }
.slide__title .accent { color: var(--cyan); }
.slide__desc { margin-top: 18px; color: #c4d4f5; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; max-width: 50ch; }
.slide__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.hero .btn--play { color: #fff; }
.hero .btn--play .play { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; box-shadow: none; }
.hero .btn--primary { box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }

/* Laboratorio interactivo */
.lab { position: relative; height: clamp(420px, 64vh, 640px); }
.lab__canvas { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
.lab__hint { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); margin: 0; font-size: 12px; color: #9fc4ff; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.lab__hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: blinkDot 1.6s infinite; }
@keyframes blinkDot { 50% { opacity: .3; } }

/* Controles del slider */
.controls { display: flex; align-items: center; gap: 14px; margin-top: 36px; }
.controls__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; font-size: 16px; cursor: pointer; transition: background .25s, transform .25s, border-color .25s; }
.controls__arrow:hover { background: var(--cyan); border-color: var(--cyan); color: var(--navy); transform: scale(1.06); }

/* Laptop CSS */
.laptop { position: absolute; left: 10%; right: 12%; top: 50%; transform: translateY(-50%); transform-style: preserve-3d; }
.laptop__screen { aspect-ratio: 16 / 10; border-radius: 14px; background: #0c1428; padding: 10px; border: 1px solid #2a3758; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.4) inset; position: relative; overflow: hidden; }
.laptop__screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.16), transparent 45%); pointer-events: none; }
.laptop__base { height: 14px; margin: 0 -4% 0; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #dfe6f3, #aeb9cf); box-shadow: 0 20px 40px rgba(12,32,90,.25); }
.ui { position: absolute; inset: 10px; border-radius: 8px; background: #111a33; color: #cfe0ff; font-size: 7px; display: flex; flex-direction: column; overflow: hidden; }
.ui__top { display: flex; align-items: center; gap: 4px; padding: 5px 8px; background: #0b1226; }
.ui__top i { width: 6px; height: 6px; border-radius: 50%; background: #3b4a6e; }
.ui__top i:nth-child(1) { background: #ff5f57; } .ui__top i:nth-child(2) { background: #febc2e; } .ui__top i:nth-child(3) { background: #28c840; }
.ui__top span { margin-left: 6px; color: #8ea4d6; }
.ui__canvas { flex: 1; display: grid; grid-template-columns: 1fr 24%; gap: 6px; padding: 6px; }
.ui__art { border-radius: 6px; background: radial-gradient(circle at 30% 40%, #2ec5ff 0%, #1769ff 25%, #0b1a4a 60%, #05102c 100%); position: relative; overflow: hidden; }
.ui__art::before, .ui__art::after { content: ""; position: absolute; border-radius: 50%; filter: blur(6px); }
.ui__art::before { width: 40%; height: 60%; left: 15%; top: 20%; background: rgba(124, 92, 255, .6); animation: drift 6s ease-in-out infinite; }
.ui__art::after { width: 35%; height: 45%; right: 10%; bottom: 10%; background: rgba(46, 197, 255, .55); animation: drift 7s ease-in-out infinite reverse; }
@keyframes drift { 50% { transform: translate(8%, -10%) scale(1.1); } }
.ui__panel { border-radius: 6px; background: #0b1226; padding: 6px; display: grid; gap: 4px; align-content: start; }
.ui__panel b { color: #fff; font-size: 6px; }
.ui__panel i { height: 8px; border-radius: 3px; background: #1d2a4d; }
.ui__panel i:first-of-type { background: #1769ff; }
.ui__timeline { display: flex; gap: 4px; padding: 6px 8px 8px; background: #0b1226; }
.ui__timeline i { height: 8px; width: var(--w); border-radius: 3px; background: var(--c); animation: grow 1.4s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }

/* Teléfono CSS */
.phone { position: absolute; left: 50%; top: 50%; width: clamp(200px, 17vw, 250px); aspect-ratio: 9 / 18.5; transform: translate(-50%, -50%) rotateY(-8deg) rotateX(3deg); border-radius: 36px; padding: 9px; background: linear-gradient(180deg, #2a3652, #0d1428); box-shadow: var(--shadow-lg); border: 1px solid #3a4866; }
.phone__screen { height: 100%; border-radius: 28px; background: #f6f8fc; overflow: hidden; position: relative; }
.chat { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 36px 12px 14px; font-size: 11px; color: var(--ink); }
.chat header { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.chat header i { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.chat__msg { max-width: 85%; padding: 9px 11px; border-radius: 14px; line-height: 1.35; }
.chat__msg.them { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat__msg.me { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat__typing { margin-top: auto; display: flex; gap: 4px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; width: max-content; }
.chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: #9fb0d9; animation: blink 1.2s infinite; }
.chat__typing i:nth-child(2) { animation-delay: .2s; } .chat__typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .3; transform: translateY(-2px); } }

/* Mockups de imagen */
.mock--tablet { position: absolute; left: 4%; top: 50%; width: 92%; height: auto; transform: translateY(-50%); filter: drop-shadow(0 30px 50px rgba(12, 32, 90, .3)); }

/* Elementos flotantes */
.float { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); }
.float--tools { left: 2%; top: 22%; width: 48px; padding: 10px 0; display: grid; gap: 10px; justify-items: center; border-radius: 14px; }
.float--tools i { width: 20px; height: 20px; border-radius: 6px; background: var(--blue-soft); position: relative; }
.float--tools i::after { content: ""; position: absolute; inset: 5px; border-radius: 3px; border: 1.5px solid var(--blue); }
.float--tools i:nth-child(2)::after { border-radius: 50%; } .float--tools i:nth-child(4)::after { transform: rotate(45deg); }
.float--wheel { right: 10%; top: 8%; width: 72px; height: 72px; border-radius: 20px; display: grid; place-content: center; }
.float--wheel span { width: 44px; height: 44px; border-radius: 50%; background: conic-gradient(#ff5d5d, #ffd84d, #4dff88, #2ec5ff, #7c5cff, #ff5d5d); mask: radial-gradient(circle, transparent 38%, #000 40%); -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.float--tile { width: 96px; height: 96px; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #1769ff, #2ec5ff); }
.float--tile::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), transparent 50%), radial-gradient(circle at 75% 80%, rgba(0,0,0,.25), transparent 50%); }
.float--tile-1 { right: 2%; top: 32%; background: linear-gradient(145deg, #6fb6ff, #1b4fd8); }
.float--tile-2 { right: -2%; top: 58%; width: 84px; height: 84px; background: linear-gradient(145deg, #ffb75d, #ff5d8a); }
.float--tile-3 { left: 0%; bottom: 10%; width: 72px; height: 72px; background: linear-gradient(145deg, #4dffb0, #1769ff); }
.float--tile-4 { right: 0; bottom: 8%; width: 80px; height: 80px; background: linear-gradient(145deg, #7c5cff, #2ec5ff); }
.float--tile-5 { left: 0; top: 10%; width: 80px; height: 80px; background: linear-gradient(145deg, #ff9d5d, #ff5d5d); }
.float--tile-6 { left: 8%; top: 16%; width: 86px; height: 86px; background: linear-gradient(145deg, #2ec5ff, #7c5cff); }
.float--stat { right: -2%; bottom: 14%; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; }
.float--stat b { display: block; font-size: 13px; color: var(--ink); } .float--stat small { color: var(--muted); font-size: 12px; }
.float--stat svg { width: 28px; height: 28px; stroke: var(--blue); fill: none; stroke-width: 2.2; stroke-linecap: round; }
.float--chip { padding: 12px 16px; border-radius: 14px; }
.float--chip b { display: block; font-family: var(--font-h); font-size: 18px; color: var(--blue); } .float--chip small { color: var(--muted); font-size: 12px; }
.float--chip-1 { left: 0; top: 14%; } .float--chip-2 { right: 0; top: 24%; } .float--chip-3 { left: 0; bottom: 16%; } .float--chip-4 { right: 6%; top: 18%; }
.float--pin { right: 8%; bottom: 20%; width: 56px; height: 56px; border-radius: 50%; display: grid; place-content: center; }
.float--pin i { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 6px rgba(23,105,255,.2); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(23,105,255,.45); } 100% { box-shadow: 0 0 0 16px rgba(23,105,255,0); } }
.float--orb { right: 14%; bottom: 14%; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #2ec5ff 40%, #1769ff 70%); box-shadow: 0 20px 40px rgba(23,105,255,.35); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Paginador */
.pager { display: flex; align-items: center; gap: 20px; margin-left: 10px; }
.pager__bar { width: 56px; height: 3px; background: rgba(255,255,255,.2); border-radius: 3px; overflow: hidden; }
.pager__bar span { display: block; height: 100%; width: 0; background: var(--cyan); }
.pager__nums { display: flex; gap: 16px; }
.pager__nums button { border: 0; background: none; font: 600 13px var(--font-b); color: rgba(255,255,255,.45); cursor: pointer; padding: 4px 0; transition: color .25s; }
.pager__nums button.is-active { color: #fff; }

/* ---------- Servicios ---------- */
.services-band { position: relative; margin-top: -50px; z-index: 2; }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: #fff; padding: 18px; border-radius: 24px; box-shadow: var(--shadow-lg); }
.service { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px; border-radius: 16px; background: #f6f8fc; transition: background .25s, transform .25s, box-shadow .25s; }
.service:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--shadow); }
.service__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-content: center; background: var(--blue-soft); }
.service__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service__body b { display: block; font-family: var(--font-h); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.service__body small { color: var(--muted); font-size: 13px; line-height: 1.4; display: block; }
.service__go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-content: center; background: #fff; border: 1px solid var(--line); color: var(--ink); transition: background .25s, color .25s, transform .25s; }
.service:hover .service__go { background: var(--blue); color: #fff; transform: translateX(3px); }

/* ---------- Secciones ---------- */
.section { padding: 100px 0; }
.section--alt { background: #fff; }

/* Nuestro fuerte (pilares) */
.section--pillars { padding-top: 110px; }
.pillars__head { max-width: 760px; margin-bottom: 44px; }
.pillars__head p { color: var(--muted); line-height: 1.65; margin-top: 16px; font-size: 16px; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px 24px 26px; box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .35s, border-color .35s; }
.pillar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.pillar:hover { box-shadow: var(--shadow-lg); border-color: #c7d6f5; }
.pillar__num { font-family: var(--font-h); font-size: 13px; font-weight: 600; color: var(--blue); letter-spacing: .1em; }
.pillar h3 { font-size: 20px; font-weight: 600; margin: 10px 0 12px; }
.pillar p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.pillar ul { display: grid; gap: 8px; }
.pillar li { font-size: 13px; font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.pillar li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(46,197,255,.18); }
.pillar--ai { background: linear-gradient(160deg, #0a2a6c, #071a44); border-color: transparent; color: #fff; }
.pillar--ai p { color: #b9c8ea; } .pillar--ai li { color: #e4ecff; } .pillar--ai h3 { color: #fff; } .pillar--ai .pillar__num { color: var(--cyan); }

/* IA: capacidades */
.ai { position: relative; padding: 100px 0; color: #fff; overflow: hidden; background: linear-gradient(135deg, #061640 0%, #0a2a6c 55%, #0f47c0 100%); }
.ai::before { content: ""; position: absolute; width: 700px; height: 700px; left: -250px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(46,197,255,.22), transparent 65%); }
.ai::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; }
.ai > .container { position: relative; z-index: 1; }
.ai__head { max-width: 760px; margin-bottom: 44px; }
.ai__head p { color: #c4d4f5; line-height: 1.65; margin-top: 16px; font-size: 16px; }
.ai__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.aicard { position: relative; padding: 26px 22px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); transition: background .3s, border-color .3s, box-shadow .3s; }
.aicard:hover { background: rgba(255,255,255,.1); border-color: rgba(46,197,255,.6); box-shadow: 0 20px 50px rgba(0,10,50,.35), 0 0 30px rgba(46,197,255,.15); }
.aicard svg { width: 30px; height: 30px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; filter: drop-shadow(0 0 8px rgba(46,197,255,.6)); }
.aicard b { display: block; font-family: var(--font-h); font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.aicard p { color: #b9c8ea; font-size: 13.5px; line-height: 1.55; }
.ai__cta { margin-top: 40px; display: flex; justify-content: center; }
.ai__cta .btn--primary { box-shadow: 0 12px 30px rgba(0,0,0,.35); }

/* Proyectos */
.projects__intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.projects__intro p { color: var(--muted); line-height: 1.65; max-width: 520px; }
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard { position: relative; aspect-ratio: 1.15; border-radius: 20px; overflow: hidden; background: #0f1b3d; box-shadow: var(--shadow); transform-style: preserve-3d; transition: box-shadow .35s; }
.pcard:hover { box-shadow: var(--shadow-lg); }
.pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; transform: scale(1.02); transition: transform .7s ease; }
.pcard:hover .pcard__img { transform: scale(1.08); }
.pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,15,40,0) 30%, rgba(5,15,40,.55) 60%, rgba(5,15,40,.95) 100%); transition: opacity .35s; }
.pcard__tag { position: absolute; left: 18px; top: 18px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: rgba(10, 20, 50, .72); color: #fff; font-size: 11px; font-weight: 600; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); }
.pcard__meta { position: absolute; left: 18px; right: 66px; bottom: 18px; z-index: 2; color: #fff; }
.pcard__meta b { display: block; font-family: var(--font-h); font-size: 19px; margin-bottom: 6px; }
.pcard__meta small { display: block; font-size: 12.5px; line-height: 1.5; color: #d6e1fb; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .35s ease; }
.pcard:hover .pcard__meta small { max-height: 120px; opacity: 1; }
.pcard__go { position: absolute; right: 18px; bottom: 18px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); color: #fff; display: grid; place-content: center; transition: background .25s, transform .25s; }
.pcard:hover .pcard__go { background: var(--blue); border-color: var(--blue); transform: translateX(3px); }
/* Tarjetas sin imagen todavía: arte generado con CSS */
.pcard--art::before { content: ""; position: absolute; inset: 0; transform: scale(1.08); transition: transform .6s ease; }
.pcard:hover.pcard--art::before { transform: scale(1.16); }
.pcard--art-1::before { background: radial-gradient(circle at 50% 55%, #ffd36b 0 6%, transparent 7%), radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), transparent 25%), radial-gradient(circle at 70% 70%, rgba(255,120,60,.6), transparent 40%), linear-gradient(160deg, #0a2d6e, #1b1140 60%, #4a0f3a); }
.pcard--art-2::before { background: radial-gradient(circle at 25% 30%, #ff9a3c, transparent 35%), radial-gradient(circle at 75% 35%, #ffd23c, transparent 30%), radial-gradient(circle at 60% 80%, #46c35a, transparent 40%), linear-gradient(160deg, #1d7f3e, #0a4a2a); }

/* ---------- Proceso ---------- */
.process-section { position: relative; overflow: hidden; }
.process__bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 15% 20%, rgba(23,105,255,.08), transparent 70%),
    radial-gradient(600px 300px at 85% 80%, rgba(46,197,255,.10), transparent 70%),
    radial-gradient(rgba(23,105,255,.10) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px; }
.process__head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 70px; }
.process__head p { color: var(--muted); line-height: 1.65; max-width: 460px; }
.process { position: relative; }
.process__line { position: absolute; left: 0; right: 0; top: 62px; width: 100%; height: 60px; z-index: 0; overflow: visible; }
.process__line path { fill: none; stroke-width: 2; stroke-linecap: round; }
.process__line-bg { stroke: #dbe4f3; stroke-dasharray: 4 8; }
.process__line-fg { stroke: var(--blue); filter: drop-shadow(0 0 6px rgba(23,105,255,.55)); }
.process__spark { position: absolute; z-index: 1; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(46,197,255,.35), 0 0 18px 6px rgba(46,197,255,.6); pointer-events: none; opacity: 0; }
.steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { position: relative; text-align: center; padding: 0 10px; }
.step__icon { position: relative; width: 124px; height: 124px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-content: center;
  background: radial-gradient(circle at 35% 30%, #ffffff, #eef3ff 70%); border: 1px solid #d9e3f7; box-shadow: 0 18px 40px rgba(12,32,90,.12), inset 0 1px 0 #fff;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; }
.step:hover .step__icon { transform: translateY(-6px) scale(1.04); box-shadow: 0 26px 50px rgba(23,105,255,.22), 0 0 0 8px rgba(23,105,255,.06); }
.step__ring { position: absolute; inset: -8px; border-radius: 50%; border: 1.5px dashed rgba(23,105,255,.35); animation: ringSpin 18s linear infinite; }
.step:nth-child(even) .step__ring { animation-direction: reverse; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.step__icon .icon { width: 64px; height: 64px; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.step__num { display: inline-block; font-family: var(--font-h); font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--blue); padding: 5px 12px; border-radius: 999px; background: var(--blue-soft); margin-bottom: 12px; }
.step h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 26ch; margin: 0 auto; }

/* Iconos animados */
.icon .draw { stroke-dasharray: 220; stroke-dashoffset: 0; }
/* 01 chat: puntos escribiendo y burbuja de notificación */
.icon--chat .dot { fill: var(--blue); stroke: none; animation: typing 1.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.icon--chat .d2 { animation-delay: .15s; } .icon--chat .d3 { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
.icon--chat .pop { fill: var(--cyan); stroke: #fff; stroke-width: 2; animation: pop 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pop { 0%, 70%, 100% { transform: scale(0); opacity: 0; } 78% { transform: scale(1.25); opacity: 1; } 86% { transform: scale(1); } 96% { opacity: 1; } }
/* 02 foco: rayos que pulsan y filamento que brilla */
.icon--bulb .rays path { stroke: var(--cyan); animation: rays 2.2s ease-in-out infinite; transform-origin: 32px 32px; }
@keyframes rays { 0%, 100% { opacity: .25; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
.icon--bulb .bulb { animation: bulbGlow 2.2s ease-in-out infinite; }
@keyframes bulbGlow { 0%, 100% { fill: rgba(46,197,255,0); filter: none; } 50% { fill: rgba(46,197,255,.25); filter: drop-shadow(0 0 8px rgba(46,197,255,.8)); } }
.icon--bulb .fil { stroke: #ffc857; stroke-width: 2.6; animation: fil 2.2s ease-in-out infinite; }
@keyframes fil { 0%, 100% { opacity: .3; } 50% { opacity: 1; filter: drop-shadow(0 0 6px #ffc857); } }
/* 03 engranes girando y código parpadeando */
.icon--gear .gear--big { transform-origin: 32px 32px; animation: spinCW 9s linear infinite; }
.icon--gear .gear--small { transform-origin: 50px 50px; animation: spinCCW 6s linear infinite; stroke: var(--cyan); }
@keyframes spinCW { to { transform: rotate(360deg); } } @keyframes spinCCW { to { transform: rotate(-360deg); } }
.icon--gear .code { stroke: var(--cyan); animation: blinkCode 1.6s ease-in-out infinite; }
.icon--gear .c2 { animation-delay: .8s; }
@keyframes blinkCode { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
/* 04 cohete que despega con llama viva */
.icon--rocket .rocket { animation: lift 2.6s ease-in-out infinite; transform-origin: 32px 32px; }
@keyframes lift { 0%, 100% { transform: translateY(2px) rotate(-1deg); } 50% { transform: translateY(-5px) rotate(1deg); } }
.icon--rocket .flame { stroke: #ff7a3c; fill: rgba(255,122,60,.35); transform-origin: 32px 40px; animation: flame .35s ease-in-out infinite alternate; }
.icon--rocket .f2 { stroke: #ffc857; fill: rgba(255,200,87,.5); animation-duration: .25s; }
@keyframes flame { from { transform: scaleY(.75) scaleX(.9); opacity: .8; } to { transform: scaleY(1.15) scaleX(1.05); opacity: 1; } }
.icon--rocket .star { fill: var(--cyan); stroke: none; animation: twinkle 1.8s ease-in-out infinite; }
.icon--rocket .s2 { animation-delay: .6s; } .icon--rocket .s3 { animation-delay: 1.2s; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

/* Nosotros */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.about p { color: var(--muted); line-height: 1.65; margin-top: 18px; max-width: 54ch; }
.checks { display: grid; gap: 12px; margin-top: 26px; }
.checks li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.checks li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-content: center; font-size: 13px; font-weight: 700; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: #fff; border-radius: 20px; padding: 30px 26px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-h); font-size: clamp(34px, 3.6vw, 46px); font-weight: 600; color: var(--blue); }
.stat span { color: var(--muted); font-size: 14px; }

/* CTA / Contacto */
.cta { background: linear-gradient(135deg, var(--navy), var(--navy-2) 60%, #0b3a8f); color: #fff; padding: 100px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(46,197,255,.25), transparent 65%); }
.cta__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.cta__text p { color: #b9c8ea; line-height: 1.65; margin-top: 18px; }
.cta__links { display: flex; gap: 24px; margin-top: 26px; }
.cta__links a { color: #7fc7ff; border-bottom: 1px solid rgba(127,199,255,.4); padding-bottom: 2px; }
.form { background: #fff; color: var(--ink); border-radius: 22px; padding: 30px; display: grid; gap: 14px; box-shadow: var(--shadow-lg); }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #f6f8fc; font: 14px var(--font-b); color: var(--ink); outline: none; transition: border-color .25s, box-shadow .25s; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,255,.15); background: #fff; }
.form .btn { justify-self: start; }
.form__ok { color: #1a9a5a; font-size: 14px; }

/* Footer */
.footer { background: linear-gradient(90deg, var(--navy), var(--navy-2)); color: #fff; padding: 40px 0 24px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 26px; font-size: 14px; color: #dbe5ff; }
.footer__links a:hover { color: #fff; }
.footer__social { display: flex; gap: 14px; }
.footer__social a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-content: center; color: #fff; border: 1px solid rgba(255,255,255,.2); transition: background .25s; }
.footer__social a:hover { background: rgba(255,255,255,.12); }
.footer__social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer__tag { font-size: 13px; color: #b9c8ea; line-height: 1.4; }
.footer__copy { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: #93a6d4; }

/* ---------- Animaciones ---------- */
[data-anim] { will-change: transform, opacity; }
.tilt { will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .pillars, .ai__grid { grid-template-columns: repeat(2, 1fr); }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .process__line, .process__spark { display: none; }
}
@media (max-width: 960px) {
  .nav__links, .nav__right .btn { display: none; }
  .burger { display: flex; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; padding: 20px 24px 28px; background: var(--navy); gap: 16px; font-size: 18px; box-shadow: 0 20px 40px rgba(0,0,0,.3); }
  /* Hero móvil: texto compacto arriba, laboratorio debajo, todo en una pantalla */
  /* Orden en móvil: laboratorio arriba, texto en medio, controles al fondo */
  .hero { height: 100svh; min-height: 0; display: flex; flex-direction: column; }
  .hero__inner { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 10px 0 8px; min-height: 0; }
  .lab { order: 1; }
  .hero__copy { order: 2; flex: 1; display: flex; flex-direction: column; padding-left: 0; min-height: 0; }
  .controls { margin-top: auto; padding-top: 10px; justify-content: space-between; }
  .scroll-cue { display: flex; position: static; transform: none; justify-content: center; padding: 0 0 12px; font-size: 11px; }
  .scroll-cue i { width: 18px; height: 28px; }
  .slider { min-height: 0; }
  .slide { position: relative; display: none; padding: 0; }
  .slide.is-active { display: flex; }
  .hero .eyebrow { font-size: 10px; letter-spacing: .22em; margin-bottom: 10px; }
  .slide__title { max-width: none; font-size: clamp(25px, 6.8vw, 32px); }
  .slide__desc { margin-top: 10px; font-size: 14px; line-height: 1.5; }
  .slide__actions { margin-top: 14px; gap: 10px 14px; }
  .slide__actions .btn--primary { padding: 12px 20px; font-size: 13.5px; }
  .slide__actions .btn--play { font-size: 13.5px; }
  .slide__actions .btn--play .play { width: 36px; height: 36px; }
  .controls { margin-top: 18px; gap: 12px; }
  .controls__arrow { width: 40px; height: 40px; }
  .lab { height: auto; margin-top: 0; }
  .lab__canvas { height: clamp(220px, 34svh, 320px); touch-action: none; cursor: default; }
  .hero.is-unlocked .lab__canvas { touch-action: pan-y; }
  .lab__hint { position: static; transform: none; margin: 6px auto 0; justify-content: center; white-space: normal; text-align: center; font-size: 11px; max-width: 34ch; }
  .services-band { margin-top: 30px; }
  .about, .cta__inner { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 70px 0; }
}
@media (max-width: 640px) {
  .services, .projects__grid, .steps, .stats, .pillars, .ai__grid { grid-template-columns: 1fr; }
  .pcard__meta small { max-height: 120px; opacity: 1; }
  .step__icon { width: 104px; height: 104px; }
  .form__row { grid-template-columns: 1fr; }
  .controls { flex-wrap: wrap; }
  .pager { margin-left: 4px; gap: 14px; }
  .pager__bar { width: 40px; }
  .pager__nums { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
