/* =========================================================
   DECANINE · Innovación Digital
   Paleta tomada del isotipo: cian -> azul -> violeta
   ========================================================= */
:root {
  --bg: #060913;
  --bg-2: #0b1020;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef2ff;
  --muted: #9aa5c4;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --indigo: #4f46e5;
  --violet: #8b5cf6;
  --magenta: #c026d3;
  --grad: linear-gradient(100deg, var(--cyan) 0%, var(--blue) 45%, var(--violet) 80%, var(--magenta) 100%);
  --grad-loop: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet), var(--magenta), var(--violet), var(--blue), var(--cyan));
  --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, .18), rgba(139, 92, 246, .18));
  --radius: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Montserrat", system-ui, sans-serif;
  --font-brand: "Exo 2", "Montserrat", sans-serif;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; }
.wave-divider path, .footer__wave path, .sw { stroke: none; }
svg { stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
::selection { background: var(--violet); color: #fff; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999; display: grid; place-items: center;
  background: var(--bg); transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__logo { width: 70px; grid-area: 1/1; animation: pulse 1.4s var(--ease) infinite; }
.preloader__ring {
  grid-area: 1/1; width: 130px; height: 130px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--cyan); border-right-color: var(--violet);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(.88); opacity: .7; } }

/* ---------- Fondo global ---------- */
.bg-aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
  filter: blur(90px); opacity: .32; mix-blend-mode: screen;
}
.blob--1 { background: var(--cyan); top: -18%; left: -12%; animation: drift1 26s ease-in-out infinite alternate; }
.blob--2 { background: var(--violet); bottom: -22%; right: -12%; animation: drift2 30s ease-in-out infinite alternate; }
.blob--3 { background: var(--blue); top: 40%; left: 35%; width: 30vmax; height: 30vmax; opacity: .18; animation: drift3 22s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 22vh) scale(1.2) rotate(40deg); border-radius: 40% 60% 55% 45%; } }
@keyframes drift2 { to { transform: translate(-22vw, -18vh) scale(.9) rotate(-30deg); border-radius: 60% 40% 45% 55%; } }
@keyframes drift3 { to { transform: translate(-15vw, 12vh) scale(1.3); } }

.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  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'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px; border-radius: 50%;
  pointer-events: none; z-index: 0; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59, 130, 246, .16), transparent 62%);
  transition: opacity .3s; opacity: 0;
}
body.has-pointer .cursor-glow { opacity: 1; }
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 120;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Tipografía ---------- */
.grad-text {
  background: var(--grad-loop); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: gradShift 8s linear infinite;
}
@keyframes gradShift { to { background-position: -200% 0; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan);
  padding: 7px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.section { position: relative; padding: clamp(80px, 12vw, 140px) 0; }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 64px; display: grid; justify-items: center; gap: 18px; }
.section__title { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.section__lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); max-width: 620px; }

/* ---------- Botones ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; color: #fff;
  overflow: hidden; isolation: isolate;
  transform: translate(var(--mx), var(--my));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
}
.btn--primary { background: var(--grad); background-size: 200% auto; box-shadow: 0 10px 30px -10px rgba(59, 130, 246, .7); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--primary:hover { background-position: 100% center; box-shadow: 0 18px 40px -12px rgba(139, 92, 246, .8); }
.btn--primary:hover::before { transform: translateX(120%); }
.btn--ghost { background: var(--surface); border-color: rgba(255, 255, 255, .16); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--cyan); background: rgba(34, 211, 238, .08); }
.btn--sm { padding: 10px 20px; font-size: .86rem; }
.btn--block { width: 100%; }
.btn__icon { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px) rotate(-8deg); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; transition: background .4s, backdrop-filter .4s, height .4s, border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(6, 9, 19, .72); backdrop-filter: blur(18px) saturate(1.4); border-color: var(--border); height: 66px; }
.header.is-hidden { transform: translateY(-100%); }
.header:has(.nav.is-open) { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; transform: none; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 44px; height: auto; filter: drop-shadow(0 0 12px rgba(34, 211, 238, .35)); transition: transform .6s var(--ease-back); }
.brand:hover .brand__mark { transform: rotate(-10deg) scale(1.1); }
.brand__text { display: grid; line-height: 1.05; }
.brand__name { font-family: var(--font-brand); font-size: 1.35rem; font-weight: 500; letter-spacing: .02em; }
.brand__tag { font-size: .66rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 500; color: #c8d0ea; transition: color .3s; }
.nav__ico { width: 17px; height: 17px; flex: none; color: var(--cyan); transition: transform .5s var(--ease-back), color .3s; }
.nav__link:nth-child(even) .nav__ico { color: var(--violet); }
.nav__link:hover .nav__ico, .nav__link.is-active .nav__ico { transform: translateY(-2px) rotate(-10deg) scale(1.15); color: #fff; }
.nav .btn .nav__ico { color: #fff; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 140px; overflow: hidden; }
.hero__waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; }
.hero__copy { display: grid; gap: 26px; justify-items: start; }
.hero__title { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
.hero__title .line { display: block; }
.hero__lead { color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.2rem); max-width: 540px; }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .88rem; }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--cyan); }

/* Escena 3D */
.hero__scene { perspective: 1200px; display: grid; place-items: center; }
.scene {
  --rx: 0deg; --ry: 0deg;
  position: relative; width: min(500px, 82vw); aspect-ratio: 1; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .8s var(--ease);
}
.scene__core { position: absolute; inset: 22%; display: grid; place-items: center; transform: translateZ(80px); transform-style: preserve-3d; }
.scene__core::before {
  content: ""; position: absolute; inset: -10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .35), rgba(139, 92, 246, .2) 45%, transparent 70%);
  filter: blur(30px); animation: breathe 5s ease-in-out infinite;
}
.scene__logo { position: relative; width: 100%; height: auto; align-self: center; animation: logoFloat 7s ease-in-out infinite; }
@keyframes logoFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotateY(-12deg) rotateX(6deg); }
  33% { transform: translate3d(8px, -14px, 30px) rotateY(10deg) rotateX(-4deg); }
  66% { transform: translate3d(-10px, 6px, 10px) rotateY(-4deg) rotateX(8deg) rotateZ(-2deg); }
}
@keyframes breathe { 50% { transform: scale(1.15); opacity: .7; } }
.scene__orbit { position: absolute; inset: 4%; border-radius: 50%; border: 1px solid rgba(34, 211, 238, .25); transform-style: preserve-3d; }
.scene__orbit::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px 4px var(--cyan); }
.scene__orbit--1 { animation: orbit1 14s linear infinite; }
.scene__orbit--2 { inset: 12%; border-color: rgba(139, 92, 246, .3); animation: orbit2 18s linear infinite; }
.scene__orbit--2::after { background: var(--violet); box-shadow: 0 0 18px 4px var(--violet); }
@keyframes orbit1 { from { transform: rotateX(70deg) rotateZ(0); } to { transform: rotateX(70deg) rotateZ(360deg); } }
@keyframes orbit2 { from { transform: rotateY(65deg) rotateZ(0); } to { transform: rotateY(65deg) rotateZ(-360deg); } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  border-radius: 16px; background: rgba(15, 20, 40, .62); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px); box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .6);
  font-size: .85rem; line-height: 1.2; white-space: nowrap;
}
.float-card b { display: block; font-weight: 600; }
.float-card small { color: var(--muted); font-size: .74rem; }
.float-card__ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--grad-soft); border: 1px solid rgba(34, 211, 238, .3); color: var(--cyan); }
.float-card__ico svg { width: 20px; height: 20px; }
.float-card--a { top: 6%; left: -4%; animation: fc 8s ease-in-out infinite; }
.float-card--b { top: 18%; right: -6%; animation: fc 9s ease-in-out -2s infinite; }
.float-card--c { bottom: 14%; left: -8%; animation: fc 10s ease-in-out -4s infinite; }
.float-card--d { bottom: 4%; right: 2%; animation: fc 7.5s ease-in-out -1s infinite; }
.float-card--b .float-card__ico, .float-card--d .float-card__ico { color: var(--violet); border-color: rgba(139, 92, 246, .35); }
@keyframes fc {
  0%, 100% { transform: translateZ(var(--z, 60px)) translate(0, 0) rotate(0); }
  25% { transform: translateZ(var(--z, 60px)) translate(10px, -12px) rotate(2deg); }
  50% { transform: translateZ(var(--z, 60px)) translate(-6px, -20px) rotate(-1.5deg); }
  75% { transform: translateZ(var(--z, 60px)) translate(-12px, -4px) rotate(1deg); }
}

.scroll-cue { position: absolute; bottom: 110px; left: 50%; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .3); border-radius: 20px; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--cyan); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

.wave-divider { position: absolute; bottom: -1px; left: -6%; width: 112%; height: 110px; z-index: 2; }
.wave-divider__a { fill: rgba(34, 211, 238, .08); animation: waveMove 10s ease-in-out infinite alternate; }
.wave-divider__b { fill: var(--bg); animation: waveMove 8s ease-in-out -3s infinite alternate-reverse; }
@keyframes waveMove { to { transform: translateX(-4%) scaleY(1.25); } }
.wave-divider path { transform-origin: bottom; transform-box: fill-box; }

/* ---------- Marquee ---------- */
.marquee { position: relative; padding: 26px 0; overflow: hidden; border-block: 1px solid var(--border); background: rgba(255, 255, 255, .015); transform: rotate(-1.5deg); margin: 10px -20px; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--font-brand); font-size: clamp(1.2rem, 2.4vw, 1.8rem); font-weight: 500; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .35); white-space: nowrap; transition: color .3s; }
.marquee__track span:hover { color: #fff; }
.marquee__track i { width: 10px; height: 10px; transform: rotate(45deg); background: var(--grad); flex: none; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Iconos con hover ---------- */
.icon-box {
  --c: var(--cyan);
  position: relative; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px;
  color: var(--c); background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01));
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px -12px color-mix(in srgb, var(--c) 60%, transparent);
  transition: transform .6s var(--ease-back), box-shadow .5s, background .5s, color .4s;
  transform-style: preserve-3d;
}
.icon-box::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 60%, var(--c), transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.icon-box--violet { --c: var(--violet); }
.icon-box--sm { width: 46px; height: 46px; border-radius: 13px; flex: none; }
.icon-box svg { width: 30px; height: 30px; transition: transform .6s var(--ease-back); }
.icon-box--sm svg { width: 22px; height: 22px; }
.icon-box .draw { stroke-dasharray: 60; stroke-dashoffset: 0; }

.card:hover .icon-box, .mini:hover .icon-box, .contact__info li:hover .icon-box {
  transform: translateZ(40px) rotateY(180deg) scale(1.06);
  background: color-mix(in srgb, var(--c) 18%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 18px 40px -10px var(--c);
}
.card:hover .icon-box svg, .mini:hover .icon-box svg, .contact__info li:hover .icon-box svg { transform: rotateY(180deg); }
.card:hover .icon-box::before, .mini:hover .icon-box::before { opacity: 1; animation: rotAng 2s linear infinite; }
.card:hover .icon-box .draw { animation: drawLine 1s var(--ease) forwards; }
.card:hover .spin-hover, .mini:hover .spin-hover { animation: spinY 2.4s linear infinite; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes rotAng { to { --ang: 360deg; } }
@keyframes drawLine { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@keyframes spinY { to { transform: rotateY(180deg) rotate(360deg); } }

/* ---------- Tarjetas de servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1400px; }
.card {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  position: relative; display: grid; gap: 16px; align-content: start; padding: 34px 30px 30px;
  border-radius: var(--radius); background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  border: 1px solid var(--border); overflow: hidden; transform-style: preserve-3d;
  transition: border-color .4s, box-shadow .5s;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(400px circle at var(--gx) var(--gy), rgba(34, 211, 238, .7), rgba(139, 92, 246, .5) 40%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.card__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(500px circle at var(--gx) var(--gy), rgba(59, 130, 246, .12), transparent 45%); opacity: 0; transition: opacity .4s; }
.card:hover { box-shadow: 0 30px 60px -25px rgba(59, 130, 246, .45); }
.card:hover::after, .card:hover .card__glow { opacity: 1; }
.card h3 { font-size: 1.22rem; font-weight: 600; transform: translateZ(30px); }
.card p { color: var(--muted); font-size: .95rem; transform: translateZ(20px); }
.card .icon-box { transform: translateZ(25px); }
.card__link { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--cyan); margin-top: 6px; transform: translateZ(20px); }
.card__link svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.card__link:hover svg { transform: translateX(6px); }
.tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), border-color .4s, box-shadow .5s; will-change: transform; }
.tilt.is-tilting { transition: transform .08s linear, border-color .4s, box-shadow .5s; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split__copy { display: grid; gap: 22px; justify-items: start; }
.section--glow::before {
  content: ""; position: absolute; inset: 10% 0; z-index: -1;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(139, 92, 246, .14), transparent 70%);
}
.feature-list { list-style: none; display: grid; gap: 18px; margin-top: 6px; }
.feature-list li { display: flex; gap: 16px; padding: 16px; border-radius: 16px; border: 1px solid transparent; transition: background .4s, border-color .4s, transform .4s var(--ease); }
.feature-list li:hover { background: var(--surface); border-color: var(--border); transform: translateX(8px); }
.feature-list__ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--grad-soft); color: var(--cyan); transition: transform .6s var(--ease-back); }
.feature-list li:hover .feature-list__ico { transform: rotate(-12deg) scale(1.12); color: #fff; background: var(--grad); }
.feature-list__ico svg { width: 22px; height: 22px; }
.feature-list b { font-weight: 600; }
.feature-list p { color: var(--muted); font-size: .92rem; }

/* Mock Moodle */
.mock { border-radius: 18px; background: #0d1326; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(34, 211, 238, .06); }
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--border); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.mock__bar i:nth-child(2) { background: #febc2e; } .mock__bar i:nth-child(3) { background: #28c840; }
.mock__bar span { margin-left: 12px; font-size: .74rem; color: var(--muted); padding: 4px 12px; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.mock__body { display: grid; grid-template-columns: 110px 1fr; min-height: 300px; }
.mock__side { display: grid; align-content: start; gap: 12px; padding: 18px 14px; border-right: 1px solid var(--border); }
.mock__main { padding: 20px; display: grid; gap: 18px; align-content: start; }
.sk { display: block; height: 9px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.sk--logo { height: 24px; width: 70%; background: var(--grad); opacity: .8; margin-bottom: 8px; }
.sk--active { background: rgba(34, 211, 238, .45); }
.sk--title { width: 55%; height: 14px; }
.mock__courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.course { display: grid; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--border); }
.course__img { height: 70px; border-radius: 8px; background-size: 200% 200%; animation: gradMove 6s ease infinite; }
.c1 { background-image: linear-gradient(135deg, #22d3ee, #3b82f6); }
.c2 { background-image: linear-gradient(135deg, #8b5cf6, #c026d3); }
.c3 { background-image: linear-gradient(135deg, #3b82f6, #8b5cf6); }
@keyframes gradMove { 50% { background-position: 100% 100%; } }
.progress { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.progress b { display: block; height: 100%; width: 0; background: var(--grad); border-radius: inherit; transition: width 1.6s var(--ease) .4s; }
.is-visible .progress b { width: var(--p); }

/* Chat IA */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 8px 16px; border-radius: 999px; font-size: .84rem; border: 1px solid var(--border); background: var(--surface); transition: transform .4s var(--ease-back), border-color .3s, background .3s; }
.pill:hover { transform: translateY(-4px) rotate(-2deg); border-color: var(--violet); background: rgba(139, 92, 246, .12); }
.chat { width: 100%; max-width: 440px; margin-inline: auto; border-radius: 22px; background: rgba(13, 19, 38, .85); border: 1px solid var(--border); backdrop-filter: blur(16px); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 60px -20px rgba(139, 92, 246, .4); }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, rgba(34, 211, 238, .08), rgba(139, 92, 246, .08)); }
.chat__avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #0a0f1f; border: 1px solid rgba(34, 211, 238, .4); }
.chat__avatar img { width: 26px; }
.chat__head b { display: block; font-size: .95rem; }
.chat__head small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .76rem; }
.online { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.chat__body { height: 320px; padding: 18px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; justify-content: flex-end; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: .88rem; line-height: 1.45; animation: msgIn .55s var(--ease-back) both; }
.msg--bot { align-self: flex-start; background: rgba(255, 255, 255, .06); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--grad); border-bottom-right-radius: 4px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(16px) scale(.9); } }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-6px); background: var(--cyan); } }
.chat__input { display: flex; align-items: center; justify-content: space-between; margin: 0 14px 14px; padding: 8px 8px 8px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.chat__send { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--grad); color: #fff; }
.chat__send svg { width: 17px; height: 17px; }

/* ---------- Stats ---------- */
.stats { padding: 40px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(12px); overflow: hidden; }
.stat { padding: 38px 24px; text-align: center; display: grid; gap: 6px; position: relative; transition: background .4s; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat:hover { background: rgba(34, 211, 238, .05); }
.stat b { font-family: var(--font-brand); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.timeline__line { position: absolute; top: 40px; left: 8%; right: 8%; height: 2px; background: var(--border); border-radius: 2px; }
.timeline__line span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--fill, 0)); box-shadow: 0 0 14px var(--cyan); }
.step { position: relative; text-align: center; display: grid; justify-items: center; gap: 12px; padding: 0 8px; }
.step__ico { position: relative; z-index: 1; width: 80px; height: 80px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); border: 1px solid rgba(34, 211, 238, .35); color: var(--cyan); box-shadow: 0 0 0 8px var(--bg); transition: transform .6s var(--ease-back), background .4s, color .4s; }
.step__ico svg { width: 32px; height: 32px; }
.step:hover .step__ico { transform: scale(1.12) rotate(360deg); background: var(--grad); color: #fff; }
.step__num { position: absolute; top: -18px; right: 22%; font-family: var(--font-brand); font-size: 3.4rem; font-weight: 600; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .08); z-index: 0; }
.step h3 { font-size: 1.12rem; font-weight: 600; margin-top: 8px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- Soporte ---------- */
.support { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: clamp(36px, 6vw, 70px); border-radius: 28px; border: 1px solid var(--border); background: linear-gradient(135deg, #0c1328, #120d2a); }
.support__waves { position: absolute; inset: auto 0 0; height: 70%; pointer-events: none; opacity: .9; }
.support__waves svg { width: 100%; height: 100%; }
.sw { transform-box: fill-box; transform-origin: bottom; }
.sw1 { fill: rgba(34, 211, 238, .08); animation: waveMove 9s ease-in-out infinite alternate; }
.sw2 { fill: rgba(139, 92, 246, .1); animation: waveMove 11s ease-in-out -4s infinite alternate-reverse; }
.support__copy { position: relative; display: grid; gap: 18px; justify-items: start; }
.support__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; perspective: 900px; }
.mini { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid var(--border); backdrop-filter: blur(10px); font-size: .92rem; transition: transform .5s var(--ease), border-color .4s; }
.mini:hover { transform: translateY(-6px) rotateX(8deg); border-color: rgba(34, 211, 238, .35); }
.mini b { font-weight: 600; }

/* ---------- Contacto ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__copy { display: grid; gap: 22px; justify-items: start; }
.contact__info { list-style: none; display: grid; gap: 14px; }
.contact__info li { display: flex; align-items: center; gap: 14px; perspective: 600px; }
.contact__info a:hover { color: var(--cyan); }
.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: rgba(255, 255, 255, .035); border: 1px solid var(--border); backdrop-filter: blur(16px); }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; padding: 22px 16px 10px; border-radius: 14px; border: 1px solid var(--border);
  background: rgba(6, 9, 19, .6); color: var(--text); font: inherit; font-size: .95rem; outline: none; resize: vertical;
  transition: border-color .3s, box-shadow .3s; appearance: none;
}
.field select { cursor: pointer; }
.field select option { background: var(--bg-2); }
.field label { position: absolute; left: 17px; top: 17px; color: var(--muted); font-size: .95rem; pointer-events: none; transition: all .25s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { top: 7px; font-size: .72rem; color: var(--cyan); }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: #f43f5e; }
.form__note { min-height: 1.2em; font-size: .88rem; color: var(--cyan); text-align: center; }

/* ---------- Contacto: datos y WhatsApp ---------- */
.contact__info small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.contact__info a, .contact__info span:not(.icon-box) { font-weight: 500; }
.wa-quick { width: 100%; display: grid; gap: 14px; margin-top: 4px; }
.wa-quick__title { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.wa-quick__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wa-chip {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 14px;
  background: rgba(37, 211, 102, .06); border: 1px solid rgba(37, 211, 102, .25); font-size: .88rem; font-weight: 500;
  overflow: hidden; transition: transform .45s var(--ease-back), border-color .3s, box-shadow .4s;
}
.wa-chip::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, #25d366, #128c7e); opacity: 0; transition: opacity .4s; z-index: -1; }
.wa-chip { isolation: isolate; }
.wa-chip .btn__icon { color: #25d366; transition: color .3s, transform .5s var(--ease-back); }
.wa-chip:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 14px 30px -12px rgba(37, 211, 102, .7); }
.wa-chip:hover::before { opacity: 1; }
.wa-chip:hover .btn__icon { color: #fff; transform: rotate(-15deg) scale(1.15); }

.wa-float {
  position: fixed; right: 22px; bottom: 84px; z-index: 91; width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; background: linear-gradient(135deg, #25d366, #128c7e); color: #fff;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .7); transition: transform .5s var(--ease-back);
}
.wa-float svg { width: 28px; height: 28px; position: relative; z-index: 1; }
.wa-float__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waRing 2.2s var(--ease) infinite; }
@keyframes waRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.wa-float:hover { transform: scale(1.1) rotate(-8deg); }
.wa-float__tip {
  position: absolute; right: 70px; white-space: nowrap; padding: 9px 14px; border-radius: 12px; font-size: .84rem; font-weight: 500;
  background: rgba(13, 19, 38, .92); border: 1px solid var(--border); backdrop-filter: blur(10px);
  opacity: 0; transform: translateX(10px); pointer-events: none; transition: all .4s var(--ease);
}
.wa-float:hover .wa-float__tip { opacity: 1; transform: none; }
.support__copy .btn { margin-top: 6px; }

/* Formulario: estados */
.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form.is-sending .btn { pointer-events: none; opacity: .75; }
.form.is-sending .btn__icon { animation: sendFly 1s var(--ease) infinite; }
@keyframes sendFly { 50% { transform: translate(6px, -6px); opacity: .4; } }
.form__note.is-ok { color: #34d399; }
.form__note.is-error { color: #fb7185; }

/* ---------- Footer ---------- */
.footer { position: relative; padding: 110px 0 30px; background: #04060d; margin-top: 40px; }
.footer__wave { position: absolute; top: -1px; left: 0; width: 100%; height: 80px; }
.footer__wave path { fill: var(--bg); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.footer nav { display: grid; gap: 10px; align-content: start; }
.footer nav a { color: #c8d0ea; font-size: .92rem; transition: color .3s, transform .3s var(--ease); width: fit-content; }
.footer nav a:hover { color: var(--cyan); transform: translateX(5px); }
.footer__text { color: var(--muted); font-size: .92rem; margin-top: 16px; max-width: 300px; }
.footer__contact { list-style: none; display: grid; gap: 6px; margin-top: 14px; font-size: .88rem; color: #c8d0ea; }
.footer__contact a:hover { color: var(--cyan); }
.socials { display: flex; gap: 10px; }
.social { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); color: #c8d0ea; transition: transform .5s var(--ease-back), background .3s, color .3s, border-color .3s; }
.social svg { width: 19px; height: 19px; }
.social:hover { transform: translateY(-5px) rotate(-8deg); background: var(--grad); color: #fff; border-color: transparent; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .84rem; }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px rgba(59, 130, 246, .8); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: all .5s var(--ease-back); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }
.to-top:hover svg { animation: upBounce .8s var(--ease) infinite; }
@keyframes upBounce { 50% { transform: translateY(-4px); } }

/* =========================================================
   ANIMACIONES DE ENTRADA / SALIDA (scroll)
   El JS añade .is-visible al entrar y la quita al salir,
   así los elementos también se animan al salir del viewport.
   ========================================================= */
.reveal { transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal[data-anim="fade-up"] { opacity: 0; transform: translateY(50px); filter: blur(6px); }
.reveal[data-anim="fade-right"] { opacity: 0; transform: translateX(-60px); filter: blur(6px); }
.reveal[data-anim="fade-left"] { opacity: 0; transform: translateX(60px); filter: blur(6px); }
.reveal[data-anim="zoom"] { opacity: 0; transform: scale(.85) translateY(30px); filter: blur(8px); }
.reveal[data-anim="flip"] { opacity: 0; transform: perspective(900px) rotateX(-35deg) translateY(60px) translateZ(-80px); }
.reveal[data-anim="mask"] { opacity: 0; transform: perspective(700px) translateY(55%) rotateX(-70deg); transform-origin: 50% 100%; filter: blur(8px); }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }
/* Salida hacia arriba (cuando el elemento ya pasó) */
.reveal.is-past { opacity: 0; transform: translateY(-40px) scale(.97); filter: blur(4px); transition-delay: 0ms; }
.reveal.tilt.is-visible { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .support { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: rgba(6, 9, 19, .96); backdrop-filter: blur(20px);
    clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .7s var(--ease); z-index: -1;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); }
  .nav__link { font-size: 1.3rem; gap: 12px; }
  .nav__ico { width: 22px; height: 22px; }
  .burger { display: block; }
}
@media (max-width: 900px) {
  .hero__grid, .split, .contact__grid { grid-template-columns: 1fr; }
  .hero { text-align: left; }
  .hero__scene { order: -1; margin-top: 10px; }
  .scene { width: min(360px, 78vw); }
  .split--reverse .split__visual { order: 2; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 50px; }
  .timeline__line { display: none; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .scroll-cue { display: none; }
}
@media (max-width: 600px) {
  .services, .support__grid, .timeline { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .float-card { font-size: .74rem; padding: 8px 12px 8px 8px; }
  .float-card__ico { width: 30px; height: 30px; }
  .float-card--a { left: 0; } .float-card--c { left: 0; } .float-card--b { right: 0; }
  .mock__body { grid-template-columns: 70px 1fr; }
  .mock__courses { grid-template-columns: 1fr 1fr; }
  .mock__courses .course:nth-child(3) { display: none; }
  .brand__tag { display: none; }
  .marquee::before, .marquee::after { width: 40px; }
  .wa-quick__grid { grid-template-columns: 1fr; }
  .wa-float__tip { display: none; }
}

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