/* ============================================================
   ZAPIEMS — Hoja de estilos principal
   Diseño: oscuro cinematográfico · cristal · azul eléctrico
   ============================================================ */

/* ------------------------------------------------------------
   1. Variables de diseño
   ------------------------------------------------------------ */
:root {
  /* Color */
  --bg:        #02040a;
  --bg-2:      #050912;
  --bg-3:      #081020;
  --ink:       #eaf2ff;
  --muted:     #8fa3c7;
  --blue:      #2e7cff;
  --cyan:      #6fe7ff;
  --blue-deep: #123a8f;
  --line:      rgba(140, 175, 255, 0.14);
  --glass-bg:  rgba(10, 18, 38, 0.45);
  --glass-hi:  rgba(140, 180, 255, 0.08);

  /* Tipografía: Bodoni en toda la web */
  --font-display: 'Bodoni Moda', 'Bodoni MT', 'Didot', Georgia, serif;
  --font-body:    'Bodoni Moda', 'Bodoni MT', 'Didot', Georgia, serif;
  --font-mono:    'Bodoni Moda', 'Bodoni MT', 'Didot', Georgia, serif;

  /* Ritmo */
  --section-pad: clamp(96px, 12vw, 180px);
  --container:   1240px;
  --radius:      18px;

  /* Movimiento */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-cine:  cubic-bezier(0.65, 0, 0.35, 1);
}

/* ------------------------------------------------------------
   2. Reset y base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

::selection { background: rgba(46, 124, 255, 0.35); color: #fff; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Scrollbar sutil */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--blue-deep), var(--blue));
  border-radius: 99px;
  border: 2px solid var(--bg);
}

/* Utilidades */
.mono { font-family: var(--font-mono); letter-spacing: 0.12em; font-size: 0.72rem; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }

.grad {
  background: linear-gradient(100deg, #ffffff 0%, var(--cyan) 45%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Punto pulsante (estado "sistema vivo") */
.pulse-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.2s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.7); }
}

/* ------------------------------------------------------------
   3. Grano cinematográfico
   ------------------------------------------------------------ */
.noise {
  position: fixed;
  inset: -50%;
  z-index: 80;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(3) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-2%, 1%); }
  66%  { transform: translate(1%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ------------------------------------------------------------
   4. Cursor personalizado
   ------------------------------------------------------------ */
#cursor { position: fixed; inset: 0; z-index: 200; pointer-events: none; }

.cursor-dot,
.cursor-ring {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(111, 231, 255, 0.5);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              border-color 0.25s, background-color 0.25s;
}
#cursor.is-hover .cursor-ring {
  width: 62px; height: 62px;
  border-color: rgba(111, 231, 255, 0.9);
  background: rgba(111, 231, 255, 0.06);
}
#cursor.is-down .cursor-ring { width: 28px; height: 28px; }

@media (hover: none), (pointer: coarse) {
  #cursor { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, input, textarea, [data-tilt] { cursor: none; }
}

/* ------------------------------------------------------------
   6. Destello del portal
   ------------------------------------------------------------ */
#flash {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(60% 60% at 50% 50%, #eaf8ff 0%, rgba(111, 231, 255, 0.85) 35%, rgba(46, 124, 255, 0.4) 65%, transparent 100%);
}

/* ------------------------------------------------------------
   7. Escena 3D
   ------------------------------------------------------------ */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease-cine);
}
body.scene-on #scene { opacity: 1; }

#smooth-wrapper { position: relative; z-index: 2; }

/* ------------------------------------------------------------
   8. Navegación
   ------------------------------------------------------------ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: transform 0.5s var(--ease-cine), background-color 0.4s, backdrop-filter 0.4s;
}
#nav.is-hidden { transform: translateY(-110%); }
#nav.is-scrolled {
  background: rgba(3, 6, 14, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  margin-inline: auto;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.28em;
  font-size: 1.02rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-mark {
  color: var(--cyan);
  filter: drop-shadow(0 0 8px var(--cyan));
  font-size: 0.8em;
}

.nav-links { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav-links a {
  font-size: 0.86rem;
  color: var(--muted);
  position: relative;
  padding: 6px 2px;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

#nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}
#nav-burger span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
}
body.menu-open #nav-burger span:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open #nav-burger span:last-child  { transform: translateY(-4px) rotate(-45deg); }

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 32px;
  background: rgba(2, 4, 10, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-cine), visibility 0.45s;
}
#mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  font-weight: 600;
  padding: 10px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color 0.3s, padding-left 0.3s;
}
#mobile-menu a:hover { color: var(--ink); padding-left: 12px; }
body.menu-open #mobile-menu { opacity: 1; visibility: visible; }

/* ------------------------------------------------------------
   9. Botones
   ------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  overflow: hidden;
  transition: box-shadow 0.4s, border-color 0.4s, color 0.4s;
  will-change: transform;
}
.btn span { position: relative; z-index: 2; }

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--blue-deep), var(--blue) 55%, #4da0ff);
  box-shadow: 0 0 0 1px rgba(111, 200, 255, 0.35) inset,
              0 10px 40px -8px rgba(46, 124, 255, 0.55);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s var(--ease-out);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(160, 220, 255, 0.6) inset, 0 14px 55px -8px rgba(46, 124, 255, 0.8); }
.btn-primary:hover::before { transform: translateX(110%); }

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(140, 175, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(111, 231, 255, 0.5); box-shadow: 0 0 30px -6px rgba(46, 124, 255, 0.35); }

.btn-block { width: 100%; }
.nav-cta { padding: 11px 24px; font-size: 0.84rem; }

/* ------------------------------------------------------------
   10. Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
  max-width: 1000px;
}

.hero-eyebrow {
  color: var(--cyan);
  margin-bottom: 26px;
  text-shadow: 0 0 18px rgba(111, 231, 255, 0.5);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 7rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.6);
}
.hero-line { display: block; overflow: hidden; }
.hero-line > span { display: inline-block; will-change: transform; }

.hero-sub {
  max-width: 640px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Subtítulos de fase (cine) */
.hero-caption {
  position: absolute;
  left: clamp(24px, 6vw, 90px);
  bottom: clamp(90px, 16vh, 160px);
  z-index: 3;
  opacity: 0;
  max-width: 420px;
  pointer-events: none;
}
.hero-caption p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.15;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.8);
}
.caption-tag {
  display: block;
  color: var(--cyan);
  margin-bottom: 10px;
  text-shadow: 0 0 14px rgba(111, 231, 255, 0.6);
}

/* Cierre de secuencia */
.hero-final {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  padding: 24px;
}
.hero-final h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6.5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 14px 0 18px;
  text-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
}
.hero-final p { color: var(--muted); font-size: 1.05rem; }
.hero-final-arrow {
  margin-top: 34px;
  font-size: 1.4rem;
  color: var(--cyan);
  animation: bounce 1.8s ease-in-out infinite;
  text-shadow: 0 0 16px var(--cyan);
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

/* HUD */
.hero-hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.hud-corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid rgba(111, 231, 255, 0.4);
  opacity: 0.8;
}
.hud-corner.tl { top: 92px; left: 28px;  border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: 92px; right: 28px; border-left: 0;  border-bottom: 0; }
.hud-corner.bl { bottom: 28px; left: 28px;  border-right: 0; border-top: 0; }
.hud-corner.br { bottom: 28px; right: 28px; border-left: 0;  border-top: 0; }

.hud-meter {
  position: absolute;
  right: clamp(24px, 4vw, 56px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--cyan);
}
.hud-track {
  width: 2px; height: clamp(120px, 22vh, 220px);
  background: rgba(140, 175, 255, 0.15);
  border-radius: 99px;
  overflow: hidden;
}
#hud-progress {
  display: block;
  width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 12px var(--cyan);
}
#hud-phase { writing-mode: vertical-rl; }
#hud-pct { font-size: 0.66rem; }

.hud-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  transition: opacity 0.5s;
}
.hud-scroll-line {
  display: block;
  width: 44px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
  animation: scanline 2s var(--ease-cine) infinite;
}
@keyframes scanline {
  0%   { transform: scaleX(0); transform-origin: left; }
  50%  { transform: scaleX(1); transform-origin: left; }
  51%  { transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* Fallback sin WebGL: nebulosa CSS */
.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  background:
    radial-gradient(55% 45% at 50% 62%, rgba(46, 124, 255, 0.22) 0%, transparent 70%),
    radial-gradient(35% 30% at 72% 30%, rgba(111, 231, 255, 0.12) 0%, transparent 70%),
    radial-gradient(120% 90% at 50% 0%, #0a1530 0%, var(--bg) 65%);
}
.no-webgl .hero-fallback { display: block; }
.no-webgl #scene { display: none; }
.no-webgl .hero-caption, .no-webgl .hero-final, .no-webgl .hud-meter { display: none; }

/* ------------------------------------------------------------
   11. Secciones — base
   ------------------------------------------------------------ */
.section {
  position: relative;
  padding-block: var(--section-pad);
  background: var(--bg);
}
/* Sutil separación luminosa entre secciones */
.section::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(720px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 200, 255, 0.25), transparent);
}
.hero::before { display: none; }

.section-head { margin-bottom: clamp(48px, 7vw, 90px); }
.section-index {
  display: inline-block;
  color: var(--cyan);
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid rgba(111, 231, 255, 0.25);
  border-radius: 99px;
  background: rgba(111, 231, 255, 0.05);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: 0;
}
.section-sub {
  margin-top: 20px;
  max-width: 560px;
  color: var(--muted);
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink); }

/* Cristal (glassmorphism) */
.glass {
  background: linear-gradient(160deg, var(--glass-hi), var(--glass-bg));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(140, 175, 255, 0.05);
}

/* ------------------------------------------------------------
   12. Quiénes somos
   ------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.about-text p + p { margin-top: 20px; color: var(--muted); }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat {
  padding: 28px 24px;
  transition: transform 0.5s var(--ease-out), border-color 0.5s;
}
.stat:hover { transform: translateY(-6px); border-color: rgba(111, 231, 255, 0.4); }
.stat:nth-child(even) { transform: translateY(22px); }
.stat:nth-child(even):hover { transform: translateY(16px); }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  background: linear-gradient(100deg, #fff, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ------------------------------------------------------------
   13. Servicios — tarjetas 3D
   ------------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  padding: 32px 28px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.4s;
  --gx: 50%;
  --gy: 50%;
}
/* Brillo especular que sigue al ratón */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(111, 200, 255, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(111, 231, 255, 0.45); }

.card-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 14px;
  border: 1px solid rgba(111, 231, 255, 0.3);
  background: linear-gradient(150deg, rgba(46, 124, 255, 0.18), rgba(111, 231, 255, 0.04));
  box-shadow: 0 0 26px -6px rgba(46, 124, 255, 0.5);
  transform: translateZ(30px);
}
.card-icon svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(111, 231, 255, 0.6));
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 10px;
  transform: translateZ(24px);
}
.card p {
  font-size: 0.9rem;
  color: var(--muted);
  transform: translateZ(16px);
}
.card-tag {
  display: inline-block;
  margin-top: 18px;
  color: var(--cyan);
  opacity: 0.75;
  transform: translateZ(12px);
}

/* ------------------------------------------------------------
   14. Pilares — scroll horizontal
   ------------------------------------------------------------ */
.pillars { overflow: hidden; padding-block: clamp(60px, 7vw, 90px) 36px; }
.pillars-head { margin-bottom: clamp(28px, 4vw, 48px); }
.pillars .section-title { font-size: clamp(1.8rem, 4vw, 3rem); }

.pillars-viewport { width: 100%; }
.pillars-track {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  padding-inline: max(24px, calc((100vw - var(--container)) / 2));
  width: max-content;
  will-change: transform;
}

.pillar {
  width: min(78vw, 860px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 15% 0%, rgba(46, 124, 255, 0.10), transparent 60%),
    linear-gradient(160deg, rgba(140, 180, 255, 0.06), rgba(8, 14, 30, 0.55));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pillar-num {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 14px;
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 14px;
}
.pillar p { color: var(--muted); font-size: 0.95rem; }
.pillar-list { margin-top: 22px; display: grid; gap: 10px; }
.pillar-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
}
.pillar-list li::before {
  content: "◆";
  position: absolute;
  left: 0; top: 1px;
  font-size: 0.6rem;
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
}

/* Holograma decorativo (CSS puro) */
.pillar-visual { display: grid; place-items: center; min-height: 240px; }
.holo {
  position: relative;
  width: min(240px, 30vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(111, 231, 255, 0.18) 0%, rgba(46, 124, 255, 0.05) 45%, transparent 70%);
  filter: drop-shadow(0 0 40px rgba(46, 124, 255, 0.35));
}
.holo::before, .holo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(111, 231, 255, 0.5);
  animation: spin 14s linear infinite;
}
.holo::after {
  inset: 14%;
  border-style: solid;
  border-color: rgba(46, 124, 255, 0.55) transparent;
  animation: spin 9s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Núcleo de cada holograma */
.holo > *, .holo { --core: var(--cyan); }
.holo::marker { display: none; }
.holo.h-1 { --core: #6fe7ff; }
.holo.h-2 { --core: #8f9dff; }
.holo.h-3 { --core: #55f0d0; }
.holo.h-4 { --core: #6fb6ff; }
.holo.h-5 { --core: #a78fff; }
.holo.h-6 { --core: #6fe7ff; }

/* ------------------------------------------------------------
   15. Proceso — línea temporal
   ------------------------------------------------------------ */
.process {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-left: 44px;
}
.process-line {
  position: absolute;
  left: 10px; top: 8px; bottom: 8px;
  width: 2px;
  background: rgba(140, 175, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
}
#process-fill {
  display: block;
  width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 12px var(--cyan);
}

.process-step { position: relative; }
.process-step + .process-step { margin-top: 28px; }

.process-dot {
  position: absolute;
  left: -40px; top: 34px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 14px rgba(111, 231, 255, 0.7);
}

.process-card {
  padding: 28px 30px;
  transition: transform 0.5s var(--ease-out), border-color 0.5s;
}
.process-card:hover { transform: translateX(8px); border-color: rgba(111, 231, 255, 0.4); }
.process-num { color: var(--cyan); display: inline-block; margin-bottom: 8px; }
.process-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.process-card p { color: var(--muted); font-size: 0.93rem; }

/* ------------------------------------------------------------
   16. Casos de uso
   ------------------------------------------------------------ */
.marquee {
  overflow: hidden;
  padding: 18px 0;
  margin-bottom: clamp(56px, 8vw, 100px);
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  color: var(--muted);
  font-size: 0.8rem;
  animation: marquee 30s linear infinite;
}
.marquee-track i { color: var(--cyan); font-style: normal; font-size: 0.55rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case {
  position: relative;
  padding: 30px 28px;
  overflow: hidden;
  --gx: 50%; --gy: 50%;
  transition: border-color 0.4s;
  will-change: transform;
}
.case::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(380px circle at var(--gx) var(--gy), rgba(111, 200, 255, 0.10), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.case:hover::before { opacity: 1; }
.case:hover { border-color: rgba(111, 231, 255, 0.45); }

.case h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 16px 0 10px;
}
.case p { font-size: 0.88rem; color: var(--muted); }
.case-metric {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.case-metric strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  background: linear-gradient(100deg, #fff, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.case-metric span { font-size: 0.78rem; color: var(--muted); }

/* ------------------------------------------------------------
   17. Beneficios
   ------------------------------------------------------------ */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.benefit {
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.5s;
}
.benefit:hover { transform: translateY(-6px); border-color: rgba(111, 231, 255, 0.4); }
.benefit-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  opacity: 0.85;
  display: block;
  margin-bottom: 14px;
}
.benefit h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.benefit p { color: var(--muted); font-size: 0.93rem; }

/* ------------------------------------------------------------
   18. Contacto
   ------------------------------------------------------------ */
.contact {
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(46, 124, 255, 0.10), transparent 65%),
    var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.contact-info .lead { margin-top: 24px; color: var(--muted); }
.contact-points { margin-top: 30px; display: grid; gap: 12px; font-size: 0.95rem; }
.contact-mail {
  display: inline-block;
  margin-top: 36px;
  font-size: 1rem;
  color: var(--cyan);
  border-bottom: 1px solid rgba(111, 231, 255, 0.4);
  padding-bottom: 4px;
  text-shadow: 0 0 16px rgba(111, 231, 255, 0.4);
}
.contact-loc {
  display: block;
  margin-top: 18px;
  color: var(--muted);
}

.contact-form { padding: clamp(28px, 3.5vw, 44px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  background: rgba(4, 8, 18, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(111, 231, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(46, 124, 255, 0.15), 0 0 24px -6px rgba(46, 124, 255, 0.4);
}
.form-field ::placeholder { color: rgba(143, 163, 199, 0.5); }
.form-status { margin-top: 14px; color: var(--cyan); min-height: 1.2em; }

/* ------------------------------------------------------------
   19. Footer
   ------------------------------------------------------------ */
.footer {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0 36px;
  background: linear-gradient(180deg, var(--bg) 0%, #030710 100%);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

/* Marca de agua gigante */
.footer-word {
  position: absolute;
  inset: auto 0 -2vw;
  text-align: center;
  pointer-events: none;
  line-height: 0.8;
}
.footer-word span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(80px, 17vw, 260px);
  letter-spacing: 0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(111, 200, 255, 0.10);
  background: linear-gradient(180deg, rgba(111, 200, 255, 0.06), transparent 80%);
  -webkit-background-clip: text; background-clip: text;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: 60px;
}
.footer-brand p { margin-top: 18px; color: var(--muted); font-size: 0.9rem; }
.footer-brand .footer-loc {
  margin-top: 14px;
  font-size: 0.68rem;
  color: var(--cyan);
  letter-spacing: 0.14em;
}
.footer-address { color: var(--muted); font-size: 0.9rem; }
.footer-col { display: grid; gap: 12px; align-content: start; }
.footer-col h4 { color: var(--cyan); font-weight: 500; margin-bottom: 6px; }
.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
  width: fit-content;
  transition: color 0.3s, transform 0.3s;
}
.footer-col a:hover { color: var(--ink); transform: translateX(4px); }

.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-bottom .pulse-dot { margin: 0 0 0 6px; }

/* ------------------------------------------------------------
   20. Animaciones de entrada (estado inicial vía JS)
   ------------------------------------------------------------ */
/* Los elementos [data-reveal] y [data-split] se animan con GSAP.
   Sin JavaScript permanecen visibles: accesibilidad primero. */
.split-line { overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* ------------------------------------------------------------
   21. Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .services-grid, .cases-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pillar { grid-template-columns: 1fr; width: 86vw; }
  .pillar-visual { min-height: 170px; }
}

@media (max-width: 820px) {
  /* Pilares: en pantallas pequeñas pasan a lista vertical */
  .pillars-track {
    flex-direction: column;
    width: 100%;
    padding-inline: 24px;
  }
  .pillar { width: 100%; }
  .pillars-progress { display: none; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  #nav-burger { display: flex; }
  .services-grid, .cases-grid, .benefits-grid, .about-stats, .form-row { grid-template-columns: 1fr; }
  .stat:nth-child(even) { transform: none; }
  .stat:nth-child(even):hover { transform: translateY(-6px); }
  .hero-caption { bottom: 120px; max-width: 300px; }
  .hud-meter { display: none; }
  .hud-corner.tl, .hud-corner.tr { top: 80px; }
  .footer-grid { grid-template-columns: 1fr; }
  .process { padding-left: 34px; }
  .process-dot { left: -30px; }
}

/* ------------------------------------------------------------
   22. Accesibilidad — movimiento reducido
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .noise { display: none; }
}
