/* ==========================================================================
   VEMAX SOFT — Sitio corporativo
   ========================================================================== */

:root {
  --bg: #05080f;
  --bg-2: #080d19;
  --surface: #0c1324;
  --surface-2: #111a30;
  --line: rgba(120, 180, 255, 0.10);
  --line-strong: rgba(120, 190, 255, 0.22);

  --text: #e8f0fb;
  --text-dim: #9aabc6;
  --text-mute: #5f6f8a;

  --cyan: #4cc9f5;
  --cyan-2: #7fdcff;
  --blue: #1e78d2;
  --blue-deep: #0d4e8f;
  --glow: rgba(76, 201, 245, 0.45);

  --grad: linear-gradient(120deg, #7fdcff 0%, #4cc9f5 35%, #1e78d2 100%);
  --grad-soft: linear-gradient(140deg, rgba(76, 201, 245, 0.16), rgba(30, 120, 210, 0.04));

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 18px;
  --radius-lg: 28px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--cyan); color: #021020; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Grano + grilla de fondo ------------------------------------------------ */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 3%); }
  40% { transform: translate(3%, -6%); }
  60% { transform: translate(-7%, 2%); }
  80% { transform: translate(4%, 5%); }
}

.bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

/* Preloader -------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.preloader__inner { display: grid; justify-items: center; gap: 28px; }
.preloader__logo { position: relative; width: 132px; height: 132px; }
.preloader__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.preloader__ring circle {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 402;
  stroke-dashoffset: 402;
  filter: drop-shadow(0 0 6px var(--glow));
}
.preloader__mark {
  position: absolute;
  inset: 26%;
  width: 48%;
  height: auto;
  opacity: 0;
  margin: auto;
}
.preloader__count {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
}
.preloader__curtain {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--blue-deep);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

/* Cursor ----------------------------------------------------------------- */
.cursor, .cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.cursor {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(127, 220, 255, 0.5);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), background 0.35s, border-color 0.35s;
}
.cursor-dot { width: 5px; height: 5px; background: var(--cyan-2); }
.cursor.is-hover {
  width: 74px;
  height: 74px;
  background: rgba(76, 201, 245, 0.08);
  border-color: rgba(127, 220, 255, 0.8);
}
@media (hover: hover) and (pointer: fine) {
  .cursor, .cursor-dot { opacity: 1; }
}

/* Scroll progress -------------------------------------------------------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 12px var(--glow);
}

/* Header ----------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 18px 0;
  transition: transform 0.5s var(--ease), background 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  padding: 12px 0;
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
}
.header.is-hidden { transform: translateY(-110%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__badge {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--cyan);
  box-shadow: 0 0 14px var(--glow), inset 0 0 10px rgba(76, 201, 245, 0.25);
}
.brand__badge img { width: 62%; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.08em;
}
.brand__name span { color: var(--cyan); font-weight: 400; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 26px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* Botones ---------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary {
  background: var(--grad);
  color: #021020;
  box-shadow: 0 10px 40px -10px var(--glow);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  border-radius: inherit;
}
.btn--primary:hover::before { transform: translateY(0); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.4s;
}
.btn--ghost:hover { border-color: var(--cyan); }
.btn--ghost:hover::before { opacity: 1; }
.btn--sm { padding: 10px 20px; font-size: 14px; }

/* Tipografía común ------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 18px 0 0;
  max-width: 16ch;
}
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: clamp(16px, 1.35vw, 19px); color: var(--text-dim); max-width: 56ch; }

.section { position: relative; padding: clamp(96px, 13vw, 180px) 0; }
.section__head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 96px);
}

/* Split text helpers */
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-line > .split-inner { display: inline-block; will-change: transform; }

/* HERO ------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow {
  position: absolute;
  width: 70vw;
  height: 70vw;
  max-width: 1000px;
  max-height: 1000px;
  right: -18vw;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 120, 210, 0.28), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero__title { font-size: clamp(42px, 6.3vw, 100px); margin-top: 26px; }
.hero__title .text-grad { padding-right: 0.05em; }
.hero__lead { margin: 30px 0 42px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}
.orb { position: absolute; inset: 0; display: grid; place-items: center; }
.orb__ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 30px var(--glow), inset 0 0 30px rgba(76, 201, 245, 0.3);
}
.orb__ring--2 {
  inset: -4%;
  border: 1px dashed rgba(127, 220, 255, 0.25);
  box-shadow: none;
  animation: spin 40s linear infinite;
}
.orb__ring--3 {
  inset: 14%;
  border: 1px solid rgba(127, 220, 255, 0.12);
  box-shadow: none;
}
.orb__orbit {
  position: absolute;
  inset: -4%;
  animation: spin 14s linear infinite;
}
.orb__orbit::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan-2);
  box-shadow: 0 0 18px 4px var(--cyan);
}
.orb__orbit--b { inset: 4%; animation-duration: 9s; animation-direction: reverse; }
.orb__orbit--b::before { width: 6px; height: 6px; top: -3px; }
.orb__mark {
  position: relative;
  width: 54%;
  filter: drop-shadow(0 20px 40px rgba(30, 120, 210, 0.45));
  will-change: transform;
}
@keyframes spin { to { transform: rotate(360deg); } }

.chip-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(12, 19, 36, 0.75);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
}
.chip-float b { font-family: var(--font-display); font-size: 15px; display: block; line-height: 1.2; }
.chip-float small { color: var(--text-dim); font-size: 11px; }
.chip-float__dot {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--line-strong);
  color: var(--cyan);
}
.chip-float__dot svg { width: 16px; height: 16px; }
.chip-float--1 { top: 10%; left: -8%; }
.chip-float--2 { bottom: 16%; right: -6%; }
.chip-float--3 { bottom: 2%; left: 6%; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-mute);
}
.hero__scroll i {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--cyan), transparent);
  animation: drip 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes drip {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Marquee ---------------------------------------------------------------- */
.marquee {
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 26px 0;
}
.marquee__track { display: flex; width: max-content; gap: 0; will-change: transform; }
.marquee__item {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--text-mute);
}
.marquee__item:nth-child(odd) { color: var(--text); }
.marquee__item svg { width: 22px; height: 22px; color: var(--cyan); flex: none; }

/* Manifiesto ------------------------------------------------------------- */
.manifesto { padding: clamp(110px, 16vw, 220px) 0; }
.manifesto__text {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.3vw, 62px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 28px 0 0;
  max-width: 22ch;
}
.manifesto__text .w { opacity: 0.14; transition: none; }
.manifesto__text .w.hl { color: var(--cyan-2); }
.manifesto__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin-top: 60px;
  color: var(--text-dim);
  font-size: 14px;
}
.manifesto__meta span { display: flex; align-items: center; gap: 10px; }
.manifesto__meta svg { width: 18px; height: 18px; color: var(--cyan); }

/* Servicios -------------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  padding: 34px;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(76, 201, 245, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover { border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.service { grid-column: span 4; min-height: 330px; display: flex; flex-direction: column; }
.service--wide { grid-column: span 8; }
.service__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.15em;
}
.service__icon {
  width: 58px;
  height: 58px;
  margin: 22px 0 auto;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  transition: transform 0.6s var(--ease), box-shadow 0.4s;
}
.service__icon svg { width: 26px; height: 26px; }
.card:hover .service__icon { transform: rotate(-8deg) scale(1.08); box-shadow: 0 0 30px -4px var(--glow); }
.service h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 34px 0 10px;
}
.service p { color: var(--text-dim); margin: 0; font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.service--wide .service__body { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; }

/* Stats ------------------------------------------------------------------ */
.stats { padding: 0 0 clamp(80px, 10vw, 140px); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
}
.stat { padding: 40px 32px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat__value sup { font-size: 0.45em; color: var(--cyan); vertical-align: top; margin-left: 2px; }
.stat__label { color: var(--text-dim); font-size: 14px; margin-top: 12px; max-width: 22ch; }

/* Proyectos (scroll horizontal) ----------------------------------------- */
.work { padding-bottom: 0; }
.work__pin { position: relative; overflow: hidden; }
.work__track {
  display: flex;
  gap: 24px;
  padding: 0 var(--gutter) clamp(96px, 12vw, 160px);
  width: max-content;
  will-change: transform;
}
.project {
  position: relative;
  width: min(78vw, 560px);
  flex: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  transform-style: preserve-3d;
}
.project__visual {
  position: relative;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(30, 120, 210, 0.35), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--bg-2));
}
.project__body { padding: 28px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.project__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.project__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.project__idx { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); }
.project h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.025em;
  margin: 14px 0 10px;
  line-height: 1.1;
}
.project p { color: var(--text-dim); margin: 0; font-size: 15px; }
.project ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--text); }
.project li { display: flex; gap: 10px; align-items: flex-start; }
.project li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.project .tags { margin-top: auto; padding-top: 22px; }
.work__intro-card {
  width: min(78vw, 420px);
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 20px 10px 0;
}
.work__intro-card p { color: var(--text-dim); }
.work__hint {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  margin-top: 30px;
}
.work__hint i { width: 60px; height: 1px; background: var(--cyan); }
.work__bar {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(48px, 6vw, 80px);
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.work__bar span { position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(0); }

/* Mockups de proyecto (UI dibujada con CSS) */
.mock {
  position: absolute;
  inset: 12% 8% -6% 8%;
  border-radius: 12px 12px 0 0;
  background: rgba(5, 8, 15, 0.85);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transition: transform 0.8s var(--ease);
}
.card:hover .mock { transform: translateY(-8px); }
.mock__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-2); }
.mock__bar i:first-child { background: #ff5f57; }
.mock__bar i:nth-child(2) { background: #febc2e; }
.mock__bar i:nth-child(3) { background: #28c840; }
.mock__body { display: grid; grid-template-columns: 22% 1fr; height: 100%; }
.mock__side { border-right: 1px solid var(--line); padding: 12px 10px; display: grid; align-content: start; gap: 8px; }
.mock__side span { height: 7px; border-radius: 4px; background: var(--surface-2); }
.mock__side span:first-child { background: var(--cyan); opacity: 0.7; width: 70%; }
.mock__main { padding: 12px; display: grid; gap: 10px; align-content: start; }
.mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock__kpis span { height: 34px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.mock__kpis span::after { content: ""; position: absolute; left: 8px; top: 9px; width: 40%; height: 6px; border-radius: 3px; background: var(--cyan); opacity: 0.6; }
.mock__chart { height: 80px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); padding: 8px; display: flex; align-items: flex-end; gap: 5px; }
.mock__chart b { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(var(--cyan), var(--blue)); opacity: 0.85; }
.mock__rows { display: grid; gap: 6px; }
.mock__rows span { height: 8px; border-radius: 4px; background: var(--surface-2); }
.mock__rows span:nth-child(2n) { width: 80%; }
.mock__chat { padding: 14px; display: grid; gap: 10px; align-content: start; }
.bubble { max-width: 72%; padding: 8px 12px; border-radius: 12px; font-size: 11px; line-height: 1.4; color: var(--text); background: var(--surface-2); }
.bubble--me { justify-self: end; background: linear-gradient(120deg, var(--blue), var(--cyan)); color: #021020; }
.bubble--typing { display: flex; gap: 4px; padding: 10px 12px; }
.bubble--typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-dim); animation: blink 1.2s infinite; }
.bubble--typing i:nth-child(2) { animation-delay: 0.2s; }
.bubble--typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.mock__shop { padding: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock__shop span { aspect-ratio: 0.8; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.mock__shop span::before { content: ""; position: absolute; inset: 8px 8px 40%; border-radius: 6px; background: linear-gradient(140deg, rgba(76, 201, 245, 0.35), rgba(30, 120, 210, 0.1)); }
.mock__shop span::after { content: ""; position: absolute; left: 8px; right: 30%; bottom: 12px; height: 6px; border-radius: 3px; background: var(--surface-2); }
.mock__code { padding: 14px 16px; font-family: var(--font-mono); font-size: 11px; line-height: 1.75; color: var(--text-dim); white-space: pre; }
.mock__code .k { color: var(--cyan-2); }
.mock__code .s { color: #9be29b; }
.mock__code .c { color: var(--text-mute); }
.mock__vision { position: absolute; inset: 40px 0 0; display: grid; place-items: center; }
.mock__vision .scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  animation: scan 3s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { top: 8%; } 50% { top: 88%; } }
.mock__vision .box {
  position: absolute;
  border: 1.5px solid var(--cyan);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--cyan);
}
.mock__vision .box em { position: absolute; top: -16px; left: -1px; font-style: normal; background: var(--cyan); color: #021020; padding: 1px 5px; border-radius: 3px; white-space: nowrap; }

/* Proceso ---------------------------------------------------------------- */
.process__wrap { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; }
.process__sticky { position: sticky; top: 140px; align-self: start; }
.process__list { position: relative; padding-left: 50px; }
.process__line { position: absolute; left: 14px; top: 0; bottom: 0; width: 2px; background: var(--line); border-radius: 2px; }
.process__line span { position: absolute; inset: 0; background: var(--grad); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 12px var(--glow); }
.step { position: relative; padding: 0 0 70px; }
.step:last-child { padding-bottom: 0; }
.step__dot {
  position: absolute;
  left: -50px;
  top: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  transition: all 0.5s var(--ease);
}
.step.is-active .step__dot { border-color: var(--cyan); color: #021020; background: var(--cyan); box-shadow: 0 0 20px var(--glow); }
.step h3 { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.15; }
.step p { color: var(--text-dim); margin: 0; max-width: 52ch; }
.step .tags { margin-top: 18px; }

/* Industrias ------------------------------------------------------------- */
.industries__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.industry { padding: 30px; min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; }
.industry__icon { width: 44px; height: 44px; color: var(--cyan); }
.industry__icon svg { width: 100%; height: 100%; stroke-width: 1.4; }
.industry h3 { font-family: var(--font-display); font-size: 21px; margin: 24px 0 6px; letter-spacing: -0.015em; }
.industry p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* Stack ------------------------------------------------------------------ */
.stack { overflow: hidden; }
.stack__rows { display: grid; gap: 14px; margin-top: 10px; }
.stack__row { display: flex; width: max-content; gap: 14px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-dim);
  transition: color 0.3s, border-color 0.3s;
}
.pill:hover { color: var(--text); border-color: var(--cyan); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); opacity: 0.7; }

/* Diferenciales ---------------------------------------------------------- */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why { padding: 30px; }
.why__k { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); letter-spacing: 0.18em; }
.why h3 { font-family: var(--font-display); font-size: 21px; margin: 46px 0 10px; letter-spacing: -0.015em; line-height: 1.2; }
.why p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* CTA / Contacto --------------------------------------------------------- */
.cta {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  padding: clamp(48px, 8vw, 110px) clamp(24px, 6vw, 90px);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(30, 120, 210, 0.45), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(76, 201, 245, 0.18), transparent 60%),
    var(--surface);
  border: 1px solid var(--line-strong);
}
.cta__mark {
  position: absolute;
  right: -6%;
  bottom: -18%;
  width: min(48vw, 560px);
  opacity: 0.13;
  pointer-events: none;
}
.cta__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); }
.cta__title { font-size: clamp(40px, 6vw, 88px); }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; }
.contact-list a, .contact-list div { display: flex; gap: 14px; align-items: flex-start; color: var(--text-dim); transition: color 0.3s; }
.contact-list a:hover { color: var(--text); }
.contact-list svg { flex: none; width: 20px; height: 20px; color: var(--cyan); margin-top: 3px; }
.contact-list b { display: block; color: var(--text); font-weight: 600; }

.form { display: grid; gap: 16px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 22px 18px 10px;
  border-radius: 14px;
  background: rgba(5, 8, 15, 0.55);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
  -webkit-appearance: none;
}
.field select { cursor: pointer; }
.field textarea { min-height: 130px; resize: vertical; }
.field label {
  position: absolute;
  left: 18px;
  top: 16px;
  font-size: 15px;
  color: var(--text-mute);
  pointer-events: none;
  transition: all 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(76, 201, 245, 0.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { top: 7px; font-size: 11px; color: var(--cyan); letter-spacing: 0.04em; }
.field select option { background: var(--surface); }
.form__note { font-size: 13px; color: var(--text-mute); margin: 0; }
.form__status { font-size: 14px; color: var(--cyan-2); min-height: 1.4em; margin: 0; }

/* Footer ----------------------------------------------------------------- */
.footer { padding: 90px 0 36px; position: relative; overflow: hidden; }
.footer__big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(80px, 21vw, 330px);
  letter-spacing: -0.06em;
  line-height: 0.8;
  margin: 0 0 60px;
  background: linear-gradient(180deg, rgba(127, 220, 255, 0.22), rgba(127, 220, 255, 0) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  white-space: nowrap;
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.footer h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--text-mute); font-weight: 500; margin: 0 0 18px; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--text-dim); }
.footer ul a:hover { color: var(--cyan-2); }
.footer__about p { color: var(--text-dim); font-size: 14.5px; max-width: 36ch; margin: 18px 0 0; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 28px; font-size: 13px; color: var(--text-mute); }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  transition: all 0.3s;
}
.socials a:hover { color: #021020; background: var(--cyan); border-color: var(--cyan); }
.socials svg { width: 18px; height: 18px; }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(12, 19, 36, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg.ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; }
.to-top .arrow { width: 18px; height: 18px; color: var(--cyan-2); }

/* Reveal base (JS lo anima) */
[data-reveal] { opacity: 0; transform: translateY(40px); }
.no-js [data-reveal], .reduced [data-reveal] { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .service, .service--wide { grid-column: span 6; }
  .service--wide .service__body { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .industries__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: rgba(5, 8, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
  }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  .menu-open .header {
    transform: none !important;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: transparent;
  }
  .nav__link { font-family: var(--font-display); font-size: 30px; color: var(--text); }
  .nav__link::after { display: none; }
  .header__cta { display: none; }
  .menu-toggle { display: block; }

  .hero { padding-top: 120px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 300px; justify-self: center; }
  .chip-float--1 { left: -14%; top: 4%; }
  .chip-float--2 { right: -16%; }
  .chip-float--3 { display: none; }
  .hero__scroll { display: none; }

  .section__head { grid-template-columns: 1fr; gap: 20px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .process__wrap { grid-template-columns: 1fr; gap: 40px; }
  .process__sticky { position: relative; top: 0; }

  .cta__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .service, .service--wide { grid-column: span 12; min-height: 0; }
  .service__icon { margin-bottom: 0; }
  .industries__grid, .why__grid { grid-template-columns: 1fr; }
  .why h3 { margin-top: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .project__body { padding: 24px; }
  .stat { padding: 28px 20px; }
  .chip-float { font-size: 11px; padding: 8px 10px; }
  .chip-float b { font-size: 13px; }
  .chip-float--1 { left: -6%; }
  .chip-float--2 { right: -6%; }
}

/* Desktop: el carrusel ocupa la pantalla y queda centrado verticalmente */
@media (min-width: 901px) {
  .work__pin { height: 100vh; display: flex; align-items: center; }
  .work__track { padding-bottom: 40px; }
  .project__visual { aspect-ratio: 16 / 8.5; }
}
@media (min-width: 901px) and (max-height: 820px) {
  .project__visual { aspect-ratio: 16 / 6.5; }
  .project ul { gap: 4px; margin-top: 12px; }
  .project li:nth-child(n+4) { display: none; }
  .project__body { padding: 22px 26px 24px; }
}

/* En mobile el carrusel de proyectos se convierte en scroll nativo */
@media (max-width: 900px) {
  .work__track {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 80px;
  }
  .work__track::-webkit-scrollbar { display: none; }
  .project, .work__intro-card { scroll-snap-align: start; }
  .work__intro-card { display: none; }
  .work__bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .manifesto__text .w { opacity: 1; }
}
