/* ==========================================================================
   ZERYON — Intelligence Beyond Threats
   Sistema visual web · basado en el Manual de Identidad v1.0
   ========================================================================== */

@font-face { font-family: "Space Grotesk"; src: url("../fonts/SpaceGrotesk-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/SpaceGrotesk-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --zr-aurora: #009CFF;
  --zr-night: #081826;
  --zr-night-deep: #050f19;
  --zr-glacier: #1E2A3A;
  --zr-stone: #2F3B4A;
  --zr-ice: #E8EDF4;
  --zr-frost: #9FB2C8;
  --zr-deep: #0068B3;

  --line: rgba(159, 178, 200, .14);
  --line-strong: rgba(159, 178, 200, .28);
  --glow: 0 0 40px rgba(0, 156, 255, .35);

  --f-display: "Space Grotesk", Arial, sans-serif;
  --f-body: "Inter", Arial, sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "JetBrains Mono", Consolas, "Liberation Mono", monospace;

  --gutter: clamp(20px, 4.4vw, 64px);
  --maxw: 1440px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
}

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

body {
  margin: 0;
  background: var(--zr-night);
  color: var(--zr-ice);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
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; padding: 0; }
::selection { background: var(--zr-aurora); color: var(--zr-night); }

:focus-visible { outline: 2px solid var(--zr-aurora); outline-offset: 4px; border-radius: 2px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 1000;
  background: var(--zr-aurora); color: var(--zr-night); padding: 10px 16px; font-weight: 600;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }

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

/* Grain overlay — textura mineral */
.grain {
  pointer-events: none; position: fixed; inset: 0; z-index: 90; opacity: .045;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 10% { transform: translate(-5%, -10%); } 30% { transform: translate(3%, -15%); }
  50% { transform: translate(12%, 9%); } 70% { transform: translate(9%, 4%); } 90% { transform: translate(-1%, 7%); }
}

/* ---------- Tipografía ---------- */
.eyebrow {
  font-family: var(--f-display); font-weight: 500; font-size: 12px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--zr-frost);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--zr-aurora); box-shadow: var(--glow); }
.eyebrow--plain::before { display: none; }

.h-display {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(50px, 8vw, 140px); line-height: .94; letter-spacing: -.035em; margin: 0;
}
.h-xl {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(40px, 6.6vw, 112px); line-height: .98; letter-spacing: -.03em; margin: 0;
}
.h-l {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(32px, 4.4vw, 68px); line-height: 1.02; letter-spacing: -.025em; margin: 0;
}
.h-m { font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -.015em; margin: 0; }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--zr-frost); max-width: 40ch; }
.accent { color: var(--zr-aurora); }
.rule { width: 32px; height: 2px; background: var(--zr-aurora); box-shadow: var(--glow); }

.split-line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.split-line > span { display: inline-block; will-change: transform; }

/* ---------- Botones ---------- */
.btn {
  --h: 56px;
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: var(--h); padding: 0 28px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 500; font-size: 16px; letter-spacing: .01em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .5s var(--ease), box-shadow .5s var(--ease);
}
.btn__label { position: relative; display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.btn__label span { display: block; transition: transform .6s var(--ease); }
.btn__label span + span { position: absolute; left: 0; top: 100%; }
.btn:hover .btn__label span { transform: translateY(-100%); }
.btn__arrow { width: 18px; height: 18px; transition: transform .6s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px) rotate(-45deg); }

.btn--primary { background: var(--zr-aurora); color: var(--zr-night); box-shadow: 0 0 0 0 rgba(0,156,255,.0); }
.btn--primary:hover { box-shadow: 0 10px 50px -6px rgba(0,156,255,.65); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn--primary:hover::before { transform: translateX(120%); }

.btn--ghost { color: var(--zr-ice); border: 1px solid var(--line-strong); }
.btn--ghost::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--zr-ice);
  transform: translateY(101%); border-radius: inherit; transition: transform .6s var(--ease);
}
.btn--ghost:hover { color: var(--zr-night); }
.btn--ghost:hover::before { transform: translateY(0); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200; background: var(--zr-night-deep);
  display: grid; place-items: center; overflow: hidden;
}
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.preloader__mark { width: 84px; height: auto; filter: drop-shadow(0 0 30px rgba(0,156,255,.5)); clip-path: inset(100% 0 0 0); }
.preloader__bar { width: 200px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.preloader__bar i { position: absolute; inset: 0; background: var(--zr-aurora); transform-origin: left; transform: scaleX(0); box-shadow: var(--glow); }
.preloader__count { font-family: var(--f-display); font-size: 12px; letter-spacing: .24em; color: var(--zr-frost); font-variant-numeric: tabular-nums; }
.no-js .preloader, .preloader.is-done { display: none; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; display: none; }
.cursor__dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--zr-aurora); box-shadow: 0 0 10px var(--zr-aurora); will-change: transform; }
.cursor__ring {
  position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 1px solid rgba(159,178,200,.55); will-change: transform;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease);
}
.cursor.is-hover .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: rgba(0,156,255,.12); border-color: var(--zr-aurora); }
.cursor__label {
  position: absolute; transform: translate(-50%, -50%); font-family: var(--f-display); font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--zr-ice); opacity: 0; transition: opacity .3s;
}
.cursor.is-hover.has-label .cursor__label { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .has-cursor .cursor { display: block; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: transform .7s var(--ease), background .5s, backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(8, 24, 38, .62); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__bar { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.header__logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 38px; }
.nav__link {
  position: relative; font-family: var(--f-display); font-weight: 500; font-size: 12px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--zr-frost); transition: color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--zr-aurora);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); box-shadow: var(--glow);
}
.nav__link:hover { color: var(--zr-ice); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.header__actions { display: flex; align-items: center; gap: 18px; }
.lang {
  display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px;
  font-family: var(--f-display); font-size: 11px; letter-spacing: .16em;
}
.lang a { padding: 7px 11px; border-radius: 999px; color: var(--zr-frost); transition: background .3s, color .3s; }
.lang a[aria-current="true"] { background: var(--zr-ice); color: var(--zr-night); }
.lang a:not([aria-current="true"]):hover { color: var(--zr-ice); }
.header .btn { --h: 44px; padding: 0 20px; font-size: 14px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--zr-ice); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 95; background: var(--zr-night-deep);
  clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-in-out);
  display: flex; flex-direction: column; justify-content: center; padding: 120px var(--gutter) 40px;
}
.mobile-menu::before { content: ""; position: absolute; inset: 0; background: url("../img/aurora.webp") center/cover; opacity: .35; }
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); }
.mobile-menu nav { position: relative; display: flex; flex-direction: column; gap: 8px; }
.mobile-menu nav a { font-family: var(--f-display); font-weight: 500; font-size: clamp(40px, 11vw, 72px); letter-spacing: -.03em; line-height: 1.05; }
.mobile-menu nav a span { color: var(--zr-aurora); font-size: 14px; letter-spacing: .2em; vertical-align: top; margin-right: 14px; }
.mobile-menu__foot { position: relative; margin-top: 48px; color: var(--zr-frost); font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--zr-night) url("../img/aurora.webp") center 30%/cover no-repeat; }
.hero__gl { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0; transition: opacity 2s ease; }
.hero__gl.is-on { opacity: 1; }
.hero__fade { position: absolute; inset: auto 0 0 0; height: 40%; z-index: -1; background: linear-gradient(to bottom, transparent, var(--zr-night)); }
.hero__grid { width: 100%; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 40px; padding-top: 110px; padding-bottom: 120px; }
.hero__title { margin: 28px 0 32px; }

.hero__lead { margin: 0 0 44px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__mark { position: relative; justify-self: center; width: min(100%, 400px, 52vh); aspect-ratio: 491 / 727; perspective: 1200px; }
.hero__mark-inner { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.hero__mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero__mark .shine {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  -webkit-mask: url("../img/isotipo.webp") center/contain no-repeat; mask: url("../img/isotipo.webp") center/contain no-repeat;
}
.hero__mark .shine::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 60%;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%);
  transform: translateX(0); animation: shine 7s var(--ease-in-out) infinite 2.5s; will-change: transform;
}
@keyframes shine { 0% { transform: translateX(0); } 45%, 100% { transform: translateX(380%); } }
.hero__halo { position: absolute; inset: 10% -20%; z-index: -1; background: radial-gradient(closest-side, rgba(0,156,255,.35), transparent 70%); filter: blur(30px); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .7; } }

.hero__meta {
  position: absolute; left: 0; right: 0; bottom: 34px; display: flex; justify-content: space-between; align-items: end;
  font-family: var(--f-display); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--zr-frost);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; }
.scroll-cue i { position: relative; width: 1px; height: 44px; background: var(--line-strong); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--zr-aurora); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { to { top: 100%; } }
.hero__coords span { color: var(--zr-ice); }

/* ---------- Marquee ---------- */
.marquee { position: relative; border-block: 1px solid var(--line); overflow: hidden; padding: 30px 0; background: var(--zr-night); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; gap: 48px; padding-right: 48px;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(28px, 4vw, 56px); letter-spacing: -.02em; white-space: nowrap;
}
.marquee__item .o { color: transparent; -webkit-text-stroke: 1px rgba(159,178,200,.55); }
.marquee__gem { width: 22px; height: 22px; background: var(--zr-aurora); transform: rotate(45deg) skew(12deg, 12deg); box-shadow: var(--glow); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(110px, 14vw, 200px) 0; }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(56px, 7vw, 100px); }
.section__head .eyebrow { margin-bottom: 26px; }
.section__index { font-family: var(--f-display); color: var(--zr-frost); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; display: inline-block; margin-top: 18px; }

/* Manifiesto */
.manifesto { background: var(--zr-night); overflow: hidden; }
.manifesto__art { position: absolute; right: -4vw; top: 12%; width: min(34vw, 520px); height: auto; opacity: .14; pointer-events: none; will-change: transform; }
@media (max-width: 1100px) { .manifesto__art { opacity: .08; width: 60vw; } }
.manifesto__text {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 4.6vw, 72px);
  line-height: 1.08; letter-spacing: -.025em; margin: 32px 0 0; max-width: 20ch;
}
.manifesto__text .w { opacity: .14; transition: opacity .2s; }
.no-anim .manifesto__text .w { opacity: 1; }
.manifesto__text .hl { color: var(--zr-aurora); }
.manifesto__foot { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--line); padding-top: 32px; }
.pillar h3 { font-family: var(--f-display); font-weight: 500; font-size: 20px; margin: 0 0 8px; display: flex; gap: 12px; align-items: baseline; }
.pillar h3 small { font-size: 12px; letter-spacing: .2em; color: var(--zr-aurora); }
.pillar p { margin: 0; color: var(--zr-frost); font-size: 15px; }

/* Servicios — scroll horizontal */
.services { background: linear-gradient(to bottom, var(--zr-night), var(--zr-night-deep)); padding-bottom: 0; }
.hscroll { position: relative; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hscroll__track { display: flex; gap: 24px; padding: 0 var(--gutter); width: max-content; will-change: transform; backface-visibility: hidden; }
.card {
  position: relative; flex: none; width: clamp(300px, 30vw, 440px); min-height: 520px;
  padding: 36px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; isolation: isolate; min-height: min(560px, 70vh);
  background: linear-gradient(160deg, rgba(30,42,58,.65), rgba(8,24,38,.4));
  display: flex; flex-direction: column;
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%);
  transition: border-color .5s, transform .6s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(0,156,255,.22), transparent 45%);
}
.card::after { content: ""; position: absolute; top: 0; right: 0; width: 62px; height: 1px; background: var(--line-strong); transform-origin: right; transform: translate(0, 0) rotate(45deg) translate(9px, -9px); }
.card:hover { border-color: rgba(0,156,255,.45); }
.card__ghost { position: absolute; right: -10px; bottom: -40px; z-index: -1; font-family: var(--f-display); font-weight: 500; font-size: 240px; line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(159,178,200,.10); transition: -webkit-text-stroke-color .6s, transform 1s var(--ease); pointer-events: none; }
.card:hover .card__ghost { -webkit-text-stroke-color: rgba(0,156,255,.4); transform: translateY(-14px); }
.card__beam { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, transparent, var(--zr-aurora), transparent); transform: scaleX(0); transition: transform .9s var(--ease); box-shadow: var(--glow); }
.card:hover .card__beam { transform: scaleX(1); }
.card:hover::before { opacity: 1; }
.card__num { font-family: var(--f-display); font-size: 12px; letter-spacing: .24em; color: var(--zr-frost); }
.card__icon { width: 56px; height: 56px; margin: 56px 0 auto; color: var(--zr-ice); transition: color .4s, filter .4s, transform .8s var(--ease); }
.card__icon svg { width: 100%; height: 100%; }
.card:hover .card__icon { color: var(--zr-aurora); filter: drop-shadow(0 0 14px rgba(0,156,255,.7)); transform: translateY(-6px); }
.card h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.05; letter-spacing: -.02em; margin: 48px 0 16px; }
.card p { color: var(--zr-frost); font-size: 15.5px; margin: 0 0 22px; }
.card ul { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.card li { font-size: 12px; letter-spacing: .06em; padding: 5px 11px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--zr-ice); }
.card--intro { background: none; border: 0; clip-path: none; justify-content: space-between; width: clamp(300px, 34vw, 520px); padding-left: 0; }
.card--intro::after { display: none; }
.hscroll__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 7vh; height: 1px; background: var(--line); }
.hscroll__progress i { position: absolute; inset: 0; background: var(--zr-aurora); transform-origin: left; transform: scaleX(0); box-shadow: var(--glow); }

/* Métricas */
.stats { border-block: 1px solid var(--line); background: var(--zr-night-deep); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 56px 32px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value { font-family: var(--f-display); font-weight: 500; font-size: clamp(48px, 5.6vw, 92px); letter-spacing: -.04em; line-height: 1; display: flex; align-items: baseline; gap: 4px; }
.stat__value small { font-size: .42em; color: var(--zr-aurora); letter-spacing: 0; }
.stat__label { margin-top: 18px; color: var(--zr-frost); font-size: 15px; max-width: 24ch; }

/* Proceso — sticky */
.process__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 120px); }
.process__sticky { position: sticky; top: 110px; align-self: start; }
.process__visual { margin-top: 36px; position: relative; aspect-ratio: 1; width: min(320px, 38vh); }
.process__visual svg { width: 100%; height: 100%; overflow: visible; }
.process__visual .ring { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.process__visual .arc { fill: none; stroke: var(--zr-aurora); stroke-width: 2; stroke-linecap: square; filter: drop-shadow(0 0 8px rgba(0,156,255,.8)); }
.process__visual .tick { fill: var(--zr-frost); font-family: var(--f-display); font-size: 11px; letter-spacing: .2em; }
.process__visual .core { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.process__visual .core b { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(40px, 4vw, 64px); letter-spacing: -.03em; line-height: 1; }
.process__visual .core span { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--zr-frost); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 44px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 140px 1fr; gap: 24px; opacity: .35; transition: opacity .6s; }
.step.is-active, .no-anim .step { opacity: 1; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { font-family: var(--f-display); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--zr-aurora); padding-top: 10px; }
.step h3 { font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 3.2vw, 48px); letter-spacing: -.025em; line-height: 1.05; margin: 0 0 14px; }
.step p { color: var(--zr-frost); margin: 0; max-width: 46ch; }

/* Nordic — parallax */
.nordic { position: relative; min-height: 110vh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.nordic__bg { position: absolute; inset: -15% 0; z-index: -2; background: url("../img/aurora.webp") center/cover; }
.nordic__gl { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: 0; transition: opacity 2s ease; }
.nordic__gl.is-on { opacity: 1; }
.nordic__pattern { position: absolute; inset: 0; z-index: -1; background: url("../img/ZERYON_patron_geometrico_oscuro.svg") center/cover; opacity: .18; }
.nordic::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, var(--zr-night) 0%, rgba(8,24,38,0) 22%, rgba(8,24,38,.1) 60%, var(--zr-night) 100%); }
.nordic__content { text-align: center; display: flex; flex-direction: column; align-items: center; }
.nordic__content .h-display { margin: 28px 0 32px; }
.nordic__content .lead { text-align: center; max-width: 52ch; }
.nordic__values { margin-top: 72px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); width: 100%; max-width: 1100px; }
.nordic__values > div { background: rgba(8,24,38,.86); padding: 32px; text-align: left; }
.nordic__values h3 { font-family: var(--f-display); font-weight: 500; font-size: 22px; margin: 0 0 8px; }
.nordic__values p { margin: 0; color: var(--zr-frost); font-size: 15px; }

/* Sectores — lista con hover */
.industries__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.industry { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.industry a, .industry > div {
  position: relative; z-index: 1; display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 24px;
  padding: clamp(26px, 3vw, 40px) 0; transition: padding .6s var(--ease), color .6s var(--ease);
}
.industry::before { content: ""; position: absolute; inset: 0; background: var(--zr-ice); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.industry:hover::before { transform: scaleY(1); }
.industry:hover > div { color: var(--zr-night); padding-left: 24px; padding-right: 24px; }
.industry__n { font-family: var(--f-display); font-size: 12px; letter-spacing: .24em; color: var(--zr-frost); transition: color .6s; }
.industry:hover .industry__n { color: var(--zr-deep); }
.industry__name { font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 4.6vw, 72px); letter-spacing: -.03em; line-height: 1; }
.industry__desc { max-width: 36ch; font-size: 15px; color: var(--zr-frost); text-align: right; transition: color .6s; }
.industry:hover .industry__desc { color: var(--zr-stone); }

/* Cumplimiento */
.compliance { background: var(--zr-night-deep); overflow: hidden; }
.frameworks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fw { background: var(--zr-night-deep); padding: 36px 30px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; transition: background .5s; position: relative; }
.fw:hover { background: var(--zr-glacier); }
.fw b { font-family: var(--f-display); font-weight: 500; font-size: clamp(30px, 2.8vw, 44px); letter-spacing: -.02em; line-height: 1; }
.fw span { color: var(--zr-frost); font-size: 14px; }
.fw::after { content: ""; position: absolute; top: 18px; right: 18px; width: 8px; height: 8px; background: var(--zr-aurora); transform: rotate(45deg); opacity: 0; transition: opacity .4s; box-shadow: var(--glow); }
.fw:hover::after { opacity: 1; }

/* CTA + contacto */
.contact { position: relative; overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/aurora.webp") center 20%/cover; opacity: .55; }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, var(--zr-night) 0%, rgba(8,24,38,.5) 30%, var(--zr-night) 100%); }
.contact__big { font-family: var(--f-display); font-weight: 500; font-size: clamp(64px, 15vw, 260px); letter-spacing: -.05em; line-height: .86; margin: 24px 0 0; }

.contact__grid { margin-top: clamp(64px, 8vw, 120px); display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 110px); }
.contact__info dl { margin: 40px 0 0; display: grid; gap: 24px; }
.contact__info dt { font-family: var(--f-display); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--zr-frost); margin-bottom: 6px; }
.contact__info dd { margin: 0; font-size: 17px; }
.contact__info dd a { border-bottom: 1px solid var(--line-strong); transition: border-color .3s, color .3s; }
.contact__info dd a:hover { color: var(--zr-aurora); border-color: var(--zr-aurora); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; padding: clamp(28px, 3.4vw, 48px); border: 1px solid var(--line); background: rgba(8, 24, 38, .9); clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%); }
.field { display: flex; flex-direction: column; gap: 10px; }
.field--full { grid-column: 1 / -1; }
.field > label, .field > legend, .chips > legend { font-family: var(--f-display); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--zr-frost); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 17px; color: var(--zr-ice); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong); padding: 10px 0; border-radius: 0; transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--zr-aurora); }
.field input::placeholder, .field textarea::placeholder { color: rgba(159,178,200,.5); }
.chips { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.chips > legend { float: left; width: 100%; }
.chips legend { margin-bottom: 12px; padding: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; cursor: pointer; transition: all .3s; }
.chip input:checked + span { background: var(--zr-aurora); color: var(--zr-night); border-color: var(--zr-aurora); }
.chip input:focus-visible + span { outline: 2px solid var(--zr-aurora); outline-offset: 3px; }
.consent { grid-column: 1 / -1; display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--zr-frost); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--zr-aurora); flex: none; }
.consent a { color: var(--zr-ice); text-decoration: underline; text-underline-offset: 3px; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.form__note { font-size: 12.5px; color: var(--zr-frost); max-width: 52ch; margin: 0; }
.form__status { grid-column: 1 / -1; font-size: 14px; color: var(--zr-aurora); min-height: 1em; margin: 0; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--zr-night-deep); border-top: 1px solid var(--line); padding: 90px 0 36px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 40px; width: auto; }
.footer__brand p { color: var(--zr-frost); font-size: 15px; max-width: 34ch; margin: 24px 0 0; }
.footer h4 { font-family: var(--f-display); font-weight: 500; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--zr-frost); margin: 0 0 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer ul a { transition: color .3s; }
.footer ul a:hover { color: var(--zr-aurora); }
.footer__legal { font-size: 13.5px; color: var(--zr-frost); line-height: 1.7; font-style: normal; }
.footer__legal strong { color: var(--zr-ice); font-weight: 600; }
.footer__mark { margin: 90px 0 40px; position: relative; }
.footer__mark img { width: 100%; height: auto; opacity: .9; }
.footer__mark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, var(--zr-night-deep) 100%); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 28px; font-size: 13px; color: var(--zr-frost); }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__bottom a:hover { color: var(--zr-ice); }
.to-top { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- Aviso almacenamiento ---------- */
.notice {
  position: fixed; left: 16px; bottom: 16px; z-index: 150; max-width: 420px;
  background: rgba(8, 24, 38, .97);
  border: 1px solid var(--line-strong); padding: 22px 24px; font-size: 14px; color: var(--zr-frost);
  transform: translateY(calc(100% + 40px)); transition: transform .8s var(--ease);
}
.notice.is-visible { transform: none; }
.notice p { margin: 0 0 16px; }
.notice a { color: var(--zr-ice); text-decoration: underline; text-underline-offset: 3px; }
.notice .btn { --h: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Páginas legales ---------- */
.legal-hero { position: relative; padding: 200px 0 90px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.legal-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/aurora.webp") center 25%/cover; opacity: .7; }
.legal-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(8,24,38,.2), var(--zr-night)); }
.legal-hero h1 { margin-top: 24px; }
.legal-layout { display: grid; grid-template-columns: 280px 1fr; gap: clamp(40px, 6vw, 110px); padding-top: 90px; padding-bottom: 140px; }
.legal-toc { position: sticky; top: 110px; align-self: start; font-size: 14px; max-height: calc(100vh - 140px); overflow-y: auto; scrollbar-width: thin; }
.legal-toc h2 { font-family: var(--f-display); font-weight: 500; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--zr-frost); margin: 0 0 18px; }
.legal-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; counter-reset: toc; border-left: 1px solid var(--line); }
.legal-toc a { display: block; padding: 6px 0 6px 16px; color: var(--zr-frost); margin-left: -1px; border-left: 1px solid transparent; transition: color .3s, border-color .3s; }
.legal-toc a:hover, .legal-toc a.is-active { color: var(--zr-ice); border-color: var(--zr-aurora); }
.prose { max-width: 76ch; color: #c9d4e2; font-size: 16.5px; }
.prose h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.02em; line-height: 1.15; color: var(--zr-ice); margin: 72px 0 20px; scroll-margin-top: 110px; }
.prose h2::before { content: ""; display: block; width: 32px; height: 2px; background: var(--zr-aurora); margin-bottom: 22px; box-shadow: var(--glow); }
.prose > :first-child, .prose section:first-child h2 { margin-top: 0; }
.prose h3 { font-family: var(--f-display); font-weight: 500; font-size: 20px; color: var(--zr-ice); margin: 36px 0 12px; }
.prose p, .prose li { line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--zr-aurora); }
.prose a { color: var(--zr-aurora); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { color: var(--zr-ice); }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 14px 16px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--zr-glacier); color: var(--zr-ice); font-family: var(--f-display); font-weight: 500; }

/* ---------- Revelados ---------- */
.js-anim [data-reveal] { opacity: 0; transform: translateY(40px); }
.js-anim [data-reveal="fade"] { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav, .header__actions .btn { display: none; }
  .burger { display: block; }
  .hero__grid { grid-template-columns: 1fr; padding-top: 130px; }
  .hero__mark { position: absolute; right: -18%; top: 12%; width: 70vw; max-width: 520px; opacity: .3; z-index: -1; }
  .section__head, .process__grid, .contact__grid { grid-template-columns: 1fr; }
  .process__sticky { position: relative; top: 0; }
  .process__visual { display: none; }
  .frameworks { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: relative; top: 0; max-height: none; }
  .industry__desc { display: none; }
  .industry > div { grid-template-columns: 60px 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header__bar { height: 70px; }
  .header__logo img { height: 28px; }
  .hscroll { height: auto; display: block; }
  .hscroll__track { flex-direction: column; width: 100%; padding-bottom: 110px; }
  .card, .card--intro { width: 100%; min-height: 0; }
  .card__icon { margin: 36px 0 0; }
  .hscroll__progress { display: none; }
  .manifesto__foot, .nordic__values { grid-template-columns: 1fr; }
  .frameworks { grid-template-columns: 1fr 1fr; }
  .fw { min-height: 160px; padding: 24px 20px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 36px 16px; }
  .form { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__meta .hero__coords { display: none; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .notice { left: 16px; right: 16px; max-width: none; }
  .lang a { padding: 7px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js-anim [data-reveal] { opacity: 1; transform: none; }
  .manifesto__text .w { opacity: 1; }
  .step { opacity: 1; }
}

/* ==========================================================================
   MOTIVOS DIGITALES — HUD, terminal, red de defensa
   ========================================================================== */
.mono { font-family: var(--f-mono); font-feature-settings: "zero" 1; }

/* Esquinas HUD */
.hud { position: absolute; inset: 0; pointer-events: none; --c: rgba(0,156,255,.7); --l: 14px;
  background:
    linear-gradient(var(--c),var(--c)) top left / var(--l) 1px no-repeat,
    linear-gradient(var(--c),var(--c)) top left / 1px var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) top right / var(--l) 1px no-repeat,
    linear-gradient(var(--c),var(--c)) top right / 1px var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) bottom left / var(--l) 1px no-repeat,
    linear-gradient(var(--c),var(--c)) bottom left / 1px var(--l) no-repeat,
    linear-gradient(var(--c),var(--c)) bottom right / var(--l) 1px no-repeat,
    linear-gradient(var(--c),var(--c)) bottom right / 1px var(--l) no-repeat; }

/* Rejilla de puntos */
.dotgrid { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(159,178,200,.16) 1px, transparent 1.2px); background-size: 28px 28px;
  -webkit-mask: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); mask: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); }

/* Línea de escaneo del hero */
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(0,156,255,.07) 70%, rgba(0,156,255,.35) 99%, transparent);
  animation: scan 9s cubic-bezier(.45,0,.55,1) infinite; will-change: transform; }
@keyframes scan { 0% { transform: translateY(-140px); } 100% { transform: translateY(100vh); } }

/* Terminal SOC del hero */
.term { position: absolute; left: -36%; bottom: 0; width: 400px; z-index: 2;
  background: rgba(5, 15, 25, .88); border: 1px solid var(--line-strong);
  font-family: var(--f-mono); font-size: 11.5px; line-height: 1.75; color: var(--zr-frost);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(0,156,255,.06); }
.term__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.term__live { display: inline-flex; align-items: center; gap: 8px; color: var(--zr-ice); }
.term__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--zr-aurora); box-shadow: 0 0 8px var(--zr-aurora); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.term__body { padding: 12px 14px 6px; height: 158px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.term__line { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; white-space: nowrap; animation: lineIn .6s var(--ease) both; }
.term__line span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; color: #c9d4e2; }
.term__line b { font-weight: 400; color: var(--zr-aurora); }
.term__line b.ok { color: #7fd3ff; }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } }
.term__foot { display: flex; justify-content: space-between; padding: 8px 14px 10px; border-top: 1px solid var(--line); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.term__foot em { font-style: normal; color: var(--zr-ice); }
.term__meter { display: inline-flex; gap: 3px; align-items: center; }
.term__meter i { width: 3px; height: 10px; background: var(--zr-aurora); opacity: .25; }
.term__meter i.on { opacity: 1; }
.caret { display: inline-block; width: 7px; height: 13px; background: var(--zr-aurora); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Ticker monoespaciado */
.ticker { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: marquee 60s linear infinite reverse; font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--zr-frost); }
.ticker__track span { padding-right: 36px; white-space: nowrap; }
.ticker__track span::before { content: "▸ "; color: var(--zr-aurora); }

/* Precarga: secuencia de arranque */
.preloader__boot { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--zr-frost); text-transform: uppercase; min-height: 4.5em; text-align: left; width: 260px; }
.preloader__boot div { opacity: 0; }
.preloader__boot b { font-weight: 400; color: var(--zr-aurora); float: right; }

/* Sección red de defensa */
.defense { position: relative; overflow: hidden; isolation: isolate; background: var(--zr-night-deep); }
.defense__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.defense__stage { position: relative; aspect-ratio: 1.15; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 50%, rgba(0,104,179,.14), transparent 70%); }
.defense__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.defense__label { position: absolute; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--zr-frost); }
.defense__label--tl { top: 14px; left: 16px; } .defense__label--tr { top: 14px; right: 16px; color: var(--zr-aurora); }
.defense__label--bl { bottom: 14px; left: 16px; } .defense__label--br { bottom: 14px; right: 16px; }
.readouts { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.readouts li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em; color: var(--zr-frost); text-transform: uppercase; }
.readouts li b { font-weight: 400; color: var(--zr-ice); font-size: 15px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.readouts li b.ok { color: var(--zr-aurora); }
.defense__note { margin-top: 18px; font-size: 12px; color: rgba(159,178,200,.6); }

/* Tarjetas con HUD */
.card .hud { --c: rgba(159,178,200,.35); --l: 10px; inset: 10px; transition: --c .4s; opacity: .8; }
.card:hover .hud { --c: rgba(0,156,255,.9); }
.card__num { font-family: var(--f-mono); }
.section__index, .industry__n, .step__n, .stat__label { font-family: var(--f-mono); letter-spacing: .12em; }
.stat__label { letter-spacing: .02em; font-size: 14px; }

@media (max-width: 1100px) {
  .term { display: none; }
  .defense__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .scanline { display: none; } }
