/* ============================================
   KORA — rebuild base styles (v2, fidelity pass)
   Breakpoints: mobile ≤809px · tablet 810–1199px · desktop ≥1200px
   ============================================ */

:root {
  --barra-fija: 76px;
  --bg: #FDFDFA;
  --bg-alt: #F3F6EC;
  --bg-soft: #F8FAF4;
  --ink: #22302B;
  --ink-2: #2B3A34;
  --dark: #1B2A24;
  --muted: #5E6D66;
  --line: rgba(34, 48, 43, 0.10);
  --accent: #7AB534;
  --accent-ink: #24430F;
  --white: #FFFFFF;
  --white-75: rgba(255, 255, 255, 0.75);
  --white-35: rgba(255, 255, 255, 0.35);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 30px;
  --r-xl: 40px;
  --r-pill: 999px;

  --font: "Geist", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Poppins", "Geist", sans-serif;
  --fs-h1: clamp(2.6rem, 6.2vw, 5rem);
  --fs-h2: clamp(2rem, 4.4vw, 3.5rem);
  --fs-h3: clamp(1.35rem, 2vw, 1.5625rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.875rem;

  --container: 1240px;
  --pad: clamp(20px, 4vw, 50px);
  --sec-gap: clamp(90px, 12vw, 150px);
}

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

/* ---------- accesibilidad ---------- */
/* Visible focus for keyboard users, on both light and dark grounds. */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.cta-form :focus-visible,
.pricing :focus-visible,
.testi-hero :focus-visible { outline-color: #FFFFFF; }

/* Jump straight past the nav; only shows once it has keyboard focus. */
.skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 300;
  transform: translateY(-140%);
  background: var(--ink); color: var(--white);
  padding: 12px 20px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 500;
  transition: transform .25s ease;
}
.skip-link:focus { transform: translateY(0); }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: calc(var(--sec-gap) / 2); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); font-weight: 500; color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

/* word-fill scrub headings: JS wraps words, scroll fills color */
.fill-words .fw { color: rgba(36,36,36,.18); display: inline-block; }
.fill-words--light .fw { color: rgba(255,255,255,.3); }

/* ---------- image placeholders ---------- */
.ph {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #E8E8DD 0%, #D6D6C9 55%, #C9CFC2 100%);
  border-radius: inherit;
}
.ph::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; color: rgba(36,36,36,.45);
}
.ph--dark { background: linear-gradient(135deg, #2E2E2E, #1D1F1E 60%, #24312B); }
.ph--dark::after { color: rgba(255,255,255,.4); }
.ph--flower { background: linear-gradient(160deg, #7FA8C9 0%, #9BB8D4 35%, #E8946B 60%, #C97B54 75%, #6E96BC 100%); }
.ph--flower::after { color: rgba(255,255,255,.55); }
/* An avatar is an inline chip beside a name, never a background fill. Several
   sections stretch their .ph placeholders to cover the container, and those
   rules would otherwise drag avatars to the corner on top of the text. */
.avatar.ph { position: relative !important; inset: auto !important; flex: none; }
.avatar > img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ph img, .ph picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph img { object-fit: cover; }
.ph:has(img)::after { content: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding-inline: 28px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 500;
  overflow: hidden;
  transition: transform .45s cubic-bezier(.22,1,.36,1), background-color .3s ease, border-color .3s ease;
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn .btn-label { position: relative; display: block; overflow: hidden; }
.btn .btn-label > span { display: block; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.btn .btn-label > span:last-child { position: absolute; inset: 0; transform: translateY(110%); }
.btn:hover .btn-label > span:first-child { transform: translateY(-110%); }
.btn:hover .btn-label > span:last-child { transform: translateY(0); }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-2); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid rgba(36,36,36,.22); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--on-dark { background: var(--white); color: var(--ink); }
.btn--sm { height: 44px; padding-inline: 22px; font-size: var(--fs-xs); }
.btn--wide { width: 100%; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.nav.is-hidden { transform: translateY(-110%); }
.nav-inner {
  max-width: var(--container); margin-inline: auto;
  /* tighter top and bottom so the logo can grow without the bar growing;
     the 24px on the left is untouched */
  margin-top: 16px; padding: 6px 10px 6px 24px;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid rgba(36, 36, 36, 0.08);
  box-shadow: 0 4px 18px rgba(34, 48, 43, .05);
  transition: box-shadow .3s ease;
}
.nav.is-scrolled .nav-inner { box-shadow: 0 10px 40px rgba(34, 48, 43, .10); }
@media (min-width: 1200px) { .nav-inner { max-width: calc(var(--container) - 2 * var(--pad)); } }
/* Height is capped so the logo never drives the bar's height — the 44px
   buttons keep doing that, and the bar stays exactly as tall as before. */
.nav-logo { display: flex; align-items: center; line-height: 0; flex: none; }
.nav-logo img { height: 52px; width: auto; display: block; }
.nav-logo--footer img { height: 68px; }
@media (max-width: 809px) {
  .nav-logo img { height: 47px; margin-block: -2px; }
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 10px 16px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 500;
  transition: background-color .25s ease;
}
.nav-links a:hover { background: rgba(36,36,36,.06); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; width: 44px; height: 44px; position: relative; }
.nav-burger span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .4s cubic-bezier(.22,1,.36,1), top .4s cubic-bezier(.22,1,.36,1);
}
.nav-burger span:nth-child(1) { top: 17px; }
.nav-burger span:nth-child(2) { top: 25px; }
body.menu-open .nav-burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad);
  opacity: 0; visibility: hidden; pointer-events: none;
}
body.menu-open .mobile-menu { pointer-events: auto; }
.mobile-menu a.mm-link { font-size: clamp(2rem, 8vw, 3rem); font-weight: 600; letter-spacing: -0.03em; padding-block: 10px; display: block; }
.mobile-menu .mm-cta { margin-top: 30px; display: flex; gap: 12px; }
@media (max-width: 809px) {
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-burger { display: block; }
  .nav-inner { margin-inline: 12px; margin-top: 12px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* same reason as the testimonial photo: room for the parallax drift */
.hero-bg .ph { position: absolute; inset: -20% 0; border-radius: 0; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.03) 40%, rgba(0,0,0,.5) 100%);
}
.hero-content {
  position: relative; z-index: 1; color: var(--white);
  padding-bottom: clamp(30px, 5vw, 60px);
  display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: end;
}
.hero-left h1 { max-width: 20ch; font-size: clamp(2.3rem, 5.2vw, 4.4rem); text-wrap: balance; }
.hero-left p { max-width: 42ch; margin-top: 20px; font-size: clamp(1rem, 1.4vw, 1.25rem); color: var(--white-75); }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
/* ---------- banda de clientes al pie del hero ----------
   Ocupa el ancho del contenido y los logos giran en bucle. El truco del bucle:
   la lista va dos veces y la pista se desplaza justo la mitad, así al reiniciar
   el fotograma es idéntico y no se ve el salto. */
.hero-trust {
  grid-column: 1 / -1;
  margin-top: clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column; gap: 14px;
  /* sin esto la pista de ancho máximo estira la rejilla y desborda la página */
  min-width: 0;
}
.ht-label {
  /* mismo tratamiento que el título de la tarjeta del hero: tipografía de
     titulares y 1.05rem, centrado sobre la banda que va debajo */
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.05rem; letter-spacing: -0.01em;
  line-height: 1.35; margin: 0;
  color: var(--white); text-align: center;
}
.logo-marquee {
  position: relative; overflow: hidden;
  min-width: 0; max-width: 100%;
  /* los logos se desvanecen contra el fondo en ambos extremos */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.lm-track {
  display: flex; align-items: center;
  width: max-content;
  animation: lm-scroll 42s linear infinite;
  will-change: transform;
}
/* Cada grupo cierra con su propia separación a la derecha, de modo que su ancho
   es exactamente repetible: desplazar la pista medio ancho cae justo sobre el
   mismo fotograma y el bucle no enseña costura. */
.lm-group {
  display: flex; align-items: center; list-style: none;
  gap: clamp(18px, 2.4vw, 32px);
  padding-right: clamp(18px, 2.4vw, 32px);
  margin: 0;
}
.logo-marquee:hover .lm-track { animation-play-state: paused; }
@keyframes lm-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.lm-item {
  flex: none;
  width: clamp(52px, 5vw, 64px); height: clamp(52px, 5vw, 64px);
  border-radius: 50%; overflow: hidden;
  background: var(--white);
  border: 2px solid rgba(255,255,255,.9);
}
.lm-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (prefers-reduced-motion: reduce) {
  /* sin movimiento: los logos se quedan quietos y se pueden recorrer a mano */
  .lm-track { animation: none; }
  .logo-marquee { overflow-x: auto; scrollbar-width: none; }
  .logo-marquee::-webkit-scrollbar { display: none; }
}

/* Fila de avatares solapados. El hero ya no la usa (pasó a banda giratoria),
   pero la sección de Programas sí, así que los estilos base se quedan. */
.hero-avatars { display: flex; }
.hero-avatars .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9); margin-left: -10px; overflow: hidden;
  background: var(--white); flex: none;
}
.hero-avatars .avatar:first-child { margin-left: 0; }
.hero-avatars .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-card {
  justify-self: end; width: min(380px, 100%);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2);
  padding: 14px; color: var(--white);
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.hero-card:hover { transform: translateY(-6px); }
.hero-card .hc-img { aspect-ratio: 16/9; border-radius: calc(var(--r-md) - 6px); }
.hero-card .hc-tag { font-size: 12px; font-weight: 500; color: var(--white-75); margin-top: 14px; }
.hero-card .hc-title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em;
}
.hero-card .hc-title, .hero-card h3 { font-size: 1.05rem; margin-top: 6px; line-height: 1.35; }
.hero-card .hc-stat { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.2); }
.hero-card .hc-stat strong { font-size: 1.8rem; font-weight: 600; }
.hero-card .hc-stat span { font-size: var(--fs-xs); color: var(--white-75); }
@media (max-width: 1199px) { .hero-content { grid-template-columns: 1fr; } .hero-card { justify-self: start; } }
@media (max-width: 809px) { .hero-card { display: none; } }

/* ---------- statement (pinned full-bleed scrub) ---------- */
.statement { position: relative; }
.statement-pin {
  position: relative; height: 100svh; overflow: hidden;
  display: flex; align-items: center;
}
.statement-bg { position: absolute; inset: 0; overflow: hidden; background: #1E2521; }
.statement-gradient {
  position: absolute; inset: 0;
  /* charcoal drifting into the brand green; oversized so it can pan on scroll */
  background:
    radial-gradient(52% 62% at 76% 80%, rgba(122,181,52,.13) 0%, rgba(122,181,52,0) 60%),
    linear-gradient(135deg, #242B27 0%, #1D2421 40%, #293830 74%, #1F2723 100%);
  background-size: 190% 190%, 200% 200%;
  background-position: 10% 28%, 8% 22%;
}
.statement .container { position: relative; z-index: 2; }
.statement-mark-layer {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.statement-mark-layer .lt-mark {
  /* stays clear of the pin's edges so the arms never clip, scale included */
  width: min(74vh, 820px); max-width: 84vw; height: auto;
  opacity: .11;
  overflow: visible;
}
.statement h2 {
  position: relative; z-index: 1;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  color: var(--white); text-align: center;
  max-width: 24ch; margin-inline: auto;
  text-shadow: 0 2px 30px rgba(0,0,0,.2);
}

/* ---------- compare (pinned scene: heading fill + after slides in) ---------- */
.compare-pin { height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; position: relative; }
.compare-title {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  text-align: center; max-width: 16ch; margin-inline: auto;
  margin-bottom: clamp(30px, 5vh, 60px);
}
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 900px; margin-inline: auto; width: 100%;
  padding-inline: var(--pad);
}
.compare-card {
  border-radius: var(--r-md); padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 18px; min-height: 340px;
}
.compare-card--before { background: var(--bg-alt); border: 1px solid var(--line); }
.compare-card--after { background: var(--accent); color: var(--accent-ink); }
.compare-card .cc-tag { font-size: var(--fs-xs); font-weight: 500; opacity: .6; }
.compare-card h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); max-width: 16ch; }
.compare-card--before h3 { color: var(--muted); }
.compare-card ul { display: flex; flex-direction: column; margin-top: auto; }
.compare-card li {
  display: flex; align-items: center; gap: 10px;
  padding-block: 11px; font-size: var(--fs-xs);
}
.compare-card li svg { flex: none; }
.compare-card--after li svg { color: var(--accent-ink); }
.compare-card--before li { color: var(--muted); }
@media (max-width: 809px) {
  .compare-pin { height: auto; padding-block: var(--sec-gap); }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-card { min-height: 0; }
}

/* ---------- services ---------- */
.services { padding-block: 0; }
/* Sized to the viewport rather than to its contents: the header keeps its
   natural height and the pile takes whatever is left, so a whole card always
   fits the pinned view. Overflow clips the cards that have not entered yet. */
.services-pin {
  min-height: 100svh; overflow: hidden;
  padding-block: clamp(16px, 2.5vh, 44px);
  display: flex; align-items: center;
}
.services-pin > .container { width: 100%; }
.services-head h2 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.services-intro {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px;
  margin-top: 16px; margin-bottom: clamp(18px, 2.4vh, 34px);
}
.services-intro .si-copy p:first-child { font-size: clamp(1.15rem, 1.9vw, 1.5rem); font-weight: 500; line-height: 1.4; }
.services-intro .si-copy .accent { color: var(--accent); }
.services-intro .si-copy .fine { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* horizontal bar chart */
.hchart { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.hchart .hrow { display: flex; flex-direction: column; gap: 6px; }
.hchart .hrow .hmeta { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); }
/* the track keeps the row readable while the bar is still empty */
.hchart .hbar-track {
  height: 34px; border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(34, 48, 43, .025);
  overflow: hidden;
}
.hchart .hbar { height: 100%; border-radius: var(--r-pill); transform-origin: left center; }
.hbar--with { background: var(--accent); width: 100%; }
.hbar--without { background: #DDDDD2; width: 68%; }
.hchart .haxis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
@media (max-width: 809px) { .services-intro { grid-template-columns: 1fr; } }

/* sticky stacking service cards */
/* Cards share one absolute slot, so every card in the pile keeps the exact
   same width and left edge — only the vertical offset separates them. */
/* heights come from JS: the tallest card sets the height for all of them */
.service-stack { position: relative; }
.service-card {
  position: absolute; left: 0; right: 0; top: 45px;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.1fr;
  box-shadow: 0 -8px 30px rgba(34,48,43,.06);
}
/* vertical padding tracks viewport height so a whole card fits the pinned view */
.service-card .sc-text {
  padding: clamp(18px, 2.6vh, 36px) clamp(24px, 3vw, 42px);
  display: flex; flex-direction: column;
}
.service-card .sc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.service-card .sc-num { font-size: var(--fs-sm); color: var(--muted); font-weight: 500; }
.service-card h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 16ch; }
.service-card .sc-desc { color: var(--muted); margin-top: 14px; max-width: 44ch; font-size: var(--fs-sm); }
.service-card .sc-offer { margin-top: clamp(12px, 1.8vh, 22px); }
.service-card .sc-offer .ss-label { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); margin-bottom: 10px; }
.service-card .sc-offer ul { display: flex; flex-wrap: wrap; gap: 8px; }
.service-card .sc-offer li {
  font-size: 13px; padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--bg);
}
.service-card .btn { margin-top: clamp(14px, 2vh, 24px); }
.service-card .sc-media { position: relative; min-height: 320px; }
.service-card .sc-media .ph { position: absolute; inset: 0; border-radius: 0; }
.service-quote {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  max-width: 300px; padding: 16px 18px; border-radius: var(--r-md);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 13px; line-height: 1.45;
}
.service-quote .sq-author { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.service-quote .sq-author .avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; }
.service-quote .sq-author b { display: block; font-size: 12px; font-weight: 600; }
.service-quote .sq-author span { font-size: 11px; color: var(--muted); }
/* set by JS when the viewport cannot host the pinned pile */
.services-pin.is-static { overflow: visible; padding-block: var(--sec-gap); }
.services-pin.is-static .service-stack {
  display: flex; flex-direction: column; gap: 20px; height: auto;
}
.services-pin.is-static .service-card {
  position: static; height: auto; box-shadow: none; transform: none !important;
}

@media (max-width: 991px) {
  /* no pinning below this width: the pile unwinds into a normal column */
  .services { padding-block: var(--sec-gap); }
  .services-pin { padding-block: 0; overflow: visible; }
  .service-stack { display: flex; flex-direction: column; gap: 20px; height: auto; }
  .service-card {
    position: static; height: auto; min-height: 0;
    grid-template-columns: 1fr; box-shadow: none;
    transform: none !important;
  }
  .service-card .sc-media { min-height: 260px; }
}

/* ---------- process (pinned horizontal accordion) ---------- */
.process { padding-block: 0 var(--sec-gap); }
/* the heading rides inside the pinned area so it holds while the stages run */
.process-pin {
  min-height: 100svh;
  padding-block: clamp(20px, 3.4vh, 54px);
  display: flex; align-items: center;
}
.process-pin > .container { width: 100%; }
.process-head { font-size: clamp(2rem, 4.2vw, 3.4rem); max-width: 18ch; }
.process-sub { color: var(--muted); max-width: 44ch; margin-top: 14px; }
.process-cols {
  display: flex; gap: 14px;
  height: min(54svh, 480px);
  margin-top: clamp(24px, 3.6vh, 48px);
}
.process-col {
  border-radius: var(--r-md); overflow: hidden; position: relative;
  background: var(--bg-alt); border: 1px solid var(--line);
  flex: 1; min-width: 0;
}
/* photo fills the column; the veil over it is what JS dims and lifts, so the
   colour change reads as one continuous move instead of a swap */
.process-col .pcol-photo { position: absolute; inset: 0; }
.process-col .pcol-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.process-col .pcol-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,32,26,.35) 0%, rgba(20,32,26,.82) 100%);
}
/* brand green laid over the photo's own light and shade, so the waiting
   stages read as Ludic rather than as grey filler */
.process-col .pcol-tint {
  position: absolute; inset: 0;
  background: var(--accent); mix-blend-mode: color;
}
.process-col .pcol-inner {
  position: absolute; inset: 0; padding: clamp(20px, 2.6vw, 36px);
  display: flex; flex-direction: column; width: 100%; min-width: 300px;
  z-index: 1;
}
/* Content sits in its open position at all times and is only faded in or out,
   so nothing shifts as a column opens. Colours are tweened by JS rather than
   swapped by a class, which is what made the change read as a hard cut. */
.process-col .pcol-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--fs-xs); color: var(--white-75);
}
.process-col h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-top: auto; color: var(--white); }
.process-col p { font-size: var(--fs-sm); color: var(--white-75); margin-top: 12px; max-width: 40ch; }
.process-col .pcol-num {
  position: absolute; top: 20px; left: 0; right: 0; text-align: center;
  font-size: var(--fs-xs); color: var(--muted);
}
@media (max-width: 809px) {
  .process-cols { flex-direction: column; height: auto; }
  .process-col { min-height: 200px; background: var(--dark); border-color: var(--dark); }
  .process-col .pcol-inner { position: relative; min-width: 0; opacity: 1 !important; visibility: visible !important; }
}

/* Vertical clip beside the ecosystem card: the video column is deliberately
   narrow so the 9:16 frame never towers over the panel next to it. */
.process-media {
  margin-top: 20px; display: grid;
  grid-template-columns: minmax(200px, 0.46fr) 1fr; gap: 20px;
  align-items: stretch;
}
.process-video {
  position: relative; overflow: hidden; margin: 0;
  border-radius: var(--r-md); background: var(--dark);
  aspect-ratio: 9 / 16;
}
.process-video .pv-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
/* Gradient only behind the caption, so the footage stays clean above it. */
.process-video::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(to top, rgba(12,18,15,.82), transparent);
  pointer-events: none;
}
.process-video .pv-meta {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2;
  color: var(--white); font-size: var(--fs-xs); line-height: 1.45;
  text-wrap: pretty;
}

.process-ops {
  background: var(--dark); color: var(--white);
  border-radius: var(--r-md); padding: clamp(26px, 3.4vw, 40px);
  display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 28px);
}
.process-ops h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); max-width: 20ch; }
/* Four capabilities, two by two — the card ends up as wide as it is tall. */
.ops-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.2vw, 26px) clamp(22px, 2.6vw, 34px);
}
.process-ops .op {
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: var(--fs-sm); color: var(--white-75);
}
.process-ops .op b { color: var(--white); font-weight: 600; display: block; margin-bottom: 4px; }

@media (max-width: 899px) {
  /* Side by side stops working before the video gets unreadably narrow. */
  .process-media { grid-template-columns: 1fr; }
  .process-video { aspect-ratio: 16 / 11; }
  .process-video .pv-media { object-position: center 35%; }
}
@media (max-width: 559px) {
  .ops-grid { grid-template-columns: 1fr; }
}

/* ---------- team (green section, rows) ---------- */
/* overflow keeps the expanding photo inside the panel while it is pinned */
.team {
  background: var(--accent); color: var(--accent-ink);
  padding-block: var(--sec-gap); overflow: hidden;
}
/* GSAP wraps a pinned section in a spacer that reserves the scroll distance;
   painting it green too stops a pale strip showing through at the seam */
.pin-spacer:has(> .team) { background: var(--accent); }
.team h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 16ch; }
/* Una sola fila, del ancho de la foto de abajo, que se expande al pulsarla */
.team-rows { margin-top: clamp(36px, 5vw, 60px); }
.team-member { border-bottom: 1px solid rgba(36,67,15,.25); }
.tm-head {
  width: 100%; text-align: left;
  display: flex; align-items: center; gap: clamp(16px, 2vw, 26px);
  padding-block: clamp(18px, 2.4vw, 26px);
  color: inherit; cursor: pointer;
}
.tm-head .avatar {
  width: clamp(64px, 6vw, 86px); height: clamp(64px, 6vw, 86px);
  border-radius: 50%; overflow: hidden; flex: none; display: block;
}
.tm-head .tr-info { flex: 1; min-width: 0; }
.tm-head .tr-info b {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem); letter-spacing: -0.01em;
}
.tm-head .tr-info > span {
  display: block; margin-top: 4px;
  font-size: clamp(.9rem, 1.1vw, 1.02rem); color: rgba(36,67,15,.75);
}
.tm-head .tr-num { font-size: var(--fs-xs); color: rgba(36,67,15,.6); }
.tm-head .tr-more {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  border: 1px solid rgba(36,67,15,.4);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .3s ease, transform .45s cubic-bezier(.22,1,.36,1);
}
.tm-head:hover .tr-more { background: rgba(36,67,15,.12); }
.team-member.is-open .tr-more { transform: rotate(45deg); background: rgba(36,67,15,.16); }

.tm-panel { overflow: hidden; height: 0; }
.tm-body {
  padding: 0 0 clamp(20px, 2.6vw, 30px) calc(clamp(64px, 6vw, 86px) + clamp(16px, 2vw, 26px));
  max-width: 78ch;
}
.tm-body p { font-size: var(--fs-sm); line-height: 1.65; color: rgba(36,67,15,.82); }
.tm-body p + p { margin-top: 12px; }
@media (max-width: 809px) {
  .tm-body { padding-left: 0; }
}
.team-photo { margin-top: clamp(36px, 5vw, 60px); border-radius: var(--r-md); aspect-ratio: 21/9; }

/* areas grid (6 áreas clave) */
.areas { padding-block: 0 var(--sec-gap); }
.areas-head { max-width: 20ch; }
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(30px, 4vw, 46px); }
.area-card {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s ease;
}
.area-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(34,48,43,.08); }
.area-card .ac-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--white);
  border: 1px solid var(--line); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.area-card h3 { font-size: 1.05rem; }
.area-card p { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 991px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .areas-grid { grid-template-columns: 1fr; } }

/* banda CTA (desactivada) — su markup está comentado en index.html;
   estos estilos quedan listos para cuando se reactive */
.hiring { background: var(--accent); padding-bottom: var(--sec-gap); }
.hiring-card {
  background: rgba(255,255,255,.45); border-radius: var(--r-md);
  display: grid; grid-template-columns: 1fr 1.2fr; overflow: hidden; color: var(--accent-ink);
}
.hiring-card .hg-img { min-height: 260px; }
.hiring-card .hg-img .ph { height: 100%; border-radius: 0; }
.hiring-card .hg-body { padding: clamp(26px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hiring-card h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.hiring-card p { color: rgba(36,67,15,.8); max-width: 40ch; }
.hiring-card .btn { margin-top: auto; }
@media (max-width: 809px) { .hiring-card { grid-template-columns: 1fr; } }

/* ---------- testimonials ---------- */
.testimonials { position: relative; }
.testi-hero {
  position: relative; min-height: 88svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--white); padding: calc(var(--pad) + 90px) 0 var(--pad);
}
/* taller than its frame so the parallax shift never uncovers an edge */
.testi-hero .ph { position: absolute; inset: -14% 0; border-radius: 0; }
.testi-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.05) 45%, rgba(0,0,0,.45));
}
.testi-hero > .container { position: relative; z-index: 2; }
.testi-hero h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.testi-quote {
  max-width: 420px; padding: 22px 24px; border-radius: var(--r-md);
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.22);
  font-size: var(--fs-sm); margin-top: 26px;
}
.testi-quote .tq-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testi-quote .avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; }
.testi-quote b { font-size: 13px; display: block; }
.testi-quote span { font-size: 12px; opacity: .75; }
/* figure on the left, its caption beside it on two lines and matched to its
   height by a divider rule, so the pair reads as one block */
.testi-score { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); }
.testi-score .ts-num {
  font-size: clamp(3.2rem, 5.6vw, 5.2rem); font-weight: 600;
  letter-spacing: -0.04em; line-height: 1; flex: none;
}
.testi-score .ts-num span:last-child { font-size: .42em; opacity: .75; }
.testi-score p {
  align-self: stretch; display: flex; align-items: center;
  font-size: clamp(.95rem, 1.15vw, 1.2rem); line-height: 1.3;
  max-width: 15ch; opacity: .85;
  padding-left: clamp(14px, 1.6vw, 22px);
  border-left: 1px solid rgba(255, 255, 255, .3);
}
.testi-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }

.testi-cards { padding-block: 20px var(--sec-gap); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px; display: flex; flex-direction: column; gap: 24px; min-height: 280px;
}
.testi-card .stars { color: var(--accent); font-size: 14px; letter-spacing: 2px; }
.testi-card blockquote { font-size: var(--fs-sm); line-height: 1.5; }
.testi-card .tc-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-card .avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; }
.testi-card b { font-size: 13px; display: block; }
.testi-card span { font-size: 12px; color: var(--muted); }
@media (max-width: 991px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---------- stats + founder ---------- */
.stats { padding-bottom: var(--sec-gap); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; background: var(--bg); }
.stat-card .st-top { display: flex; justify-content: space-between; align-items: flex-start; }
.stat-card .st-num {
  display: flex; align-items: baseline; gap: 1px;
  font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-card .st-num sup {
  font-size: .38em; color: var(--accent); font-weight: 600;
  top: 0; align-self: flex-start; margin-top: .22em;
}
.stat-card p { font-size: var(--fs-xs); color: var(--muted); margin-top: 10px; }
.stat-card p em { font-style: normal; opacity: .6; font-size: .92em; }
@media (max-width: 991px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .stats-row { grid-template-columns: 1fr; } }

.founder-cta {
  margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: clamp(24px, 3vw, 36px); border-radius: var(--r-md); border: 1px solid var(--line);
}
.founder-cta .fc-left { display: flex; align-items: center; gap: 18px; }
.founder-cta .avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; }
.founder-cta p { max-width: 44ch; font-weight: 500; }
.founder-cta .fc-role { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 4px; }
@media (max-width: 809px) { .founder-cta { flex-direction: column; align-items: flex-start; } }

/* ---------- featured case (split card) ---------- */
.featured-case { padding-bottom: var(--sec-gap); }
.case-split {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px;
}
.case-info { display: flex; flex-direction: column; gap: 20px; }
.case-info .ci-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(24px, 3vw, 34px); }
.case-info .ci-date { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.case-info h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); max-width: 22ch; line-height: 1.25; letter-spacing: -0.01em; }
.case-info .ci-meta { margin-top: 22px; display: flex; flex-direction: column; }
.case-info .ci-meta > div {
  display: flex; justify-content: space-between; padding-block: 11px;
  border-top: 1px solid var(--line); font-size: var(--fs-xs);
}
.case-info .ci-meta span { color: var(--muted); }
.case-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.case-metrics .cm {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(18px, 2vw, 26px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
}
/* icon, figure and unit all sit on one baseline; the caption goes underneath */
.case-metrics .cm-top { display: flex; align-items: center; gap: 12px; }
.case-metrics .cm-icon {
  width: clamp(28px, 2.6vw, 34px); height: clamp(28px, 2.6vw, 34px);
  color: var(--accent); flex: none;
}
.case-metrics .cm-icon svg { width: 100%; height: 100%; display: block; }
.case-metrics .cm b {
  display: flex; align-items: baseline; gap: .28em;
  font-size: clamp(2.2rem, 3.8vw, 3.2rem); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.case-metrics .cm-unit {
  font-size: .32em; font-weight: 500; letter-spacing: 0;
  color: var(--muted); text-transform: lowercase;
}
.case-metrics .cm-label {
  display: block; font-size: var(--fs-xs); color: var(--muted); line-height: 1.35;
}
.case-visual { display: flex; flex-direction: column; gap: 14px; }
.case-visual .cv-img { flex: 1; border-radius: var(--r-md); min-height: 380px; }
@media (max-width: 809px) { .case-split { grid-template-columns: 1fr; } }

/* ---------- pricing (dark, plan switcher) ---------- */
.pricing { background: var(--dark); color: var(--white); padding-block: var(--sec-gap); border-radius: var(--r-xl); }
.pricing-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.pricing-top h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 14ch; }
.pricing-trust { display: flex; align-items: center; gap: 12px; }
.pricing-trust .hero-avatars .avatar { border-color: rgba(255,255,255,.4); width: 34px; height: 34px; }
.pricing-trust p { font-size: 12px; color: var(--white-35); }

.pricing-panel {
  margin-top: clamp(40px, 5vw, 60px);
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px;
}
.plan-list { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.plan-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; text-align: left;
  padding: 18px; border-radius: var(--r-sm);
  transition: background-color .3s ease;
}
.plan-item:hover { background: rgba(255,255,255,.06); }
.plan-item.is-active { background: var(--bg); color: var(--ink); }
.plan-item b { display: block; font-weight: 600; font-size: var(--fs-sm); }
.plan-item span { font-size: 12px; color: var(--white-35); }
.plan-item.is-active span { color: var(--muted); }
.plan-item .pi-pop {
  font-size: 11px; font-weight: 600; background: var(--accent); color: var(--accent-ink);
  padding: 4px 10px; border-radius: var(--r-pill);
}
.plan-item .pi-radio {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); flex: none;
  position: relative;
}
.plan-item.is-active .pi-radio { border-color: var(--ink); }
.plan-item.is-active .pi-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink);
}
.plan-detail {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md); padding: clamp(26px, 3.4vw, 44px);
  display: flex; flex-direction: column; gap: 22px;
}
.plan-detail .pd-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.plan-detail .pd-price { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 600; letter-spacing: -0.03em; }
.plan-detail .pd-price small { font-size: 1rem; font-weight: 400; color: var(--white-35); }
.plan-detail .pd-price .pd-startsat { display: block; font-size: 12px; font-weight: 400; color: var(--white-35); letter-spacing: 0; }
.plan-detail .pd-desc { color: var(--white-75); font-size: var(--fs-sm); max-width: 52ch; }
.plan-detail ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.plan-detail li { display: flex; gap: 10px; align-items: center; font-size: var(--fs-xs); color: var(--white-75); padding-block: 8px; }
.plan-detail li svg { color: var(--accent); flex: none; }
.pricing-note { margin-top: 30px; font-size: var(--fs-sm); color: var(--white-35); }
.pricing-note .accent { color: var(--accent); }
@media (max-width: 991px) { .pricing-panel { grid-template-columns: 1fr; } .plan-detail ul { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--sec-gap); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(30px, 5vw, 80px); }
.faq-tabs { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 26px; }
.faq-tab {
  padding: 10px 18px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 500; color: var(--muted);
  transition: background-color .25s ease, color .25s ease;
}
.faq-tab.is-active { background: var(--ink); color: var(--white); }
.faq-contact {
  margin-top: 40px; font-size: var(--fs-sm); color: var(--muted);
  background: var(--bg-alt); border-radius: var(--r-md); padding: 20px;
}
.faq-contact button { display: block; font-weight: 500; color: var(--ink); margin-top: 6px; }
.faq-item { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; padding-inline: 24px; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-block: 20px; text-align: left;
  font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 500;
}
.faq-q .faq-icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  transition: transform .45s cubic-bezier(.22,1,.36,1), background-color .3s ease, color .3s ease;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: var(--ink); color: var(--white); }
.faq-a { overflow: hidden; height: 0; }
.faq-a p { padding-bottom: 22px; color: var(--muted); max-width: 60ch; font-size: var(--fs-sm); }
@media (max-width: 809px) { .faq-grid { grid-template-columns: 1fr; } .faq-tabs { flex-direction: row; flex-wrap: wrap; } }

/* ---------- insights preview ---------- */
.insights-prev { padding-bottom: var(--sec-gap); }
.ip-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; align-items: start; }
.ip-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.ip-head p { color: var(--muted); margin-top: 14px; max-width: 30ch; }
.ip-head .btn { margin-top: 24px; }
.post-card { border-radius: var(--r-md); overflow: hidden; position: relative; aspect-ratio: 4/4.6; display: flex; align-items: flex-end; color: var(--white); }
.post-card .ph { position: absolute; inset: 0; border-radius: 0; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.post-card:hover .ph { transform: scale(1.05); }
.post-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1) 40%, rgba(0,0,0,.6)); }
.post-card .pc-body { position: relative; z-index: 2; padding: 22px; }
.post-card .pc-cat {
  position: absolute; top: -9999px; /* replaced by chip below */
}
.post-card .pc-chip {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 12px; padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(0,0,0,.35); backdrop-filter: blur(8px);
}
.post-card .pc-date { font-size: 12px; opacity: .8; }
.post-card h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); margin-top: 6px; }
@media (max-width: 991px) { .ip-grid { grid-template-columns: 1fr; } .post-card { aspect-ratio: 16/10; } }

/* ---------- CTA (full-bleed image + glass form) ---------- */
.cta { position: relative; overflow: hidden; padding-block: calc(var(--pad) + 90px) var(--sec-gap); color: var(--white); }
.cta-bg { position: absolute; inset: 0; }
.cta-bg .ph { position: absolute; inset: 0; border-radius: 0; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: rgba(25,35,55,.28); }
.cta-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.cta-left { display: flex; flex-direction: column; min-height: 70svh; }
.cta-left h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 12ch; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.cta-left ul { margin-top: 30px; display: flex; flex-direction: column; gap: 4px; }
.cta-left li { display: flex; gap: 12px; align-items: center; padding-block: 10px; font-size: var(--fs-sm); }
.cta-left li .li-icon {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: rgba(255,255,255,.18); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
}
.cta-left blockquote {
  margin-top: auto; max-width: 380px;
  padding: 20px 22px; border-radius: var(--r-md);
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.22);
  font-size: var(--fs-sm);
}
.cta-left .tq-author { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.cta-left .avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; }
.cta-left .tq-author b { font-size: 13px; display: block; }
.cta-left .tq-author span { font-size: 12px; opacity: .75; }

.cta-form {
  background: rgba(20,25,30,.55);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 38px);
  display: flex; flex-direction: column; gap: 16px;
}
.hp-field {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.cta-form .cf-intro { display: flex; align-items: center; gap: 16px; }
.cta-form .cf-mark { width: clamp(44px, 4.4vw, 60px); height: auto; flex: none; }
.cta-form .cf-intro p { margin: 0; }
.cta-form > p { color: var(--white-75); font-size: var(--fs-sm); }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; color: var(--white-75); }
.field input, .field select, .field textarea {
  width: 100%; height: 50px; padding-inline: 16px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08); color: var(--white);
  transition: border-color .25s ease, background-color .25s ease;
}
.field textarea { height: auto; min-height: 96px; padding-block: 13px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.12); }
.field select { appearance: none; }
.field option { color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-group .chip {
  font-size: 13px; padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.25); color: var(--white-75);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.chip-group .chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cta-form .fine { font-size: 12px; color: var(--white-35); }
.cta-form .form-note {
  font-size: var(--fs-sm); line-height: 1.5; margin: 0;
  padding: 12px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  border-left: 3px solid var(--accent);
  color: var(--white);
}
.cta-form .form-note[data-kind="error"] {
  border-left-color: #E0A87A;
  background: rgba(224, 168, 122, .14);
}
.cta-form button[disabled] { opacity: .65; cursor: progress; }
@media (max-width: 991px) { .cta-grid { grid-template-columns: 1fr; } .cta-left { min-height: 0; } }

/* ---------- footer ---------- */
.footer-band { background: var(--accent); padding-block: clamp(40px, 6vw, 70px); }
.fb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fb-card { background: var(--bg-alt); border-radius: var(--r-md); padding: clamp(26px, 3.4vw, 40px); }
.fb-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); max-width: 14ch; }
.fb-card form { display: flex; gap: 10px; margin-top: 22px; }
.fb-card input {
  flex: 1; height: 50px; padding-inline: 18px;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white);
}
.fb-card .fine { font-size: 12px; color: var(--muted); margin-top: 12px; }
.fb-card--brand { display: flex; flex-direction: column; gap: 18px; }
.fb-card--brand p { font-weight: 500; max-width: 34ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.fb-card--brand p b { font-weight: 600; }
.fb-card--brand .fc-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.fb-card--brand .avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; }
.fb-card--brand .fc-author b { display: block; font-size: 13px; }
.fb-card--brand .fc-author span { font-size: 12px; color: var(--muted); }
@media (max-width: 809px) { .fb-grid { grid-template-columns: 1fr; } }

.footer { background: var(--bg-alt); }
.footer-top {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px;
  padding-block: clamp(50px, 7vw, 80px) 40px;
}
.footer-brand .footer-contact { margin-top: 22px; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); }
.footer-contact a:hover { text-decoration: underline; }
.footer-socials { display: flex; gap: 14px; margin-top: 22px; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  transition: background-color .3s ease;
}
.footer-socials a:hover { background: rgba(36,36,36,.06); }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.footer-cols h3 {
  font-size: 13px; font-weight: 700; color: var(--ink);
  letter-spacing: .01em; margin-bottom: 16px;
}
.footer-cols .link-btn { font-size: var(--fs-sm); text-align: left; padding: 0; }
.footer-cols .link-btn:hover { text-decoration: underline; }
.footer-cols li { margin-bottom: 10px; }
.footer-cols a { font-size: var(--fs-sm); }
.footer-cols a:hover { text-decoration: underline; }
/* The signature runs the full width and is cropped by its container, so only
   its top half shows and the rest bleeds past the bottom of the page. Painted
   through a mask, which is what lets it take the brand green. */
.footer-wordmark {
  overflow: hidden; display: flex; align-items: flex-start;
  height: clamp(132px, 32vw, 500px);
  user-select: none;
}
/* A plain image rather than a CSS mask: masks that point at an external SVG
   are blocked when the page is opened straight from disk, and the signature
   would silently disappear. Its green is baked into assets/firma-verde.svg. */
.footer-wordmark .fw-mark { flex: none; width: 100%; height: auto; display: block; }
.footer-legal {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-block: 24px; font-size: 13px; color: var(--muted);
}
@media (max-width: 991px) { .footer-top { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- paneles legales (drawers) ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer[hidden] { display: none; }
.drawer-veil { position: absolute; inset: 0; background: rgba(20, 28, 24, .5); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(760px, 100%);
  background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(20, 28, 24, .22);
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(20px, 3vw, 30px) clamp(22px, 3.4vw, 38px);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.drawer-head h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.drawer-close {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .25s ease;
}
.drawer-close:hover { background: var(--bg-alt); }
.drawer-close svg { width: 18px; height: 18px; }
.drawer-body {
  flex: 1; min-height: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3.4vw, 38px) clamp(50px, 7vw, 80px);
  font-size: var(--fs-sm); line-height: 1.62;
}
.drawer-body h3 {
  font-size: 1rem; margin-top: 28px; margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.drawer-body h3:first-of-type { margin-top: 8px; }
.drawer-body p { color: var(--muted); }
.drawer-body p + p { margin-top: 10px; }
.drawer-body ul { margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.drawer-body li { position: relative; padding-left: 18px; color: var(--muted); }
.drawer-body li::before {
  content: ""; position: absolute; left: 3px; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.drawer-body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.dw-note {
  background: var(--bg-alt); border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0; padding: 12px 16px;
  font-size: var(--fs-xs); color: var(--muted) !important;
}
.dw-date { font-size: 12px; margin-top: 12px !important; }

.link-btn { font: inherit; color: inherit; cursor: pointer; }

/* ---------- animation initial states ---------- */
.js [data-reveal],
.js [data-rise],
.js [data-rise-group] > * { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-rise],
  .js [data-rise-group] > * { opacity: 1; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* ---------- hero video ---------- */
/* Sits over the still, fading in only once it actually plays, so a blocked or
   slow video simply leaves the photo in place. */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .9s ease;
  pointer-events: none;
}
.hero-video.is-ready { opacity: 1; }

/* ---------- conversión siempre a mano ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 22px; z-index: 120;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff;
  box-shadow: 0 8px 26px rgba(0,0,0,.22);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(0,0,0,.28); }
.wa-float:active { transform: scale(.96); }

.sticky-cta { display: none; }
@media (max-width: 809px) {
  /* On phones the bubble gives way to a full bar: both actions, always reachable. */
  .wa-float { display: none; }
  .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(253,253,250,.94);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .sticky-cta a {
    display: flex; align-items: center; justify-content: center;
    height: 46px; border-radius: var(--r-pill);
    font-size: var(--fs-xs); font-weight: 500; text-align: center;
  }
  .sticky-cta .sc-wa { background: #25D366; color: #fff; }
  .sticky-cta .sc-form { background: var(--ink); color: var(--white); }
  /* the bar must never sit on top of the last thing on the page */
  body { padding-bottom: var(--barra-fija); }
}

/* ---------- formulario: matices ---------- */
.field label .opt { font-weight: 400; opacity: .6; }
.form-alt { margin-top: 12px; text-align: center; font-size: var(--fs-sm); opacity: .8; }
.form-alt a { text-decoration: underline; text-underline-offset: 3px; }
.form-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Visible only to screen readers: names a logo placeholder without drawing it. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- hero en móvil ---------- */
/* Two long CTAs cannot share a 390px row, and nine client marks cannot share
   one line: stack the buttons, let the logos scroll sideways on their own. */
@media (max-width: 809px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  /* la banda ya se gestiona sola: nada que ajustar aquí */
}

/* ---------- pantallas estrechas (≤380px) ---------- */
/* Two rows that assumed a wider phone: let them wrap, and stop inputs from
   pushing past the viewport on their own intrinsic width. */
@media (max-width: 380px) {
  .pricing-trust { flex-wrap: wrap; }
  .pricing-trust p { flex-basis: 100%; }
}
.field input, .field select, .field textarea { max-width: 100%; min-width: 0; }

/* ============================================================
   RESPONSIVE: las dos secciones que en móvil quedaban sueltas
   ============================================================ */

/* ---------- servicios: las tarjetas se apilan al hacer scroll ----------
   El pin de escritorio no corre por debajo de 992px, así que las tarjetas
   quedaban absolutas una encima de otra. Aquí vuelven al flujo y se apilan
   con sticky: cada una se queda fija un poco más abajo que la anterior, y la
   siguiente pasa por encima. Mismo efecto, sin JavaScript. */
@media (max-width: 991px) {
  .services-pin { height: auto; min-height: 0; padding-block: var(--sec-gap); }
  .service-stack { position: static; display: flex; flex-direction: column; gap: 18px; }
  /* .services-pin.is-static .service-card ya fija position:static con tres
     clases, así que hay que igualar esa especificidad para poder ganarle. */
  .services-pin .service-card,
  .services-pin.is-static .service-card {
    position: sticky; left: auto; right: auto; bottom: auto;
    grid-template-columns: 1fr;
    height: auto !important;
    transform: none !important;
    box-shadow: 0 -10px 34px rgba(34,48,43,.10);
  }
  .services-pin.is-static .service-card:nth-of-type(1) { top: 82px; }
  .services-pin.is-static .service-card:nth-of-type(2) { top: 94px; }
  .services-pin.is-static .service-card:nth-of-type(3) { top: 106px; }
  .services-pin.is-static .service-card:nth-of-type(4) { top: 118px; }
  .service-card .sc-media { min-height: 210px; order: -1; }
  /* la última necesita aire debajo para poder despegarse de las anteriores */
  .service-stack::after { content: ""; display: block; height: 18vh; }
}

/* ---------- método: carrusel deslizable ----------
   Las cuatro etapas no caben de lado en un teléfono y el acordeón depende del
   pin, que tampoco corre aquí. Se convierten en un carrusel con anclaje: una
   etapa por pantalla, se desliza con el dedo. */
@media (max-width: 809px) {
  .process-pin { height: auto; min-height: 0; }
  .process-cols {
    /* una regla anterior lo pasa a columna; el carrusel necesita fila */
    flex-direction: row;
    height: auto;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .process-cols::-webkit-scrollbar { display: none; }
  .process-col {
    flex: 0 0 78%;
    height: min(62svh, 460px);
    scroll-snap-align: center;
  }
  /* sin el pin no hay nada que revele el texto: se muestra siempre */
  .process-col .pcol-inner {
    opacity: 1 !important; visibility: visible !important;
    position: absolute; inset: 0; min-width: 0;
  }
  .process-col .pcol-veil { opacity: .52; }
  .process-col .pcol-tint { opacity: 0; }
}

/* ---------- cortes de línea manuales (solo escritorio) ----------
   Los <br class="db"> fijan dónde parte cada frase para que ninguna quede con
   una palabra suelta al final. En pantallas menores el texto vuelve a fluir
   solo, porque un corte pensado para 1200px estorba en un teléfono. */
br.db { display: none; }
@media (min-width: 1200px) {
  br.db { display: inline; }
}

/* ---------- ecosistema: el título llena el contenedor ---------- */
@media (min-width: 992px) {
  .process-ops h3 {
    font-size: clamp(2rem, 2.9vw, 2.7rem);
    line-height: 1.12;
    max-width: 19ch;
  }
}

/* ---------- comparativa: tres líneas, no cuatro ---------- */
@media (min-width: 1200px) {
  /* los saltos son manuales: el ancho solo debe dejar caber la línea más larga */
  .compare-title { max-width: 26ch; }
}

/* ---------- barra legal del pie ---------- */
.footer-legal a { text-decoration: none; transition: color .25s ease; }
.footer-legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 639px) {
  /* en pantallas estrechas las tres piezas se apilan centradas */
  .footer-legal { justify-content: center; text-align: center; gap: 10px; }
}

/* ============================================================
   AJUSTES MÓVIL — lote 17/09
   ============================================================ */

/* Saltos de línea sólo para móvil y tablet. Complementan a br.db, que sólo
   actúa de 1200px hacia arriba: cada ancho parte las frases donde le conviene. */
br.mb { display: inline; }
@media (min-width: 1200px) { br.mb { display: none; } }

/* El icono de WhatsApp del menú sólo aparece cuando el botón se reduce. */
.nav-wa-icon { display: none; }

@media (max-width: 991px) {
  /* Orden en móvil: WhatsApp a la izquierda, logo centrado, menú a la derecha.
     Los laterales comparten ancho para que el logo caiga en el centro real. */
  .nav-inner { gap: 10px; padding: 6px; }
  .nav-cta { flex: 1 0 0; justify-content: flex-start; gap: 0; }
  .nav-logo { flex: 0 0 auto; order: 2; }
  /* El botón ocupa la mitad derecha para que el logo caiga en el centro real,
     pero sus dos barras van ancladas al borde derecho con ancho propio: si se
     dejan pegadas a ambos lados se estiran con el botón. */
  .nav-burger { flex: 1 0 0; height: 44px; position: relative; order: 3; }
  .nav-burger span { left: auto; right: 13px; width: 22px; }
  .nav-cta { order: 1; }
  /* «Programas» no cabe junto al resto; vive en el menú desplegable */
  .nav-cta .btn--ghost { display: none; }
  /* el botón de WhatsApp queda reducido a su icono */
  .nav-wa {
    width: 44px; height: 44px; padding: 0; border-radius: 50%;
    background: #25D366; color: #fff;
  }
  .nav-wa .btn-label { display: none; }
  .nav-wa .nav-wa-icon { display: flex; align-items: center; justify-content: center; }

  /* El hero repetía los dos botones que ya viven fijos en la barra inferior:
     fuera de aquí, y la banda de logos gana el sitio. */
  .hero-actions { display: none; }
  .hero-trust { margin-top: clamp(20px, 4vw, 32px); }
  .hero-content {
    padding-bottom: calc(clamp(30px, 5vw, 60px) + var(--barra-fija));
  }
}

/* Los cuatro números en rejilla 2x2, todas las cajas del mismo alto y ancho. */
@media (max-width: 991px) {
  .stats-row { grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
  .stat-card { padding: 20px 18px; display: flex; flex-direction: column; justify-content: flex-start; }
  .stat-card p { margin-top: auto; }
}

/* ---------- método: el texto descansa abajo ----------
   Arriba compite con la parte más clara de la foto; abajo, sobre un degradado
   verde que sube, se lee sin tener que oscurecer la imagen entera. */
.process-col::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 68%;
  background: linear-gradient(to top, rgba(36,67,15,.94), rgba(36,67,15,.62) 38%, transparent);
  z-index: 0; pointer-events: none;
}

/* ---------- fila del equipo en móvil ----------
   El nombre no debe partirse; el cargo ya baja a dos líneas por marcado. */
@media (max-width: 809px) {
  .tm-head .tr-info b { font-size: 1.05rem; white-space: nowrap; }
  .tm-head .tr-info > span { font-size: .85rem; line-height: 1.4; }
  .tm-head { gap: 14px; }
  .tm-head .avatar { width: 62px; height: 62px; }
}

/* ---------- comparativa en móvil ----------
   El titular venía del tamaño de escritorio y partía cada segmento en dos, así
   que las tres líneas pedidas salían cinco y la primera se escondía bajo el
   menú fijo. Y las dos cartas caían una tras otra, sin el apilado. */
@media (max-width: 991px) {
  .compare-pin { padding-top: calc(var(--sec-gap) / 3 + 26px); overflow: visible; }
  .compare-title {
    font-size: clamp(1.65rem, 7.4vw, 2.15rem);
    max-width: none; margin-bottom: clamp(22px, 4vw, 34px);
  }
  /* Mismo apilado que en Servicios: cada carta se queda fija un poco más abajo
     que la anterior y la siguiente pasa por encima. */
  .compare-grid { display: flex; flex-direction: column; gap: 16px; }
  .compare-card {
    position: sticky;
    box-shadow: 0 -10px 34px rgba(34,48,43,.12);
  }
  .compare-card:nth-of-type(1) { top: 96px; }
  .compare-card:nth-of-type(2) { top: 112px; }
  /* aire para que la segunda pueda despegarse de la primera */
  .compare-grid::after { content: ""; display: block; height: 14vh; }
}

/* ---------- "Qué incluye": chips en carrusel ----------
   En escritorio siguen envolviéndose en varias filas, que es donde hay sitio.
   En móvil eso estiraba la tarjeta hasta cortar el contenido, así que pasan a
   una sola fila que gira sola, con el mismo truco de la banda de logos: la
   lista va dos veces y la pista se desplaza justo la mitad. */
.sco-group { list-style: none; margin: 0; }

@media (min-width: 992px) {
  .sco-track { display: block; }
  .sco-group { display: flex; flex-wrap: wrap; gap: 8px; }
  .sco-group[aria-hidden="true"] { display: none; }
}

@media (max-width: 991px) {
  .service-card, .service-card .sc-text, .sc-offer { min-width: 0; }
  .sco-marquee {
    overflow: hidden; min-width: 0; max-width: 100%; width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  }
  .sco-track { display: flex; width: max-content; animation: sco-scroll 26s linear infinite; }
  .sco-group { display: flex; gap: 8px; padding-right: 8px; flex: none; }
  .sco-group li { white-space: nowrap; }
  .sco-marquee:active .sco-track { animation-play-state: paused; }
}
@keyframes sco-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .sco-track { animation: none; }
  .sco-marquee { overflow-x: auto; scrollbar-width: none; }
  .sco-marquee::-webkit-scrollbar { display: none; }
}

/* ---------- testimonios en móvil ----------
   La sección venía con altura mínima de casi una pantalla y reparto
   "space-between": el titular entraba muy abajo y quedaban ~318px muertos bajo
   la cita. Sin altura forzada, el contenido se ordena por su propio alto. */
@media (max-width: 809px) {
  .testi-hero {
    min-height: 0;
    padding-top: clamp(46px, 11vw, 72px);
    padding-bottom: clamp(26px, 6vw, 40px);
    justify-content: flex-start;
    gap: clamp(18px, 4vw, 26px);
  }
  .testi-bottom { margin-top: clamp(14px, 3vw, 22px); }
  /* el encuadre de la foto de fondo se va a un lado en vertical */
  .testi-hero .ph img { object-position: center center; }
}

/* ---------- equipo: menos aire bajo la foto en móvil ---------- */
@media (max-width: 809px) {
  .team { padding-bottom: clamp(30px, 7vw, 46px); }
}

/* ---------- reseñas en carrusel (móvil) ----------
   Tres tarjetas apiladas obligan a un scroll largo; en fila con anclaje se
   recorren de un vistazo y avanzan solas. */
@media (max-width: 991px) {
  .testi-grid {
    display: flex; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
    scroll-padding-inline: var(--pad);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .testi-grid::-webkit-scrollbar { display: none; }
  .testi-card { flex: 0 0 84%; scroll-snap-align: center; }
}

/* ---------- Programas: las opciones como pestañas ----------
   Antes había que elegir arriba y bajar a buscar el detalle. En una tira
   horizontal ocupan una línea y el detalle queda justo debajo, a la vista. */
@media (max-width: 991px) {
  .pricing-panel { display: flex; flex-direction: column; gap: 16px; }
  /* Las tres opciones caben a la vez en tres columnas iguales; en una tira
     deslizante la primera se comía el ancho y las otras quedaban fuera. */
  .plan-list {
    /* la tercera etiqueta es la más larga: se le da algo más de columna para
       que "Team Building" no se parta en dos */
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px;
    margin-inline: 0; padding: 0; overflow: visible;
  }
  .plan-item {
    padding: 12px 8px; border-radius: 18px;
    min-height: 64px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; white-space: normal;
  }
  .plan-item b { font-size: 12px; line-height: 1.25; display: block; }
  .plan-item .pi-radio, .plan-item .pi-pop { display: none; }
  .plan-item span { display: none; }
  .plan-item b { font-size: var(--fs-sm); }
  .plan-detail { margin-top: 0; }
}

/* ---------- formulario: la reseña respiraba pegada al texto ---------- */
.cta-left blockquote { margin-top: clamp(24px, 5vw, 38px); }

/* ---------- reseñas: dos hogares según el ancho ----------
   En escritorio, la reseña de Aerodom manda en el banner grande y la de Banco
   Popular acompaña al formulario. En móvil ambas estorban ahí, así que se
   ocultan y sus copias entran al carrusel, que pasa de tres a cinco. */
.testi-card--movil { display: none; }

@media (max-width: 991px) {
  .testi-card--movil { display: flex; }
  .testi-hero .testi-quote,
  .testi-hero .testi-bottom,
  .cta-left blockquote { display: none; }
}

/* ── Banda newsletter (reactivada 05/10/2026) ───────────────────────────────
   Lo de arriba (.footer-band, .fb-grid, .fb-card) ya existía; esto es solo lo
   que el formulario nuevo necesita. */

/* Oculta a la vista, presente para los lectores de pantalla. No se usa
   display:none ni visibility:hidden: esos la quitan del árbol de
   accesibilidad y entonces el campo se queda sin etiqueta. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.fb-card .fb-sub { margin-top: 10px; color: var(--muted); max-width: 34ch; }

.nl-form { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.nl-form input[type="email"] {
  flex: 1 1 220px; min-width: 0; height: 50px; padding-inline: 18px;
  border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--white); font: inherit; color: inherit;
}
/* El foco se ve siempre, también con teclado: quitarlo es el fallo de
   accesibilidad más repetido en formularios bonitos. */
.nl-form input[type="email"]:focus-visible,
.nl-form button:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}
.nl-form input[type="email"][aria-invalid="true"] { border-color: #b3261e; }
.nl-form button[disabled] { opacity: .6; cursor: progress; }

/* Trampa para robots. Fuera de la vista pero rellenable por un programa. */
.nl-trampa {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

.nl-aviso { margin-top: 12px; font-size: var(--fs-sm); min-height: 1.4em; }
.nl-aviso[data-estado="ok"]    { color: #1b5e20; }
.nl-aviso[data-estado="error"] { color: #b3261e; }

/* En móvil el botón ocupa el ancho: un botón a medias junto a un campo
   estrecho es donde la gente falla el toque. */
@media (max-width: 560px) {
  .nl-form { flex-direction: column; }
  /* En columna, flex-basis se mide en ALTO: sin esto el campo pasaba de 50 a
     220px de alto. Medido el 05/10/2026. */
  .nl-form input[type="email"] { flex: 0 0 auto; height: 50px; }
  .nl-form button { width: 100%; }
}

/* Quien pide menos movimiento no recibe la animación de revelado. */
@media (prefers-reduced-motion: reduce) {
  .footer-band [data-reveal-group] { opacity: 1 !important; transform: none !important; }
}

/* ── Agendar una llamada, segunda vía del formulario (08/10/2026) ───────────
   El panel de contacto es cristal oscuro: .btn--ghost usa tinta oscura y ahí
   no se lee. Se adapta la variante existente en lugar de crear otra. */
.cta-form .btn--ghost {
  color: var(--white); border-color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.06);
}
.cta-form .btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.12); }

/* La «o» SÍ se lee: informa de que hay una alternativa, y ocultarla dejaría
   dos botones seguidos sin relación aparente. Lo que no se lee son las dos
   líneas, dibujadas con bordes y no con caracteres. */
.cta-o {
  display: flex; align-items: center; gap: 14px;
  margin: 2px 0; color: var(--white-35); font-size: var(--fs-sm);
}
.cta-o::before, .cta-o::after {
  content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.16);
}

/* Área de toque cómoda en móvil: 44px es el mínimo que se acierta sin mirar. */
.cta-agenda { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
