/* =====================================================
   BADUM CREATIVE STUDIO — Design Tokens & Base
   ===================================================== */
:root {
  /* Color tokens (DARK — default) */
  --bg: #070707;
  --bg-elev: #0e0e0e;
  --bg-elev-2: #141414;
  --fg: #f2f2f2;
  --fg-dim: #9a9a9a;
  --fg-mute: #5a5a5a;
  --line: rgba(242, 242, 242, 0.08);
  --line-strong: rgba(242, 242, 242, 0.16);
  --grain: rgba(255,255,255,0.025);
  --header-bg: rgba(7, 7, 7, 0.72);
  --grey-particle: 180, 180, 180;
  --orbit-idle: rgba(150, 150, 150, 0.32);

  --magenta: #ff0066;
  --orange:  #ff6600;
  --purple:  #6600cc;
  --cyan:    #00ffff;
  --yellow:  #ffcc00;

  /* Type */
  --font-display: "Nunito", system-ui, sans-serif;
  --font-ui:      "Poppins", system-ui, sans-serif;

  /* Scale */
  --maxw: 1440px;
  --gutter: clamp(24px, 4vw, 64px);
  --radius: 14px;
}

/* LIGHT mode overrides */
[data-theme="light"] {
  --bg: #f4f1ec;
  --bg-elev: #ffffff;
  --bg-elev-2: #ebe7df;
  --fg: #0a0a0a;
  --fg-dim: #4a4a4a;
  --fg-mute: #8a8a8a;
  --line: rgba(7, 7, 7, 0.10);
  --line-strong: rgba(7, 7, 7, 0.22);
  --grain: rgba(7,7,7,0.025);
  --header-bg: rgba(244, 241, 236, 0.78);
  --grey-particle: 80, 80, 80;
  --orbit-idle: rgba(40, 40, 40, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .45s ease, color .45s ease;
}

/* Hide the system cursor on desktop only */
@media (hover: hover) and (pointer: fine) {
  html, body, * { cursor: none !important; }
}

::selection { background: var(--magenta); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Subtle film grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(var(--grain) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* =====================================================
   Custom Cursor
   ===================================================== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition: opacity .25s ease;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--magenta);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(255, 0, 102, 0.8);
}
.cursor-ring {
  width: 14px; height: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .25s cubic-bezier(.2,.7,.2,1),
              height .25s cubic-bezier(.2,.7,.2,1),
              border-color .25s ease,
              opacity .25s ease;
}
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  border-color: var(--magenta);
}
.cursor-ring.is-text {
  width: 36px; height: 36px;
  border-color: var(--cyan);
}

/* Touch / mobile: no custom cursor, and hide the mouse-only "Abrazo" interaction */
@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring { display: none !important; }
  .abrazo { display: none !important; }
}

/* =====================================================
   Header
   ===================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  padding-top: 14px;
  padding-bottom: 14px;
}
.header.is-scrolled .logo img { height: 42px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  position: relative;
}
.logo img {
  height: 56px;
  width: auto;
  display: block;
  transition: filter .35s ease, height .35s ease;
}
.logo:hover img {
  filter: drop-shadow(0 0 18px rgba(255, 102, 0, 0.55));
}
.logo::after {
  content: none;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.6); opacity: .55; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  font-size: 13px;
  font-weight: 400;
  padding: 8px 14px;
  color: var(--fg-dim);
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.nav-link .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  color: var(--fg-mute);
  margin-right: 6px;
  letter-spacing: 0;
}

.cta {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--magenta);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.cta::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
}
.cta:hover {
  background: var(--magenta);
  box-shadow: 0 0 32px rgba(255,0,102,0.45);
}
.cta:hover::before { background: #fff; box-shadow: 0 0 8px #fff; }

/* Theme toggle */
.theme-toggle {
  width: 56px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
  transition: border-color .25s ease, background .25s ease;
}
.theme-toggle::before,
.theme-toggle::after {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--fg-mute);
  top: 50%;
  transform: translateY(-50%);
  transition: color .25s ease, opacity .25s ease;
}
.theme-toggle::before { content: "DK"; left: 8px; }
.theme-toggle::after  { content: "LT"; right: 8px; }
.theme-toggle i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 12px rgba(255, 0, 102, 0.55);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .25s ease;
}
[data-theme="light"] .theme-toggle i {
  transform: translateX(28px);
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 102, 0, 0.55);
}
[data-theme="dark"] .theme-toggle::before,
:root:not([data-theme="light"]) .theme-toggle::before { color: var(--fg); opacity: 0; }
[data-theme="light"] .theme-toggle::after { color: var(--fg); opacity: 0; }
.theme-toggle:hover { border-color: var(--fg); }

/* =====================================================
   Section scaffolding
   ===================================================== */
section { position: relative; z-index: 2; }

.section {
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--fg-mute);
  display: inline-block;
}
.eyebrow .num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--magenta);
}

/* =====================================================
   Hero
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px var(--gutter) 100px;
  overflow: hidden;
}
#particles {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  pointer-events: none;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 48px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 11.5vw, 192px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin: 0 0 0 -0.18em;
  padding-left: 0.18em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero h1 .line { display: block; }
.hero h1 .word-justo {
  background: linear-gradient(90deg, var(--orange), var(--magenta), var(--orange));
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
  font-weight: 900;
  position: relative;
}
.hero h1 .outline {
  -webkit-text-stroke: 0;
  color: var(--fg);
  font-weight: 900;
  font-style: normal;
}

/* Hero title — entrance + hover interactivity */
.hero h1 .line { will-change: transform; transition: text-shadow .4s ease; }
.hero h1:hover .line:first-child { text-shadow: 0 0 32px rgba(242,242,242,0.18); }
.hero h1:hover .outline { text-shadow: 0 0 34px rgba(242,242,242,0.22); }
.hero h1:hover .word-justo { animation: justoFlow 2.6s linear infinite; }
@keyframes justoFlow { to { background-position: -220% 50%; } }
@media (prefers-reduced-motion: no-preference) {
  .hero h1.intro .line { animation: heroLineIn 1s cubic-bezier(.22,1,.36,1) both; }
  .hero h1.intro .line:nth-child(1) { animation-delay: .05s; }
  .hero h1.intro .line:nth-child(2) { animation-delay: .18s; }
  .hero h1.intro .line:nth-child(3) { animation-delay: .31s; }
}
@keyframes heroLineIn {
  from { opacity: 0; transform: translateY(0.16em); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-footer {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 32px;
  pointer-events: auto;
}
.hero-blurb {
  max-width: 360px;
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.65;
}
.hero-blurb strong { color: var(--fg); font-weight: 500; }

.scroll-cue {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--fg-mute), transparent);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero-hint {
  justify-self: end;
  max-width: 240px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.55;
  color: var(--fg-mute);
  letter-spacing: 0.01em;
  text-align: left;
}
.hero-hint-dot {
  flex: 0 0 auto;
  width: 8px; height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 12px var(--magenta);
}

/* =====================================================
   Manifiesto
   ===================================================== */
.manifiesto {
  border-top: 1px solid var(--line);
  padding-top: clamp(120px, 16vw, 220px);
  padding-bottom: clamp(120px, 16vw, 220px);
}
.manifiesto-eyebrow-stack {
  display: flex;
  flex-direction: column;
}
.manifiesto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: stretch;
}
.manifiesto-left {
  display: flex;
  flex-direction: column;
}
.manifiesto-graphic {
  position: relative;
  min-height: clamp(360px, 38vw, 560px);
  align-self: stretch;
  pointer-events: none;
}
.manifiesto-graphic canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.manifiesto h2 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.manifiesto h2 b {
  font-weight: 900;
  font-style: italic;
}
.manifiesto h2 .colored { color: var(--orange); }
.manifiesto-poem {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(20px, 2.1vw, 32px);
  line-height: 1.32;
  letter-spacing: -0.015em;
  margin: clamp(40px, 7vw, 88px) 0 0;
  max-width: 19em;
  text-wrap: pretty;
  color: var(--fg-dim);
}
.manifiesto-poem .ln { display: block; }
.manifiesto-poem .em-mag { color: var(--magenta); font-weight: 900; font-style: italic; }
.manifiesto-poem .em-ora { color: var(--orange);  font-weight: 900; font-style: italic; }
.manifiesto-poem .em-cyn { color: var(--cyan);    font-weight: 900; font-style: italic; }
.manifiesto-poem .em-out {
  color: var(--fg);
  font-weight: 700;
  font-style: italic;
}
.manifiesto-poem .indent { padding-left: clamp(40px, 6vw, 96px); }
.manifiesto-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 40px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.manifiesto-byline::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--fg-mute);
}
.manifiesto-byline b { color: var(--fg); font-weight: 600; letter-spacing: 0.1em; }
.manifiesto-body {
  font-size: 16px;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 460px;
  padding-top: 12px;
}
.manifiesto-body p + p { margin-top: 18px; }

/* =====================================================
   Equipo
   ===================================================== */
.equipo { border-top: 1px solid var(--line); }
.equipo-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
  align-items: end;
}
.equipo h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.equipo h2 em {
  font-style: italic;
  font-weight: 200;
  color: var(--fg-dim);
}
.equipo-sub {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 380px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.member {
  background: var(--bg);
  padding: 36px 24px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 360px;
  overflow: hidden;
  transition: background .35s ease;
}
.member:hover { background: var(--bg-elev); }

.member-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  color: var(--bg);
  letter-spacing: -0.02em;
  position: relative;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease;
}
.member:hover .member-avatar {
  transform: scale(1.08);
  box-shadow: 0 0 36px var(--accent);
}
/* Burst of dots around the avatar (mini logo echo) */
.member-avatar::before,
.member-avatar::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity .45s ease, transform .55s cubic-bezier(.2,.7,.2,1);
}
.member-avatar::before {
  width: 10px; height: 10px;
  right: -16px; top: 4px;
}
.member-avatar::after {
  width: 6px; height: 6px;
  right: -22px; top: 22px;
}
.member:hover .member-avatar::before { opacity: 0.9; transform: translate(4px, -2px); }
.member:hover .member-avatar::after  { opacity: 0.7; transform: translate(6px, 2px); }

.member-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.member-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
.member-name .nm-nick { display: none; color: var(--accent); }
.member:hover .member-name .nm-full { display: none; }
.member:hover .member-name .nm-nick { display: inline; }
.member-role {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 500;
}
.member-bio {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--fg-dim);
  margin: 0;
  text-wrap: pretty;
}
.member-contact {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
}
.member-contact a {
  color: var(--fg-dim);
  transition: color .25s ease;
  word-break: break-all;
}
.member-contact a:hover { color: var(--accent); }
.member-idx {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
}

@media (max-width: 960px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   Slogan ticker (marquee)
   ===================================================== */
.ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 22px 0;
}
.ticker-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: ticker-scroll 32s linear infinite;
  width: max-content;
}
.ticker.is-orange .ticker-item { color: var(--orange); }
.ticker.is-magenta .ticker-item { color: var(--magenta); }
.ticker-item {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.035em;
  color: var(--fg);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.ticker-item::after {
  content: "";
  display: inline-block;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 24px currentColor;
}
.ticker-item.outline {
  -webkit-text-stroke: 1.5px var(--fg);
  color: transparent !important;
  font-weight: 300;
}
.ticker-item.outline::after { background: var(--fg); box-shadow: 0 0 24px var(--fg); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================
   Constellation graphic (echo of the logo dots)
   ===================================================== */
.constellation {
  position: relative;
  margin-top: 64px;
  height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 78% 30%, color-mix(in srgb, var(--orange) 18%, transparent), transparent 50%),
    radial-gradient(circle at 16% 72%, color-mix(in srgb, var(--magenta) 14%, transparent), transparent 50%);
  overflow: hidden;
  cursor: none;
}
.constellation .c-dot {
  position: absolute;
  border-radius: 50%;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), box-shadow .8s ease;
  will-change: transform;
}
.constellation:hover .c-dot { box-shadow: 0 0 36px currentColor; }
.constellation .c-dot.c1 { width: 72px;  height: 72px;  left: 16%; top: 24%; background: var(--orange);  color: var(--orange);  }
.constellation .c-dot.c2 { width: 104px; height: 104px; left: 30%; top: 44%; background: var(--magenta); color: var(--magenta); }
.constellation .c-dot.c3 { width: 52px;  height: 52px;  left: 48%; top: 18%; background: var(--orange);  color: var(--orange);  }
.constellation .c-dot.c4 { width: 88px;  height: 88px;  left: 56%; top: 52%; background: var(--orange);  color: var(--orange);  }
.constellation .c-dot.c5 { width: 64px;  height: 64px;  left: 70%; top: 28%; background: var(--magenta); color: var(--magenta); }
.constellation .c-dot.c6 { width: 44px;  height: 44px;  left: 84%; top: 60%; background: var(--cyan);    color: var(--cyan);    }
.constellation .c-dot.c7 { width: 32px;  height: 32px;  left: 8%;  top: 64%; background: var(--yellow);  color: var(--yellow);  }
.constellation:hover .c-dot.c1 { transform: translate(8px, -4px); }
.constellation:hover .c-dot.c2 { transform: translate(-6px, 6px) scale(1.04); }
.constellation:hover .c-dot.c3 { transform: translate(4px, 8px); }
.constellation:hover .c-dot.c4 { transform: translate(-8px, -6px) scale(1.05); }
.constellation:hover .c-dot.c5 { transform: translate(6px, 6px); }
.constellation:hover .c-dot.c6 { transform: translate(-4px, -8px); }
.constellation:hover .c-dot.c7 { transform: translate(8px, -4px); }

.constellation .c-label {
  position: absolute;
  bottom: 18px; left: 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: flex; align-items: center; gap: 10px;
  z-index: 2;
}
.constellation .c-label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
  animation: pulse 2.4s ease-in-out infinite;
}
.constellation .c-stamp {
  position: absolute;
  top: 18px; right: 24px;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  z-index: 2;
}

/* =====================================================
   Manifiesto video */
.manifiesto-video {
  margin-top: 80px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev-2);
  aspect-ratio: 16 / 9;
}
.manifiesto-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.manifiesto-video .vid-meta {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-dim);
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: difference;
}
.manifiesto-video .vid-meta b {
  color: var(--fg);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.manifiesto-video .vid-meta b::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
  animation: pulse 2.4s ease-in-out infinite;
}
.manifiesto-video .vid-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(7,7,7,0.4) 0%, rgba(7,7,7,0.85) 100%);
  z-index: 2;
  transition: opacity .5s ease;
}
.manifiesto-video.is-playing .vid-cover {
  opacity: 0;
  pointer-events: none;
}
.manifiesto-video .vid-cover-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.manifiesto-video .vid-cover-text h3 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  max-width: 540px;
  text-wrap: balance;
}
.manifiesto-video .vid-cover-text h3 b {
  font-weight: 900;
  font-style: italic;
  color: var(--magenta);
}
.manifiesto-video .play-btn {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(255,0,102,0.10);
  border: 1px solid var(--magenta);
  position: relative;
  transition: transform .35s ease, background .35s ease, box-shadow .35s ease;
}
.manifiesto-video .play-btn::before {
  content: "";
  position: absolute;
  top: 50%; left: 56%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  border-left: 18px solid var(--magenta);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.manifiesto-video .play-btn:hover {
  background: rgba(255,0,102,0.22);
  transform: scale(1.06);
  box-shadow: 0 0 60px rgba(255,0,102,0.4);
}
.manifiesto-video .vid-runtime {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* El Abrazo — blur sphere interaction */
.abrazo {
  margin-top: 120px;
  position: relative;
  height: 360px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0));
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.abrazo::after {
  content: "PASA EL MOUSE";
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--fg-mute);
  opacity: 1;
  transition: opacity .35s ease;
}
.abrazo.is-hover::after { opacity: 0; }

.sphere {
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 50%;
  filter: blur(40px);
  transition: transform 1s cubic-bezier(.2,.7,.2,1), filter 1s cubic-bezier(.2,.7,.2,1), opacity .8s ease;
  will-change: transform, filter;
}
.sphere.s1 { background: var(--magenta); left: 10%; transform: translateX(0); }
.sphere.s2 { background: var(--orange);  right: 10%; transform: translateX(0); }
.abrazo.is-hover .sphere {
  filter: blur(8px);
}
.abrazo.is-hover .sphere.s1 { transform: translateX(150%); }
.abrazo.is-hover .sphere.s2 { transform: translateX(-150%); }
.abrazo-caption {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 200;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 36px);
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 540px;
  opacity: 0.4;
  transition: opacity .6s ease, transform .6s ease;
  text-wrap: balance;
}
.abrazo.is-hover .abrazo-caption { opacity: 1; transform: scale(1.04); }
.abrazo-caption b { font-weight: 900; font-style: normal; color: var(--orange); transition: color .35s ease; }
.abrazo.is-hover .abrazo-caption b { color: #fff; }

/* =====================================================
   Metodología
   ===================================================== */
.metodo {
  border-top: 1px solid var(--line);
}
.metodo-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
  align-items: end;
}
.metodo h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.metodo-sub {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 380px;
}
.steps { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 80px 1fr auto 1fr 60px;
  align-items: center;
  gap: 32px;
  padding: 32px 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .35s ease;
  cursor: none;
}
.step::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent, var(--magenta));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.step:hover::before { transform: scaleY(1); }
.step:hover { background: rgba(255,255,255,0.015); }

.step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  color: var(--fg-mute);
  transition: color .35s ease, text-shadow .35s ease;
}
.step:hover .step-num {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent);
}
.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), letter-spacing .35s ease;
  transform-origin: left center;
}
.step:hover .step-title { transform: translateX(14px); letter-spacing: -0.025em; }
.step-tag {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 500;
}
.step-desc {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.6;
  max-width: 320px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.step:hover .step-desc { opacity: 1; transform: translateY(0); }
.step-light {
  justify-self: end;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--fg-mute);
  transition: background .35s ease, box-shadow .35s ease, transform .35s ease;
}
.step:hover .step-light {
  background: var(--accent);
  box-shadow: 0 0 22px var(--accent), 0 0 60px var(--accent);
  transform: scale(1.4);
}

/* =====================================================
   Portfolio
   ===================================================== */
.portfolio { border-top: 1px solid var(--line); }
.portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.portfolio h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.portfolio h2 em {
  font-style: italic;
  font-weight: 200;
  color: var(--fg-dim);
}
.filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.filter {
  background: transparent;
  border: 0;
  color: var(--fg-dim);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color .25s ease, background .25s ease;
}
.filter:hover { color: var(--fg); }
.filter.is-active {
  color: #fff;
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.filter.is-active::before {
  content: "•";
  color: var(--magenta);
  margin-right: 6px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  grid-auto-flow: dense;
}
.card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  transition: border-color .3s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.card:hover { border-color: var(--accent, var(--magenta)); transform: translateY(-4px); }
.card.span-6 { grid-column: span 6; min-height: 380px; }
.card.span-4 { grid-column: span 4; min-height: 380px; }
.card.span-5 { grid-column: span 5; }
.card.span-7 { grid-column: span 7; min-height: 380px; }
.card.span-8 { grid-column: span 8; min-height: 340px; }
.card.span-12 { grid-column: span 12; min-height: 400px; }
.card.tall { min-height: 460px; }

/* Abstract CSS visuals per card */
.viz {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.9;
}
.viz.v-rings::before {
  content: "";
  position: absolute;
  width: 540px; height: 540px;
  right: -180px; top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle at center, transparent 35%, var(--accent) 35.5%, var(--accent) 36.5%, transparent 37%, transparent 55%, var(--accent) 55.5%, var(--accent) 56.5%, transparent 57%);
  opacity: 0.35;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.card:hover .viz.v-rings::before { transform: scale(1.08) rotate(8deg); }

.viz.v-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 24px;
}
.viz.v-bars span {
  flex: 1;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  opacity: 0.18;
  transition: opacity .4s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
.card:hover .viz.v-bars span { opacity: 0.45; }

.viz.v-grid {
  background-image:
    linear-gradient(var(--accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.08;
  transition: opacity .4s ease, background-size .6s ease;
}
.card:hover .viz.v-grid { opacity: 0.18; background-size: 32px 32px; }

.viz.v-blob::before,
.viz.v-blob::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
}
.viz.v-blob::before { background: var(--accent); width: 280px; height: 280px; left: -60px; bottom: -80px; }
.viz.v-blob::after  { background: var(--accent-b, var(--magenta)); width: 220px; height: 220px; right: -40px; top: -60px; }

.viz.v-stripes {
  background: repeating-linear-gradient(
    45deg,
    transparent 0 18px,
    var(--accent) 18px 19px
  );
  opacity: 0.18;
}

.viz.v-dot {
  background:
    radial-gradient(circle at center, var(--accent) 0, var(--accent) 2px, transparent 2.5px);
  background-size: 22px 22px;
  opacity: 0.22;
}

/* Real-image card viz */
.viz.v-image {
  background-size: cover;
  background-position: center top;
  opacity: 1;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), opacity .4s ease;
  transform: scale(1.02);
}
.card:hover .viz.v-image { transform: scale(1.06); }
/* gradient scrim so the card text stays legible over the photo */
.viz.v-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(7,7,7,0.78) 0%, rgba(7,7,7,0.30) 38%, transparent 60%),
    linear-gradient(180deg, rgba(7,7,7,0.10) 0%, rgba(7,7,7,0.30) 55%, rgba(7,7,7,0.85) 100%);
}
.card.has-photo .card-cat { color: #fff; mix-blend-mode: normal; }
.card.has-photo .card-title { text-shadow: 0 2px 24px rgba(0,0,0,0.6); }

/* Web project card viz: static hero cover, plays the recording on hover */
.viz.v-web {
  background-color: #050505;
  background-size: cover;
  background-position: center top;
  overflow: hidden; opacity: 1;
  transform: scale(1.02);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.card:hover .viz.v-web { transform: scale(1.05); }
.viz.v-web video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity .45s ease;
}
.card:hover .viz.v-web video { opacity: 1; }
.viz.v-web::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,5,5,0.05) 0%, rgba(5,5,5,0.28) 52%, rgba(5,5,5,0.88) 100%);
}
/* small "live" badge top-left of web cards */
.card .web-badge {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(0,0,0,0.42); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff;
}
.card .web-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent, #4ade80); box-shadow: 0 0 8px var(--accent, #4ade80);
  animation: webPulse 1.8s ease-in-out infinite;
}
@keyframes webPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* =====================================================
   Sección Web — sitios en vivo (portadas que linkean)
   ===================================================== */
.sitios-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.sitios-sub {
  max-width: 300px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-dim);
  margin: 0;
}
.web-grid {
  display: contents;
}
.webcard {
  grid-column: span 4;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0a;
  text-decoration: none;
  color: inherit;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .4s ease;
}
.webcard:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--accent) 55%, var(--line-strong));
}
.webcard-shot {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.webcard:hover .webcard-shot { transform: scale(1.07); }
.webcard-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,0.04) 0%, rgba(5,5,5,0.34) 45%, rgba(5,5,5,0.92) 100%);
}
.webcard .web-badge {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}
.webcard .web-badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: webPulse 1.8s ease-in-out infinite;
}
.webcard-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.webcard-body .card-cat {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.webcard-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
  text-wrap: balance;
}
.webcard-go {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #fff;
  opacity: 0.82;
  transition: opacity .3s ease;
}
.webcard:hover .webcard-go { opacity: 1; }
.webcard:hover .card-arrow { background: var(--accent); border-color: var(--accent); }
@media (max-width: 920px) {
  .webcard { min-height: 360px; }
}
.card.is-soon { cursor: default; }
.card.is-soon:hover { transform: none; border-color: var(--line); }
.card .soon-badge {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(0,0,0,0.42); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff;
}
.card .soon-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent, #FF0066); box-shadow: 0 0 8px var(--accent, #FF0066);
  animation: webPulse 1.8s ease-in-out infinite;
}
.viz.v-reel {
  background:
    radial-gradient(ellipse at 30% 25%, color-mix(in oklab, var(--accent) 35%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 80%, color-mix(in oklab, var(--accent-b, var(--accent)) 30%, transparent) 0%, transparent 55%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 7px),
    linear-gradient(160deg, #0c0c0c 0%, #050505 100%);
  display: flex; align-items: center; justify-content: center;
}
.viz.v-reel::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,7,7,0.10) 0%, rgba(7,7,7,0.30) 55%, rgba(7,7,7,0.85) 100%);
}
.viz.v-reel .reel-play {
  position: relative; z-index: 2;
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.25); backdrop-filter: blur(2px);
  display: block;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .4s ease;
}
.viz.v-reel .reel-play::before {
  content: "";
  position: absolute; left: 54%; top: 50%; transform: translate(-50%,-50%);
  border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.card.is-soon:hover .viz.v-reel .reel-play { transform: scale(1.08); border-color: var(--accent); }

/* ItNova-specific viz: construction grid + geometric mark */
.viz.v-itnova {
  background:
    radial-gradient(ellipse at 80% 40%, rgba(203, 246, 253, 0.10) 0%, transparent 55%),
    linear-gradient(135deg, #002B36 0%, #001a20 100%);
  opacity: 1;
}
.viz.v-itnova .construction {
  position: absolute;
  top: 50%; right: 8%;
  transform: translateY(-50%);
  width: 280px; height: 280px;
}
.viz.v-itnova .construction::before,
.viz.v-itnova .construction::after,
.viz.v-itnova .construction .c-ring,
.viz.v-itnova .construction .c-bar,
.viz.v-itnova .construction .c-cross {
  position: absolute;
  inset: 0;
}
/* large outer ring (2X) */
.viz.v-itnova .construction::before {
  content: "";
  border: 1px solid rgba(203, 246, 253, 0.22);
  border-radius: 50%;
}
/* small inner ring (X) */
.viz.v-itnova .construction::after {
  content: "";
  margin: 70px;
  border: 1.5px solid #CBF6FD;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(203, 246, 253, 0.4);
}
/* tick marks */
.viz.v-itnova .construction .c-ring {
  background:
    linear-gradient(to right, transparent calc(50% - 0.5px), rgba(203,246,253,0.18) calc(50% - 0.5px), rgba(203,246,253,0.18) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent calc(50% - 0.5px), rgba(203,246,253,0.18) calc(50% - 0.5px), rgba(203,246,253,0.18) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}
/* diagonal construction lines */
.viz.v-itnova .construction .c-cross {
  background:
    linear-gradient(45deg, transparent calc(50% - 0.5px), rgba(203,246,253,0.10) calc(50% - 0.5px), rgba(203,246,253,0.10) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(-45deg, transparent calc(50% - 0.5px), rgba(203,246,253,0.10) calc(50% - 0.5px), rgba(203,246,253,0.10) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}
/* 2X label */
.viz.v-itnova .construction .c-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2px 4px 0;
  font-family: "Open Sans", "Poppins", sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(203, 246, 253, 0.55);
}
.viz.v-itnova .construction .c-bar i {
  font-style: normal;
}
/* faint trama overlay across whole card */
.viz.v-itnova .trama {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(203,246,253,0.04) 30px 31px),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(203,246,253,0.04) 30px 31px);
  pointer-events: none;
}
.viz.v-itnova .wordmark {
  position: absolute;
  left: 28px; top: 28px;
  font-family: "Josefin Sans", "Nunito", sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: rgba(203, 246, 253, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}
.viz.v-itnova .wordmark::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid #CBF6FD;
  position: relative;
}
.card:hover .viz.v-itnova .construction::after {
  box-shadow: 0 0 64px rgba(203, 246, 253, 0.65);
  transition: box-shadow .6s ease;
}
/* When the ItNova card is rendered, override the card-cat color */
.card[data-cat="branding"][data-project="itnova"] .card-cat,
.card[data-project="itnova"] .card-cat { color: #CBF6FD; }

.card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-cat {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent, var(--magenta));
  font-weight: 500;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.card-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  margin-top: 24px;
}
.card-foot::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--fg-mute), transparent);
  margin: 0 16px;
  opacity: 0.4;
}
.card-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  transition: border-color .3s ease, background .3s ease;
}
.card-arrow::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 1px;
  background: var(--fg);
  transform: translate(-60%, -50%);
}
.card-arrow::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  border-top: 1px solid var(--fg);
  border-right: 1px solid var(--fg);
  transform: translate(-50%, -50%) rotate(45deg);
  margin-left: 2px;
}
.card:hover .card-arrow { background: var(--accent); border-color: var(--accent); }

/* The hover line */
.card::after {
  content: "";
  position: absolute;
  left: 28px; right: 28px;
  bottom: 78px;
  height: 1px;
  background: var(--accent, var(--magenta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
  z-index: 1;
}
.card:hover::after { transform: scaleX(1); }

/* =====================================================
   Lightbox
   ===================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 80px var(--gutter);
  opacity: 0;
  transition: opacity .35s ease;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox-inner {
  width: auto;
  max-width: min(1180px, 100%);
  max-height: 90vh;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  position: relative;
}
.lightbox-media {
  background: var(--bg-elev-2);
  position: relative;
  overflow: hidden;
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
}
/* Real media adapts to its own aspect ratio (no cropping) */
.lightbox-media .lb-image,
.lightbox-media .lb-video {
  display: none;
  width: auto;
  height: auto;
  max-width: min(66vw, 860px);
  max-height: 90vh;
  object-fit: contain;
  background: #000;
}
.lightbox-media.is-image .lb-image { display: block; }
.lightbox-media.is-video .lb-video { display: block; }
/* Gallery thumbnails */
.lb-thumbs {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: none;
  gap: 10px;
  z-index: 4;
}
.lightbox-media.has-thumbs .lb-thumbs { display: flex; }
.lb-thumb {
  width: 56px;
  height: 56px;
  border-radius: 9px;
  border: 1px solid rgba(242, 242, 242, 0.25);
  background: #000 center/cover no-repeat;
  padding: 0;
  cursor: none;
  opacity: 0.6;
  transition: opacity .25s ease, border-color .25s ease, transform .25s ease;
  box-shadow: 0 6px 22px rgba(0,0,0,0.45);
}
.lb-thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.lb-thumb.is-active { opacity: 1; border-color: var(--magenta); box-shadow: 0 0 0 1px var(--magenta), 0 6px 22px rgba(0,0,0,0.45); }

/* ---- 3D demo reel gallery (videos + renders, differentiated) ---- */
.lightbox-media.is-gallery3d {
  flex-direction: column;
  width: min(74vw, 880px);
  align-self: stretch;
  background: #000;
}
.lightbox-media.is-gallery3d .lb-image,
.lightbox-media.is-gallery3d .lb-video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: contain;
  background: #000;
}
.lb-gallery {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 20px;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  max-height: 230px;
  overflow-y: auto;
  flex: 0 0 auto;
}
.lightbox-media.is-gallery3d .lb-gallery { display: flex; }
.lb-gallery-group { display: flex; flex-direction: column; gap: 9px; }
.lb-gallery-label {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: flex;
  align-items: center;
  gap: 8px;
}
.lb-gallery-label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
}
.lb-gallery-group:nth-child(2) .lb-gallery-label::before {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.lb-gallery-label b {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: 0.05em;
}
.lb-gallery-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.lb-gallery .lb-thumb {
  width: 64px;
  height: 40px;
  border-radius: 7px;
}
.lb-gallery .lb-thumb.is-vid::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-40%, -50%);
  width: 0; height: 0;
  border-left: 9px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.7));
}
.lb-gallery .lb-thumb.is-vid {
  position: relative;
}
.lb-gallery .lb-thumb.is-vid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.45));
  border-radius: inherit;
}
.lb-gallery .lb-thumb.is-active { border-color: var(--magenta); }
/* CSS-viz-only projects keep a sensible default frame */
.lightbox-media.is-viz { width: 560px; max-width: 60vw; align-self: stretch; min-height: 460px; }
.lightbox-media.is-viz .viz { opacity: 0.7; inset: 0; }
.lightbox-media .viz { opacity: 0.7; inset: 0; }
.lightbox-media .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.lightbox-media .play b {
  width: 76px; height: 76px;
  border: 1px solid var(--magenta);
  border-radius: 50%;
  position: relative;
  background: rgba(255,0,102,0.08);
  transition: transform .3s ease, background .3s ease;
}
.lightbox-media .play b::before {
  content: "";
  position: absolute;
  top: 50%; left: 56%;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  border-left: 16px solid var(--magenta);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.lightbox-media .play:hover b { transform: scale(1.08); background: rgba(255,0,102,0.2); }

.lightbox-meta {
  flex: 0 0 340px;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}
.lightbox-meta h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}
.lightbox-meta .lb-cat {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--magenta);
}
.lightbox-meta p {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.lightbox-meta .lb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.lightbox-meta .lb-grid div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.lightbox-meta .lb-grid span {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 300;
  z-index: 5;
  transition: background .25s ease, border-color .25s ease;
}
.lightbox-close:hover { background: var(--magenta); border-color: var(--magenta); }

/* =====================================================
   Punchline — the silence before the work
   ===================================================== */
.punchline {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(140px, 22vw, 300px) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.punchline-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--fg-dim);
  text-wrap: balance;
}
.punchline-text b {
  display: inline-block;
  margin-top: 0.12em;
  font-weight: 900;
  color: var(--fg);
}
.punchline-text b::after {
  content: "";
  display: inline-block;
  width: 0.34em; height: 0.34em;
  margin-left: 0.18em;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 22px var(--magenta);
  vertical-align: middle;
}

/* =====================================================
   Experiencia — the site itself is the case
   ===================================================== */
.experiencia { border-top: 1px solid var(--line); }
.experiencia-head {
  max-width: 860px;
  margin-bottom: clamp(64px, 9vw, 120px);
}
.experiencia h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.experiencia h2 em {
  font-style: italic;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--fg);
}
.experiencia-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-dim);
  max-width: 520px;
}
/* ---- The formula ---- */
.xp-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(48px, 7vw, 96px);
}
.xp-term {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(28px, 4.4vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.xp-term.xp-result {
  font-weight: 900;
  font-style: italic;
  background: linear-gradient(90deg, var(--orange), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.xp-op {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 56px);
  color: var(--fg-mute);
}
.xp-journey-hint {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.xp-journey-hint span { color: var(--fg-mute); letter-spacing: 0.12em; }

/* ---- The journey timeline ---- */
.xp-journey { display: flex; flex-direction: column; gap: 40px; }
.xp-fase { display: flex; flex-direction: column; }
.xp-fase-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.xp-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(180px, 280px) 1fr 44px;
  align-items: center;
  gap: 24px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 26px 8px;
  cursor: none;
  color: inherit;
  transition: background .35s ease, padding-left .35s ease;
}
.xp-step::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.xp-step:hover { background: rgba(255,255,255,0.018); padding-left: 20px; }
.xp-step:hover::before { transform: scaleY(1); }
.xp-step-n {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--fg-mute);
  transition: color .35s ease, text-shadow .35s ease;
}
.xp-step:hover .xp-step-n { color: var(--accent); text-shadow: 0 0 20px var(--accent); }
.xp-step-main { display: flex; flex-direction: column; gap: 4px; }
.xp-step-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--fg);
}
.xp-step-sub {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-weight: 500;
}
.xp-step-teaser {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 460px;
}
.xp-step-go {
  justify-self: end;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  transition: background .35s ease, border-color .35s ease, transform .35s ease;
}
.xp-step-go::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  border-top: 1.5px solid var(--fg);
  border-right: 1.5px solid var(--fg);
  transform: translate(-60%, -50%) rotate(45deg);
}
.xp-step:hover .xp-step-go { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.xp-step:hover .xp-step-go::before { border-color: var(--bg); }

@media (max-width: 860px) {
  .xp-step {
    grid-template-columns: 40px 1fr 32px;
    gap: 14px;
    align-items: start;
  }
  .xp-step-teaser { display: none; }
  .xp-step-go { width: 30px; height: 30px; align-self: center; }
}

/* ---- Experience lightbox ---- */
.xp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 64px var(--gutter);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity .35s ease;
}
.xp-lightbox.is-open { display: flex; opacity: 1; }
.xp-lightbox-inner {
  width: min(1080px, 100%);
  max-height: 86vh;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  position: relative;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}
.xp-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--bg-elev-2);
}
.xp-media-tag {
  position: absolute;
  left: 20px; bottom: 18px;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,242,242,0.55);
  z-index: 3;
}
.xp-phase-badge {
  position: absolute;
  right: 18px; top: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(242,242,242,0.7);
  z-index: 3;
}
.xp-meta {
  padding: 44px 42px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}
.xp-eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.xp-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.xp-subtitle {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 18px;
  color: var(--fg-dim);
  margin: -6px 0 6px;
}
.xp-sections { display: flex; flex-direction: column; gap: 18px; }
.xp-block { display: flex; flex-direction: column; gap: 6px; }
.xp-block-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: flex; align-items: center; gap: 9px;
}
.xp-block-label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.xp-block-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-dim);
  margin: 0;
}
/* Hidden message — UV-style reveal */
.xp-hidden {
  margin-top: 8px;
  padding: 16px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  cursor: none;
}
.xp-hidden-label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  transition: opacity .3s ease;
}
.xp-hidden-text {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(16px, 1.8vw, 22px);
  letter-spacing: -0.01em;
  color: var(--purple);
  filter: blur(7px);
  opacity: 0.25;
  transition: filter .4s ease, opacity .4s ease, color .4s ease, text-shadow .4s ease;
}
.xp-hidden:hover .xp-hidden-label { opacity: 0; }
.xp-hidden:hover .xp-hidden-text {
  filter: blur(0);
  opacity: 1;
  color: var(--cyan);
  text-shadow: 0 0 18px color-mix(in srgb, var(--cyan) 55%, transparent);
}
.xp-navbar {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.xp-nav-btn {
  background: transparent;
  border: 0;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  cursor: none;
  transition: color .25s ease;
}
.xp-nav-btn:hover { color: var(--fg); }
.xp-nav-btn:disabled { opacity: 0.3; pointer-events: none; }
.xp-progress {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-mute);
  text-align: center;
  flex: 1;
}

/* ---- Mood panels (abstract, CSS only) ---- */
.xp-mood { position: absolute; inset: 0; }
.xp-mood::before, .xp-mood::after { content: ""; position: absolute; }
/* Box — orange cylinder, 5 compartments */
.xp-mood-box {
  background:
    repeating-linear-gradient(90deg, transparent 0 19%, rgba(7,7,7,0.5) 19% 20%),
    radial-gradient(circle at 50% 45%, rgba(255,102,0,0.55), rgba(255,102,0,0.12) 45%, transparent 70%),
    linear-gradient(160deg, #2a1405, #0a0603);
}
.xp-mood-box::after {
  inset: 26% 14%;
  border-radius: 14px;
  border: 1px solid rgba(255,102,0,0.5);
  box-shadow: 0 0 50px rgba(255,102,0,0.35) inset;
}
/* Inicio — cozy warm room */
.xp-mood-inicio {
  background:
    radial-gradient(circle at 72% 30%, rgba(255,204,0,0.28), transparent 45%),
    linear-gradient(165deg, #241c0a 0%, #12100c 60%, #0a0a0a 100%);
}
.xp-mood-inicio::before {
  inset: 30% 20% 24% 18%;
  background: linear-gradient(135deg, rgba(255,204,0,0.16), transparent 60%);
  border-radius: 8px;
  border: 1px solid rgba(255,204,0,0.18);
}
/* Caos — grey noisy city */
.xp-mood-caos {
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.4) 0 3px, transparent 3px 7px),
    linear-gradient(180deg, #1a1a1c, #0d0d0e);
}
.xp-mood-caos::before {
  width: 60px; height: 60px; border-radius: 50%;
  left: 26%; top: 38%;
  background: var(--magenta);
  filter: blur(28px); opacity: 0.5;
}
.xp-mood-caos::after {
  width: 50px; height: 50px; border-radius: 50%;
  right: 24%; bottom: 30%;
  background: var(--cyan);
  filter: blur(26px); opacity: 0.45;
}
/* Mente — neural field */
.xp-mood-mente {
  background:
    radial-gradient(circle at 22% 30%, rgba(102,0,204,0.5), transparent 12%),
    radial-gradient(circle at 70% 22%, rgba(0,255,255,0.4), transparent 10%),
    radial-gradient(circle at 80% 64%, rgba(102,0,204,0.45), transparent 12%),
    radial-gradient(circle at 38% 74%, rgba(0,255,255,0.32), transparent 10%),
    radial-gradient(circle at 50% 50%, rgba(102,0,204,0.25), transparent 55%),
    linear-gradient(180deg, #0a0614, #060509);
}
.xp-mood-mente::after {
  inset: 58% 18% 16%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,255,255,0.22), transparent 70%);
  filter: blur(6px);
}
/* Demás — floating puzzle pieces */
.xp-mood-demas {
  background: linear-gradient(180deg, #0a0a12, #070707);
}
.xp-mood-demas::before {
  inset: 40% 30% 16% 30%;
  background: rgba(255,204,0,0.16);
  border: 1.5px solid rgba(255,204,0,0.6);
  border-radius: 10px;
  box-shadow: -120px -40px 0 -8px rgba(0,255,255,0.18), 120px -60px 0 -10px rgba(255,0,102,0.18);
}
.xp-mood-demas::after {
  width: 2px; height: 30%;
  left: 50%; bottom: 16%;
  background: linear-gradient(transparent, rgba(255,204,0,0.5));
}
/* Salón — white etéreo */
.xp-mood-salon {
  background:
    radial-gradient(circle at 30% 40%, rgba(255,0,102,0.10), transparent 40%),
    radial-gradient(circle at 72% 64%, rgba(0,255,255,0.10), transparent 40%),
    linear-gradient(180deg, #f4f1ec, #d9d4cb);
}
.xp-mood-salon::before {
  inset: 0;
  background: repeating-linear-gradient(100deg, transparent 0 40px, rgba(255,102,0,0.05) 40px 41px);
}
/* Momento — sunglasses + QR */
.xp-mood-momento {
  background: linear-gradient(160deg, #14060c, #080608);
}
.xp-mood-momento::before {
  width: 70px; height: 70px;
  left: 30%; top: 40%;
  border-radius: 50%;
  border: 3px solid var(--magenta);
  box-shadow: 92px 0 0 -3px transparent, 0 0 40px rgba(255,0,102,0.4);
  background: rgba(255,0,102,0.12);
}
.xp-mood-momento::after {
  width: 70px; height: 70px;
  right: 24%; top: 40%;
  border-radius: 50%;
  border: 3px solid var(--magenta);
  background: rgba(255,0,102,0.12);
  box-shadow: 0 0 40px rgba(255,0,102,0.4);
}

@media (max-width: 860px) {
  .xp-lightbox-inner { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .xp-media { min-height: 240px; }
  .xp-meta { padding: 32px 26px; }
}

/* =====================================================
   Impacto / Data Viz
   ===================================================== */

/* =====================================================
   Impacto / Data Viz
   ===================================================== */
.impacto { border-top: 1px solid var(--line); }
.impacto-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.impacto h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
}
.impacto h2 b { color: var(--cyan); font-style: italic; font-weight: 900; }
.impacto-blurb {
  color: var(--fg-dim);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.kpi b {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 8px;
}
.kpi:nth-child(1) b { color: var(--magenta); }
.kpi:nth-child(2) b { color: var(--cyan); }
.kpi:nth-child(3) b { color: var(--yellow); }
.kpi span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.chart-wrap {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  aspect-ratio: 1;
  max-width: 480px;
  justify-self: end;
}
.chart-wrap .chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.chart-wrap .chart-head b { color: var(--fg); font-weight: 600; }
#doughnut-wrap { position: relative; width: 100%; aspect-ratio: 1; max-height: 320px; margin-top: 12px; }
.chart-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-family: var(--font-display);
}
.chart-center b {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}
.chart-center span {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-top: 6px;
}
.legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 20px;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}
.legend div { display: flex; align-items: center; gap: 8px; }
.legend i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
  display: inline-block;
}
.legend b {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg);
  margin-left: auto;
}

/* =====================================================
   Zona UV — always dark, ignores theme
   ===================================================== */
.uv {
  position: relative;
  border-top: 1px solid var(--line);
  background: #050505;
  color: #f2f2f2;
  overflow: hidden;
}
.uv .eyebrow { color: rgba(242,242,242,0.4); }
.uv .eyebrow::before { background: rgba(242,242,242,0.4); }
.uv-inner {
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  min-height: 720px;
}
.uv .eyebrow .num { color: var(--purple); }
.uv-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(140px, 22vw, 360px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin: 40px 0 0;
  color: rgba(242, 242, 242, 0.04);
  text-align: center;
  user-select: none;
  text-wrap: balance;
}
.uv-words {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.uv-word {
  position: absolute;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  opacity: 0;
  transition: opacity .25s ease;
  white-space: nowrap;
  font-weight: 500;
}
.uv-word.shown {
  text-shadow: 0 0 18px currentColor;
}
.uv-tag {
  position: absolute;
  bottom: 60px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.uv-tag b { color: var(--purple); font-weight: 700; }

#uv-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(102, 0, 204, 0.22) 0%,
    rgba(102, 0, 204, 0.08) 12%,
    transparent 28%);
}

/* =====================================================
   Contact + Footer
   ===================================================== */
.contact { border-top: 1px solid var(--line); }
.contact-inner {
  text-align: left;
}
.contact h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(72px, 14vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin: 0;
  text-wrap: balance;
}
.contact h2 em {
  font-style: italic;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--fg);
}
.contact h2 .q {
  display: inline-block;
  color: var(--magenta);
}
.contact-tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 24px 0 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 60px;
  margin-top: 64px;
}
.contact-meta {
  max-width: 380px;
  color: var(--fg-dim);
  line-height: 1.7;
  font-size: 14px;
  padding-top: 8px;
}
.contact-meta a { color: var(--fg); border-bottom: 1px solid var(--magenta); padding-bottom: 2px; }

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.contact-form label,
.contact-form .field-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 300;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 2px;
  transition: border-color .3s ease;
  resize: none;
  width: 100%;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--fg-mute); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--magenta);
}
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  position: relative;
  display: inline-flex;
}
.chip input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  pointer-events: none;
}
.chip span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--fg-dim);
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.chip:hover span { color: var(--fg); }
.chip input:checked + span {
  color: #fff;
  border-color: var(--magenta);
  background: var(--magenta);
}
.chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.contact-form .cta-big { align-self: flex-start; margin-top: 6px; }
.form-done {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-done::before {
  content: "";
  flex: 0 0 auto;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 14px var(--magenta);
}

.cta-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  padding: 26px 44px;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 0 0 rgba(255,0,102,0);
}
.cta-big::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px #fff;
}
.cta-big::after {
  content: "";
  width: 28px; height: 1px;
  background: #fff;
  transition: width .35s ease;
}
.cta-big:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px rgba(255,0,102,0.45);
}
.cta-big:hover::after { width: 44px; }

.footer {
  border-top: 1px solid var(--line);
  padding: 48px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 32px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.footer .ftr-mid { text-align: center; }
.footer .ftr-right { text-align: right; }
.footer b { color: var(--fg); font-weight: 500; }

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 960px) {
  .nav { display: none; }
  .manifiesto-grid,
  .metodo-head,
  .impacto-grid,
  .contact-row { grid-template-columns: 1fr; gap: 32px; }
  .manifiesto-graphic { display: none; }
  .step { grid-template-columns: 60px 1fr 40px; gap: 16px; }
  .step-tag, .step-desc { display: none; }
  .card.span-6, .card.span-7, .card.span-8 { grid-column: span 12; min-height: 280px; }
  .card.span-4, .card.span-5 { grid-column: span 12; }
  .webcard { grid-column: span 12; }
  .hero-footer { grid-template-columns: 1fr; }
  .scroll-cue, .hero-hint { display: none; }
  .lightbox-inner { flex-direction: column; max-height: 92vh; overflow-y: auto; }
  .lightbox-media { min-width: 0; width: 100%; }
  .lightbox-media .lb-image,
  .lightbox-media .lb-video { max-width: 100%; max-height: 60vh; }
  .lightbox-media.is-viz { width: 100%; max-width: 100%; min-height: 320px; }
  .lightbox-meta { flex: 1 1 auto; }
}
