/* =========================================================
   TALOS LANDING — Stylesheet (rebuilt)
   Paleta corporativa: navy #003C70, taronja #FF4E00
   Tipografia: Inter (principal), Instrument Serif (editorial)
   ========================================================= */

:root {
  --navy: #003C70;
  --navy-2: #00294d;
  --navy-3: #001a33;
  --orange: #FF4E00;
  --orange-2: #ff6a2b;
  --bg: #ffffff;
  --bg-muted: #eef2f6;
  --bg-soft: #f5f7fb;
  --fg: #0f1420;
  --fg-soft: #2a3142;
  --muted-fg: #5b6576;
  --line: rgba(0, 60, 112, 0.12);
  --line-strong: rgba(0, 60, 112, 0.25);
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --shadow-s: 0 2px 8px rgba(0, 41, 77, 0.06);
  --shadow-m: 0 8px 28px rgba(0, 41, 77, 0.08);
  --shadow-l: 0 24px 60px rgba(0, 41, 77, 0.14);
  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* `overflow-x: clip` doesn't create a scroll container (unlike `hidden`),
   which keeps IntersectionObserver working with root=null (the iframe viewport). */
html { overflow-x: clip; }
body { overflow-x: clip; }

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

h1, h2, h3, h4 { color: var(--navy); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.04; }
h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.25; }
p { margin: 0; color: var(--fg-soft); }

.accent { color: var(--orange); }
.eyebrow {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--orange);
}
/* Sentence-case variant — used where uppercase feels too shouty */
.eyebrow--sentence {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--orange);
}

.container-wide {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}

.section {
  position: relative;
  /* Sistema de espacios: 96-120 desktop / 64-80 mobile */
  padding: clamp(64px, 9vw, 120px) 0;
}
.section.bg-muted { background: var(--bg-muted); }
#sectores {
  background: #efefef;
  padding-bottom: clamp(32px, 4vw, 56px);
}
#sectores .container-wide > p:last-child {
  margin-top: 28px !important;
  margin-bottom: 0;
}

.section-head {
  max-width: 780px;
  /* Gap interno sección: 48-64 desktop / 32-40 mobile */
  margin: 0 auto clamp(32px, 5vw, 64px);
  text-align: center;
}
.section-head .eyebrow { display: inline-block; margin-bottom: 12px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--muted-fg); font-size: 18px; }

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  /* Aire mínim 24px alrededor del logo (64px alto) */
  padding: 16px 0;
  /* Glass effect — sempre actiu, més intens en scroll */
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease), border-color 0.3s var(--ease), padding 0.28s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(1.8) blur(22px);
  -webkit-backdrop-filter: saturate(1.8) blur(22px);
  border-bottom-color: rgba(0, 60, 112, 0.08);
  box-shadow: 0 1px 0 rgba(0, 60, 112, 0.06), 0 8px 24px -12px rgba(0, 60, 112, 0.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; min-width: 150px; }
.nav-logo img { height: 64px; }
.nav-logo .talos-logo-img {
  height: 72px !important;
  width: auto;
  object-fit: contain;
  transition: opacity 0.28s var(--ease);
}
.talos-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  overflow: visible;
  transition: transform 0.28s var(--ease);
}
.talos-wordmark img {
  display: block;
}
.talos-wordmark::before,
.talos-wordmark::after {
  content: none !important;
}
.talos-wordmark::before {
  content: "";
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: url("assets/logo-horizontal.svg") left center / 72px auto no-repeat;
  transition: width 0.28s var(--ease), height 0.28s var(--ease), background-size 0.28s var(--ease);
}
.talos-wordmark::after {
  content: "TALOS\A Technology";
  white-space: pre;
  font-weight: 800;
  font-size: 13px;
  line-height: 0.84;
  letter-spacing: -0.02em;
  color: var(--navy);
  transition: font-size 0.28s var(--ease);
}
.nav-logo .talos-wordmark::before {
  width: 42px;
  height: 42px;
  background-size: 88px auto;
}
.nav-logo .talos-wordmark::after {
  font-size: 15px;
}
.nav.is-scrolled {
  padding: 16px 0;
}
.nav.is-scrolled .nav-logo .talos-wordmark::before {
  width: 34px;
  height: 34px;
  background-size: 72px auto;
}
.nav.is-scrolled .nav-logo .talos-wordmark::after {
  font-size: 13px;
}
@media (max-width: 640px) {
  .nav-logo img { height: 44px; }
  .talos-wordmark::before {
    width: 30px;
    height: 30px;
    background-size: 64px auto;
  }
  .talos-wordmark::after {
    font-size: 12px;
  }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-soft);
  transition: color 0.2s var(--ease);
}
.nav-link:hover { color: var(--navy); }
.nav-sep {
  width: 1px;
  height: 18px;
  background: var(--line-strong);
  display: inline-block;
}
.nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-cta:hover { background: var(--navy-2); transform: translateY(-1px); }

@media (max-width: 900px) {
  .nav-links .nav-link:not(:last-child),
  .nav-sep { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero > .container-wide {
  width: min(100% - 48px, var(--container)) !important;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 60, 112, 0.08);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: Inter, system-ui, sans-serif;
  color: var(--navy);
  font-weight: 600;
  font-style: normal;
  max-width: 18ch;
  margin: 0 auto 20px;
}
.hero-sub {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--muted-fg);
  max-width: 52ch;
  margin: 0 auto 32px;
}
.hero-cta-row {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); box-shadow: var(--shadow-m); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-fg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.75;
  z-index: 2;
}
.hero-scroll-hint::after {
  content: "";
  width: 1px;
  height: 28px;
  background: currentColor;
  animation: scrollHint 1.8s var(--ease) infinite;
}

/* Home inicial: hero simple amb mosaic no segrestat */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: clamp(52px, 7vw, 104px);
  align-items: center;
}
.hero .eyebrow {
  color: var(--orange);
  margin-bottom: 18px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
}
.hero-grid h1 {
  margin: 0 0 22px;
  max-width: 760px;
  font-size: clamp(52px, 5.4vw, 84px);
  line-height: 1.02;
  text-wrap: balance;
}
.hero-lead {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.58;
  max-width: 52ch;
  color: var(--fg-soft);
  margin: 0 0 30px;
}
.hero-lead strong {
  color: var(--navy);
  font-weight: 700;
}
.hero-visual {
  min-width: 0;
}
.mosaic-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: min(100%, 590px);
  margin-left: auto;
  border-radius: 24px;
  overflow: hidden;
  background: #f4f7fb;
  border: 1px solid rgba(0, 60, 112, 0.14);
  box-shadow: 0 32px 80px rgba(0, 41, 77, 0.13);
}
.mosaic-grid {
  position: absolute;
  inset: 18px;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-template-rows: repeat(var(--rows), 1fr);
  gap: 3px;
}
.mosaic-cell {
  border-radius: 3px;
  transition: transform 0.45s var(--ease), background 0.45s var(--ease), opacity 0.35s var(--ease);
}
.mosaic-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 6px 18px rgba(0, 41, 77, 0.08);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}
.mosaic-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
  .mosaic-logo {
  position: absolute;
  inset: 34% 18%;
  z-index: 5;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.96);
  filter: blur(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), filter 0.35s var(--ease);
}
.mosaic-logo.is-visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}
.mosaic-logo img {
  width: 100%;
  height: auto;
}
.mosaic-hint {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-fg);
  font-size: 13px;
  font-weight: 600;
}
.mosaic-hint-arrow {
  color: var(--orange);
}
.hero .mosaic-label,
.hero .mosaic-hint {
  display: none;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .mosaic-stage {
    margin: 0 auto;
    max-width: 520px;
  }
}
@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================================
   CURSOR WALLPAPER (global bg follow-cursor)
   ========================================================= */
.cursor-wallpaper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
  opacity: 0.85;
}

/* =========================================================
   MARQUEE (trust strip of tech)
   ========================================================= */
.marquee {
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: relative;
  z-index: 1;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.marquee-track.paused { animation-play-state: paused; }
.marquee-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-fg);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
}
.marquee-item .sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  margin-left: 48px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   PAIN POINTS
   ========================================================= */
.section.pain-section {
  background: #F3F4F6;
  /* Ritmo vertical unificado: 96-120 desktop / 64-80 mobile */
  padding: clamp(64px, 9vw, 112px) 0;
}
.pain-wrap {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}
.pain-eyebrow {
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #6B7280;
  margin: 0 0 34px;
  text-align: center;
}
.pain-p {
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.24;
  color: var(--navy);
  margin: 0 0 34px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
}
.pain-p.is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.pain-p:first-of-type {
  max-width: 860px;
  margin-inline: auto;
}

.pain-p:last-child {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 0;
  color: #5f6975;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.52;
  font-weight: 500;
}

.pain-mark {
  position: relative;
  display: inline;
  color: inherit;
  padding: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background: none;
  font-weight: 400;
  transition: font-weight 0.35s var(--ease), color 0.35s var(--ease);
  transition-delay: 0.25s;
}
.pain-p.is-in .pain-mark {
  color: var(--navy);
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .pain-p { opacity: 1; transform: none; filter: none; transition: none; }
  .pain-mark { font-weight: 700 !important; transition: none; }
}

/* =========================================================
   S4 — SHOWCASE VISUAL (dark section with 6 capability cards)
   ========================================================= */
.showcase-section {
  background: #00284A;
  color: #fff;
  padding: clamp(90px, 10vw, 140px) 0;
  position: relative;
  isolation: isolate;
}
.showcase-head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}
.showcase-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 20px;
}
.showcase-h2 {
  font-family: var(--sans);
  font-size: clamp(36px, 4.2vw, 52px);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.showcase-sub {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 auto;
  max-width: 640px;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .showcase-grid { grid-template-columns: 1fr; }
}

.showcase-card {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  max-height: 440px;
  padding: 32px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease),
    border-top-color 0.3s var(--ease),
    border-top-width 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
  position: relative;
}
.showcase-card:hover {
  transform: translateY(-3px);
  border-top: 3px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(255, 78, 0, 0.18);
}
.showcase-card.is-placeholder { opacity: 0.78; }
.showcase-card.is-placeholder:hover { opacity: 1; }

.showcase-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.showcase-viz {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  min-height: 150px;
}
.showcase-viz svg { width: 100%; height: auto; max-height: 180px; }

.showcase-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.showcase-title {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.showcase-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}
.showcase-link {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s var(--ease);
}
.showcase-card:hover .showcase-link { gap: 10px; }
.showcase-card.is-placeholder .showcase-link {
  color: rgba(255, 255, 255, 0.4);
}

/* SVG illustration elements: each has --d (delay) and animates to opacity 1 */
.sv-el {
  opacity: 0;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  transform-origin: center;
  transition-delay: var(--d, 0s);
}
.showcase-card.is-in .sv-el { opacity: 1; }

/* Specific element transforms/behaviors */
.sv-head { transform: translateY(6px); }
.showcase-card.is-in .sv-head { transform: translateY(0); }

.sv-kpi { transform: scale(0.96); }
.showcase-card.is-in .sv-kpi { transform: scale(1); }

.sv-axis, .sv-line {
  transition: opacity 0.45s var(--ease), stroke-dashoffset 0.8s var(--ease);
  transition-delay: var(--d, 0s);
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
.showcase-card.is-in .sv-axis,
.showcase-card.is-in .sv-line { stroke-dashoffset: 0; }

.sv-dot, .sv-dot-last {
  transform: scale(0);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  transition-delay: var(--d, 0s);
  transform-box: fill-box;
  transform-origin: center;
}
.showcase-card.is-in .sv-dot,
.showcase-card.is-in .sv-dot-last { transform: scale(1); }

.sv-dot-last {
  animation: sv-pulse 0.4s var(--ease) forwards;
  animation-delay: calc(var(--d, 0s) + 0.25s);
  opacity: 0;
}
.showcase-card.is-in .sv-dot-last {
  opacity: 1;
}
@keyframes sv-pulse {
  0%   { transform: scale(0); }
  50%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.sv-src { transform: translateX(8px); }
.showcase-card.is-in .sv-src { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .sv-el { opacity: 1 !important; transform: none !important; transition: none !important; }
  .sv-axis, .sv-line { stroke-dashoffset: 0 !important; }
  .sv-dot-last { animation: none !important; }
}

/* =========================================================
   PILLARS STICKY (4 ambits amb scroll horitzontal)
   ========================================================= */
.pillars-sticky {
  position: relative;
  background: var(--bg-muted);
}
.pillars-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.pillars-inner {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}
.pillars-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}
.pillars-head .eyebrow { margin-bottom: 12px; }
.pillars-head p { color: var(--muted-fg); font-size: 17px; margin-top: 10px; }
.pillars-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}
.pillar-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.pillar-tabs button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  text-align: left;
  font-weight: 500;
  font-size: 15px;
  color: var(--fg-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
  background: transparent;
}
.pillar-tabs button:hover { background: rgba(0,60,112,0.06); color: var(--navy); }
.pillar-tabs button.is-active {
  background: var(--navy);
  color: #fff;
}
.pillar-tabs .num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 18px;
  opacity: 0.7;
  margin-right: 4px;
}
.pillar-tabs .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
}
.pillar-tabs .is-active .pulse { opacity: 1; background: var(--orange); }
.pillars-progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -16px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.pillars-progress-bar {
  height: 100%;
  background: var(--orange);
  transition: width 0.25s var(--ease);
}
.pillar-panel {
  position: relative;
  min-height: 360px;
}
.pillar-panel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}
.pillar-panel-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.pillar-panel-slide h3 {
  font-size: clamp(26px, 2.4vw, 34px);
  margin-bottom: 14px;
}
.pillar-panel-slide > p {
  color: var(--muted-fg);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 58ch;
}
.pillar-caps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 28px;
  margin-bottom: 22px;
}
.pillar-cap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--fg-soft);
}
.pillar-cap .bullet {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
}
.pillar-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .pillars-stage { position: relative; height: auto; padding: 80px 0; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar-panel { min-height: 0; }
  .pillar-panel-slide { position: relative; opacity: 1; transform: none; }
  .pillar-panel-slide:not(.is-active) { display: none; }
}

/* =========================================================
   SERVICES GRID
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Sistema: gap entre cards 24-32 desktop / 16-20 mobile */
  gap: clamp(16px, 2vw, 28px);
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SECTORS GRID — 3 col desktop, 2 col tablet, 1 col mobile
   ========================================================= */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.2vw, 32px);
}
@media (max-width: 1024px) {
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sectors-grid { grid-template-columns: 1fr; gap: 18px; }
}
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
  border-color: var(--line-strong);
}
.service-card.featured {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.service-card.featured h3 { color: #fff; }
.service-card.featured p { color: rgba(255,255,255,0.75); }
.service-pill {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.service-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-muted);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
}
.service-card.featured .service-icon {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.service-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.service-card.featured .service-tag { color: var(--orange-2); }
.service-card h3 { font-size: 21px; }
.service-card p { font-size: 15px; line-height: 1.6; }
.service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  padding-top: 8px;
}
.service-card.featured .service-link { color: var(--orange-2); }
.service-link:hover { gap: 10px; }

/* =========================================================
   SECTORS GRID (same grid, different cards)
   ========================================================= */
.sector-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  /* Padding interno: 32-40 desktop / 24-28 mobile */
  padding: clamp(24px, 2.5vw, 36px);
  display: flex;
  flex-direction: column;
  /* Gap entre elementos: 16-24 desktop / 12-16 mobile */
  gap: clamp(16px, 1.6vw, 22px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-m);
}
.sector-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sector-head .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(0,60,112,0.08);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.sector-head h3 { font-size: 19px; }
.sector-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sector-body .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 4px;
}
.sector-body .label.hi { color: var(--orange); }
.sector-body p { font-size: 14.5px; line-height: 1.6; color: var(--fg-soft); }
.sector-scenario p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
}

.sector-block + .sector-block {
  padding-top: 0;
}

.sector-actions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sector-actions li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--navy);
}
.sector-actions li svg {
  margin-top: 4px;
  color: var(--orange);
  flex-shrink: 0;
}
.sector-actions li span {
  color: var(--fg-soft);
  font-weight: 400;
}
.sector-results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: auto;
}
.sector-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--navy);
  background: var(--bg-muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 500;
}

/* =========================================================
   TRAZABILIDAD / INTEGRACIONES
   ========================================================= */
.integrations-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .integrations-wrap { grid-template-columns: 1fr; gap: 40px; } }
.integrations-copy h2 { margin-bottom: 16px; }
.integrations-copy p { color: var(--muted-fg); font-size: 17px; }
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.integration-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.integration-chip:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
}

/* =========================================================
   CTA FINAL (navy bloc)
   ========================================================= */
.cta-final {
  background: var(--navy);
  color: #fff;
  padding: clamp(48px, 6vw, 88px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,78,0,0.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,78,0,0.12), transparent 40%);
  pointer-events: none;
}
.cta-final * { position: relative; }
.cta-final h2 {
  color: #fff;
  font-size: clamp(32px, 3.6vw, 52px);
  max-width: 20ch;
  margin: 0 auto 16px;
}
.cta-accent {
  color: var(--orange);
  font-weight: 800;
  white-space: nowrap;
}
.cta-final p {
  color: rgba(255,255,255,0.78);
  font-size: 18px;
  max-width: 56ch;
  margin: 0 auto 28px;
}
.cta-final .btn-primary { background: var(--orange); }
.cta-final .btn-primary:hover { background: var(--orange-2); }
.cta-final .btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.cta-final .btn-ghost:hover { background: #fff; color: var(--navy); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--navy-3);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 36px;
}
.footer a { color: rgba(255,255,255,0.75); transition: color 0.2s var(--ease); }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  align-items: start;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col li { font-size: 14px; }
.footer-brand p {
  color: var(--orange);
  font-size: 14px;
  max-width: 34ch;
  margin: 22px 0 0;
}
.footer-contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 430px;
  margin-top: 18px;
}
.footer-contact-card a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.04);
  font-weight: 700;
}
.footer-contact-card a::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border: 2px solid var(--orange);
  transform: rotate(45deg);
}
.footer-contact-card a:hover {
  border-color: rgba(255, 78, 0, 0.58);
  color: #fff;
  background: rgba(255, 78, 0, 0.12);
}
.footer-brand .mark {
  display: block;
  margin: -32px 0 -10px;
}
.footer-brand .mark img {
  max-width: 100%;
  height: auto;
}
@media (max-width: 640px) {
  .footer-brand .mark img { height: 128px !important; }
}
.footer-bottom {
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.footer-bottom .wrap {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
@media (max-width: 600px) {
  .footer-bottom .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* =========================================================
   TWEAKS PANEL
   ========================================================= */
.tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  width: 300px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 41, 77, 0.18);
  border: 1px solid var(--line);
  padding: 20px;
  transform: translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
}
.tweaks-panel.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.tweaks-panel h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tweaks-panel .tag {
  font-size: 10px;
  background: var(--orange);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.1em;
}
.tweaks-group {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.tweaks-group:first-of-type { border-top: 0; padding-top: 0; }
.tweaks-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-soft);
  margin-bottom: 8px;
}
.tweaks-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tweaks-chips button {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg-soft);
  background: #fff;
  transition: all 0.2s var(--ease);
}
.tweaks-chips button:hover { border-color: var(--navy); color: var(--navy); }
.tweaks-chips button.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.tweaks-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tweaks-switch {
  width: 36px; height: 20px;
  background: var(--line-strong);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s var(--ease);
  flex-shrink: 0;
}
.tweaks-switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s var(--ease);
  box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}
.tweaks-switch.is-on { background: var(--navy); }
.tweaks-switch.is-on::after { transform: translateX(16px); }

/* =========================================================
   REVEAL / IN-VIEW ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* =========================================================
   SITE LAYOUT
   ========================================================= */
.site-main { display: block; }
.site-contained { width: 100%; }

/* =========================================================
   HERO PINNED — text esquerra + mosaic dreta
   ========================================================= */
.hero-pinned {
  position: relative;
  /* Canal vertical per al pin: només el que necessita el contingut.
     Com que el wheel és capturat (scroll virtual), no cal 100vh — així
     evitem el "pozo" sota les CTAs / mosaic. */
  height: auto;
  min-height: 560px;
  background: var(--bg);
  margin-top: 0;
}
.hero-pinned-sticky {
  position: sticky;
  top: 0;
  /* El sticky s'ajusta a l'altura del hero (no 100vh) → sense espai buit inferior. */
  height: auto;
  min-height: 560px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}
.hero-pinned-inner {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
  padding-top: clamp(120px, 14vh, 160px);
  padding-bottom: clamp(80px, 10vw, 120px);
}
.hero-pinned-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-pinned-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Columna esquerra: text crossfade ─────────────────── */
.hero-pinned-copy {
  position: relative;
  min-height: 560px;
  /* reserva espai per CTAs (absolute bottom:64) + footer (absolute bottom:0) */
  padding-bottom: 120px;
}
.hero-pinned-msg {
  position: absolute;
  inset: 0 auto auto 0;
  right: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  pointer-events: none;
  will-change: opacity, transform;
}
.hero-pinned-msg.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero-pinned-msg.is-past {
  opacity: 0;
  transform: translateY(-16px);
}
.hero-pinned-msg.is-future {
  opacity: 0;
  transform: translateY(16px);
}
.hero-pinned-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--orange);
  margin: 0 0 18px;
}
.hero-pinned-h1 {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero-pinned-h1 .hl {
  background: linear-gradient(180deg, transparent 62%, rgba(255,78,0,0.28) 62%);
  padding: 0 4px;
}
.hero-pinned-h1 .accent { color: var(--orange); }
.hero-pinned-lead {
  font-size: clamp(16px, 1.25vw, 18.5px);
  color: var(--fg-soft);
  line-height: 1.6;
  max-width: 46ch;
  margin: 0;
}
.hero-pinned-lead strong { color: var(--navy); font-weight: 600; }

.hero-pinned-cta {
  position: absolute;
  bottom: 64px;
  left: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease) 0.2s, transform 0.5s var(--ease) 0.2s;
  pointer-events: none;
}
.hero-pinned-cta.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-pinned-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hero-pinned-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero-pinned-dots .dot {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
}
.hero-pinned-dots .dot.is-past { background: var(--navy); }
.hero-pinned-dots .dot.is-active { background: var(--orange); width: 48px; }

.hero-pinned-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted-fg);
}
.hero-pinned-hint .arr {
  display: inline-block;
  animation: heroArr 1.6s var(--ease) infinite;
}
@keyframes heroArr {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* ── Columna dreta: mosaic quadrat ────────────────────── */
.hero-pinned-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mosaic-square {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  background: #F3F4F6;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 41, 77, 0.10), 0 1px 0 rgba(0, 41, 77, 0.06);
  border: 1px solid var(--line);
}
.mosaic-grid-tight {
  position: absolute;
  inset: 10px;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-template-rows: repeat(var(--rows), 1fr);
  gap: 2px;
}
.mosaic-tile {
  background: #E5E7EB;
  border-radius: 2px;
  transform-origin: center;
  transition: background 0.4s var(--ease);
  will-change: transform, background, opacity;
}
.mosaic-logo-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  filter: blur(8px);
  z-index: 3;
  pointer-events: none;
  width: 72%;
}
.mosaic-logo-center img {
  width: 100%;
  height: auto;
  display: block;
}
.mosaic-state {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
  z-index: 4;
  box-shadow: 0 2px 8px rgba(0, 41, 77, 0.08);
}
.mosaic-state .dot {
  width: 8px; height: 8px; border-radius: 50%;
  transition: background 0.4s var(--ease);
}
.mosaic-progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  height: 2px;
  border-radius: 2px;
  background: rgba(0, 60, 112, 0.12);
  overflow: hidden;
  z-index: 4;
}
.mosaic-progress-bar {
  height: 100%;
  background: var(--orange);
  transition: width 0.15s linear;
}

/* =========================================================
   GOVERNANCE WALLPAPER
   ========================================================= */
.gov-wallpaper {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.gov-wallpaper.is-active { opacity: 1; }

/* =========================================================
   S4 — SHOWCASE VISUAL
   ========================================================= */
.showcase-section {
  background: #00284A;
  color: #fff;
  /* Ritmo vertical unificado: 96-120 desktop / 64-80 mobile */
  padding: clamp(64px, 9vw, 112px) 0;
  position: relative;
  overflow: hidden;
}
.showcase-head {
  max-width: 780px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  text-align: center;
}
.showcase-h2 {
  color: #fff;
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 16px;
}
.showcase-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .showcase-grid { grid-template-columns: 1fr; }
}

.showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 200ms var(--ease),
              border-top-color 200ms var(--ease),
              border-top-width 200ms var(--ease),
              box-shadow 200ms var(--ease);
  will-change: transform;
}
.showcase-card:hover {
  transform: translateY(-3px);
  border-top: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(255, 78, 0, 0.15);
}

.showcase-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  z-index: 2;
}

.showcase-viz {
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.showcase-viz svg { width: 100%; height: 100%; }

.showcase-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.showcase-title {
  color: #fff;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
.showcase-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.showcase-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
  transition: gap 200ms var(--ease), color 200ms var(--ease);
}
.showcase-card:hover .showcase-link {
  color: #fff;
  gap: 10px;
}
.showcase-link svg { width: 14px; height: 14px; }

/* Animation — entrada per scroll + re-play per hover */
.sv-el {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s var(--ease) var(--d, 0s),
              transform 0.45s var(--ease) var(--d, 0s);
}
.showcase-card.is-in .sv-el {
  opacity: 1;
  transform: translateY(0);
}
/* Trend line: draw */
.sv-line {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  transition: opacity 0.3s var(--ease) var(--d, 0s),
              transform 0.3s var(--ease) var(--d, 0s),
              stroke-dashoffset 0.9s var(--ease) var(--d, 0s);
}
.showcase-card.is-in .sv-line { stroke-dashoffset: 0; }

/* Last dot pulse */
.sv-dot-last {
  transform-origin: 205px 70px;
  transform-box: fill-box;
}
.showcase-card.is-in .sv-dot-last {
  animation: svPulse 1.4s ease-out 1.7s 1;
}
@keyframes svPulse {
  0%   { transform: scale(0.6); opacity: 0; filter: drop-shadow(0 0 0 rgba(255,78,0,0)); }
  40%  { transform: scale(1.25); opacity: 1; filter: drop-shadow(0 0 8px rgba(255,78,0,0.6)); }
  100% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 2px rgba(255,78,0,0.2)); }
}

/* Placeholder cards — wireframe fluix, sense animació */
.showcase-card.is-placeholder .sv-placeholder { opacity: 0.2; }

/* ── Card 2: Captura ───────────────────────────────── */
.showcase-card .sv-pdf { transition: opacity 0.3s ease-in var(--d, 0s); }
.showcase-card.is-in .sv-pdf { opacity: 0; transition-delay: 0.4s; }

.showcase-card .sv-particle {
  opacity: 0;
  transition: opacity 0.2s var(--ease) var(--d, 0s),
              transform 0.8s var(--ease) var(--d, 0s);
}
.showcase-card.is-in .sv-particle {
  opacity: 1;
  transform: translate(var(--tx, 0), var(--ty, 0));
}
/* fade out partícules després d'arribar */
@keyframes svParticleFade { to { opacity: 0; } }
.showcase-card.is-in .sv-particle {
  animation: svParticleFade 0.3s ease-out forwards;
  animation-delay: calc(var(--d, 0s) + 0.9s);
}

.showcase-card .sv-field { opacity: 0; transform: translateY(4px); }
.showcase-card.is-in .sv-field {
  animation: svFieldIn 0.4s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes svFieldIn {
  to { opacity: 1; transform: translateY(0); }
}

.showcase-card .sv-pulse-accent {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}
.showcase-card.is-in .sv-pulse-accent {
  animation: svPulse 0.9s ease-out forwards;
  animation-delay: var(--d, 0s);
}

/* ── Card 3: Agente (chat) ─────────────────────────── */
.showcase-card .sv-msg-user,
.showcase-card .sv-typing,
.showcase-card .sv-msg-agent {
  opacity: 0;
  transform: translateY(8px);
}
.showcase-card.is-in .sv-msg-user,
.showcase-card.is-in .sv-typing,
.showcase-card.is-in .sv-msg-agent {
  animation: svBubbleIn 0.4s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes svBubbleIn {
  to { opacity: 1; transform: translateY(0); }
}
/* typing dots pulsen i desapareixen */
.showcase-card .sv-typing-dot {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}
.showcase-card.is-in .sv-typing-dot {
  animation: svTypingPulse 1.2s ease-in-out infinite, svTypingEnd 0.3s ease-out 1.2s forwards;
  animation-delay: calc(0.9s + var(--i, 0) * 0.15s), 1.2s;
}
@keyframes svTypingPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.1); }
}
@keyframes svTypingEnd { to { opacity: 0; } }

/* Agent text reveal amb clip-path (esquerra → dreta) */
.showcase-card .sv-agent-text {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s var(--ease) var(--d, 0s);
}
.showcase-card.is-in .sv-agent-text { clip-path: inset(0 0 0 0); }

.showcase-card .sv-highlight {
  opacity: 0;
  transition: opacity 0.25s var(--ease) var(--d, 0s);
}
.showcase-card.is-in .sv-highlight { opacity: 1; }

/* ── Card 4: Simulación (cub 3D) ───────────────────── */
.sv-sim-wrap {
  width: 100%;
  height: 100%;
  perspective: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sv-sim {
  transform: rotateY(0deg);
  transform-style: preserve-3d;
  transition: transform 1.4s var(--ease);
}
.sv-sim.is-in { transform: rotateY(18deg); }

.showcase-card .sv-cube-back,
.showcase-card .sv-cube-front,
.showcase-card .sv-cube-edges,
.showcase-card .sv-cube-grid {
  opacity: 0;
  transition: opacity 0.5s var(--ease) var(--d, 0s);
}
.showcase-card.is-in .sv-cube-back,
.showcase-card.is-in .sv-cube-front,
.showcase-card.is-in .sv-cube-edges,
.showcase-card.is-in .sv-cube-grid { opacity: 1; }
.showcase-card.is-in .sv-cube-back { opacity: 0.5; }
.showcase-card.is-in .sv-cube-grid { opacity: 0.4; }

.showcase-card .sv-node-in {
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  transform-box: fill-box;
  transition: opacity 0.3s var(--ease) var(--d, 0s),
              transform 0.3s var(--ease) var(--d, 0s);
}
.showcase-card.is-in .sv-node-in { opacity: 1; transform: scale(1); }

.showcase-card .sv-alert {
  opacity: 0;
  transform: scale(0.3);
  transform-origin: center;
  transform-box: fill-box;
  transition: opacity 0.3s var(--ease) var(--d, 0s),
              transform 0.3s var(--ease) var(--d, 0s);
}
.showcase-card.is-in .sv-alert { opacity: 1; transform: scale(1); }
.showcase-card.is-in .sv-alert-accent {
  animation: svAlertPulse 1.2s ease-out;
  animation-delay: calc(var(--d, 0s) + 0.3s);
}
@keyframes svAlertPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,78,0,0.6); filter: drop-shadow(0 0 0 rgba(255,78,0,0)); }
  50%  { filter: drop-shadow(0 0 8px rgba(255,78,0,0.8)); }
  100% { filter: drop-shadow(0 0 2px rgba(255,78,0,0.2)); }
}

/* ── Card 5: Circuito ──────────────────────────────── */
.showcase-card .sv-arrow { opacity: 0; }
.showcase-card.is-in .sv-arrow {
  animation: svArrowDraw 0.4s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes svArrowDraw { to { opacity: 1; } }
.showcase-card .sv-arrow line,
.showcase-card .sv-arrow path {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
}
.showcase-card.is-in .sv-arrow line,
.showcase-card.is-in .sv-arrow path {
  animation: svArrowStroke 0.4s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes svArrowStroke { to { stroke-dashoffset: 0; } }

.showcase-card .sv-node {
  opacity: 0;
  transform: scale(0.85) translateY(6px);
  transform-origin: center;
  transform-box: fill-box;
  transition: opacity 0.4s var(--ease) var(--d, 0s),
              transform 0.4s var(--ease) var(--d, 0s);
}
.showcase-card.is-in .sv-node { opacity: 1; transform: scale(1) translateY(0); }

.showcase-card .sv-halo {
  opacity: 0;
  transform-origin: 265px 90px;
  transform-box: fill-box;
}
.showcase-card.is-in .sv-halo {
  animation: svHalo 0.9s ease-out forwards;
  animation-delay: var(--d, 0s);
}
@keyframes svHalo {
  0%   { opacity: 1; transform: scale(0.8); }
  60%  { opacity: 0.8; transform: scale(1.6); }
  100% { opacity: 0; transform: scale(2.2); }
}

/* ── Card 6: Blockchain ────────────────────────────── */
.showcase-card .sv-block {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.45s var(--ease) var(--d, 0s),
              transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d, 0s);
}
.showcase-card.is-in .sv-block { opacity: 1; transform: translateY(0); }

.showcase-card .sv-chain-link {
  stroke-dasharray: 12;
  stroke-dashoffset: 12;
  transition: stroke-dashoffset 0.3s var(--ease) var(--d, 0s);
}
.showcase-card.is-in .sv-chain-link { stroke-dashoffset: 0; }

.showcase-card .sv-checksum {
  opacity: 0;
  transform: scale(0.4);
  transform-origin: center;
  transform-box: fill-box;
  transition: opacity 0.3s var(--ease) var(--d, 0s),
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d, 0s);
}
.showcase-card.is-in .sv-checksum { opacity: 1; transform: scale(1); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .showcase-card,
  .showcase-card:hover,
  .showcase-card .sv-el,
  .showcase-card .sv-line,
  .showcase-card.is-in .sv-dot-last,
  .showcase-card .sv-pdf,
  .showcase-card .sv-particle,
  .showcase-card .sv-field,
  .showcase-card .sv-pulse-accent,
  .showcase-card .sv-msg-user,
  .showcase-card .sv-typing,
  .showcase-card .sv-msg-agent,
  .showcase-card .sv-typing-dot,
  .showcase-card .sv-agent-text,
  .showcase-card .sv-highlight,
  .sv-sim,
  .showcase-card .sv-cube-back,
  .showcase-card .sv-cube-front,
  .showcase-card .sv-cube-edges,
  .showcase-card .sv-cube-grid,
  .showcase-card .sv-node-in,
  .showcase-card .sv-alert,
  .showcase-card .sv-alert-accent,
  .showcase-card .sv-arrow,
  .showcase-card .sv-arrow line,
  .showcase-card .sv-arrow path,
  .showcase-card .sv-node,
  .showcase-card .sv-halo,
  .showcase-card .sv-block,
  .showcase-card .sv-chain-link,
  .showcase-card .sv-checksum {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
    clip-path: none !important;
  }
  .showcase-card.is-in .sv-pdf { opacity: 0 !important; }
  .showcase-card.is-in .sv-particle { opacity: 0 !important; }
  .showcase-card.is-in .sv-halo { opacity: 0 !important; }
}

/* =========================================================
   S5 — ÁREAS DE ACTUACIÓN (Apple-like doors)
   ========================================================= */
.areas-section {
  background: #F5F5F7;
  /* Ritmo vertical unificado: 96-120 desktop / 64-80 mobile */
  padding: clamp(64px, 9vw, 112px) 0;
  position: relative;
}
.areas-head {
  max-width: 820px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  text-align: center;
}
.areas-eyebrow {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
  font-size: 14px;
  color: var(--orange);
  margin: 0 0 16px;
}
.areas-head h2 {
  color: var(--navy);
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 20px;
}
.areas-head > p {
  color: var(--muted-fg);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto;
}

#metodologia .area-badge {
  background: rgba(0, 60, 112, 0.07);
}

#metodologia .area-card {
  min-height: 390px;
}

/* =========================================================
   TRUST SECTION — por qué Talos puede ejecutarlo
   ========================================================= */
.trust-section {
  background: linear-gradient(180deg, #fff 0%, #F6F7F9 100%);
  padding: clamp(76px, 9vw, 118px) 0;
  position: relative;
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(42px, 6vw, 86px);
  align-items: start;
}

.trust-copy {
  position: sticky;
  top: 128px;
}

.trust-copy h2 {
  max-width: 560px;
  margin: 0 0 22px;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.trust-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: #5f6975;
  font-size: 18px;
  line-height: 1.65;
}

.trust-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.trust-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(0, 60, 112, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(0, 60, 112, 0.06);
}

.trust-card span {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 78, 0, 0.10);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.trust-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.22;
}

.trust-card p {
  margin: 0;
  color: #5f6975;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .trust-copy {
    position: relative;
    top: auto;
  }
}

@media (max-width: 640px) {
  .trust-cards {
    grid-template-columns: 1fr;
  }
  .trust-card {
    min-height: 0;
  }
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 1023px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 639px) {
  .areas-grid { grid-template-columns: 1fr; gap: 24px; }
}

.area-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 280ms var(--ease),
              box-shadow 280ms var(--ease),
              border-color 280ms var(--ease);
  opacity: 0;
  transform: translateY(16px);
  will-change: transform;
}
.area-card.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: transform 600ms var(--ease),
              opacity 600ms var(--ease),
              box-shadow 280ms var(--ease),
              border-color 280ms var(--ease);
}
.area-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 60, 112, 0.20);
}
.area-card:focus-visible {
  outline: 2px solid #003C70;
  outline-offset: 3px;
}

.area-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.area-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.04);
  color: #003C70;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 16px;
}

.area-title {
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

.area-desc {
  color: var(--muted-fg);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 32px;
  flex: 1;
}

.area-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  transition: color 240ms var(--ease), gap 240ms var(--ease);
}
.area-cta svg { width: 14px; height: 14px; }
.area-cta-underline {
  position: absolute;
  left: 0;
  right: auto;
  bottom: -4px;
  height: 1.5px;
  width: 100%;
  background: #003C70;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms var(--ease);
}
.area-card:hover .area-cta {
  color: #003C70;
  gap: 10px;
}
.area-card:hover .area-cta-underline {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .area-card,
  .area-card.is-in,
  .area-card:hover,
  .area-cta,
  .area-cta-underline {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* =========================================================
   PASSADA 1 — ritme, mobile i reducció de text
   ========================================================= */
.section.pain-section {
  padding: clamp(56px, 7vw, 88px) 0;
}
.pain-eyebrow {
  margin-bottom: clamp(24px, 4vw, 36px);
}
.pain-p {
  margin-bottom: clamp(24px, 4vw, 36px);
}

.areas-section {
  padding: clamp(56px, 7vw, 88px) 0;
}
.areas-head {
  margin-bottom: clamp(28px, 4vw, 48px);
}
.area-card {
  padding: 26px;
}
.area-icon {
  margin-bottom: 16px;
}
.area-desc {
  margin-bottom: 22px;
}

@media (max-width: 768px) {
  .container-wide {
    width: min(100% - 32px, var(--container));
  }

  .nav {
    padding: 10px 0;
  }
  .nav-logo img {
    height: 36px;
  }
  .nav-cta {
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero-pinned,
  .hero-pinned-sticky {
    min-height: auto;
    height: auto;
  }
  .hero-pinned-sticky {
    position: relative;
    top: auto;
    overflow: visible;
  }
  .hero-pinned-inner {
    padding-top: 92px;
    padding-bottom: 44px;
  }
  .hero-pinned-grid {
    gap: 22px;
  }
  .hero-pinned-copy {
    min-height: auto;
    padding-bottom: 0;
  }
  .hero-pinned-msg {
    position: relative;
    display: none;
    opacity: 1;
    transform: none;
  }
  .hero-pinned-msg.is-active {
    display: block;
  }
  .hero-pinned-eyebrow {
    font-size: 10px;
    line-height: 1.45;
    margin-bottom: 12px;
  }
  .hero-pinned-h1 {
    font-size: clamp(31px, 9vw, 42px);
    line-height: 1.02;
    margin-bottom: 16px;
  }
  .hero-pinned-lead {
    font-size: 15px;
    line-height: 1.5;
    max-width: none;
  }
  .hero-pinned-cta {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-top: 20px;
  }
  .hero-pinned-footer {
    display: none;
  }
  .mosaic-square {
    max-width: 100%;
    border-radius: 16px;
  }
  .mosaic-grid-tight {
    inset: 8px;
  }
  .mosaic-tile {
    max-width: 100%;
    transform: none !important;
  }

  .section,
  .showcase-section,
  .areas-section,
  .section.pain-section {
    padding: 56px 0;
  }
  .pain-wrap {
    text-align: left;
  }
  .pain-eyebrow {
    text-align: left;
    margin-bottom: 22px;
  }
  .pain-p {
    opacity: 1;
    transform: none;
    filter: none;
    font-size: 21px;
    line-height: 1.42;
    margin-bottom: 24px;
  }
  .pain-mark {
    background-size: 100% 100%;
  }

  .showcase-head,
  .areas-head,
  .section-head {
    margin-bottom: 28px;
  }
  .showcase-card {
    min-height: 0;
  }
  .showcase-body {
    padding: 20px;
  }
  .showcase-title {
    font-size: 18px;
  }
  .showcase-desc {
    font-size: 14px;
  }
  .showcase-viz {
    aspect-ratio: 2 / 1;
  }

  .areas-head {
    text-align: left;
  }
  .areas-head h2,
  .section-head h2 {
    font-size: clamp(28px, 8vw, 36px);
  }
  .areas-grid {
    gap: 16px;
  }
  .area-card {
    padding: 22px;
    opacity: 1;
    transform: none;
  }
  .area-desc {
    font-size: 14.5px;
    line-height: 1.5;
    margin-bottom: 18px;
  }
  .sector-card {
    padding: 22px;
  }
  .sector-body,
  .sector-actions {
    gap: 12px;
  }
  .sector-block p,
  .sector-actions li {
    font-size: 14px;
    line-height: 1.45;
  }
}

/* =========================================================
   FINAL HOME DIRECTION — journey line + moving data bands
   ========================================================= */
.journey-path {
  position: fixed;
  left: 18px;
  top: 50%;
  width: 132px;
  height: 100vh;
  max-height: 520px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 6;
  opacity: 0.74;
}
.journey-path svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.journey-route-base,
.journey-route-progress {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.journey-route-base {
  stroke: rgba(0, 60, 112, 0.1);
  stroke-width: 1;
}
.journey-route-progress {
  stroke: rgba(0, 60, 112, 0.32);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dashoffset 0.12s linear;
}
.journey-node {
  fill: #fff;
  stroke: rgba(0, 60, 112, 0.26);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
  transform-origin: center;
  transform-box: fill-box;
  transition: fill 0.25s var(--ease), stroke 0.25s var(--ease), transform 0.25s var(--ease);
}
.journey-node.is-active {
  fill: var(--orange);
  stroke: rgba(255, 78, 0, 0.28);
  transform: scale(1.1);
}
.journey-node.is-current {
  transform: scale(1.55);
  filter: drop-shadow(0 0 5px rgba(255, 78, 0, 0.34));
}
.journey-label {
  fill: rgba(0, 60, 112, 0.48);
  font-size: 5px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-2px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), fill 0.25s var(--ease);
}
.journey-label.is-current {
  opacity: 1;
  transform: translateX(0);
  fill: var(--navy);
}

.showcase-section {
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 16%, rgba(255,255,255,0.12), transparent 24%),
    radial-gradient(circle at 86% 62%, rgba(255,78,0,0.1), transparent 22%),
    #00284A;
}
.showcase-section::before,
.showcase-section::after {
  content: "";
  position: absolute;
  inset: -30% -10%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.56;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255,255,255,0.08) 14%, transparent 18% 38%, rgba(255,255,255,0.06) 42%, transparent 46% 100%),
    repeating-linear-gradient(90deg, transparent 0 92px, rgba(255,255,255,0.035) 94px 96px);
  background-size: 100% 720px, auto;
  transform: rotate(-2deg);
  animation: talosBandsDown 18s linear infinite;
}
.showcase-section::after {
  opacity: 0.38;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255,78,0,0.14) 20%, transparent 22% 54%, rgba(111,176,224,0.11) 58%, transparent 62% 100%);
  background-size: 100% 560px;
  transform: rotate(3deg);
  animation: talosBandsUp 22s linear infinite;
}
.showcase-section > .container-wide,
.showcase-head,
.showcase-grid {
  position: relative;
  z-index: 1;
}
.showcase-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.showcase-card {
  min-height: 420px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 18px 55px rgba(0,0,0,0.18);
}
.showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), transparent 34%, rgba(255,78,0,0.05));
}
.showcase-badge,
.showcase-viz,
.showcase-body {
  position: relative;
  z-index: 1;
}

@keyframes talosBandsDown {
  from { background-position: 0 0; }
  to { background-position: 0 720px; }
}
@keyframes talosBandsUp {
  from { background-position: 0 560px; }
  to { background-position: 0 0; }
}

@media (max-width: 1024px) {
  .journey-path {
    left: 8px;
    width: 34px;
    opacity: 0.42;
  }
  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .journey-path {
    left: 4px;
    width: 22px;
    opacity: 0.28;
  }
  .journey-route-base {
    stroke-width: 1;
  }
  .journey-route-progress {
    stroke-width: 1.2;
  }
  .journey-label {
    display: none;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .showcase-card {
    min-height: 0;
  }
  .showcase-section::before,
  .showcase-section::after {
    opacity: 0.2;
    animation-duration: 34s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-route-progress {
    transition: none;
  }
  .showcase-section::before,
  .showcase-section::after {
    animation: none;
  }
}

/* =========================================================
   PASSADA HOME ORIGINAL — aire, hero, tecnologia i CTA
   ========================================================= */
.hero {
  min-height: 156vh;
  align-items: flex-start;
  padding: 0;
  background: #fff;
  overflow: visible;
}
.hero-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 108px;
  padding-bottom: 64px;
}
.hero-grid {
  width: 100%;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1fr);
  justify-content: initial;
  align-items: center;
  gap: clamp(48px, 6vw, 92px);
}
.hero-copy {
  min-width: 0;
}
.hero-grid h1 {
  max-width: 650px;
  font-size: clamp(52px, 4.8vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero-lead {
  max-width: 620px;
  color: #5b6576;
}
.hero .cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero .btn {
  min-height: 58px;
  padding: 15px 30px;
  font-size: 16px;
  box-shadow: none;
}
.hero .btn-primary {
  box-shadow: 0 14px 34px rgba(0, 60, 112, 0.2);
}
.hero-visual {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-self: center;
  transform: translateY(-10px);
}
.hero-three-scene {
  position: relative;
  width: min(100%, 540px);
  height: 600px;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-three-scene canvas {
  display: block;
  width: 100%;
  height: 600px;
}
.mosaic-stage {
  width: min(100%, 660px);
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  perspective: 900px;
}
.mosaic-grid {
  inset: 34px 20px;
  gap: 10px;
  transform-style: preserve-3d;
}
.mosaic-cell-shell {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease), opacity 0.45s var(--ease);
}
.mosaic-cell {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  box-shadow:
    10px 12px 0 rgba(0, 41, 77, 0.18),
    inset -10px -10px 0 rgba(0, 0, 0, 0.16),
    inset 8px 8px 0 rgba(255, 255, 255, 0.22);
  transform: translate3d(0, 0, 0) rotate(0deg);
  animation: mosaicFloat 6.8s ease-in-out infinite;
  animation-delay: var(--float-d, 0s);
  transition: background 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.mosaic-logo {
  inset: 36% 14%;
}
@keyframes mosaicFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(var(--float-x, 0), var(--float-y, 0), 18px) rotate(var(--float-r, 0deg)); }
}

.showcase-section {
  background: #F5F5F7;
  color: var(--fg);
}
.showcase-section::before,
.showcase-section::after {
  display: none;
}
.showcase-tech-bg {
  display: none;
}
.tech-float-card {
  position: absolute;
  right: clamp(6%, 11vw, 18%);
  top: calc(-12% + var(--i) * 16%);
  width: min(330px, 28vw);
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.17);
  border-radius: 14px;
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255,255,255,0.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  transform: translateY(0);
  animation: techFloat 26s linear infinite;
  animation-delay: calc(var(--i) * -3.2s);
}
.tech-float-card:nth-child(even) {
  right: auto;
  left: clamp(8%, 14vw, 22%);
  opacity: 0.62;
}
.tech-float-card strong,
.tech-float-card small {
  display: block;
}
.tech-float-card strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.1;
}
.tech-float-card small {
  color: rgba(255,255,255,0.48);
  font-size: 12px;
  margin-top: 4px;
}
.tech-float-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 65% 45%, var(--orange) 0 3px, transparent 4px),
    rgba(255,255,255,0.08);
}
.showcase-head,
.showcase-grid {
  position: relative;
  z-index: 1;
}
.showcase-h2 {
  color: var(--navy);
}
.showcase-sub {
  color: var(--muted-fg);
}
.showcase-card {
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(0, 0, 0, 0.035)),
    var(--navy);
  color: #fff;
  border-color: rgba(0, 60, 112, 0.16);
  box-shadow: 0 22px 55px rgba(0, 60, 112, 0.18);
  transition:
    transform 0.3s var(--ease),
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.showcase-card:hover {
  background: #fff;
  color: var(--navy);
  border-color: rgba(0, 60, 112, 0.18);
  border-top-color: var(--orange);
  box-shadow: 0 26px 65px rgba(0, 60, 112, 0.18);
}
.showcase-body {
  min-height: 180px;
}
.showcase-card::before {
  display: none;
}
.showcase-title {
  color: #fff;
}
.showcase-desc {
  color: rgba(255,255,255,0.7);
}
.showcase-link {
  margin-top: auto;
  color: rgba(255,255,255,0.92);
}
.showcase-viz {
  min-height: 172px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(0, 60, 112, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 60, 112, 0.035);
}
.showcase-viz svg {
  color: var(--navy);
}
.showcase-viz [stroke]:not([stroke="none"]):not([stroke="#FF4E00"]):not([stroke="#ff4e00"]) {
  stroke: rgba(0, 60, 112, 0.74) !important;
  stroke-width: 1.25px;
}
.showcase-viz [stroke="#FF4E00"],
.showcase-viz [stroke="#ff4e00"],
.showcase-viz [stroke^="rgba(255,78,0"] {
  stroke: var(--orange) !important;
}
.showcase-viz [fill="#FF4E00"],
.showcase-viz [fill="#ff4e00"],
.showcase-viz [fill^="rgba(255,78,0"] {
  fill: var(--orange) !important;
}
.showcase-viz .sv-kpi rect,
.showcase-viz .sv-block rect,
.showcase-viz .sv-field rect,
.showcase-viz .sv-msg-agent rect,
.showcase-viz .sv-msg-user rect,
.showcase-viz .sv-typing rect {
  fill: rgba(0, 60, 112, 0.055) !important;
  stroke: rgba(0, 60, 112, 0.44) !important;
}
.showcase-viz .sv-line,
.showcase-viz .sv-axis,
.showcase-viz .sv-arrow line,
.showcase-viz .sv-arrow path,
.showcase-viz .sv-chain-link,
.showcase-viz .sv-cube-grid {
  stroke: rgba(0, 60, 112, 0.72) !important;
  stroke-width: 1.2px !important;
}
.showcase-viz .sv-dot,
.showcase-viz .sv-node-in {
  fill: rgba(0, 60, 112, 0.88) !important;
}
.showcase-viz [stroke="#fff"],
.showcase-viz [stroke="#FFFFFF"],
.showcase-viz [stroke="white"],
.showcase-viz [stroke="rgba(255,255,255,0.5)"],
.showcase-viz [stroke="rgba(255,255,255,0.7)"],
.showcase-viz [stroke="rgba(255,255,255,0.72)"] {
  stroke: var(--navy) !important;
  stroke-opacity: 0.82;
}
.showcase-viz [fill="#fff"],
.showcase-viz [fill="#FFFFFF"],
.showcase-viz [fill="white"],
.showcase-viz [fill="rgba(255,255,255,0.7)"],
.showcase-viz [fill="rgba(255,255,255,0.85)"] {
  fill: var(--navy) !important;
  fill-opacity: 0.9;
}
.showcase-viz text {
  fill: var(--navy) !important;
}
.showcase-card:hover .showcase-viz {
  background: #f8fafc;
  border-color: rgba(0, 60, 112, 0.16);
}
.showcase-card:hover .showcase-title {
  color: var(--navy);
}
.showcase-card:hover .showcase-desc {
  color: #4b5563;
}
.showcase-card:hover .showcase-link {
  color: var(--orange);
}
@keyframes techFloat {
  from { transform: translateY(128vh); }
  to { transform: translateY(-128vh); }
}

.areas-section {
  background: #fff;
}
.areas-head {
  max-width: 820px;
  text-align: center;
  margin: 0 auto clamp(48px, 6vw, 80px);
}
.areas-head h2 {
  max-width: 820px;
  font-size: clamp(34px, 3.8vw, 58px);
  line-height: 1.08;
}
.areas-head p {
  max-width: 640px;
  color: #5b6576;
  font-size: clamp(16px, 1.2vw, 18px);
}
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
}
.area-card {
  min-height: 360px;
}
.area-cta {
  color: var(--navy);
  font-weight: 700;
}

@media (max-width: 1023px) {
  .areas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .areas-grid {
    grid-template-columns: 1fr;
  }
  .area-card {
    min-height: 0;
  }
}

.microcase-card {
  text-decoration: none;
  color: inherit;
  min-height: 260px;
}
.microcase-foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.microcase-foot span:first-child {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.microcase-foot span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
}
.microcase-foot svg {
  width: 14px;
  height: 14px;
}

.cta-final .btn-primary {
  background: var(--orange);
  color: var(--navy);
  box-shadow: none;
}
.cta-final .btn-primary:hover {
  background: var(--orange-2);
  color: var(--navy);
}
.cta-final .btn,
.cta-final .lead,
.cta-final .tagline {
  letter-spacing: 0;
}
.cta-final .cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-final .tagline {
  margin-top: 34px;
}
.footer-brand p {
  color: var(--orange);
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }
  .hero-sticky {
    position: relative;
    min-height: auto;
    padding-top: 108px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    justify-content: center;
  }
  .hero-three-scene {
    width: min(100%, 520px);
    height: 420px;
    min-height: 420px;
  }
  .hero-three-scene canvas {
    height: 420px;
  }
  .hero-grid h1 {
    font-size: clamp(44px, 11vw, 64px);
  }
  .areas-split {
    grid-template-columns: 1fr;
  }
  .area-tab {
    min-height: 62px;
    font-size: 24px;
  }
  .showcase-tech-bg {
    opacity: 0.28;
  }
  .tech-float-card {
    width: 260px;
  }
}

@media (max-width: 640px) {
  .hero-three-scene {
    height: 340px;
    min-height: 340px;
  }
  .hero-three-scene canvas {
    height: 340px;
  }
}

/* =========================================================
   GOVERNANCE PAGE — recovered route
   ========================================================= */

.gov-page {
  background: #fff;
}

.gov-hero,
.gov-section,
.gov-cta {
  position: relative;
  padding: 128px 0;
}

.gov-hero {
  min-height: 84vh;
  display: flex;
  align-items: center;
  padding-top: 180px;
  overflow: hidden;
}

.gov-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 34%, rgba(0, 60, 112, 0.08), transparent 34%),
    linear-gradient(180deg, #fff 0%, #fff 64%, #f7f8fa 100%);
  pointer-events: none;
}

.gov-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 72px;
  align-items: center;
}

.gov-eyebrow {
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

.gov-hero h1 {
  max-width: 860px;
  font-size: clamp(44px, 5.1vw, 74px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.gov-lead {
  max-width: 720px;
  margin-top: 28px;
  color: var(--muted-fg);
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.55;
}

.gov-hero .cta-row,
.gov-cta .cta-row {
  margin-top: 42px;
  gap: 28px;
}

.gov-hero-panel {
  position: relative;
  min-height: 520px;
  border-radius: 32px;
  background: linear-gradient(145deg, #f7f9fb, #edf2f6);
  border: 1px solid rgba(0, 60, 112, 0.12);
  box-shadow: 0 28px 80px rgba(0, 41, 77, 0.10);
  overflow: hidden;
}

.gov-node-map {
  position: absolute;
  inset: 32px;
}

.gov-node {
  position: absolute;
  width: 74px;
  height: 54px;
  border-radius: 10px;
  background: rgba(0, 60, 112, 0.10);
  border: 1px solid rgba(0, 60, 112, 0.18);
  transform: rotate(var(--r, 0deg));
}

.gov-node:nth-child(3n) {
  background: rgba(0, 60, 112, 0.22);
}

.gov-node:nth-child(5n) {
  background: rgba(255, 78, 0, 0.74);
  border-color: rgba(255, 78, 0, 0.35);
}

.gov-node.n0 { left: 8%; top: 8%; --r: -9deg; }
.gov-node.n1 { left: 28%; top: 18%; --r: 7deg; }
.gov-node.n2 { left: 62%; top: 9%; --r: -4deg; }
.gov-node.n3 { left: 78%; top: 23%; --r: 8deg; }
.gov-node.n4 { left: 12%; top: 42%; --r: 5deg; }
.gov-node.n5 { left: 42%; top: 39%; --r: -6deg; }
.gov-node.n6 { left: 70%; top: 52%; --r: 12deg; }

.gov-node:nth-child(8) { left: 30%; top: 60%; }
.gov-node:nth-child(9) { left: 52%; top: 68%; }
.gov-node:nth-child(10) { left: 84%; top: 72%; }
.gov-node:nth-child(11) { left: 5%; top: 76%; }
.gov-node:nth-child(12) { left: 47%; top: 14%; }
.gov-node:nth-child(13) { left: 76%; top: 6%; }
.gov-node:nth-child(14) { left: 19%; top: 74%; }

.gov-section-soft {
  background: #efefef;
}

.gov-section-head {
  max-width: 820px;
  margin-bottom: 56px;
}

.gov-section-head h2 {
  font-size: clamp(36px, 4vw, 64px);
  letter-spacing: -0.045em;
}

.gov-section-head p:not(.gov-eyebrow) {
  max-width: 740px;
  margin-top: 18px;
  color: var(--muted-fg);
  font-size: 20px;
}

.gov-problem-grid,
.gov-services-grid,
.gov-phase-grid {
  display: grid;
  gap: 24px;
}

.gov-problem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gov-services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gov-phase-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gov-problem-card,
.gov-service-card,
.gov-phase-card,
.gov-faq-item {
  border: 1px solid rgba(0, 60, 112, 0.10);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 41, 77, 0.07);
}

.gov-problem-card,
.gov-service-card,
.gov-phase-card {
  padding: 34px;
}

.gov-icon {
  width: 38px;
  height: 38px;
  color: var(--navy);
  margin-bottom: 26px;
}

.gov-problem-card h3,
.gov-service-card h3,
.gov-phase-card h3 {
  margin-bottom: 14px;
  font-size: 25px;
}

.gov-problem-card p,
.gov-service-card p,
.gov-phase-card p {
  color: var(--fg-soft);
  font-size: 17px;
  line-height: 1.65;
}

.gov-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.gov-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 78, 0, 0.12);
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

.gov-section-blue {
  background: var(--navy);
  color: #fff;
}

.gov-section-blue h2,
.gov-section-blue h3 {
  color: #fff;
}

.gov-section-blue .gov-eyebrow {
  color: var(--orange);
}

.gov-section-blue .gov-section-head p:not(.gov-eyebrow),
.gov-section-blue .gov-phase-card p {
  color: rgba(255, 255, 255, 0.72);
}

.gov-section-blue .gov-phase-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.gov-phase-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
}

.gov-faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: start;
}

.gov-faq-list {
  display: grid;
  gap: 14px;
}

.gov-faq-item {
  overflow: hidden;
}

.gov-faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  color: var(--navy);
  text-align: left;
  font-weight: 750;
  font-size: 18px;
}

.gov-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms var(--ease);
}

.gov-faq-answer p {
  overflow: hidden;
  padding: 0 28px;
  color: var(--muted-fg);
}

.gov-faq-item.is-open .gov-faq-answer {
  grid-template-rows: 1fr;
}

.gov-faq-item.is-open .gov-faq-answer p {
  padding-bottom: 26px;
}

.gov-cta {
  margin: 0;
  background: linear-gradient(135deg, var(--navy), #0b4d84);
}

.gov-cta .inner {
  width: min(100% - 48px, 940px);
  margin: 0 auto;
  text-align: center;
}

.gov-cta h2,
.gov-cta .lead {
  color: #fff;
}

.gov-cta .eyebrow {
  color: var(--orange);
}

.gov-cta .lead {
  opacity: 0.76;
}

.gov-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.gov-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .gov-hero-grid,
  .gov-faq-layout {
    grid-template-columns: 1fr;
  }

  .gov-hero-panel {
    min-height: 360px;
  }

  .gov-problem-grid,
  .gov-services-grid,
  .gov-phase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gov-hero,
  .gov-section,
  .gov-cta {
    padding: 86px 0;
  }

  .gov-hero {
    padding-top: 136px;
  }

  .gov-hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .gov-problem-card,
  .gov-service-card,
  .gov-phase-card {
    padding: 26px;
    border-radius: 22px;
  }

  .gov-hero .cta-row,
  .gov-cta .cta-row {
    gap: 16px;
  }
}

/* =========================================================
   PASSADA 2 — Pulido home: hero compacto, equipo 3 cols,
   areas con fondo gris y borde gradient animado en hover
   ========================================================= */

/* Hero — reducir tamaño del título H1 (mensaje 1) */
.hero-grid h1 {
  font-size: clamp(40px, 4vw, 60px);
  letter-spacing: -0.025em;
}

/* Hero — más respiración por arriba para que el menú fijo no tape el eyebrow */
.hero-sticky {
  padding-top: 140px;
}

/* TeamSection — forzar 3 columnas (sobrescribe el repeat(4) de .areas-grid) */
.team-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 980px) {
  .team-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 639px) {
  .team-grid-3 {
    grid-template-columns: 1fr !important;
  }
}

/* TeamSection — botón "Conoce al equipo Talos" centrado debajo de las 3 tarjetas */
#equipo-home .btn-ghost {
  display: inline-flex;
}

/* Sección "El diagnóstico decide el orden" — fondo gris suave para diferenciarla
   de la sección anterior (microcasos). Sobrescribe el background:#fff de la
   passada home original. */
#metodologia.areas-section,
section.areas-section[id="metodologia"] {
  background: #F5F6F8;
}

/* TeamSection — fondo blanco para distinguirla del bloque de áreas que ahora es gris */
#equipo-home.areas-section {
  background: #FFFFFF;
}

/* Tarjetas de área — borde gradient animado al hover (solo en sección de áreas,
   no en TeamSection ni en otras secciones). Efecto: en reposo tarjeta limpia,
   al pasar el cursor aparece un halo conic-gradient navy/orange girando alrededor. */
#metodologia .area-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(0, 60, 112, 0.08);
  isolation: isolate;
}

#metodologia .area-card::before,
#equipo-home .area-card::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 22px;
  padding: 1.5px;
  background: linear-gradient(
    110deg,
    rgba(0, 60, 112, 0.18) 0%,
    rgba(0, 60, 112, 0.18) 35%,
    #003C70 45%,
    #FF4E00 55%,
    rgba(0, 60, 112, 0.18) 65%,
    rgba(0, 60, 112, 0.18) 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
  z-index: 0;
}

#metodologia .area-card:hover::before,
#equipo-home .area-card:hover::before {
  opacity: 1;
  animation: areaCardShimmer 3.2s linear infinite;
}

#metodologia .area-card:hover,
#equipo-home .area-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 60, 112, 0.12);
  border-color: transparent;
}

@keyframes areaCardShimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* TeamSection — preparación de tarjetas para el efecto borde animado */
#equipo-home .area-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(0, 60, 112, 0.08);
  isolation: isolate;
}

@media (prefers-reduced-motion: reduce) {
  #metodologia .area-card::before,
  #equipo-home .area-card::before {
    animation: none !important;
  }
}
