/* =========================================================
   ST Representaciones · POC B (propuesta nueva)
   Concepto: "precisión en cada etapa". El corte diagonal y el
   paralelogramo del logo enmarcan imágenes, indicadores y acentos.
   Colores medidos del logo: navy #0E2758 · acento ~#1D4DA3 · gris #3C3C3C
   ========================================================= */

:root {
  --navy: #0e2758;
  --navy-800: #12306a;
  --navy-950: #081634;
  --blue: #1d4da3;
  --blue-600: #173f89;
  --blue-400: #3d6fd0;
  --sky: #8fb0ee;
  --sky-100: #e8eefa;
  --graphite: #3c3c3c;
  --ink: #262b33;
  --mute: #5d6575;
  --paper: #f4f6fa;
  --line: #e1e6ef;
  --white: #fff;

  --font-title: "Sora", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --radius: 18px;
  --gutter: 20px;
  --max: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.75, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow: 0 18px 40px rgba(14, 39, 88, 0.12);
  --slide: 4800ms; /* duración de cada etapa del visor */

  /* Logo en versión clara (sobre fondos oscuros) */
  --logo-1: #fff;
  --logo-2: #b9c6de;
  --logo-3: #5b86d6;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* En móviles el overflow del body no alcanza: las animaciones de entrada (p. ej. el formulario) ensanchaban la página */
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 {
  font-family: var(--font-title);
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
}
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; }
h3 { font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- Íconos y marcas gráficas ---------- */
.ic { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic--sm { width: 18px; height: 18px; stroke-width: 3.2; }

/* Paralelogramo del logo */
.tick {
  display: inline-block;
  width: 20px;
  height: 10px;
  background: var(--sky);
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
  flex: none;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 18px;
}
.kicker--dark { color: var(--blue); }
.kicker--dark .tick { background: var(--blue); }

/* ---------- Botones ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font: 600 0.98rem/1 var(--font-title);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
/* Relleno que entra en diagonal, como el corte del logo */
.btn::before {
  content: "";
  position: absolute;
  inset: 0 -20%;
  z-index: -1;
  transform: translateX(-105%) skewX(-28deg);
  transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: translateX(0) skewX(-28deg); }
.btn .ic { transition: transform 0.3s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary::before { background: var(--navy); }
.btn--primary:hover { box-shadow: 0 12px 26px rgba(29, 77, 163, 0.35); transform: translateY(-2px); color: #fff; }
.section--dark .btn--primary::before,
.hero .btn--primary::before { background: var(--blue-400); }
.btn--line { color: var(--navy); border-color: rgba(14, 39, 88, 0.3); }
.btn--line::before { background: var(--navy); }
.btn--line:hover { color: #fff; border-color: var(--navy); }
.hero .btn--line,
.section--dark .btn--line { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.hero .btn--line::before,
.section--dark .btn--line::before { background: rgba(255, 255, 255, 0.12); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white::before { background: var(--sky-100); }
.btn--line-light { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn--line-light::before { background: rgba(255, 255, 255, 0.14); }
.btn--line-light:hover { color: #fff; }
.btn--sm { padding: 12px 18px; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, transform 0.45s var(--ease);
}
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.5) blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(14, 39, 88, 0.06);
  --logo-1: #0e2758;
  --logo-2: #3c3c3c;
  --logo-3: #1d4da3;
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }
.brand { margin-right: auto; }
.brand-logo { height: 40px; width: auto; aspect-ratio: 960 / 470; }

.nav-toggle {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.is-solid .nav-toggle { background: var(--sky-100); }
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #fff;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease), background 0.3s;
}
.is-solid .nav-toggle span { background: var(--navy); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span { background: #fff; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Menú móvil a pantalla completa */
.main-nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  align-content: center;
  padding: 0 calc(var(--gutter) + 8px);
  background: var(--navy-950);
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  visibility: hidden;
  transition: clip-path 0.6s var(--ease-in-out), visibility 0s 0.6s;
}
.main-nav.is-open { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); visibility: visible; transition-delay: 0s; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li { overflow: hidden; }
.main-nav a {
  display: block;
  padding: 8px 0;
  font: 600 clamp(1.9rem, 8vw, 2.6rem)/1.2 var(--font-title);
  color: #fff;
  text-decoration: none;
  transform: translateY(110%);
  transition: transform 0.6s var(--ease);
}
.main-nav.is-open a { transform: none; }
.main-nav.is-open li:nth-child(2) a { transition-delay: 0.05s; }
.main-nav.is-open li:nth-child(3) a { transition-delay: 0.1s; }
.main-nav.is-open li:nth-child(4) a { transition-delay: 0.15s; }
.main-nav.is-open li:nth-child(5) a { transition-delay: 0.2s; }
.header-cta { display: none; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { --logo-1: #fff; --logo-2: #b9c6de; --logo-3: #5b86d6; background: transparent; box-shadow: none; backdrop-filter: none; transform: none; }
body.menu-open .brand { position: relative; z-index: 2; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 36px) 0 84px;
  color: #fff;
  background:
    radial-gradient(1100px 620px at 100% 0%, rgba(29, 77, 163, 0.55), transparent 60%),
    linear-gradient(170deg, var(--navy) 0%, var(--navy-950) 85%);
}
/* Retícula técnica sutil */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(143, 176, 238, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 176, 238, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
  pointer-events: none;
}
/* Luz que sigue al cursor */
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 520px at var(--mx, 70%) var(--my, 40%), rgba(91, 134, 214, 0.22), transparent 70%);
  pointer-events: none;
  transition: background 0.2s;
}
.hero-grid { position: relative; display: grid; gap: 52px; align-items: center; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  font-weight: 700;
  margin-bottom: 0.35em;
  max-width: 14ch;
}
.rotator {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.35em;
  font: 500 clamp(1.3rem, 2.8vw, 1.85rem)/1.3 var(--font-title);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.9em;
}
.rotator-words { position: relative; display: inline-grid; overflow: hidden; }
.rotator-words span {
  grid-area: 1 / 1;
  justify-self: start;
  padding-bottom: 4px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(var(--blue-400), var(--blue-400)) 0 100% / 100% 5px no-repeat;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.5s;
}
.rotator-words span.is-active { transform: none; opacity: 1; }
.rotator-words span.is-out { transform: translateY(-105%); opacity: 0; }

.hero-lead { color: #c9d5ee; font-size: clamp(1.02rem, 2vw, 1.15rem); max-width: 540px; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

[data-anim] {
  opacity: 0;
  transform: translateY(30px);
  animation: rise 1s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 120ms + 150ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* Visor de etapas con marco de paralelogramo */
.stage-viewer { position: relative; max-width: 430px; width: 100%; justify-self: center; }
.stage-frame {
  position: relative;
  aspect-ratio: 5 / 5.4;
  clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%);
  background: var(--navy-800);
}
.stage-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  background:
    linear-gradient(rgba(143, 176, 238, 0.12) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(143, 176, 238, 0.12) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(160deg, #1b4593, var(--navy-950));
}
.stage-slide.is-prev { opacity: 1; z-index: 1; }
.stage-slide.is-active { opacity: 1; z-index: 2; animation: wipe 1.1s var(--ease-in-out) both; }
@keyframes wipe {
  from { clip-path: polygon(100% 0, 140% 0, 120% 100%, 80% 100%); }
  to { clip-path: polygon(-40% 0, 140% 0, 120% 100%, -60% 100%); }
}
.stage-slide img { width: 100%; height: 100%; object-fit: cover; }
.stage-slide.is-active img { animation: zoom var(--slide) linear both; }
@keyframes zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
/* Con foto: velo azul para integrarla a la marca y el ícono de la etapa como insignia */
.stage-slide:not(.is-empty)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 77, 163, 0.18), rgba(8, 22, 52, 0.15) 45%, rgba(8, 22, 52, 0.6));
  pointer-events: none;
}
.stage-art {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(8, 22, 52, 0.72);
  color: #fff;
  backdrop-filter: blur(6px);
}
.stage-art .ic { width: 60%; height: auto; stroke-width: 2; }
.stage-slide.is-empty img { display: none; }
.stage-slide.is-empty .stage-art { inset: 0; width: auto; height: auto; border-radius: 0; background: none; backdrop-filter: none; color: var(--sky); }
.stage-slide.is-empty .stage-art .ic { width: 32%; stroke-width: 1.5; stroke-dasharray: 150; stroke-dashoffset: 0; }
.stage-slide.is-empty.is-active .stage-art .ic { animation: draw 1.8s var(--ease) 0.3s both; }
@keyframes draw { from { stroke-dashoffset: 150; } to { stroke-dashoffset: 0; } }

.stage-caption {
  position: absolute;
  z-index: 3;
  left: -6px;
  bottom: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 20px 40px rgba(4, 12, 30, 0.35);
  transition: transform 0.35s var(--ease);
}
.stage-caption:hover { transform: translateY(-3px); }
.stage-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font: 700 0.9rem var(--font-title);
}
.stage-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 170px; }
.stage-txt strong { font: 600 1rem var(--font-title); }
.stage-txt small { color: var(--mute); font-size: 0.85rem; }
.stage-caption.is-changing .stage-txt { animation: swap 0.6s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.stage-controls { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-inline: 8%; }
.stage-bars { flex: 1; display: flex; gap: 6px; }
.stage-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.stage-arrow:hover { background: var(--blue); border-color: var(--blue); transform: scale(1.06); }
.stage-arrow:active { transform: scale(0.96); }
.stage-bars span { position: relative; flex: 1; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); overflow: hidden; cursor: pointer; }
.stage-bars span::after { content: ""; position: absolute; inset: 0; background: var(--sky); transform: scaleX(0); transform-origin: 0 50%; }
.stage-bars span.is-done::after { transform: scaleX(1); }
.stage-bars span.is-active::after { animation: fill var(--slide) linear forwards; }
.stage-viewer.is-paused .stage-bars span.is-active::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@media (max-width: 979px) { .scroll-cue { display: none; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marcas ---------- */
.brands { padding: 40px 0; border-bottom: 1px solid var(--line); }
.brands-title {
  font: 600 0.78rem var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
  margin-bottom: 22px;
}
.brands-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.brands-track {
  display: flex;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 0;
  animation: marquee 42s linear infinite;
}
.brands-marquee:hover .brands-track,
.brands-marquee:focus-within .brands-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.brands-track li { flex: 0 0 auto; width: 190px; display: grid; border-left: 1px solid var(--line); }
.brands-track .logo-slot { border-radius: 0; }
.brands-track .logo-slot:hover { background: var(--paper); }
.logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.logo-slot img { max-height: 40px; width: auto; height: auto; max-width: 140px; filter: grayscale(1); opacity: 0.65; transition: filter 0.3s, opacity 0.3s; }
.logo-slot:hover img { filter: none; opacity: 1; }
.logo-text { display: none; }
.logo-slot.is-empty img { display: none; }
.logo-slot.is-empty .logo-text { display: block; font: 700 1.1rem var(--font-title); letter-spacing: -0.01em; color: #96a1b6; white-space: nowrap; transition: color 0.3s; }
.logo-slot.is-empty:hover .logo-text { color: var(--navy); }

/* ---------- Secciones ---------- */
.section { position: relative; padding: 88px 0; }
.section--tint { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head > p:last-child { color: var(--mute); font-size: 1.1rem; margin: 0; }

/* Medios: foto o, mientras falte, ilustración de línea sobre azul */
.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(143, 176, 238, 0.12) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, rgba(143, 176, 238, 0.12) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(155deg, #1b4593, var(--navy-950));
}
.media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media:not(.is-empty)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 39, 88, 0.08) 30%, rgba(8, 22, 52, 0.55));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.media--panel:hover > img { transform: scale(1.04); }
.media-art { display: none; }
.media.is-empty > img { display: none; }
.media.is-empty .media-art { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sky); }
.media-art .ic { width: 34%; max-width: 170px; height: auto; stroke-width: 1.3; }

/* Nosotros */
.statement {
  font: 600 clamp(1.55rem, 3.6vw, 2.7rem)/1.25 var(--font-title);
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 24ch;
  margin-bottom: 56px;
}
.statement .w { opacity: 0.16; transition: opacity 0.25s; }
.statement .w.is-lit { opacity: 1; }
.about-grid { display: grid; gap: 40px; align-items: center; }
.media--slant {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), calc(100% - 120px) 100%, 0 100%);
}
.media-tag {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(8, 22, 52, 0.85);
  color: #fff;
  font: 600 0.9rem var(--font-title);
  backdrop-filter: blur(6px);
}
.about-copy > p { font-size: 1.1rem; }
.about-copy strong { color: var(--navy); font-weight: 600; }
.pillars { list-style: none; margin: 28px 0 0; padding: 0; }
.pillars li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.pillars h3 { font-size: 1.1rem; margin: 2px 0 2px; }
.pillars p { margin: 0; color: var(--mute); font-size: 0.98rem; }
.pillar-ic {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--sky-100);
  color: var(--blue);
  transition: background 0.35s, color 0.35s, transform 0.35s var(--ease);
}
.pillars li:hover .pillar-ic { background: var(--blue); color: #fff; transform: translateY(-3px); }

#nosotros { padding-bottom: 0; }
.figures { margin-top: 88px; background: var(--navy); color: #fff; }
.figures-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin-block: 0; padding: 0; }
.figures-grid > div { display: flex; flex-direction: column; padding: 34px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.figures-grid dd { order: -1; margin: 0; font: 700 clamp(2.3rem, 6vw, 3.6rem)/1 var(--font-title); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.figures-grid dt { margin-top: 10px; color: var(--sky); font-size: 0.95rem; }

/* Segmentos: pestañas */
.tabs-list {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-list button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 0 auto;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: 600 0.95rem var(--font-title);
  color: var(--mute);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.35s, color 0.35s;
}
.tabs-list button .ic { width: 22px; height: 22px; }
.tabs-list button:hover { color: var(--navy); background: var(--paper); }
.tabs-list button[aria-selected="true"] { background: var(--navy); color: #fff; }
.tab-panel { display: grid; gap: 30px; align-items: center; }
.tab-panel:not([hidden]) { animation: panel-in 0.7s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.media--panel { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.tab-panel:not([hidden]) .media--panel { animation: clip-in 0.9s var(--ease-in-out) both; }
@keyframes clip-in { from { clip-path: polygon(0 0, 0 0, -20% 100%, -20% 100%); } to { clip-path: polygon(0 0, 120% 0, 100% 100%, -20% 100%); } }
.panel-copy h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.panel-copy > p { color: var(--mute); }
.checks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--blue); color: #fff; stroke-width: 4; margin-top: 2px; }
.chips-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font: 600 0.88rem var(--font-title);
  color: var(--navy);
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.chips a:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }

/* Representamos: explorador del proceso */
.section--dark { background: var(--navy-950); color: #c9d5ee; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section-head > p:last-child { color: #a9b8d8; }
.dark-shard {
  position: absolute;
  right: -180px;
  top: 60px;
  width: 620px;
  height: 330px;
  background: linear-gradient(135deg, rgba(61, 111, 208, 0.25), transparent);
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
  pointer-events: none;
}
.section-head--split { max-width: none; display: grid; gap: 10px; }
.section-head--split h2 { margin: 0; }

.rail {
  --p: 0;
  position: relative;
  display: flex;
  gap: 4px;
  margin: 0 calc(var(--gutter) * -1) 30px;
  padding: 12px var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar, .tabs-list::-webkit-scrollbar { display: none; }
.rail-line {
  position: absolute;
  left: calc(var(--gutter) + 50px);
  width: calc(7 * 112px - 104px);
  top: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
}
.rail-line span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--blue-400), var(--sky));
  transform-origin: 0 50%;
  transform: scaleX(var(--p));
  transition: transform 0.7s var(--ease);
}
.rail button {
  position: relative;
  flex: 0 0 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 4px 6px;
  border: 0;
  background: none;
  color: #a9b8d8;
  font: 600 0.88rem/1.25 var(--font-title);
  text-align: center;
  cursor: pointer;
  scroll-snap-align: center;
}
.rail-txt { display: flex; flex-direction: column; }
.rail-txt small { font: 400 0.78rem var(--font-body); color: #7d8db0; }
.node {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy-950);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #a9b8d8;
  transition: background 0.4s, border-color 0.4s, color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.node .ic { width: 26px; height: 26px; }
.rail button:hover .node { border-color: var(--sky); color: #fff; }
.rail button.is-done .node { border-color: var(--blue-400); color: var(--sky); }
.rail button[aria-selected="true"] { color: #fff; }
.rail button[aria-selected="true"] .rail-txt small { color: var(--sky); }
.rail button[aria-selected="true"] .node {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 0 7px rgba(61, 111, 208, 0.22), 0 12px 26px rgba(29, 77, 163, 0.5);
}

.rep { display: grid; gap: 30px; align-items: center; }
.rep:not([hidden]) .rep-media { animation: clip-in 0.9s var(--ease-in-out) both; }
.rep:not([hidden]) .rep-copy > * { animation: panel-in 0.7s var(--ease) both; }
.rep:not([hidden]) .rep-copy > :nth-child(2) { animation-delay: 0.06s; }
.rep:not([hidden]) .rep-copy > :nth-child(3) { animation-delay: 0.12s; }
.rep:not([hidden]) .rep-copy > :nth-child(4) { animation-delay: 0.18s; }
.rep:not([hidden]) .rep-copy > :nth-child(5) { animation-delay: 0.24s; }
.rep:not([hidden]) .rep-copy > :nth-child(6) { animation-delay: 0.3s; }
.rep-media { aspect-ratio: 5 / 4; border-radius: var(--radius); }
/* Ficha: foto del equipo (1000×800, con la zona superior libre) y el logo en una placa blanca */
.rep-photo { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); }
.rep-photo:not(.is-empty)::after { content: none; }
.rep-logo {
  position: absolute;
  z-index: 2;
  left: 4%;
  top: 5%;
  width: 40%;
  height: 17%;
  min-height: 0;
  padding: 2.2% 3%;
  background: #fff;
  border: 1px solid rgba(14, 39, 88, 0.08);
  box-shadow: 0 10px 24px rgba(8, 22, 52, 0.14);
}
.rep-logo img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; filter: none; opacity: 1; }
.rep-logo.is-empty .logo-text { color: var(--navy); white-space: normal; text-align: center; line-height: 1.1; }
.rep-stage { font: 600 0.8rem var(--font-title); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); margin-bottom: 10px; }
.rep h3 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 0.3em; }
.rep-origin { display: flex; align-items: center; gap: 8px; color: #a9b8d8; font-size: 0.95rem; }
.rep-origin .ic { color: var(--sky); }
.rep-facts { display: grid; gap: 10px; margin: 0 0 24px; }
.rep-facts div { padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.rep-facts dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); }
.rep-facts dd { margin: 2px 0 0; color: #e3e9f6; font-size: 0.97rem; }
.rep-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.explorer-nav { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 30px; }
.explorer-count { font: 500 0.95rem var(--font-title); color: #7d8db0; }
.explorer-count b { color: #fff; }
.round-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.round-btn:hover { background: var(--blue); border-color: var(--blue); transform: scale(1.06); }

/* Servicios */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.service {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 30px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}
/* Fondo azul que sube al pasar el cursor */
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, var(--blue), var(--navy));
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition: clip-path 0.6s var(--ease-in-out);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.service-num {
  position: absolute;
  right: 22px;
  top: 14px;
  font: 700 4.2rem/1 var(--font-title);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  transition: -webkit-text-stroke-color 0.4s;
}
.service-ic {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--sky-100);
  color: var(--blue);
  transition: background 0.4s, color 0.4s;
}
.service-when { font: 600 0.78rem var(--font-title); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; transition: color 0.4s; }
.service h3 { font-size: 1.35rem; transition: color 0.4s; }
.service > p:not(.service-when) { color: var(--mute); transition: color 0.4s; }
.service-link { display: inline-flex; align-items: center; gap: 8px; padding-block: 10px; margin-block: -10px; font: 600 0.95rem var(--font-title); text-decoration: none; transition: color 0.4s; }
.service-link .ic { transition: transform 0.3s var(--ease); }
.service:hover .service-num { -webkit-text-stroke-color: rgba(255, 255, 255, 0.25); }
.service:hover .service-ic { background: rgba(255, 255, 255, 0.12); color: #fff; }
.service:hover .service-when { color: var(--sky); }
.service:hover h3, .service:hover .service-link { color: #fff; }
.service:hover > p:not(.service-when) { color: #d3ddf2; }
.service:hover .service-link .ic { transform: translateX(4px); }

/* Llamado */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: linear-gradient(110deg, var(--blue) 0%, var(--navy) 70%);
  color: #dce5f7;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.3em; }
.cta-band p { margin: 0; font-size: 1.1rem; }
.cta-inner { position: relative; display: grid; gap: 28px; align-items: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-shard { position: absolute; background: rgba(255, 255, 255, 0.07); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); animation: drift 14s ease-in-out infinite; }
.cta-shard--1 { width: 300px; height: 160px; right: 10%; top: -40px; }
.cta-shard--2 { width: 180px; height: 96px; right: 32%; bottom: -30px; animation-delay: -6s; }
@keyframes drift { 50% { transform: translateX(-40px); } }

/* Contacto */
.contact-grid { display: grid; }
.contact-grid > .form { margin-top: 44px; }
.contact-grid > *, .contact-list li > div { min-width: 0; }
.contact-copy > p:not(.kicker) { color: var(--mute); font-size: 1.1rem; }
.contact-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.contact-list li:hover { border-color: var(--sky); transform: translateX(4px); }
.contact-list small { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.contact-list div > a, .contact-list div > span { color: var(--navy); font-weight: 600; text-decoration: none; }
.contact-list div > a { display: inline-block; padding-block: 6px; margin-block: -6px; overflow-wrap: anywhere; }
.contact-ic { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: #fff; }
.contact-ic .ic { width: 22px; height: 22px; }

.form {
  display: grid;
  gap: 14px;
  padding: 28px 22px;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.form-head h3 { font-size: 1.5rem; margin-bottom: 0.2em; }
.form-head p { margin: 0 0 6px; color: var(--mute); font-size: 0.95rem; }
.form-row { display: grid; gap: 14px; }
/* Campos con etiqueta flotante */
.field { position: relative; display: grid; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 24px 14px 8px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
  appearance: none;
}
.field--select select {
  background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field textarea { min-height: 128px; resize: vertical; }
.field label {
  position: absolute;
  left: 15px;
  top: 16px;
  color: var(--mute);
  font-size: 1rem;
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform 0.25s var(--ease), color 0.25s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field--select label { transform: translateY(-9px) scale(0.78); color: var(--blue); font-weight: 600; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 77, 163, 0.12); }
.field .error { display: none; margin-top: 6px; font-size: 0.85rem; color: #b3261e; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b3261e; }
.field.is-invalid .error { display: block; }
.field.is-flash input, .field.is-flash select { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(29, 77, 163, 0.5); } 100% { box-shadow: 0 0 0 10px rgba(29, 77, 163, 0); } }
.hp { position: absolute; left: -9999px; }
.form-foot { display: grid; gap: 14px; align-items: center; }
.form-note { margin: 0; font-size: 0.85rem; color: var(--mute); }
.form-status { margin: 0; font-weight: 600; color: var(--blue); }
.form-status:empty { display: none; }
.form-status.is-error { color: #b3261e; }
.form-status a { color: inherit; }
button.btn:disabled { opacity: 0.7; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9fb0d2; padding: 64px 0 26px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 34px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer-brand .brand-logo { height: 46px; margin-bottom: 16px; }
.footer-brand p { max-width: 30ch; }
.site-footer h2 { font: 600 0.78rem var(--font-title); letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
/* Áreas táctiles de al menos ~32 px sin cambiar el ritmo visual */
.site-footer ul a { display: inline-block; padding-block: 6px; }
.site-footer a { color: #c9d5ee; text-decoration: none; transition: color 0.25s; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; font-size: 0.85rem; }

/* ---------- Animaciones al hacer scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease), clip-path 1.1s var(--ease-in-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal="right"] { transform: translateX(46px); }
[data-reveal="wipe"] { opacity: 1; transform: none; }
/* Cortina que se retira en diagonal */
[data-reveal="wipe"]::before {
  content: "";
  position: absolute;
  inset: 0 -30%;
  z-index: 3;
  background: var(--white);
  transform: translateX(0) skewX(-20deg);
  transition: transform 1.2s var(--ease-in-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="wipe"].is-in::before { transform: translateX(110%) skewX(-20deg); }
/* Títulos que entran palabra por palabra */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(110%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--wi) * 55ms); }
[data-split].is-in .w > span { transform: none; }
.no-js [data-reveal], .no-js [data-anim] { opacity: 1; transform: none; animation: none; }
.no-js [data-reveal="wipe"]::before { display: none; }

/* ---------- Tableta y escritorio ---------- */
@media (min-width: 640px) {
  .figures-grid { grid-template-columns: repeat(4, 1fr); }
  .figures-grid > div { padding: 46px 28px; border-bottom: 0; border-left: 1px solid rgba(255, 255, 255, 0.1); }
  .figures-grid > div:first-child { border-left: 0; padding-left: 0; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-foot { grid-template-columns: 1fr auto; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

@media (min-width: 980px) {
  :root { --gutter: 36px; --header-h: 86px; }
  .brand-logo { height: 48px; }
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .main-nav {
    position: static;
    display: block;
    padding: 0;
    background: none;
    clip-path: none;
    visibility: visible;
    transition: none;
  }
  .main-nav ul { display: flex; gap: 4px; }
  .main-nav li { overflow: visible; }
  .main-nav a {
    position: relative;
    padding: 10px 14px;
    font: 500 0.98rem var(--font-title);
    color: rgba(255, 255, 255, 0.85);
    transform: none;
    transition: color 0.3s;
  }
  .is-solid .main-nav a { color: var(--navy); }
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 6px;
    background: var(--blue-400);
    clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.4s var(--ease);
  }
  .main-nav a:hover, .main-nav a.is-active { color: #fff; }
  .is-solid .main-nav a:hover, .is-solid .main-nav a.is-active { color: var(--blue); }
  .main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

  .hero-grid { grid-template-columns: 1.3fr 0.7fr; gap: 64px; }
  .stage-viewer { justify-self: end; }
  .stage-caption { left: -40px; }

  .brands-track li { width: 220px; }

  .section { padding: 128px 0; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .figures { margin-top: 128px; }
  .tab-panel { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .section-head--split { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 64px; margin-bottom: 56px; }
  .rail { margin-inline: 0; padding-inline: 0; justify-content: space-between; overflow: visible; }
  .rail button { flex: 1 1 0; }
  .rail-line { left: calc(100% / 14); right: calc(100% / 14); width: auto; }
  .rep { grid-template-columns: 1fr 1fr; gap: 64px; }
  .services { gap: 24px; }
  .service { padding: 36px 32px 32px; }
  .cta-inner { grid-template-columns: 1fr auto; }
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; column-gap: 72px; align-items: start; }
  .contact-grid > .kicker { grid-column: 1 / -1; }
  .contact-grid > .form { margin-top: 0; }
  .form { padding: 40px 38px; }
}

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-anim], [data-reveal] { opacity: 1; transform: none; }
  [data-reveal="wipe"]::before { display: none; }
  [data-split] .w > span { transform: none; }
  .statement .w { opacity: 1; }
  .stage-bars { visibility: hidden; }
  .brands-track { flex-wrap: wrap; justify-content: center; width: auto; }
}
