/* ============================================================
   SmartPulse · Corporate Web
   System: light-first editorial; deep violet primary; brand
   violet accent (sampled from logo). Magenta usage ≤10% surface.
   Type: Inter Tight (display), Inter (body), JetBrains Mono (numeric).
   ============================================================ */

:root {
  --primary:       #2E1A47;
  --primary-deep:  #14082B;
  --primary-soft:  #3F2A5C;
  --accent:        #6A00FA;  /* sampled from emblem */
  --accent-deep:   #4A00BA;
  --accent-soft:   #F1E8FF;
  --ink:           #1A1224;
  --ink-soft:      #5B4F6E;
  --surface:       #FFFFFF;
  --surface-alt:   #F7F4FA;
  --divider:       #E4DCEC;
  --ease:          cubic-bezier(.16,1,.3,1);
  --maxw:          1280px;
  --pad:           clamp(20px, 4vw, 56px);
  --radius:        18px;
  --t-fast:        180ms;
  --t-mid:         320ms;
  --t-slow:        600ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px var(--pad);
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid) var(--ease), background var(--t-mid) var(--ease);
}
.nav.is-scrolled {
  border-color: var(--divider);
  background: rgba(255,255,255,.92);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 19px;
}
.nav__mark {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
}
.nav__mark img { width: 100%; height: 100%; object-fit: contain; }
.nav__wordmark span { font-weight: 500; }
.nav__wordmark strong { font-weight: 700; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--ink);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav__links a:hover { background: var(--surface-alt); color: var(--accent); }
.nav__cta { margin-left: 4px; white-space: nowrap; }

@media (max-width: 880px) {
  .nav__links { display: none; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-mid) var(--ease), background-position 600ms var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  will-change: transform, background-position;
}
.btn--primary {
  color: #fff;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-deep) 60%, var(--accent) 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  box-shadow: 0 6px 20px rgba(106,0,250,.25);
}
.btn--primary:hover { background-position: 100% 50%; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(106,0,250,.35); }
.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* On dark backgrounds */
.hero .btn--ghost,
.section--contact .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.hero .btn--ghost:hover,
.section--contact .btn--ghost:hover { background: #fff; color: var(--primary-deep); }

/* ============================================================
   GENERIC SECTION / HEADINGS
   ============================================================ */
.section { padding: clamp(80px, 12vw, 140px) 0; }
.section__head { max-width: 920px; margin-bottom: clamp(48px, 7vw, 88px); }
.section__head--row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
  max-width: 100%;
}
.section__head--row .section__title { margin-bottom: 0; }
@media (max-width: 880px) { .section__head--row { grid-template-columns: 1fr; } }

.section__title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 16px 0 0;
  text-wrap: balance;
}
.section__title em { font-style: normal; color: var(--accent); }
.section__title--light { color: #fff; }
.section__title--light em { color: #fff; opacity: .58; }

.section__lead {
  color: var(--ink-soft);
  max-width: 44ch;
  font-size: 17px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(106,0,250,.12);
}
.eyebrow__mono { letter-spacing: 0.04em; }
.eyebrow--light { color: rgba(255,255,255,.7); }
.eyebrow--light .eyebrow__dot { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.14); }

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 600;
  padding-bottom: 2px;
}
.link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease);
}
.link:hover { color: var(--accent); }
.link:hover::after { transform: scaleX(1); }
.link span { transition: transform 240ms var(--ease); display: inline-block; }
.link:hover span { transform: translateX(4px); }

/* ============================================================
   REVEAL / STAGGER (motion utilities)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

[data-stagger] .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
[data-stagger].is-in .w { opacity: 1; transform: translateY(0); }
[data-stagger].is-in .w:nth-child(1) { transition-delay: 0ms; }
[data-stagger].is-in .w:nth-child(2) { transition-delay: 80ms; }
[data-stagger].is-in .w:nth-child(3) { transition-delay: 160ms; }
[data-stagger].is-in .w:nth-child(4) { transition-delay: 240ms; }

/* ============================================================
   01 · HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  background: var(--primary-deep);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(80px, 12vw, 140px) 0 80px;
  display: flex;
  align-items: center;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.hero__aurora {
  position: absolute;
  inset: -10%;
  z-index: 0;
  filter: blur(60px) saturate(1.1);
  opacity: .85;
  pointer-events: none;
  will-change: transform;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: aurora 22s ease-in-out infinite alternate;
}
.hero__blob--a {
  width: 60vw; height: 60vw;
  left: -10vw; top: -20vw;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 60%);
}
.hero__blob--b {
  width: 50vw; height: 50vw;
  right: -8vw; top: 10vw;
  background: radial-gradient(circle at 60% 40%, #B27CFF, transparent 60%);
  animation-delay: -7s;
}
.hero__blob--c {
  width: 44vw; height: 44vw;
  left: 30vw; bottom: -20vw;
  background: radial-gradient(circle at 50% 50%, var(--accent-deep), transparent 60%);
  animation-delay: -14s;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0)  scale(1); }
  50%  { transform: translate3d(4vw,-2vw,0) scale(1.08); }
  100% { transform: translate3d(-3vw,3vw,0) scale(.96); }
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 60%, #000 30%, transparent 75%);
}

.hero__title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 9vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 28px 0 28px;
  text-wrap: balance;
  max-width: 15ch;
}
.hero__title .w { margin-right: 0.18em; }
.hero__accent { color: var(--accent); position: relative; }
.hero__accent::after {
  content: '';
  position: absolute;
  left: 0; right: .14em; bottom: .08em;
  height: .08em;
  background: var(--accent);
  opacity: .35;
}
.hero__sub {
  max-width: 56ch;
  font-size: clamp(17px, 1.4vw, 21px);
  color: rgba(255,255,255,.78);
  margin: 0 0 36px;
  line-height: 1.55;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  gap: 32px;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 24px;
  max-width: 760px;
}
.hero__metaItem { display: flex; flex-direction: column; gap: 4px; }
.hero__metaItem .mono {
  font-size: clamp(22px, 2.2vw, 30px);
  color: #fff;
  letter-spacing: -0.04em;
}
.hero__metaItem span:last-child {
  color: rgba(255,255,255,.62);
  font-size: 13.5px;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__meta .hero__metaItem:last-child { grid-column: 1 / -1; }
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
}
.hero__scrollLine {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scrollLine::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ============================================================
   02 · PROBLEMA
   ============================================================ */
.section--problem { background: var(--surface); }
.stat {
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  gap: 56px;
  align-items: center;
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.stat__numWrap {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: clamp(120px, 18vw, 260px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--accent);
  display: flex;
  align-items: flex-end;
  font-variant-numeric: tabular-nums;
}
.stat__unit { font-size: 0.45em; color: var(--ink); font-weight: 600; margin-left: 8px; line-height: 1.4; }
.stat__caption { font-size: clamp(18px, 1.6vw, 24px); color: var(--ink); max-width: 32ch; line-height: 1.4; }
@media (max-width: 880px) { .stat { grid-template-columns: 1fr; gap: 24px; } }

.causes {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cause {
  position: relative;
  padding: 32px 28px 28px;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.cause::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease);
  border-radius: 0 0 var(--radius) var(--radius);
}
.cause:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(46,26,71,.08);
  border-color: transparent;
}
.cause:hover::after { transform: scaleX(1); }
.cause__idx {
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.cause h3 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 21px;
  font-weight: 600;
  margin: 14px 0 10px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.cause p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }
@media (max-width: 880px) { .causes { grid-template-columns: 1fr; } }

/* ============================================================
   03 · T3D · STICKY SCROLL
   ============================================================ */
.section--t3d { background: var(--surface-alt); position: relative; }
.pull {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 36px 0 0;
  padding-left: 28px;
  border-left: 2px solid var(--accent);
  max-width: 60ch;
  text-wrap: balance;
}

.t3d {
  position: relative;
  /* Total stage = 3 pillars × ~85vh of scroll, plus a tail */
  height: 280vh;
}
.t3d__sticky {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  display: flex;
  align-items: center;
}
.t3d__grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  width: 100%;
}
.t3d__rail {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}
.t3d__rail .mono {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.t3d__progress {
  position: relative;
  width: 2px;
  height: 240px;
  background: var(--divider);
  border-radius: 2px;
  margin: 16px 0 8px;
}
.t3d__progressFill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 2px;
  transition: height 220ms linear;
}
.t3d__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.t3d__nav li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  transition: color 240ms var(--ease);
}
.t3d__nav li .mono { font-size: 11px; color: var(--ink-soft); }
.t3d__nav li.is-active { color: var(--ink); }
.t3d__nav li.is-active .mono { color: var(--accent); }

.t3d__stage {
  position: relative;
  min-height: 460px;
}
.pillar {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  pointer-events: none;
}
.pillar.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.pillar__visual {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--divider);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 32px;
}
.pillar__svg { width: 100%; height: auto; }
.pillar__body { max-width: 56ch; }
.pillar__tag { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.pillar__body h3 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 10px 0 16px;
}
.pillar__body p { color: var(--ink-soft); margin: 0 0 20px; font-size: 17px; }
.pillar__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15.5px;
}
.pillar__bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
}
.pillar__bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 12px; height: 2px;
  background: var(--accent);
}

@media (max-width: 980px) {
  .t3d { height: auto; }
  .t3d__sticky { position: static; height: auto; padding: 40px 0 0; display: block; }
  .t3d__grid { grid-template-columns: 1fr; }
  .t3d__rail { flex-direction: row; align-items: center; gap: 16px; }
  .t3d__progress { display: none; }
  .t3d__nav { flex-direction: row; gap: 18px; flex-wrap: wrap; }
  .t3d__stage { position: static; min-height: 0; }
  .pillar { position: relative; inset: auto; opacity: 1; transform: none; pointer-events: auto; padding: 32px 0; border-top: 1px solid var(--divider); grid-template-columns: 1fr; }
}

/* Differentiators */
.differentiators { padding-top: clamp(60px, 9vw, 120px); }
.diff__title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  max-width: 40ch;
}
.diff__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.diff .mono { color: var(--accent); font-size: 12.5px; letter-spacing: 0.08em; }
.diff h4 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.diff p { color: var(--ink-soft); margin: 0; font-size: 15px; line-height: 1.5; }
.diff { padding-top: 20px; border-top: 1px solid var(--divider); }
@media (max-width: 880px) { .diff__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .diff__grid { grid-template-columns: 1fr; } }

/* ============================================================
   04 · PRODUCTOS
   ============================================================ */
.section--products { background: var(--surface); }
.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
}
.product {
  position: relative;
  background: var(--surface);
  padding: 32px 26px 100px;
  min-height: 340px;
  cursor: pointer;
  overflow: hidden;
  transition: background var(--t-mid) var(--ease);
}
.product__mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 28px;
  transition: transform var(--t-mid) var(--ease), background var(--t-mid) var(--ease);
}
.product h3 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.product__tag { color: var(--ink-soft); font-size: 14.5px; margin: 0; line-height: 1.45; transition: opacity 240ms var(--ease); }
.product__hover {
  position: absolute;
  left: 26px; right: 26px; bottom: 26px;
  transform: translateY(20px);
  opacity: 0;
  padding-top: 28px;
  background: linear-gradient(to bottom, transparent 0%, var(--surface-alt) 32%, var(--surface-alt) 100%);
  transition: transform 240ms var(--ease), opacity 240ms var(--ease);
}
.product__hover ul {
  list-style: none;
  padding: 0; margin: 0 0 14px;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13.5px;
  color: var(--ink);
}
.product__hover ul li { position: relative; padding-left: 14px; }
.product__hover ul li::before {
  content: '';
  position: absolute; left: 0; top: .55em;
  width: 8px; height: 1px; background: var(--accent);
}
.product:hover { background: var(--surface-alt); }
.product:hover .product__tag { opacity: 0; }
.product:hover .product__mark { background: var(--accent); color: #fff; transform: scale(1.05); }
.product:hover .product__hover { transform: translateY(0); opacity: 1; }
@media (max-width: 1100px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }

/* ============================================================
   05 · CASO ANCLA
   ============================================================ */
.section--case { background: var(--surface-alt); }
.case {
  margin: 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.case__img {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 5/4;
  background: var(--primary-deep);
  isolation: isolate;
}
.case__imgInner {
  position: absolute;
  inset: -8%;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 18px, transparent 18px 36px),
    radial-gradient(circle at 30% 30%, rgba(106,0,250,.55), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(178,124,255,.45), transparent 60%),
    var(--primary-deep);
  display: grid;
  place-items: center;
  transition: transform 800ms var(--ease);
  will-change: transform;
}
.case__pholder {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.case__kicker { font-size: 12.5px; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; }
.case__h {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 12px 0 18px;
}
.case__body p { color: var(--ink-soft); margin: 0 0 28px; max-width: 50ch; }
.case__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 28px;
  padding: 20px 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.case__metrics > div { display: flex; flex-direction: column; gap: 4px; }
.case__metrics .mono {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--ink);
  letter-spacing: -0.03em;
}
.case__metrics small { font-size: 12.5px; color: var(--ink-soft); }
@media (max-width: 980px) { .case { grid-template-columns: 1fr; } }

/* ============================================================
   06 · RECURSOS HUB
   ============================================================ */
.section--resources { background: var(--surface); }
.hangar { display: flex; flex-direction: column; gap: 20px; }

[data-hangar]:hover .rcard:not(:hover) {
  filter: saturate(0.6);
  opacity: 0.85;
}

.rcard {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  height: 320px;
  background: var(--primary-deep);
  color: #fff;
  isolation: isolate;
  transition: height 320ms var(--ease), filter 320ms var(--ease), opacity 320ms var(--ease), box-shadow 320ms var(--ease);
}
.rcard:hover {
  height: 344px;
  box-shadow: 0 18px 50px rgba(20,8,43,.35);
}
.rcard__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.85;
  transition: opacity 320ms var(--ease), transform 600ms var(--ease);
  color: rgba(255,255,255,.5);
}
.rcard__bg svg { width: 100%; height: 100%; display: block; }
.rcard:hover .rcard__bg { opacity: 1; transform: scale(1.04); }

/* TechInsights – animated network */
.rcard__bg--ti {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(106,0,250,.45), transparent 60%),
    linear-gradient(120deg, #14082B 0%, #2E1A47 100%);
}
.ti-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: tiDraw 8s linear infinite;
}
.ti-line--b { animation-delay: 1.2s; }
.ti-line--c { animation-delay: 2.6s; stroke-dasharray: 320; stroke-dashoffset: 320; }
@keyframes tiDraw {
  0%   { stroke-dashoffset: 600; opacity: 0; }
  20%  { opacity: 1; }
  70%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -600; opacity: 0; }
}
.ti-net circle { opacity: 0; animation: tiDot 8s ease-in-out infinite; }
.ti-net circle:nth-child(1) { animation-delay: .2s; }
.ti-net circle:nth-child(2) { animation-delay: .8s; }
.ti-net circle:nth-child(3) { animation-delay: 1.4s; }
.ti-net circle:nth-child(4) { animation-delay: 2.0s; }
.ti-net circle:nth-child(5) { animation-delay: 2.6s; }
.ti-net circle:nth-child(6) { animation-delay: 3.2s; }
.ti-net circle:nth-child(7) { animation-delay: 3.8s; }
.ti-net circle:nth-child(8) { animation-delay: 4.4s; }
@keyframes tiDot { 0%, 100% { opacity: 0; } 30%, 80% { opacity: 1; } }

/* DMI – radar */
.rcard__bg--dmi {
  background:
    radial-gradient(circle at 30% 60%, rgba(106,0,250,.35), transparent 65%),
    linear-gradient(160deg, #14082B 0%, #2E1A47 100%);
  color: rgba(255,255,255,.5);
}
.dmi-shape {
  transform-origin: 0 0;
  animation: dmiPulse 5s ease-in-out infinite;
}
.dmi-dots circle { animation: dmiPulse 5s ease-in-out infinite; }
@keyframes dmiPulse {
  0%, 100% { transform: scale(.86); }
  50%      { transform: scale(1.0); }
}

/* Hackaton – sequential stations */
.rcard__bg--hp {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(106,0,250,.45), transparent 55%),
    linear-gradient(120deg, #14082B 0%, #2E1A47 60%, #14082B 100%);
}
.hp-stations {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 80px 32px 32px;
  align-items: end;
}
.hp-st {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 14px 14px 16px;
  height: 60%;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.65);
  animation: hpLight 5s ease-in-out infinite;
}
.hp-st i { font-style: normal; font-size: 10px; letter-spacing: 0.16em; opacity: .7; }
.hp-st b { font-family: 'Inter Tight', sans-serif; font-weight: 600; letter-spacing: -0.01em; font-size: 14px; }
.hp-st:nth-child(1) { animation-delay: 0s;   height: 50%; }
.hp-st:nth-child(2) { animation-delay: .4s;  height: 62%; }
.hp-st:nth-child(3) { animation-delay: .8s;  height: 76%; }
.hp-st:nth-child(4) { animation-delay: 1.2s; height: 64%; }
.hp-st:nth-child(5) { animation-delay: 1.6s; height: 86%; }
@keyframes hpLight {
  0%, 60%, 100% { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.65); }
  20%, 40%      { background: rgba(106,0,250,.35); border-color: var(--accent); color: #fff; box-shadow: 0 0 32px rgba(106,0,250,.5); }
}

.rcard__body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: 40px clamp(28px, 4vw, 56px);
  height: 100%;
  background: linear-gradient(90deg, rgba(20,8,43,.78) 0%, rgba(20,8,43,.45) 55%, rgba(20,8,43,.15) 100%);
}
.rcard__num { font-size: 12px; letter-spacing: 0.18em; opacity: .55; align-self: start; padding-top: 4px; }
.rcard__copy { max-width: 56ch; }
.rcard__copy h3 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.025em;
  margin: 0 0 4px;
  line-height: 1.1;
}
.rcard__sub { color: var(--accent); font-weight: 500; margin: 0 0 8px; font-size: 15px; }
.rcard__desc {
  color: rgba(255,255,255,.72);
  font-size: 15px;
  margin: 0;
  max-width: 56ch;
  line-height: 1.5;
}
.rcard__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  align-self: center;
  transition: background var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.rcard__cta svg { transition: transform var(--t-mid) var(--ease); }
.rcard:hover .rcard__cta { background: var(--accent); border-color: var(--accent); }
.rcard:hover .rcard__cta svg { transform: translateX(6px); }

.rcard__bullets {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  padding: 0 clamp(28px, 4vw, 56px) 20px clamp(94px, 7vw, 122px);
  list-style: none;
  margin: 0;
  display: flex;
  gap: 28px;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 320ms var(--ease), opacity 320ms var(--ease);
  font-size: 13px;
  color: rgba(255,255,255,.82);
  flex-wrap: wrap;
}
.rcard__bullets li {
  position: relative;
  padding-left: 14px;
}
.rcard__bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 1px;
  background: var(--accent);
}
.rcard:hover .rcard__bullets { transform: translateY(0); opacity: 1; }

@media (max-width: 880px) {
  .rcard { height: 280px; }
  .rcard:hover { height: 300px; }
  .rcard__body { grid-template-columns: 1fr; gap: 12px; padding: 28px; }
  .rcard__cta { align-self: start; }
  .rcard__num { display: none; }
  .rcard__bullets { display: none; }
  .rcard__desc { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ============================================================
   07 · RECONOCIMIENTOS
   ============================================================ */
.section--awards { background: var(--surface-alt); }
.awards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 72px;
}
.award {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.award:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(46,26,71,.08); }
.award:hover .award__crest { color: var(--accent); }
.award__crest {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--ink-soft);
  transition: color var(--t-mid) var(--ease);
}
.award__tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.award h3 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 6px 0 8px;
  line-height: 1.25;
}
.award p { color: var(--ink-soft); margin: 0; font-size: 14.5px; line-height: 1.55; }
@media (max-width: 760px) { .awards { grid-template-columns: 1fr; } }

.marquee {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 60px;
  animation: marquee 50s linear infinite;
  will-change: transform;
  padding-right: 60px;
  white-space: nowrap;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: 'Inter Tight', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  opacity: .55;
  transition: opacity var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}
.marquee__track span:hover { opacity: 1; color: var(--accent); }

.marquee__logo {
  height: 38px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease);
}
.marquee__logo:hover { filter: grayscale(0); opacity: 1; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   08 · CONTACTO
   ============================================================ */
.section--contact {
  background: var(--primary-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section--contact::before {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(106,0,250,.25), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(178,124,255,.18), transparent 50%);
  filter: blur(60px);
  pointer-events: none;
}
.contact {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.contact__left .section__title { margin-bottom: 24px; }
.contact__lead { color: rgba(255,255,255,.7); max-width: 50ch; margin: 0 0 40px; }
.team { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.team__m {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  transition: background var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.team__m:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.24); }
.team__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.team__m strong { display: block; font-family: 'Inter Tight', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.team__m span { font-size: 13px; color: rgba(255,255,255,.6); }

/* Form */
.form {
  display: grid;
  gap: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(10px);
}
.field {
  position: relative;
  padding-top: 20px;
  padding-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: #fff;
  background: transparent;
  border: none;
  outline: none;
  padding: 6px 0;
  font-size: 16px;
  resize: vertical;
}
.field textarea { font-family: inherit; }
.field label {
  position: absolute;
  left: 0;
  top: 24px;
  font-size: 16px;
  color: rgba(255,255,255,.55);
  pointer-events: none;
  transition: transform 240ms var(--ease), color 240ms var(--ease), font-size 240ms var(--ease);
  transform-origin: left top;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field input:valid:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-22px) scale(0.78);
  color: var(--accent);
}
/* Trigger floating labels with empty placeholder */
.field input, .field textarea { /* required for :placeholder-shown */ }
.field__line {
  display: block;
  position: relative;
  height: 1px;
  background: rgba(255,255,255,.2);
  margin-top: 4px;
}
.field__line::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease);
}
.field input:focus ~ .field__line::after,
.field textarea:focus ~ .field__line::after { transform: scaleX(1); }
.field--ta { padding-bottom: 12px; }
.form__submit { justify-self: start; margin-top: 18px; position: relative; }
.form__check {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  transition: opacity 220ms var(--ease);
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
}
.form__submit.is-success .form__btnLabel { opacity: 0; }
.form__submit.is-success .form__check {
  opacity: 1;
  animation: drawCheck 600ms var(--ease) forwards;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }

/* Placeholder requirement for floating label trick */
.field input, .field textarea { /* placeholder space */ }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 64px 0 48px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.footer__brand p { color: rgba(255,255,255,.5); font-size: 13px; margin: 16px 0 0; max-width: 30ch; }
.footer__brand .nav__mark { width: 36px; height: 36px; }
.footer__h { display: block; color: rgba(255,255,255,.45); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px; }
.footer a {
  display: block;
  padding: 4px 0;
  font-size: 14.5px;
  color: rgba(255,255,255,.85);
  transition: color var(--t-fast) var(--ease);
}
.footer a:hover { color: var(--accent); }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* Funding logos band (EU NextGenerationEU · Gobierno · ENISA · Plan R/T/R) */
.funding {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.funding__label {
  display: block;
  color: rgba(255,255,255,.45);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.funding__card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.funding__img {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
}
@media (max-width: 720px) {
  .funding__card { padding: 16px 18px; border-radius: 12px; }
}

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

/* Make placeholder-shown trick work — inputs need a placeholder */
.field input, .field textarea { /* :placeholder-shown depends on a placeholder; we set empty " " via JS or directly */ }
