/* ============================================================
   DYC SISTEMAS WEB — V2 "OBSIDIAN / AURORA"
   Capa de diseño premium. Se carga después de styles.css.
   ============================================================ */

/* Fuentes variables autoalojadas (subset latin + latin-ext) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000000;
  --bg-2: #0a0a0a;
  --surface: rgba(16, 16, 16, 0.62);
  --surface-2: rgba(22, 22, 22, 0.82);
  --glass: rgba(16, 16, 16, 0.55);
  --line: rgba(125, 211, 252, 0.12);
  --line-strong: rgba(125, 211, 252, 0.28);
  --text: #f4f5f7;
  --muted: #a3a8b0;
  --muted-2: #7c828b;
  --accent: #7dd3fc;
  --accent-2: #4f7cff;
  --accent-3: #b388ff;
  --mint: #5eead4;
  --warn: #fbbf24;
  --ok: #5eead4;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.35);
  --radius: 26px;
  --radius-sm: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  animation: pageIn 0.6s ease both;
}
::selection { background: rgba(125, 211, 252, 0.25); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb { background: rgba(125, 211, 252, 0.18); border-radius: 20px; border: 2px solid #000000; }
::-webkit-scrollbar-thumb:hover { background: rgba(125, 211, 252, 0.32); }

.container { width: min(1240px, calc(100% - 64px)); margin: 0 auto; position: relative; z-index: 2; }
.section { padding: clamp(92px, 11vw, 150px) 0; position: relative; }
.section-dark {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 255, 255, 0.03), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.015));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
main, footer, .page-hero, .section, .cta-band, .marquee, .statement { position: relative; z-index: 1; }

/* ---------- Background layers ---------- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block !important;
  background:
    radial-gradient(ellipse 60% 50% at 12% 8%, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(ellipse 45% 45% at 88% 12%, rgba(255, 255, 255, 0.045), transparent 65%),
    radial-gradient(ellipse 50% 45% at 78% 88%, rgba(255, 255, 255, 0.04), transparent 65%),
    linear-gradient(180deg, #000000 0%, #0a0a0a 45%, #000000 100%);
  animation: bgBreath 18s ease-in-out infinite alternate;
  filter: hue-rotate(var(--scene-hue, 0deg)) saturate(1.05);
  transition: filter 0.6s linear;
}
.bg-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 10%, transparent 75%);
  opacity: 0.55;
}
.bg-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%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)' opacity='0.42'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
@keyframes bgBreath {
  from { opacity: 0.82; transform: scale(1); }
  to { opacity: 1; transform: scale(1.04); }
}
/* Textura cinematográfica global: grano de película animado + vignette */
body::before {
  content: "";
  position: fixed;
  inset: -100%;
  z-index: 1200;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  animation: grainShift 0.9s steps(6) infinite;
}
@keyframes grainShift {
  0% { transform: translate3d(0, 0, 0); }
  16% { transform: translate3d(-3%, 2%, 0); }
  33% { transform: translate3d(2%, -4%, 0); }
  50% { transform: translate3d(-4%, -2%, 0); }
  66% { transform: translate3d(3%, 3%, 0); }
  83% { transform: translate3d(-2%, 4%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1150;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 46%, transparent 46%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.4));
}
/* Scroll suave (Lenis): anulamos el smooth nativo para no duplicar inercia */
html.lenis, html.lenis body { height: auto; }
html.lenis-smooth { scroll-behavior: auto !important; }
html.lenis-stopped { overflow: hidden; }
#galaxy, #particles, .scanlines, .hud-frame, .bg-grid, .bg-3d-floor, .grain, .nebula,
#code-bg, .energy-sweep, .glitch-burst, .bg-3d-scene, .robot-hud, .scene3d, .main-panel,
.hero-depth, .hazard-tape, .fx-canvas, .deco-cubes-wrap, .deco-cube3d, .deco-ring,
.deco-ring3d, .deco-diamond, .deco-hex, .deco-cross, .deco-orbit, .deco-sphere {
  display: none !important;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
}
.hero-orb-a {
  width: min(620px, 60vw);
  height: min(620px, 60vw);
  top: -18%;
  right: -8%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
  animation: orbDrift 16s ease-in-out infinite alternate;
}
.hero-orb-b {
  width: min(460px, 50vw);
  height: min(460px, 50vw);
  bottom: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  animation: orbDrift 22s ease-in-out infinite alternate-reverse;
}
@keyframes orbDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, -30px, 0) scale(1.08); }
}

/* ---------- Typography ---------- */
h1, h2, h3, .section-title, .page-title, .hero-title {
  font-family: var(--font-display);
  text-wrap: balance;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-title {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 700;
  max-width: 820px;
  text-shadow: none;
}
.section-desc { color: var(--muted); max-width: 420px; font-size: 0.98rem; line-height: 1.7; }
.lead { font-size: 1.04rem; color: var(--muted); max-width: 620px; line-height: 1.75; }
.lead strong { color: var(--text); font-weight: 600; }
.accent {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 48%, var(--accent-3) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerText 9s linear infinite;
  filter: none;
  text-shadow: none;
}
@keyframes shimmerText { to { background-position: 200% center; } }
.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  position: relative;
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.8);
  flex-shrink: 0;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(94, 234, 212, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid transparent;
  transform: translateY(0);
  transition: padding 0.35s var(--ease), background 0.35s, border-color 0.35s, backdrop-filter 0.35s, transform 0.45s var(--ease);
}
.nav.nav-hidden { transform: translateY(-105%); }
.nav.scrolled {
  padding-top: 13px;
  padding-bottom: 13px;
  background: rgba(0, 0, 0, 0.76);
  border-bottom-color: var(--line);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}
.brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 3; }
.brand-logo {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 14px rgba(62, 200, 255, 0.5));
  transition: transform 0.4s var(--ease), filter 0.4s;
  animation: none;
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); filter: drop-shadow(0 0 22px rgba(125, 211, 252, 0.75)); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.025em; }
.brand-name span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav-links a {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-menu-foot { display: none; }
.nav-links a.active::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.8);
  vertical-align: middle;
}
.nav-actions { display: flex; align-items: center; gap: 12px; position: relative; z-index: 3; }
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: 0.3s;
}
.menu-btn span { width: 18px; height: 1.5px; background: var(--text); transition: 0.3s var(--ease); transform-origin: center; }
.menu-btn.open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn.open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
body.menu-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  color: #04101f;
  background: linear-gradient(135deg, #a5e8ff 0%, var(--accent) 38%, var(--accent-2) 100%);
  box-shadow: 0 14px 40px rgba(79, 124, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, filter 0.3s;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.5) 50%, transparent 80%);
  transform: translateX(-160%);
  z-index: -1;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 55px rgba(79, 124, 255, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  filter: brightness(1.03);
}
.btn:hover::before { transform: translateX(160%); transition: transform 0.8s var(--ease); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-ghost::before { display: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(125, 211, 252, 0.45); box-shadow: 0 12px 40px rgba(79, 124, 255, 0.12); }
.btn-sm { padding: 10px 20px; font-size: 0.8rem; border-radius: 999px; }
.btn-full { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 150px;
  padding-bottom: 70px;
  overflow: clip;
  position: relative;
}
.hero-sticky { width: 100%; }
.hero .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy { max-width: 660px; position: relative; z-index: 2; }
.hero .hero-title {
  font-size: clamp(3rem, 5.6vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
  font-weight: 700;
  margin-bottom: 26px;
  text-shadow: none;
}
.hero .hero-title .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero .hero-title .line-inner { display: block; animation: lineReveal 1s var(--ease) both; }
.hero .hero-title .line:nth-child(1) .line-inner { animation-delay: 0.1s; }
.hero .hero-title .line:nth-child(2) .line-inner { animation-delay: 0.22s; }
.hero .hero-title .line:nth-child(3) .line-inner { animation-delay: 0.34s; }
.hero .hero-title .accent { display: inline-block; }
@keyframes lineReveal {
  from { opacity: 0; transform: translateY(115%); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes menuItem {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero .lead { font-size: 1.02rem; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 38px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}
.hero-meta-item { display: flex; flex-direction: column; gap: 2px; }
.hero-meta-item strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.hero-meta-item span { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.live-clock { color: var(--mint); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; white-space: nowrap; }
.live-clock::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(94, 234, 212, 0.9);
  vertical-align: middle;
}
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1 / 1;
  justify-self: end;
  perspective: 1200px;
  z-index: 1;
  animation: heroVisualIn 1.15s ease 0.4s both;
}
@keyframes heroVisualIn { from { opacity: 0; filter: blur(16px); } to { opacity: 1; filter: blur(0); } }
.hero-visual-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.22), rgba(255, 255, 255, 0.06) 45%, transparent 70%);
  filter: blur(45px);
  opacity: 0.8;
  pointer-events: none;
}
/* Luz volumétrica: rayos que barren la escena */
.hero-rays {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background: conic-gradient(from 0deg at 50% 42%,
    transparent 0deg, rgba(125, 211, 252, 0.16) 12deg, transparent 26deg,
    transparent 90deg, rgba(79, 124, 255, 0.14) 104deg, transparent 120deg,
    transparent 200deg, rgba(179, 136, 255, 0.12) 214deg, transparent 230deg,
    transparent 300deg, rgba(94, 234, 212, 0.1) 314deg, transparent 330deg, transparent 360deg);
  -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 62%);
  mix-blend-mode: screen;
  opacity: 0.7;
  animation: raysSweep 26s linear infinite;
}
@keyframes raysSweep { to { transform: rotate(360deg); } }
/* Flare anamórfico: destello horizontal de lente */
.hero-flare {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 44%;
  height: 2px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.05) 18%, rgba(190, 235, 255, 0.85) 50%, rgba(125, 211, 252, 0.05) 82%, transparent);
  filter: blur(0.6px) drop-shadow(0 0 14px rgba(125, 211, 252, 0.7));
  mix-blend-mode: screen;
  opacity: 0.55;
  transform: scaleX(calc(0.7 + var(--hero-scroll, 0) * 0.6));
  animation: flarePulse 7s ease-in-out infinite;
}
.hero-flare::before,
.hero-flare::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(190, 235, 255, 0.9), transparent 70%);
  filter: blur(1px);
}
.hero-flare::before { left: 30%; }
.hero-flare::after { right: 26%; width: 6px; height: 6px; }
@keyframes flarePulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.8; } }
/* Bokeh: motas de luz desenfocadas a la deriva */
.hero-bokeh { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-bokeh i {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 235, 255, 0.9), rgba(125, 211, 252, 0.25) 60%, transparent 72%);
  filter: blur(2px);
  mix-blend-mode: screen;
  opacity: 0.5;
  animation: bokehDrift 12s ease-in-out infinite alternate;
}
.hero-bokeh i:nth-child(1) { width: 14px; height: 14px; left: 16%; top: 24%; animation-delay: 0s; }
.hero-bokeh i:nth-child(2) { width: 8px; height: 8px; left: 78%; top: 30%; animation-delay: -3s; }
.hero-bokeh i:nth-child(3) { width: 20px; height: 20px; left: 68%; top: 70%; animation-delay: -6s; opacity: 0.35; }
.hero-bokeh i:nth-child(4) { width: 6px; height: 6px; left: 26%; top: 74%; animation-delay: -9s; }
.hero-bokeh i:nth-child(5) { width: 10px; height: 10px; left: 50%; top: 14%; animation-delay: -4s; opacity: 0.4; }
@keyframes bokehDrift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(18px, -22px, 0); } }
@media (max-width: 860px), (pointer: coarse) {
  .hero-rays { opacity: 0.5; }
  .hero-bokeh i { opacity: 0.4; }
  .hero-flare { opacity: 0.4; }
}
#hero3dCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 85%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 85%, transparent 100%);
}
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 85%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 85%, transparent 100%);
}
.hero-visual.webgl-ready .hero-poster { opacity: 0; }
.hero-visual.lite .hero-poster,
.hero-visual.no-webgl .hero-poster { opacity: 1; }
.hero-visual.lite #hero3dCanvas,
.hero-visual.no-webgl #hero3dCanvas { display: none; }
@media (max-width: 860px), (pointer: coarse) {
  /* El póster es el LCP móvil: sin espera de entrada para que pinte antes */
  .hero-visual { animation: none; }
  .hero-poster { opacity: 1; }
  #hero3dCanvas { display: none; }
}
@media (min-width: 1180px) {
  .hero-cinema .hero-poster {
    transform: translateY(calc(var(--hero-scroll, 0) * 16px)) scale(calc(1 + var(--hero-scroll, 0) * 0.22));
  }
}
.hero-ui-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(12, 12, 12, 0.62);
  border: 1px solid rgba(125, 211, 252, 0.18);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  z-index: 3;
  pointer-events: none;
  animation: floatCard 7s ease-in-out infinite;
}
.hero-ui-card strong { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: -0.01em; }
.hero-ui-card span { display: block; font-size: 0.68rem; color: var(--muted); }
.hero-ui-card-a { top: 9%; left: -2%; }
.hero-ui-card-b { bottom: 14%; right: -2%; animation-delay: -3.5s; }
.hero-ui-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.22), rgba(79, 124, 255, 0.12));
  border: 1px solid rgba(125, 211, 252, 0.2);
  color: var(--accent);
  flex-shrink: 0;
}
.hero-ui-icon svg { width: 17px; height: 17px; }
.hero-ui-badge {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.6);
  border: 1px solid rgba(125, 211, 252, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  z-index: 3;
}
.hero-ui-badge b { color: var(--mint); font-weight: 500; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  z-index: 3;
}
.hero-scroll span {
  width: 18px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  position: relative;
}
.hero-scroll span::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 2px;
  height: 6px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--accent);
  animation: scrollDot 2s ease infinite;
}
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* ---------- Logo / tech strip ---------- */
.logo-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 34px;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}
.logo-strip span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  transition: color 0.25s;
}
.logo-strip span:hover { color: var(--accent); }
.logo-strip .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); padding: 0; }

/* ---------- Services ---------- */
.service-list { display: grid; border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.35s var(--ease), background 0.35s;
}
.service-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease);
}
.service-row:hover { padding-left: 12px; background: linear-gradient(90deg, rgba(79, 124, 255, 0.055), transparent 70%); }
.service-row:hover::before { transform: scaleY(1); }
.service-num { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; color: var(--accent); letter-spacing: 0.08em; }
.service-body h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  letter-spacing: -0.035em;
  margin-bottom: 5px;
  line-height: 1.2;
}
.service-body p { color: var(--muted); font-size: 0.93rem; max-width: 640px; }
.service-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  color: var(--muted);
  transition: 0.35s var(--ease);
  flex-shrink: 0;
}
.service-row:hover .service-arrow { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04101f; border-color: transparent; transform: rotate(-45deg) scale(1.04); }
.soon-inline {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #04101f;
  background: var(--mint);
  padding: 4px 9px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}
.service-preview {
  position: fixed;
  width: 300px;
  pointer-events: none;
  z-index: 400;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94);
  transition: opacity 0.25s, transform 0.25s var(--ease);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(12, 12, 12, 0.92);
  border: 1px solid rgba(125, 211, 252, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.service-preview.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.service-preview-top { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.service-preview-top i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.service-preview-top span { margin-left: 6px; font-family: var(--font-mono); font-size: 0.55rem; color: var(--muted-2); letter-spacing: 0.08em; }
.service-preview-body { padding: 16px; }
.service-preview-body strong { display: block; font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 4px; }
.service-preview-body p { font-size: 0.72rem; color: var(--muted); margin-bottom: 12px; }
.preview-bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; margin-bottom: 10px; }
.preview-bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--accent), rgba(79, 124, 255, 0.3)); opacity: 0.85; }
.preview-lines { display: grid; gap: 5px; }
.preview-lines i { height: 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); }
.preview-lines i:nth-child(2) { width: 72%; }
.preview-lines i:nth-child(3) { width: 48%; }

/* ---------- About / stats ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.about-copy .section-title { margin-bottom: 20px; }
.about-copy .lead { margin-bottom: 26px; }
.about-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.about-badges span {
  padding: 7px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(125, 211, 252, 0.07);
  border: 1px solid rgba(125, 211, 252, 0.16);
}
.about-visual { position: relative; }
.code-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(22, 22, 22, 0.9), rgba(6, 12, 24, 0.96));
  border: 1px solid rgba(125, 211, 252, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.code-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.code-head i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.code-head i:nth-child(1) { background: #ff6b6b; }
.code-head i:nth-child(2) { background: #ffd166; }
.code-head i:nth-child(3) { background: #5eead4; }
.code-head span { margin-left: 8px; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.05em; color: var(--muted-2); }
.code-body { padding: 22px 20px; font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.9; overflow-x: auto; }
.code-body .ln { display: block; white-space: pre; }
.code-body .c-k { color: #7dd3fc; }
.code-body .c-f { color: #f4f5f7; }
.code-body .c-p { color: #b388ff; }
.code-body .c-s { color: #5eead4; }
.code-body .c-c { color: #5f718c; }
.about-float {
  position: absolute;
  right: -14px;
  bottom: -18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(12, 12, 12, 0.92);
  border: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: floatCard 6s ease-in-out infinite;
}
.about-float .pulse-dot { width: 6px; height: 6px; }
.about-float span { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.about-float b { color: var(--mint); font-weight: 500; }
.stats-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.stat-box {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line);
  text-align: left;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.stat-box:hover { transform: translateY(-4px); border-color: rgba(125, 211, 252, 0.28); background: rgba(255, 255, 255, 0.045); }
.stat-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-box span { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.project-card:hover { transform: translateY(-7px); border-color: rgba(125, 211, 252, 0.28); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38); }
.project-visual {
  height: 250px;
  padding: 20px 20px 0;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 80% at 20% 0%, rgba(79, 124, 255, 0.18), transparent 65%),
    linear-gradient(160deg, rgba(125, 211, 252, 0.08), rgba(0, 0, 0, 0.4));
}
.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}
.pv-2 { background: radial-gradient(ellipse 80% 80% at 80% 0%, rgba(179, 136, 255, 0.18), transparent 65%), linear-gradient(160deg, rgba(79, 124, 255, 0.1), rgba(0, 0, 0, 0.4)); }
.pv-3 { background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(94, 234, 212, 0.14), transparent 65%), linear-gradient(160deg, rgba(79, 124, 255, 0.08), rgba(0, 0, 0, 0.4)); }
.project-mock {
  width: 100%;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: rgba(6, 12, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.35);
  transform: translateY(6px);
  transition: transform 0.45s var(--ease);
  position: relative;
  z-index: 1;
}
.project-card:hover .project-mock { transform: translateY(0); }
.pm-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.pm-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.pm-bar span { margin-left: 6px; font-family: var(--font-mono); font-size: 0.48rem; color: var(--muted-2); letter-spacing: 0.05em; }
.pm-dash { display: grid; grid-template-columns: 46px 1fr; min-height: 150px; }
.pm-side { border-right: 1px solid rgba(255, 255, 255, 0.05); padding: 10px 8px; display: grid; align-content: start; gap: 7px; }
.pm-side i { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); }
.pm-side i.active { background: rgba(125, 211, 252, 0.45); }
.pm-main { padding: 10px; display: grid; gap: 8px; align-content: start; }
.pm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.pm-kpi { background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.045); border-radius: 6px; padding: 6px; }
.pm-kpi span { display: block; font-size: 0.38rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.05em; }
.pm-kpi strong { display: block; font-family: var(--font-display); font-size: 0.66rem; color: var(--text); }
.pm-chart { display: flex; align-items: flex-end; gap: 4px; height: 48px; padding: 6px; background: rgba(255, 255, 255, 0.02); border-radius: 6px; }
.pm-chart i { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: linear-gradient(180deg, var(--accent), rgba(79, 124, 255, 0.25)); }
.pm-table { display: grid; gap: 4px; }
.pm-table i { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.055); }
.pm-table i:nth-child(2) { width: 82%; }
.pm-table i:nth-child(3) { width: 64%; }
.pm-web { padding: 0 0 12px; }
.pm-web-hero { margin: 10px; height: 56px; border-radius: 8px; background: linear-gradient(120deg, rgba(125, 211, 252, 0.2), rgba(79, 124, 255, 0.12)); position: relative; overflow: hidden; }
.pm-web-hero::before { content: ""; position: absolute; left: 10px; top: 12px; width: 34%; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.55); box-shadow: 0 10px 0 rgba(255, 255, 255, 0.18); }
.pm-web-hero::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 42px; height: 12px; border-radius: 999px; background: rgba(125, 211, 252, 0.6); }
.pm-web-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 10px; }
.pm-web-cols i { height: 34px; border-radius: 6px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.04); }
.pm-terminal { padding: 12px; font-family: var(--font-mono); font-size: 0.5rem; line-height: 1.9; color: var(--muted); }
.pm-terminal b { color: var(--mint); font-weight: 500; }
.pm-terminal .dim { color: var(--muted-2); }
.pm-terminal .bar { display: block; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); margin-top: 8px; overflow: hidden; }
.pm-terminal .bar::after { content: ""; display: block; width: 68%; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.project-info { padding: 22px; position: relative; z-index: 2; }
.project-tag { font-family: var(--font-mono); font-size: 0.58rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.project-info h3 { font-size: 1.2rem; letter-spacing: -0.03em; margin: 6px 0 7px; }
.project-info p { color: var(--muted); font-size: 0.86rem; line-height: 1.6; margin-bottom: 14px; }
.project-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; color: var(--accent); transition: gap 0.25s, color 0.25s; }
.project-link:hover { gap: 10px; color: #fff; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.process-line { position: absolute; top: 27px; left: 6%; right: 6%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), var(--line-strong), transparent); }
.step {
  position: relative;
  padding: 24px 20px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  text-align: left;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.step:hover { transform: translateY(-5px); border-color: rgba(125, 211, 252, 0.25); background: rgba(255, 255, 255, 0.04); }
.step-dot {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(125, 211, 252, 0.07);
  border: 1px solid rgba(125, 211, 252, 0.22);
  box-shadow: 0 0 30px rgba(79, 124, 255, 0.08);
  position: relative;
  z-index: 1;
  transition: 0.35s var(--ease);
}
.step:hover .step-dot { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04101f; border-color: transparent; box-shadow: 0 0 40px rgba(125, 211, 252, 0.3); }
.step h3 { font-size: 1.1rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.84rem; line-height: 1.6; margin-bottom: 12px; }
.step ul { list-style: none; display: grid; gap: 5px; }
.step li { position: relative; padding-left: 14px; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.02em; color: var(--muted-2); }
.step li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: 0.7; }

/* ---------- Quote / FAQ ---------- */
.quote-block {
  padding: clamp(36px, 6vw, 64px);
  border-radius: 30px;
  background:
    radial-gradient(ellipse 70% 90% at 20% 0%, rgba(79, 124, 255, 0.12), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-block::before { content: '"'; position: absolute; top: -26px; left: 26px; font-size: 9rem; line-height: 1; color: rgba(125, 211, 252, 0.08); font-family: Georgia, serif; }
.quote-text { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.7rem); line-height: 1.2; letter-spacing: -0.04em; font-weight: 700; margin-bottom: 18px; position: relative; max-width: 900px; margin-left: auto; margin-right: auto; }
.quote-author { font-family: var(--font-mono); color: var(--muted-2); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; }
.faq-layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(32px, 6vw, 64px); align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.025); overflow: hidden; transition: border-color 0.3s, background 0.3s; }
.faq-item.open { border-color: rgba(125, 211, 252, 0.28); background: rgba(125, 211, 252, 0.04); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; text-align: left; font-size: 0.92rem; font-weight: 600; }
.faq-q i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.045); font-style: normal; color: var(--accent); flex-shrink: 0; transition: 0.3s var(--ease); font-size: 0.95rem; }
.faq-item.open .faq-q i { transform: rotate(45deg); background: rgba(125, 211, 252, 0.14); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 0.88rem; line-height: 1.7; }

/* ---------- CTA ---------- */
.cta-band { padding: 70px 0 110px; position: relative; z-index: 2; }
.cta-band-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(34px, 5vw, 64px);
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 100% at 85% 0%, rgba(125, 211, 252, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 100% at 10% 100%, rgba(79, 124, 255, 0.16), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}
.cta-band-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 70% 20%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 20%, #000, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}
.cta-band-inner > * { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.05; letter-spacing: -0.05em; max-width: 720px; margin-bottom: 12px; }
.cta-band .lead { max-width: 560px; margin-top: 0; }
.cta-band .btn { flex-shrink: 0; }

/* ---------- Footer ---------- */
.footer { padding: 54px 0 26px; border-top: 1px solid var(--line); position: relative; z-index: 2; background: rgba(0, 0, 0, 0.4); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04101f; font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; }
.footer-brand strong { display: block; font-size: 0.9rem; }
.footer-brand div span { display: block; font-size: 0.74rem; color: var(--muted-2); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer-links a, .link-btn { font-size: 0.8rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover, .link-btn:hover { color: var(--accent); }
.footer p { color: var(--muted-2); font-size: 0.72rem; width: 100%; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- Page hero / inner pages ---------- */
.page-hero { min-height: 48vh; display: flex; align-items: center; padding-top: 160px; padding-bottom: 64px; overflow: clip; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(79, 124, 255, 0.16), transparent 70%); pointer-events: none; }
.page-title { font-size: clamp(2.7rem, 6vw, 5rem); line-height: 0.98; letter-spacing: -0.055em; font-weight: 700; margin-bottom: 22px; max-width: 980px; }
.service-detail { position: relative; }
.service-detail-head { margin-bottom: 36px; }
.service-detail-head .lead { margin-top: 14px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.detail-card {
  padding: 26px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.detail-card:hover { transform: translateY(-4px); border-color: rgba(125, 211, 252, 0.25); background: rgba(255, 255, 255, 0.04); }
.detail-card h3 { font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 14px; letter-spacing: -0.02em; }
.check-list { list-style: none; display: grid; gap: 9px; }
.check-list li { position: relative; padding-left: 20px; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; font-size: 0.8rem; }
.service-faq { margin-bottom: 28px; }
.service-faq h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 14px; }
.legal-content { padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.legal-content h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 26px 0 8px; }
.legal-content p { color: var(--muted); margin-bottom: 10px; line-height: 1.8; font-size: 0.92rem; }
.about-card { padding: 32px; border-radius: 24px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.about-code { font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.9; padding: 20px; background: rgba(0, 0, 0, 0.22); border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.05); margin-bottom: 20px; }
.about-points { margin-top: 24px; display: grid; gap: 12px; }
.about-point { display: flex; gap: 14px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.about-point i { font-style: normal; font-family: var(--font-mono); font-weight: 500; color: var(--accent); min-width: 30px; font-size: 0.7rem; }
.about-point strong { display: block; margin-bottom: 2px; font-size: 0.9rem; }
.about-point span { color: var(--muted); font-size: 0.82rem; }

/* ---------- Pricing / testimonials / slider ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; padding: 30px; border-radius: 22px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); transition: transform 0.35s var(--ease), border-color 0.35s; }
.price-card:hover { transform: translateY(-5px); border-color: rgba(125, 211, 252, 0.28); }
.price-card.featured { background: linear-gradient(180deg, rgba(79, 124, 255, 0.16), rgba(125, 211, 252, 0.04)); border-color: rgba(125, 211, 252, 0.32); box-shadow: 0 20px 60px rgba(79, 124, 255, 0.12); }
.price-badge { position: absolute; top: 16px; right: 16px; padding: 5px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.56rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #04101f; background: linear-gradient(135deg, var(--accent), #fff); }
.price-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.price-value { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); margin-bottom: 10px; }
.price-desc { color: var(--muted); font-size: 0.86rem; margin-bottom: 20px; min-height: 48px; }
.price-list { list-style: none; display: grid; gap: 9px; margin-bottom: 22px; }
.price-list li { padding-left: 20px; position: relative; color: var(--muted); font-size: 0.84rem; }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.testimonial { padding: 30px; border-radius: 22px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); transition: 0.35s var(--ease); position: relative; }
.testimonial::before { content: '"'; position: absolute; top: 12px; right: 20px; font-family: var(--font-display); font-size: 4rem; line-height: 1; color: rgba(125, 211, 252, 0.1); pointer-events: none; }
.testimonial:hover { transform: translateY(-5px); border-color: rgba(125, 211, 252, 0.25); background: rgba(255, 255, 255, 0.04); }
.stars { color: var(--accent); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04101f; font-weight: 800; font-size: 0.8rem; }
.testi-author strong { display: block; font-size: 0.86rem; }
.testi-author span { font-size: 0.74rem; color: var(--muted-2); }
.slider { position: relative; max-width: 900px; margin: 0 auto; }
.slider-track { position: relative; min-height: 240px; }
.slide { display: none; animation: slideIn 0.5s var(--ease); }
.slide.active { display: block; }
.slide.testimonial { max-width: 780px; margin: 0 auto; padding: 36px; }
@keyframes slideIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.slider-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); color: var(--text); font-size: 1.3rem; line-height: 1; transition: 0.25s; }
.slider-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(125, 211, 252, 0.08); }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); border: 0; padding: 0; transition: 0.25s; }
.slider-dots button.active { background: var(--accent); box-shadow: 0 0 12px rgba(125, 211, 252, 0.6); transform: scale(1.2); }

/* ---------- Forms ---------- */
.contact-form { background: rgba(6, 12, 24, 0.55); border: 1px solid rgba(125, 211, 252, 0.14); border-radius: 22px; padding: clamp(22px, 3vw, 32px); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(125, 211, 252, 0.45); box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.08); background: rgba(255, 255, 255, 0.05); }
.field select option { background: #0a0a0a; color: var(--text); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.72rem; color: var(--muted-2); text-align: center; margin-top: 12px; }
.chip { padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.chip span { display: block; font-family: var(--font-mono); font-size: 0.56rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 3px; }
.chip strong { font-size: 0.86rem; font-weight: 600; }
.chip a { color: var(--accent); }
.contact-chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Modal / cookie ---------- */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); z-index: 1200; display: none; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(8px); }
.modal.open { display: flex; }
.modal-panel { width: min(720px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: linear-gradient(180deg, rgba(16, 16, 16, 0.98), rgba(0, 0, 0, 0.99)); border: 1px solid var(--line-strong); border-radius: 22px; padding: 32px; position: relative; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); font-size: 1.3rem; line-height: 1; color: var(--muted); }
.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.modal-panel h3 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 14px; }
.modal-panel p { color: var(--muted); margin-bottom: 14px; }
.modal-panel ul { padding-left: 18px; color: var(--muted); display: grid; gap: 8px; }
.modal-panel li strong { color: var(--text); }
.cookie-banner { position: fixed; bottom: 18px; left: 18px; right: auto; width: min(380px, calc(100vw - 36px)); z-index: 1100; display: none; }
.cookie-banner.show { display: block; }
.cookie-content { max-width: none; margin: 0; background: rgba(6, 12, 24, 0.94); border: 1px solid var(--line-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; box-shadow: var(--shadow); }
.cookie-content p { color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.cookie-content strong { color: var(--text); }
.cookie-actions { display: flex; gap: 8px; width: 100%; }
.cookie-actions .btn { flex: 1; }
/* Con el menú móvil abierto, los overlays flotantes no deben tapar los enlaces */
body.menu-open .cookie-banner,
body.menu-open .wa-float,
body.menu-open .scroll-top { display: none; }

/* ---------- Floating controls ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37, 211, 102, 0.3); z-index: 900; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.wa-float:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 18px 40px rgba(37, 211, 102, 0.4); }
.wa-float svg { width: 26px; height: 26px; }
.scroll-top { position: fixed; right: 22px; bottom: 88px; width: 44px; height: 44px; border-radius: 13px; background: rgba(16, 16, 16, 0.82); border: 1px solid var(--line-strong); color: var(--text); font-size: 1.05rem; z-index: 900; opacity: 0; transform: translateY(10px); pointer-events: none; transition: 0.25s; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.scroll-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Cursor / preloader / progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 1100; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3)); box-shadow: 0 0 18px rgba(125, 211, 252, 0.5); }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 1300; border-radius: 50%; opacity: 0; }
@media (pointer: fine) { body:hover .cursor-dot, body:hover .cursor-ring { opacity: 1; } }
.cursor-dot { width: 5px; height: 5px; background: var(--accent); margin: -2.5px 0 0 -2.5px; box-shadow: 0 0 10px rgba(125, 211, 252, 0.8); }
.cursor-ring { width: 34px; height: 34px; border: 1px solid rgba(125, 211, 252, 0.4); margin: -17px 0 0 -17px; transition: width 0.25s, height 0.25s, margin 0.25s, background 0.25s, opacity 0.3s; }
.cursor-ring.hover { width: 52px; height: 52px; margin: -26px 0 0 -26px; background: rgba(125, 211, 252, 0.06); }
.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #000000;
  display: grid;
  place-items: center;
  clip-path: circle(150% at 50% 50%);
  transition: clip-path 0.5s cubic-bezier(0.45, 0, 0.25, 1), opacity 0s linear 0.5s, visibility 0s linear 0.5s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; clip-path: circle(0% at 50% 50%); }
.preloader .preloader-inner { transition: opacity 0.24s ease; }
.preloader.hidden .preloader-inner { opacity: 0; }
.preloader-inner { display: grid; justify-items: center; gap: 14px; }
.preloader-mark { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; letter-spacing: -0.06em; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.preloader-text { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
.preloader-bar { width: 150px; height: 2px; background: rgba(255, 255, 255, 0.08); border-radius: 2px; overflow: hidden; }
.preloader-bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: preload 1.1s ease infinite; }
@keyframes preload { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut 0.28s ease both; }
::view-transition-new(root) { animation: vtIn 0.4s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: scale(0.995); } }
@keyframes vtIn { from { opacity: 0; transform: scale(1.005); } }

/* ---------- Live premium layer ---------- */
.cursor-aura {
  position: fixed;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle, rgba(79, 124, 255, 0.2), rgba(125, 211, 252, 0.07) 42%, transparent 68%);
  will-change: transform;
  transition: opacity 0.5s ease;
}
.cursor-aura.on { opacity: 0.6; }
.cursor-ring { display: grid; place-items: center; }
.cursor-ring::after {
  content: attr(data-label);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cursor-ring.labeled {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background: rgba(6, 12, 24, 0.55);
  border-color: rgba(125, 211, 252, 0.62);
  box-shadow: 0 0 34px rgba(79, 124, 255, 0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cursor-ring.labeled::after { opacity: 1; }
.cursor-ring.pressed { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor-ring.labeled.pressed { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor-dot.is-hidden { opacity: 0 !important; }
.hero-ui-card-a { translate: 0 calc(var(--hero-scroll, 0) * -22px); }
.hero-ui-card-b { translate: 0 calc(var(--hero-scroll, 0) * 16px); }
.hero-ui-badge { translate: 0 calc(var(--hero-scroll, 0) * 9px); }

/* Spotlight que sigue al puntero */
.project-card::after,
.stat-box::after,
.step::after,
.detail-card::after,
.price-card::after,
.testimonial::after,
.quote-block::after,
.cta-band-inner::after,
.about-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(125, 211, 252, 0.16), transparent 62%);
}
@media (hover: hover) and (pointer: fine) {
  .project-card:hover::after,
  .stat-box:hover::after,
  .step:hover::after,
  .detail-card:hover::after,
  .price-card:hover::after,
  .testimonial:hover::after,
  .quote-block:hover::after,
  .cta-band-inner:hover::after,
  .about-card:hover::after { opacity: 1; }
}

/* Proceso vivo */
.process-line { overflow: hidden; }
.process-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 14px rgba(125, 211, 252, 0.65);
  animation: processSweep 5.6s var(--ease-soft) infinite;
}
@keyframes processSweep {
  0% { transform: translateX(-120%); opacity: 0; }
  12% { opacity: 1; }
  72% { opacity: 1; }
  100% { transform: translateX(360%); opacity: 0; }
}
.process.visible .step { animation: stepRise 0.7s var(--ease) backwards; }
.process.visible .step:nth-child(2) { animation-delay: 0.04s; }
.process.visible .step:nth-child(3) { animation-delay: 0.12s; }
.process.visible .step:nth-child(4) { animation-delay: 0.2s; }
.process.visible .step:nth-child(5) { animation-delay: 0.28s; }
@keyframes stepRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Detalles vivos */
.code-caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.7);
  animation: caretBlink 1.15s steps(1) infinite;
}
@keyframes caretBlink {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}
.preview-bars i { height: var(--h, 50%); }

/* ============================================================
   CAPA INMERSIVA — cine, manifiesto, stack y transiciones
   ============================================================ */

/* Tarjetas del hero: caja estable para evitar CLS al cargar fuentes */
.hero-ui-card {
  width: 208px;
  height: 64px;
  min-height: 64px;
  overflow: hidden;
}
.hero-ui-card > div { min-width: 0; }
.hero-ui-card strong,
.hero-ui-card span {
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Transición de página: iris desde el punto de clic */
.preloader.leaving {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: none;
  animation: preloaderWipe 0.64s cubic-bezier(0.45, 0, 0.25, 1) both;
}
.preloader.leaving .preloader-inner {
  animation: preloaderInner 0.45s 0.12s both;
}
@keyframes preloaderWipe {
  from { clip-path: circle(0% at var(--wipe-x, 50%) var(--wipe-y, 50%)); }
  to { clip-path: circle(150% at var(--wipe-x, 50%) var(--wipe-y, 50%)); }
}
@keyframes preloaderInner {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}
body.is-leaving .scroll-progress { opacity: 0; }

/* Hero cinematográfico: se fija y la cámara entra en la escena */
@media (min-width: 1180px) {
  .hero-cinema {
    display: block;
    height: 240vh;
    min-height: 0;
    padding: 0;
    overflow: visible;
  }
  .hero-cinema .hero-sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 110px 0 40px;
    overflow: clip;
  }
  .hero-cinema .hero-grid {
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
  }
  .hero-cinema .hero-copy {
    opacity: calc(1 - var(--hero-scroll, 0) * 2.1);
    transform: translateY(calc(var(--hero-scroll, 0) * -56px));
    will-change: transform, opacity;
  }
  .hero-cinema .hero-title .line:nth-child(1) { transform: translateY(calc(var(--hero-scroll, 0) * -16px)); }
  .hero-cinema .hero-title .line:nth-child(2) { transform: translateY(calc(var(--hero-scroll, 0) * -30px)); }
  .hero-cinema .hero-title .line:nth-child(3) { transform: translateY(calc(var(--hero-scroll, 0) * -46px)); }
  .hero-cinema .hero-meta { opacity: calc(1 - var(--hero-scroll, 0) * 2.6); }
  .hero-cinema .hero-scroll { opacity: calc(1 - var(--hero-scroll, 0) * 3); }
  .hero-cinema .hero-visual {
    will-change: transform;
    transform-origin: 92% 50%;
  }
  .hero-cinema .hero-ui-card,
  .hero-cinema .hero-ui-badge {
    opacity: calc(1 - var(--hero-scroll, 0) * 2.6);
    translate: 0 calc(var(--hero-scroll, 0) * -18px);
  }

  /* Anillos de portal: acompañan la entrada de la cámara */
  .hero-dive-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56%;
    aspect-ratio: 1 / 1;
    margin: -28% 0 0 -28%;
    border: 1px solid rgba(125, 211, 252, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(79, 124, 255, 0.16), inset 0 0 70px rgba(125, 211, 252, 0.08);
    pointer-events: none;
    opacity: calc(var(--hero-scroll, 0) * 0.75);
    transform: scale(calc(1 + var(--hero-scroll, 0) * 2.2));
    will-change: transform, opacity;
  }
  .hero-dive-ring-2 {
    width: 38%;
    margin: -19% 0 0 -19%;
    border-color: rgba(179, 136, 255, 0.32);
    opacity: calc(var(--hero-scroll, 0) * 0.55);
    transform: scale(calc(1 + var(--hero-scroll, 0) * 4));
  }

  /* Velo de luz + viñeta que cierran el plano del hero */
  .hero-veil {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    background: radial-gradient(circle at 68% 50%, rgba(170, 225, 255, 0.5), rgba(79, 124, 255, 0.2) 26%, transparent 62%);
    mix-blend-mode: screen;
    opacity: calc(var(--hero-scroll, 0) * var(--hero-scroll, 0) * var(--hero-scroll, 0) * 1.4);
  }
  .hero-cinema .hero-sticky::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: radial-gradient(ellipse 64% 64% at 66% 50%, transparent 40%, rgba(0, 0, 0, 0.82) 100%);
    opacity: calc(var(--hero-scroll, 0) * 0.9);
  }
  .hero-cinema .hero-sticky::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 26vh;
    z-index: 7;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, #000000 88%);
    opacity: calc(var(--hero-scroll, 0) * var(--hero-scroll, 0) * 1.25);
  }
}

/* Manifiesto tipográfico */
.manifesto {
  position: relative;
  z-index: 2;
  overflow: clip;
  padding: clamp(100px, 14vw, 190px) 0;
  background:
    radial-gradient(ellipse 60% 55% at 18% 20%, rgba(79, 124, 255, 0.1), transparent 65%),
    linear-gradient(180deg, #000000 0%, #060b16 48%, #000000 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 49.95%, rgba(125, 211, 252, 0.08) 50%, transparent 50.05%);
}
.manifesto-watermark {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(9rem, 23vw, 26rem);
  line-height: 0.7;
  letter-spacing: -0.09em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(125, 211, 252, 0.06);
  pointer-events: none;
  user-select: none;
}
.manifesto-inner { position: relative; z-index: 2; }
.manifesto-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  margin-bottom: clamp(36px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}
.manifesto-index {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.manifesto-title {
  font-size: clamp(2.5rem, 8.4vw, 8.4rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
  font-weight: 700;
  max-width: 1120px;
  margin: 0;
}
.m-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.m-line > span {
  display: block;
  transform: translateY(115%);
  transition: transform 1.15s var(--ease);
}
.manifesto.in-view .m-line > span { transform: translateY(0); }
.manifesto.in-view .m-line:nth-child(2) > span { transition-delay: 0.08s; }
.manifesto.in-view .m-line:nth-child(3) > span { transition-delay: 0.16s; }
.manifesto.in-view .m-line:nth-child(4) > span { transition-delay: 0.24s; }
.m-outline > span {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(125, 211, 252, 0.55);
}
.manifesto-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: clamp(40px, 6vw, 70px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.manifesto-bottom p {
  max-width: 520px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}
.manifesto-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.manifesto-link span { transition: transform 0.3s var(--ease); }
.manifesto-link:hover span { transform: translate(3px, -3px); }

/* Marquesina de capacidades */
.cap-marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.cap-marquee-inner {
  display: flex;
  width: max-content;
  animation: capScroll 34s linear infinite;
}
.cap-marquee:hover .cap-marquee-inner,
.cap-marquee:focus-within .cap-marquee-inner { animation-play-state: paused; }
.cap-marquee-track {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: clamp(18px, 3vw, 44px);
  min-width: 100vw;
  padding: 20px clamp(18px, 4vw, 44px);
  flex: 0 0 auto;
}
.cap-marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
  transition: color 0.25s;
}
.cap-marquee-track span:hover { color: var(--accent); }
.cap-marquee-track i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: 0 0 auto;
}
@keyframes capScroll { to { transform: translateX(-50%); } }

/* Proyectos apilados: cada caso se queda y el siguiente lo cubre */
.projects-stack { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 1024px) {
  .projects-stack { gap: 26px; }
  .project-card-stack {
    position: sticky;
    top: calc(94px + var(--stack-i, 0) * 18px);
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    min-height: 480px;
    border-radius: 30px;
    background: linear-gradient(160deg, rgba(16, 16, 16, 0.98), rgba(0, 0, 0, 0.99));
    box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.5), 0 30px 80px rgba(0, 0, 0, 0.35);
  }
  .project-card-stack:nth-child(1) { --stack-i: 0; }
  .project-card-stack:nth-child(2) { --stack-i: 1; }
  .project-card-stack:nth-child(3) { --stack-i: 2; }
  .project-card-stack { margin-bottom: 280px; }
  .project-card-stack:last-child { margin-bottom: 0; }
  .project-card-stack:hover { transform: none; }
  .project-card-stack .project-visual {
    height: auto;
    min-height: 480px;
    padding: 38px 38px 0;
    border-right: 1px solid var(--line);
  }
  .project-card-stack .project-info {
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .project-card-stack .project-info h3 {
    font-size: clamp(1.8rem, 2.8vw, 2.8rem);
    line-height: 1.02;
    margin: 10px 0 14px;
  }
  .project-card-stack .project-info p {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 380px;
    margin-bottom: 22px;
  }
  .project-card-stack::before {
    content: attr(data-index);
    position: absolute;
    right: 30px;
    bottom: 6px;
    z-index: 0;
    font-family: var(--font-display);
    font-size: clamp(7rem, 12vw, 12rem);
    line-height: 0.8;
    letter-spacing: -0.08em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(125, 211, 252, 0.12);
    pointer-events: none;
  }
  .project-card-stack .project-info > * { position: relative; z-index: 2; }
  .project-card-stack .project-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(120deg, transparent 40%, rgba(125, 211, 252, 0.07), transparent 70%);
    transform: translateX(-120%);
    transition: transform 1.1s var(--ease);
    pointer-events: none;
  }
  .project-card-stack:hover .project-visual::before { transform: translateX(120%); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { justify-self: center; max-width: 520px; margin-top: 10px; }
  .hero { padding-top: 140px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-grid > :last-child { grid-column: span 2; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process-line { display: none; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid > :last-child { grid-column: span 2; }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-head.center { align-items: center; }
}
/* En laptops compactas mantenemos la composición en dos columnas */
@media (min-width: 1000px) and (max-width: 1179px) {
  .hero .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; }
  .hero-copy { max-width: none; }
  .hero-visual { justify-self: end; max-width: 460px; margin-top: 0; }
  .hero .hero-title { font-size: clamp(2.9rem, 5.4vw, 4.4rem); }
}
@media (max-width: 860px) {
  .preloader { display: none; }
  .nav { padding: 14px 20px; }
  /* El menú ocupa el viewport: anulamos el transform/backdrop del nav,
     que lo convertirían en su bloque contenedor. */
  body.menu-open { overflow: hidden; }
  body.menu-open .nav {
    transform: none;
    transition: none;
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: clamp(104px, 17vh, 150px) 28px 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(0, 0, 0, 0.985);
  }
  .nav-links.open > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 7.6vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: var(--text);
    padding: 18px 0 18px 20px;
    width: 100%;
    border-bottom: 1px solid var(--line);
    animation: menuItem 0.5s var(--ease) both;
  }
  .nav-links.open > a:nth-child(2) { animation-delay: 0.05s; }
  .nav-links.open > a:nth-child(3) { animation-delay: 0.1s; }
  .nav-links.open > a:nth-child(4) { animation-delay: 0.15s; }
  .nav-links.open > a:nth-child(5) { animation-delay: 0.2s; }
  .nav-links.open > a::after {
    content: "↗";
    position: static;
    display: inline-block;
    width: auto;
    height: auto;
    background: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
    opacity: 0.6;
  }
  .nav-links.open > a.active { color: var(--accent); }
  .nav-links.open > a.active::before {
    position: absolute;
    left: 0;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
  }
  .nav-menu-foot {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .nav-menu-foot p { display: flex; align-items: center; gap: 9px; margin: 0; }
  .nav-menu-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 10px rgba(94, 234, 212, 0.8);
  }
  .nav-menu-foot a {
    display: inline;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    letter-spacing: inherit;
    text-transform: none;
    color: var(--text);
    border: 0;
    animation: none;
  }
  .nav-menu-foot a::after { display: none; }
  .menu-btn { display: flex; }
  .nav-actions .btn-sm { display: inline-flex; }
  .hero { padding-top: 118px; padding-bottom: 56px; }
  .hero .hero-title { font-size: clamp(2.9rem, 10vw, 4.6rem); }
  .hero-meta { gap: 20px; }
  .hero-visual { max-width: 420px; }
  .hero-ui-card-a { top: 5%; left: 0; }
  .hero-ui-card-b { bottom: 10%; right: 0; }
  .service-row { grid-template-columns: 48px 1fr auto; gap: 16px; }
  .service-arrow { width: 40px; height: 40px; }
  .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .cta-band .btn { width: 100%; }
  .cta-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-form { background: rgba(6, 12, 24, 0.72); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .cookie-content { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
  .page-hero { padding-top: 130px; }
}
@media (max-width: 720px) {
  .container { width: min(1240px, calc(100% - 36px)); }
  .section { padding: 78px 0; }
  .hero .hero-grid { gap: 24px; }
  .hero .hero-title { font-size: clamp(2.6rem, 12vw, 3.8rem); margin-bottom: 18px; }
  .hero .lead { font-size: 0.94rem; margin-bottom: 24px; }
  .hero-actions { gap: 10px; margin-bottom: 28px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero-meta-item strong { font-size: 1.05rem; }
  .cta-box { padding: 28px 20px; border-radius: 26px; }
  .cta-content h2 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .contact-form { padding: 20px; border-radius: 18px; }
  .cookie-banner { left: 12px; right: auto; bottom: 12px; width: min(360px, calc(100vw - 24px)); }
  .cookie-content { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 16px; }
  .cookie-content p { font-size: 0.72rem; line-height: 1.45; }
  .cookie-actions { width: 100%; gap: 8px; }
  .cookie-actions .btn { flex: 1; padding: 9px 12px; font-size: 0.72rem; }
  .hero-visual { max-width: 400px; }
  .hero-ui-card { padding: 10px 12px; }
  .hero-ui-card strong { font-size: 0.72rem; }
  .hero-ui-card span { font-size: 0.6rem; }
  .hero-ui-card-a { top: 2%; left: -2%; }
  .hero-ui-card-b { bottom: 7%; right: -2%; }
  .hero-ui-badge { font-size: 0.55rem; padding: 6px 10px; }
  .hero-scroll { display: none; }
  .manifesto { padding: 84px 0; }
  .manifesto-title { font-size: clamp(2.2rem, 11.5vw, 4.2rem); }
  .manifesto-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .manifesto-bottom { flex-direction: column; align-items: flex-start; gap: 22px; }
  .manifesto-watermark { right: -4%; font-size: 38vw; opacity: 0.8; }
  .m-outline > span { -webkit-text-stroke-width: 1px; }
  .cap-marquee-track { padding: 16px 18px; gap: 18px; }
  .cap-marquee-track span { font-size: 0.58rem; }
  .logo-strip { gap: 10px 18px; padding: 16px; }
  .logo-strip span { font-size: 0.58rem; }
  .service-row { grid-template-columns: 34px 1fr; gap: 12px; padding: 22px 0; }
  .service-arrow { display: none; }
  .service-body h3 { font-size: 1.2rem; }
  .service-body p { font-size: 0.84rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid > :last-child { grid-column: auto; }
  .project-visual { height: 230px; }
  .process { grid-template-columns: 1fr; }
  .step { padding: 20px; }
  .stats-cards { grid-template-columns: repeat(2, 1fr); }
  .about-float { right: 8px; bottom: -14px; }
  .cta-band { padding: 50px 0 80px; }
  .cta-band-inner { padding: 28px 22px; border-radius: 24px; }
  .cta-band h2 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 12px 16px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid > :last-child { grid-column: auto; }
  .detail-grid { grid-template-columns: 1fr; }
  .page-title { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .page-hero { min-height: 40vh; padding-top: 120px; padding-bottom: 44px; }
  .modal-panel { padding: 26px 20px; }
  .slider-btn { width: 38px; height: 38px; }
  .wa-float { width: 50px; height: 50px; right: 16px; bottom: 16px; }
  .scroll-top { right: 16px; bottom: 76px; width: 40px; height: 40px; }
  .service-preview { display: none; }
  .project-card::after, .stat-box::after, .step::after, .detail-card::after, .price-card::after, .testimonial::after, .quote-block::after, .cta-band-inner::after, .about-card::after { display: none; }
}
@media (max-width: 480px) {
  .hero-meta { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-meta-item strong { font-size: 1rem; }
  .hero-meta-item span { font-size: 0.56rem; }
  .hero-ui-card-b { display: none; }
  .hero-ui-card-a { left: 0; }
  .hero-visual { max-width: 340px; }
  .brand-name { font-size: 0.92rem; }
  .section-title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .stat-box { padding: 18px; }
  .stat-box strong { font-size: 1.6rem; }
  .quote-block { padding: 28px 18px; }
  .code-body { font-size: 0.62rem; }
  .about-float { display: none; }
}

/* ---------- Reduced motion (solo con el modo cine apagado) ---------- */
html.cinema-off {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .preloader { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
  .hero-orb, .bg-mesh { animation: none !important; }
  .hero-rays, .hero-flare, .hero-bokeh { display: none !important; }
  body::before { animation: none !important; inset: 0; }
  .hero-ui-card, .about-float { animation: none !important; }
  .marquee-track, .hazard-track { animation: none !important; }
  .cursor-aura { display: none; }
  .process-line::after { animation: none !important; opacity: 0; }
  .code-caret { animation: none !important; opacity: 1; }
  .hero-ui-card-a, .hero-ui-card-b, .hero-ui-badge { translate: none; }
  .nav { transform: none !important; }
  .hero-cinema { height: auto !important; }
  .hero-cinema .hero-sticky { position: relative; min-height: 0; }
  .hero-cinema .hero-copy,
  .hero-cinema .hero-title .line,
  .hero-cinema .hero-meta,
  .hero-cinema .hero-scroll { opacity: 1; transform: none; }
  .m-line > span { transform: none; }
  .cap-marquee { mask-image: none; -webkit-mask-image: none; overflow-x: auto; }
  .cap-marquee-inner { animation: none !important; }
  .cap-marquee-track[aria-hidden="true"] { display: none; }
  .cap-marquee-track { min-width: 100%; flex-wrap: wrap; justify-content: center; }
  .project-card-stack { position: relative !important; top: auto !important; }
}
@media (pointer: coarse) {
  .cursor-aura { display: none; }
}

/* ============================================================
   FILM 01 — INTRO CINEMATOGRÁFICA + SECUENCIA 3D
   ============================================================ */

/* ---------- Film leader (preloader) ---------- */
.preloader.leader .preloader-inner { gap: 10px; text-align: center; }
.preloader-frame {
  position: absolute;
  inset: clamp(14px, 2.4vw, 32px);
  border: 1px solid rgba(125, 211, 252, 0.1);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}
.preloader.leader .preloader-frame { opacity: 1; }
.preloader-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid rgba(125, 211, 252, 0.6);
}
.preloader-corner-tl { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.preloader-corner-tr { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.preloader-corner-bl { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.preloader-corner-br { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }
.preloader-topline,
.preloader-bottomline {
  position: absolute;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(220, 235, 255, 0.46);
}
.preloader-topline { top: 16px; }
.preloader-bottomline { bottom: 16px; align-items: flex-end; }
.preloader-rec { display: inline-flex; align-items: center; gap: 7px; color: #ff8080; }
.preloader-rec i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff5c5c;
  box-shadow: 0 0 12px rgba(255, 92, 92, 0.9);
  animation: filmRecBlink 1s steps(1) infinite;
}
@keyframes filmRecBlink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.18; } }
.preloader-count {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: #eaf6ff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 40px rgba(79, 124, 255, 0.35);
}
.preloader.leader .preloader-mark {
  font-size: clamp(4.6rem, 9.2vw, 8.4rem);
  line-height: 0.8;
  filter: drop-shadow(0 0 55px rgba(79, 124, 255, 0.42));
}
.preloader-sub {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}
.preloader.leader .preloader-bar {
  width: min(280px, 54vw);
  height: 1px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.1);
}
.preloader.leader .preloader-bar i {
  width: 100%;
  height: 100%;
  transform-origin: 0 50%;
  animation: leaderBar 1.35s cubic-bezier(0.65, 0, 0.35, 1) both;
}
@keyframes leaderBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.preloader.leader .preloader-text { margin-top: 4px; }
.preloader.hidden .preloader-frame { opacity: 0; }

/* Entrada de cámara del hero al abrir el iris */
@media (min-width: 1180px) {
  html.cinema-on .hero-cinema .hero-grid {
    animation: heroCamIn 1.9s 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  @keyframes heroCamIn {
    from { transform: scale(1.045) translateY(24px); filter: blur(10px); }
    to { transform: none; filter: none; }
  }
}

/* ---------- Film section ---------- */
.film {
  position: relative;
  z-index: 3;
  background: #000000;
  padding: clamp(96px, 12vw, 150px) 0;
  overflow: clip;
}
.film-sticky {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: clip;
  background:
    radial-gradient(ellipse 65% 55% at 50% 50%, rgba(79, 124, 255, 0.14), transparent 68%),
    linear-gradient(180deg, #000000, #050b16 48%, #000000);
}
.film.is-live {
  height: 340vh;
  padding: 0;
}
.film.is-live .film-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 0;
}
.film-canvas,
.film-fallback,
.film-scanlines,
.film-grade,
.film-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.film-canvas {
  width: 100%;
  height: 100%;
  display: none;
  z-index: 1;
}
.film.webgl-ready .film-canvas {
  display: block;
  animation: filmCanvasIn 1.4s ease both;
}
@keyframes filmCanvasIn { from { opacity: 0; } to { opacity: 1; } }

/* Fallback móvil / sin WebGL: túnel de luz en CSS */
.film-fallback {
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 48% at 50% 50%, rgba(79, 124, 255, 0.2), transparent 62%),
    radial-gradient(ellipse 42% 40% at 50% 50%, rgba(94, 234, 212, 0.08), transparent 66%);
  transition: opacity 0.9s ease;
}
.film.webgl-ready .film-fallback { opacity: 0; }
.film-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-top-color: rgba(180, 235, 255, 0.72);
  box-shadow: 0 0 60px rgba(79, 124, 255, 0.1), inset 0 0 70px rgba(125, 211, 252, 0.05);
  transform: translate(-50%, -50%) scale(calc(0.5 + var(--film-p, 0) * 1.25)) rotate(calc(var(--film-p, 0) * 45deg));
  will-change: transform;
}
.film-ring-1 { width: min(88vw, 900px); }
.film-ring-2 {
  width: min(64vw, 640px);
  border-color: rgba(179, 136, 255, 0.26);
  border-top-color: rgba(210, 180, 255, 0.7);
  transform: translate(-50%, -50%) scale(calc(0.42 + var(--film-p, 0) * 1.7)) rotate(calc(var(--film-p, 0) * -70deg));
}
.film-ring-3 {
  width: min(40vw, 400px);
  border-color: rgba(94, 234, 212, 0.22);
  border-top-color: rgba(160, 255, 235, 0.68);
  transform: translate(-50%, -50%) scale(calc(0.35 + var(--film-p, 0) * 2.2)) rotate(calc(var(--film-p, 0) * 110deg));
}
.film-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(16vw, 170px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 246, 255, 0.92), rgba(79, 124, 255, 0.4) 38%, transparent 70%);
  filter: blur(18px);
  transform: translate(-50%, -50%) scale(calc(1 + var(--film-p, 0) * 0.55));
  animation: filmCorePulse 4.5s ease-in-out infinite;
}
@keyframes filmCorePulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.95; } }

.film-scanlines {
  z-index: 2;
  opacity: 0.2;
  mix-blend-mode: soft-light;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px);
}
.film-grade {
  z-index: 3;
  background:
    radial-gradient(ellipse 70% 68% at 50% 50%, transparent 34%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent 20%, transparent 78%, rgba(0, 0, 0, 0.86));
}
.film-fade {
  z-index: 9;
  background: #000000;
  opacity: 0;
}

/* HUD de rodaje */
.film-hud {
  position: absolute;
  top: clamp(92px, 11vh, 122px);
  left: clamp(24px, 4vw, 60px);
  right: clamp(24px, 4vw, 60px);
  z-index: 8;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(220, 235, 255, 0.52);
  opacity: 0;
  transition: opacity 0.6s ease 0.15s;
  pointer-events: none;
}
.film.is-live .film-hud { opacity: 1; }
.film-hud-cell { display: flex; align-items: center; gap: 16px; }
.film-hud-right { justify-content: flex-end; }
.film-hud-right #filmTime { color: var(--accent); font-variant-numeric: tabular-nums; }
.film-rec { display: inline-flex; align-items: center; gap: 7px; color: #ff8a8a; }
.film-rec i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff5c5c;
  box-shadow: 0 0 12px rgba(255, 92, 92, 0.9);
  animation: filmRecBlink 1s steps(1) infinite;
}

/* Escenas */
.film-scenes {
  position: relative;
  z-index: 5;
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
}
.film-scene { position: relative; max-width: 900px; }
.film-scene + .film-scene { margin-top: clamp(70px, 10vw, 130px); }
.film.is-live .film-scenes {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 14vh 0 13vh;
}
.film.is-live .film-scene {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(calc(-50% + 52px)) scale(0.985);
  filter: blur(10px);
  transition: opacity 0.7s var(--ease), transform 0.95s var(--ease), filter 0.95s var(--ease);
  pointer-events: none;
}
.film.is-live .film-scene.is-active {
  opacity: 1;
  transform: translateY(-50%);
  filter: none;
  pointer-events: auto;
}
.film.is-live .film-scene.is-past {
  opacity: 0;
  transform: translateY(calc(-50% - 52px)) scale(0.985);
}
.film-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.film-kicker::before {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(125, 211, 252, 0.6);
}
.film-scene h2 {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 8.6vw, 8.4rem);
  line-height: 0.84;
  letter-spacing: -0.07em;
  font-weight: 700;
  text-wrap: balance;
  color: #f4fbff;
  text-shadow: 0 0 70px rgba(79, 124, 255, 0.16);
}
.film-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(180, 225, 255, 0.62);
  text-shadow: 0 0 52px rgba(79, 124, 255, 0.2);
}
.film-scene > p {
  max-width: 560px;
  margin: 0 0 30px;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.68;
  color: var(--muted);
}
.film-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.film-meta span {
  padding: 8px 13px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.45);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(220, 235, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.film-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 14px 24px;
  border: 1px solid rgba(125, 211, 252, 0.42);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.55);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.film-cta span { transition: transform 0.3s var(--ease); }
.film-cta:hover {
  border-color: var(--accent);
  background: rgba(79, 124, 255, 0.13);
  box-shadow: 0 0 46px rgba(79, 124, 255, 0.22);
}
.film-cta:hover span { transform: translate(3px, -3px); }

/* Capítulos + progreso */
.film-chapters {
  position: absolute;
  top: 50%;
  right: clamp(24px, 4vw, 60px);
  z-index: 8;
  display: grid;
  gap: 18px;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(220, 235, 255, 0.3);
  opacity: 0;
  transition: opacity 0.6s ease 0.2s;
  pointer-events: none;
}
.film.is-live .film-chapters { opacity: 1; }
.film-chapters span { display: flex; align-items: center; justify-content: flex-end; gap: 10px; transition: color 0.4s; }
.film-chapters i { width: 22px; height: 1px; background: currentColor; opacity: 0.55; transition: width 0.4s, background 0.4s, box-shadow 0.4s; }
.film-chapters span.is-active { color: var(--accent); }
.film-chapters span.is-active i { width: 44px; background: var(--accent); box-shadow: 0 0 12px rgba(125, 211, 252, 0.55); }
.film-progress {
  position: absolute;
  left: clamp(24px, 4vw, 60px);
  right: clamp(24px, 4vw, 60px);
  bottom: calc(clamp(18px, 4vh, 44px) + 20px);
  z-index: 8;
  height: 1px;
  background: rgba(125, 211, 252, 0.14);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.film.is-live .film-progress { opacity: 1; }
.film-progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 16px rgba(125, 211, 252, 0.55);
}
.film-hint {
  position: absolute;
  left: 50%;
  bottom: calc(clamp(18px, 4vh, 44px) + 36px);
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(220, 235, 255, 0.42);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.film.is-live .film-hint { opacity: clamp(0, calc(1 - var(--film-p, 0) * 18), 1); }
.film-hint i {
  width: 1px;
  height: 26px;
  background: linear-gradient(var(--accent), transparent);
  animation: filmHint 1.7s ease-in-out infinite;
}
@keyframes filmHint { 0%, 100% { transform: scaleY(0.45); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }
.film-letterbox {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 7;
  display: none;
  background: #000000;
}
.film.is-live .film-letterbox { display: block; }
.film-letterbox-top { top: 0; height: clamp(18px, 4vh, 44px); }
.film-letterbox-bottom { bottom: 0; height: clamp(18px, 4vh, 44px); }

/* Fallback estático si no hay JS */
.film:not(.is-live) .film-hud,
.film:not(.is-live) .film-chapters,
.film:not(.is-live) .film-progress,
.film:not(.is-live) .film-hint,
.film:not(.is-live) .film-letterbox,
.film:not(.is-live) .film-canvas { display: none; }

@media (max-width: 860px) {
  .film.is-live { height: 310vh; }
  .film.is-live .film-scenes {
    width: calc(100% - 40px);
    padding: 11vh 0 12vh;
  }
  .film-scene h2 { font-size: clamp(3.1rem, 13.4vw, 4.8rem); line-height: 0.87; }
  .film-scene > p { max-width: 92%; font-size: 0.96rem; }
  .film.is-live .film-hud {
    top: 82px;
    left: 20px;
    right: 20px;
    font-size: 0.47rem;
    letter-spacing: 0.12em;
  }
  .film-hud-cell { gap: 10px; }
  .film-hud-cell > span:last-child { display: none; }
  .film-hud-right #filmTime { display: inline; }
  .film-chapters { display: none; }
  .film-letterbox-top,
  .film-letterbox-bottom { height: 14px; }
  .film-progress { left: 20px; right: 20px; bottom: 38px; }
  .film-hint { bottom: 52px; font-size: 0.46rem; }
  .film-meta span { padding: 7px 10px; font-size: 0.5rem; }
  .film-cta { padding: 12px 20px; font-size: 0.8rem; }
  .film-ring-1 { width: 130vw; }
  .film-ring-2 { width: 94vw; }
  .film-ring-3 { width: 62vw; }
}

/* Cine apagado: la secuencia se convierte en tres bloques legibles */
html.cinema-off {
  .film,
  .film.is-live {
    height: auto;
    padding: clamp(90px, 12vw, 140px) 0;
  }
  .film .film-sticky,
  .film.is-live .film-sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
  }
  .film .film-scenes,
  .film.is-live .film-scenes {
    position: relative;
    inset: auto;
    display: block;
    height: auto;
    padding: 0;
  }
  .film .film-scene,
  .film.is-live .film-scene {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin: 0;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    pointer-events: auto;
  }
  .film .film-scene + .film-scene { margin-top: 80px; }
  .film-canvas,
  .film-fallback,
  .film-hud,
  .film-chapters,
  .film-progress,
  .film-hint,
  .film-letterbox,
  .film-scanlines,
  .film-grade,
  .film-fade { display: none !important; }
}

/* ============================================================
   MODO CINE — movimiento ambiental siempre visible (por defecto)
   ============================================================ */
html.cinema-on .hero-visual.lite .hero-poster,
html.cinema-on .hero-visual.no-webgl .hero-poster {
  animation: posterDrift 14s ease-in-out infinite alternate;
}
@keyframes posterDrift {
  from { transform: translate3d(0, 0, 0) scale(1.02) rotate(-0.4deg); }
  to { transform: translate3d(0, -10px, 0) scale(1.06) rotate(0.4deg); }
}

.cinema-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(12, 12, 12, 0.55);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
  backdrop-filter: blur(10px);
}
.cinema-toggle:hover { border-color: rgba(125, 211, 252, 0.6); background: rgba(20, 20, 20, 0.7); }
.cinema-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cinema-toggle-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.cinema-toggle[aria-pressed="true"] .cinema-toggle-dot { animation: cinemaPulse 1.6s ease-in-out infinite; }
.cinema-toggle[aria-pressed="false"] { color: var(--muted); border-color: rgba(255, 255, 255, 0.14); }
@keyframes cinemaPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }
@media (max-width: 560px) {
  .cinema-toggle-label { display: none; }
  .cinema-toggle { padding: 8px; }
}

.impact-icon { display: flex; justify-content: center; color: var(--accent); }
.impact-icon svg { width: 2rem; height: 2rem; filter: drop-shadow(0 0 12px rgba(125, 211, 252, 0.45)); }

/* ---------- Retrato circular del fundador (sustituye la escena 3D) ---------- */
.portrait-stage { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.portrait-mask {
  position: relative;
  margin: 0;
  width: min(76%, 430px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.22), 0 0 70px rgba(125, 211, 252, 0.16), 0 34px 90px rgba(0, 0, 0, 0.65);
  animation: portraitFloat 9s ease-in-out infinite alternate;
}
.portrait-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; filter: saturate(1.03) contrast(1.03); }
.portrait-vignette { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 40%, transparent 52%, rgba(0, 0, 0, 0.5) 80%, #000 100%); pointer-events: none; }
.portrait-sheen { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 42%, rgba(125, 211, 252, 0.12) 50%, transparent 58%); transform: translateX(-130%); animation: portraitSheen 6.5s ease-in-out infinite; pointer-events: none; }
.portrait-ring {
  position: absolute;
  width: min(88%, 480px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 30deg, rgba(125, 211, 252, 0.75) 55deg, transparent 85deg, transparent 170deg, rgba(79, 124, 255, 0.55) 200deg, transparent 235deg, transparent 300deg, rgba(94, 234, 212, 0.4) 320deg, transparent 345deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 88%, #000 89%, #000 92%, transparent 93%);
  mask: radial-gradient(circle closest-side, transparent 88%, #000 89%, #000 92%, transparent 93%);
  animation: ringSpin 16s linear infinite;
  pointer-events: none;
}
.portrait-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #bfe9ff; box-shadow: 0 0 14px rgba(125, 211, 252, 0.9); pointer-events: none; }
.portrait-dot-a { top: 16%; left: 20%; animation: bokehDrift 10s ease-in-out infinite alternate; }
.portrait-dot-b { bottom: 20%; right: 16%; width: 6px; height: 6px; animation: bokehDrift 13s ease-in-out infinite alternate-reverse; }
@keyframes portraitFloat { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(0, -12px, 0) scale(1.02); } }
@keyframes portraitSheen { 0%, 55% { transform: translateX(-130%); } 85%, 100% { transform: translateX(130%); } }
@keyframes ringSpin { to { transform: rotate(360deg); } }

/* ---------- Fondo mundial vivo ---------- */
.world-bg {
  position: fixed;
  inset: -28px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translate3d(var(--world-x, 0px), var(--world-y, 0px), 0);
}
.world-drift {
  position: absolute;
  inset: 0;
  animation: worldDrift 70s ease-in-out infinite alternate;
  will-change: transform;
}
.world-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  mix-blend-mode: screen;
  filter: saturate(0.95) brightness(0.9);
}
.world-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.world-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 50% 42%, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.34) 55%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.6));
}
.world-sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34%;
  left: -40%;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.05) 45%, rgba(125, 211, 252, 0.09) 50%, rgba(125, 211, 252, 0.05) 55%, transparent);
  mix-blend-mode: screen;
  animation: worldSweep 16s linear infinite;
}
@keyframes worldDrift {
  from { transform: scale(1.06) translate3d(-1.2%, -0.8%, 0) rotate(-0.4deg); }
  to { transform: scale(1.14) translate3d(1.2%, 0.9%, 0) rotate(0.4deg); }
}
@keyframes worldSweep { 0% { left: -40%; } 100% { left: 110%; } }
html.cinema-off .world-sweep { display: none; }
@media (max-width: 860px) {
  .world-map { opacity: 0.22; }
}
