/* ═══════════════════════════════════════════════
   Crew Legales · Landing
   Marca propia: azul royal para la acción, casi-negro
   para el texto, lima quirúrgico como acento.
   Movimiento: tres duraciones y una curva; solo se
   animan transform y opacity.
   ═══════════════════════════════════════════════ */

@font-face {
  font-family: 'Inter Tight';
  src: url('../assets/fonts/intertight-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --ink: #191A23;         /* casi negro · titulares y texto fuerte */
  --slate: #384C6B;       /* azul gris · fondos oscuros y texto secundario */
  --slate-2: #2C3D57;     /* variante más profunda para degradados */
  --mute: #5B6E8E;        /* texto terciario · 4.9:1 sobre blanco */
  --royal: #004AC1;       /* acción: todos los botones primarios */
  --royal-dark: #003999;
  --lime: #C3FF00;        /* acento quirúrgico · nunca fondo de sección */
  --paper: #F7F9FC;
  --white: #FFFFFF;
  --line: #E5E9F0;
  --line-soft: rgba(25,26,35,.08);
  --hair-dark: rgba(255,255,255,.14);

  --font-head: 'Inter Tight', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --container: 1140px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --t-press: 90ms;
  --t-ui: 200ms;
  --t-reveal: 620ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; border-radius: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

/* ── Reveals ──────────────────────────────────────
   Arranca visible; solo se oculta si el script inline
   marcó .js. Y si main.js nunca corre, revealFailsafe
   destapa todo a los 6s. La página no puede quedar
   en blanco por una animación.                      */
.js [data-r] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-reveal) var(--ease-out),
              transform var(--t-reveal) var(--ease-out);
  animation: revealFailsafe 1ms linear 6s forwards;
}
.js [data-r].in { opacity: 1; transform: none; }
.js.reveal-ready [data-r] { animation: none; }
@keyframes revealFailsafe { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js [data-r] { transform: none; transition: opacity 300ms ease; animation: none; }
  html { scroll-behavior: auto; }
  .marca::after, .col__seg, .ticker__track { animation: none !important; }
}

/* ── Tipografía ───────────────────────────────── */
.h1, .h2, .h3, h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.022em; }
h1 {
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.08;
  font-weight: 700;
  text-wrap: balance;
}
h2 {
  font-size: clamp(25px, 3.1vw, 38px);
  line-height: 1.14;
  font-weight: 700;
  text-wrap: balance;
}
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; }

.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--royal);
  opacity: .8;
}
.eyebrow--center { justify-content: center; }
/* Sobre fondo oscuro el gris del eyebrow no se lee */
.section--dark .eyebrow { color: rgba(255,255,255,.72); }
.section--dark .eyebrow::before { background: var(--lime); opacity: 1; }
.lede {
  font-size: clamp(16.5px, 1.4vw, 19px);
  line-height: 1.62;
  color: var(--slate);
  max-width: 60ch;
}

/* Subrayado marcador lima: el gesto de marca. Se dibuja al entrar. */
.marca {
  position: relative;
  white-space: nowrap;
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat;
  background-position: 0 96%;
  background-size: 0% 22%;
}
.marca.in-view { animation: marca-draw .82s var(--ease-out) forwards; }
@keyframes marca-draw { to { background-size: 100% 22%; } }

/* ── Botones ──────────────────────────────────── */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--t-ui) var(--ease-out),
              color var(--t-ui) var(--ease-out),
              border-color var(--t-ui) var(--ease-out),
              transform var(--t-press) var(--ease-out);
}
.btn:active { transform: scale(.975); }
.btn--primary { background: var(--royal); color: var(--white); }
.btn--white { background: var(--white); color: var(--royal); }
.btn--ghost { color: var(--ink); border-color: var(--line); }
.btn--lg { min-height: 58px; padding: 0 38px; font-size: 16.5px; }
.btn__arrow { transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--royal-dark); }
  .btn--white:hover { background: var(--paper); }
  .btn--ghost:hover { border-color: var(--ink); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
}

/* ── Nav ──────────────────────────────────────────
   Arriba transparente; al scrollear aparece la píldora.
   La píldora es un pseudo-elemento con opacity+scale:
   no se anima layout. */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: transform 420ms var(--ease-out); }
.nav.is-scrolled { transform: translateY(10px); }
.nav__shell {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  height: 62px;
  padding: 0 12px 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__shell::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(25,26,35,.10);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  opacity: 0;
  transform: scaleX(1.05);
  transition: opacity 380ms var(--ease-out), transform 440ms var(--ease-out);
}
.nav.is-scrolled .nav__shell::before { opacity: 1; transform: none; }
/* Al scrollear el logo se centra en la píldora y los links se van;
   el botón queda, que es lo que la página tiene que seguir pidiendo. */
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  transition: transform 420ms var(--ease-out);
}
.nav.is-scrolled .nav__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav__links { transition: opacity 260ms var(--ease-out); }
.nav.is-scrolled .nav__links { opacity: 0; pointer-events: none; }
.nav.is-scrolled .nav__cta { margin-left: auto; }
.nav__logo img { height: 26px; width: auto; }
.nav__logo span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
  font-size: 14.5px; font-weight: 500; color: var(--slate);
  transition: color var(--t-ui) var(--ease-out);
}
.nav__cta { min-height: 42px; padding: 0 20px; font-size: 14.5px; flex: none; }
.nav__burger { display: none; }
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--ink); }
}

/* ── Secciones ────────────────────────────────── */
.section { padding: 92px 0; }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
/* Cierra la banda vacía entre "Qué incluye" y "Casos" */
#servicio { padding-bottom: 40px; }
#casos { padding-top: 52px; }
.section--dark {
  background: linear-gradient(160deg, var(--slate) 0%, var(--slate-2) 100%);
  color: var(--white);
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section__head { max-width: 760px; margin-bottom: 52px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head h2 { margin-top: 18px; color: var(--ink); }
.section--dark .section__head h2 { color: var(--white); }
.section__head .lede { margin-top: 18px; }
.section__head--center .lede { margin-inline: auto; }
.section--dark .lede { color: rgba(255,255,255,.78); }

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 72px;
  background:
    radial-gradient(760px 420px at 50% -6%, rgba(0,74,193,.14), transparent 68%),
    linear-gradient(180deg, #EAF0FF 0%, #F4F7FF 44%, var(--white) 100%);
}
/* Grilla de plano: el fondo de un expediente técnico. Se desvanece
   hacia abajo para no pelear con el texto. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,74,193,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,74,193,.055) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(720px 420px at 50% 22%, #000 0%, transparent 78%);
          mask-image: radial-gradient(720px 420px at 50% 22%, #000 0%, transparent 78%);
  opacity: 0;
  animation: grid-in 1.4s var(--ease-out) .25s forwards;
}
@keyframes grid-in { to { opacity: 1; } }
.hero__inner { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { margin: 18px 0 0; max-width: 15ch; color: var(--ink); }
.hero__lede { margin: 18px auto 0; text-align: center; }
.hero__ctas { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__note { font-size: 14.5px; color: var(--mute); }

/* VSL: video de ventas debajo del CTA del hero */
.vsl { margin: 40px auto 0; max-width: 720px; width: 100%; }
.vsl__frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(25,26,35,.16);
  cursor: pointer;
}
.vsl__poster { width: 100%; height: 100%; object-fit: cover; }
.vsl__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Botón para activar el sonido: el video ya arranca solo, en mute */
.vsl__sound {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 13px; border: none; border-radius: 999px;
  background: rgba(25,26,35,.62); color: #fff; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 13.5px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background var(--t-ui) var(--ease-out), transform var(--t-press) var(--ease-out), opacity 260ms var(--ease-out);
}
.vsl__sound svg { width: 18px; height: 18px; }
.vsl__sound:active { transform: scale(.97); }
.vsl__frame.sound-on .vsl__sound { opacity: 0; pointer-events: none; }
.vsl__cap { margin-top: 14px; font-size: 14.5px; color: var(--mute); text-align: center; }
@media (hover: hover) and (pointer: fine) {
  .vsl__sound:hover { background: var(--royal); }
}

/* Barra fija (popup) para agendar — aparece al scrollear, sobre todo en mobile */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 12px 12px 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(25,26,35,.18);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transform: translateY(140%);
  transition: transform 420ms var(--ease-out);
}
.dock.is-in { transform: none; }
.dock__txt { display: flex; flex-direction: column; line-height: 1.25; }
.dock__txt strong { font-family: var(--font-head); font-size: 15px; color: var(--ink); }
.dock__txt span { font-size: 12.5px; color: var(--mute); }
.dock__btn { min-height: 46px; padding: 0 24px; margin-left: auto; flex: none; }

/* ── Ventajas: filas con hairline, no tarjetas ── */
.rows { border-top: 1px solid var(--ink); }
.row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.row__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--royal);
  padding-top: 5px;
}
.row__body { display: grid; grid-template-columns: minmax(0,300px) minmax(0,1fr); gap: 36px; align-items: baseline; }
.row__body h3 { color: var(--ink); }
.row__body p { color: var(--slate); font-size: 15.5px; max-width: 62ch; }

/* ── Testimonios en video ─────────────────────── */
.vids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 880px; margin: 0 auto; }
.vid__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(25,26,35,.10);
}
.vid__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid figcaption { margin-top: 14px; text-align: center; }
.vid__name { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--ink); }
.vid__role { font-size: 13px; color: var(--mute); margin-top: 2px; line-height: 1.4; }
.vids__hint { display: none; }

/* ── Socios ───────────────────────────────────── */
.socios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }
.socio {
  border: 1px solid var(--hair-dark);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  padding: 26px 20px;
  text-align: center;
  transition: background-color var(--t-ui) var(--ease-out), border-color var(--t-ui) var(--ease-out);
}
.socio img {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;   /* encuadra la cara, no el pecho */
  margin: 0 auto 14px;
  border: 1px solid var(--hair-dark);
}
.socio img[src*="socio-1"] { object-position: center 25%; }
.socio img[src*="socio-3"] { object-position: center 20%; }
.socio__name { font-family: var(--font-head); font-weight: 600; font-size: 17.5px; color: var(--white); }
.socio__role { font-size: 13.5px; font-weight: 500; color: var(--lime); margin-top: 3px; }
@media (hover: hover) and (pointer: fine) {
  .socio:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); }
}
.equipo__nota { text-align: center; color: rgba(255,255,255,.72); font-size: 15.5px; max-width: 62ch; margin: 0 auto; }

/* ── Cifras ───────────────────────────────────── */
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair-dark); }
.cifra { padding: 30px 24px; border-left: 1px solid var(--hair-dark); }
.cifra:first-child { border-left: none; padding-left: 0; }
.cifra b {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.cifra span { display: block; margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.66); }

/* ── Calendly ─────────────────────────────────── */
.booking { max-width: 820px; margin: 0 auto; }
.calendly-inline-widget {
  display: none;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.js .calendly-inline-widget { display: block; }
.booking__fallback { margin-top: 18px; text-align: center; font-size: 15px; color: var(--slate); }
.booking__fallback a { color: var(--royal); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.js .booking__fallback { display: none; }
.js .booking.is-fallback .calendly-inline-widget { display: none; }
.js .booking.is-fallback .booking__fallback { display: block; }

/* ── FAQ ──────────────────────────────────────── */
.faqs { border-top: 1px solid var(--ink); max-width: 820px; margin: 0 auto; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 2px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17.5px;
  color: var(--ink);
  transition: color var(--t-ui) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { flex: none; width: 26px; height: 26px; position: relative; transition: transform 380ms var(--ease-out); }
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 15px; height: 2px;
  background: var(--royal);
  transform: translate(-50%,-50%);
  border-radius: 2px;
}
.faq__icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq[open] .faq__icon { transform: rotate(45deg); }
.faq__body { overflow: hidden; }
.faq__body p { padding: 0 44px 26px 2px; color: var(--slate); font-size: 15.5px; }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover { color: var(--royal); }
}

/* ── CTA ──────────────────────────────────────── */
.cta {
  background: linear-gradient(135deg, var(--royal) 0%, var(--slate) 100%);
  color: var(--white);
  text-align: center;
}
.cta h2 { color: var(--white); max-width: 20ch; margin: 0 auto; }
.cta__note { margin-top: 16px; font-size: 14.5px; color: rgba(255,255,255,.82); }
.cta__actions { margin-top: 30px; display: flex; justify-content: center; }

.midcta { text-align: center; }
.midcta p { font-family: var(--font-head); font-weight: 600; font-size: clamp(20px, 2.2vw, 26px); color: var(--ink); letter-spacing: -0.02em; }
.midcta .btn { margin-top: 24px; }

/* ── Footer ───────────────────────────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,.66); padding: 56px 0 34px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand img { height: 24px; width: auto; }
.footer__brand span { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--white); letter-spacing: -0.02em; }
.footer__dir { margin-top: 14px; font-size: 14px; line-height: 1.6; max-width: 30ch; }
.footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__links a { transition: color var(--t-ui) var(--ease-out); }
.footer__bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.10); font-size: 12.5px; color: rgba(255,255,255,.5); }
@media (hover: hover) and (pointer: fine) {
  .footer__links a:hover { color: var(--white); }
}

/* ═══════════════ Responsive ═══════════════ */
@media (max-width: 980px) {
  .row__body { grid-template-columns: 1fr; gap: 10px; }
  .socios { grid-template-columns: 1fr; }
  .cifras { grid-template-columns: 1fr; }
  .cifra { border-left: none; border-top: 1px solid var(--hair-dark); padding-left: 0; }
  .cifra:first-child { border-top: none; }
}

@media (max-width: 760px) {
  .section { padding: 48px 0; }
  .section__head { margin-bottom: 32px; }
  .hero { padding: 104px 0 52px; }
  .hero h1 { margin-top: 14px; }
  .hero__lede { margin-top: 14px; }
  .hero__ctas { margin-top: 22px; }
  .vsl { margin-top: 28px; }
  .vsl__play { width: 62px; height: 62px; }
  .vsl__play svg { width: 26px; height: 26px; }
  /* deja aire para que el dock no tape el final */
  .footer { padding-bottom: 104px; }
  .dock__txt strong { font-size: 14px; }
  .nav__links, .nav__cta { display: none; }
  .nav__shell { padding: 0 16px; }
  .nav.is-scrolled { transform: translateY(8px); }
  .nav__burger {
    display: flex; flex-direction: column; gap: 6px;
    margin-left: auto; background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav__burger span {
    width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform 300ms var(--ease-out);
  }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links.is-open {
    display: flex; position: fixed; inset: 62px 12px auto;
    flex-direction: column; gap: 18px;
    background: var(--white); border: 1px solid var(--line); border-radius: 14px;
    padding: 22px; box-shadow: 0 20px 44px rgba(25,26,35,.16);
  }

  .hero { padding: 120px 0 70px; }
  .hero__ctas .btn { align-self: stretch; width: 100%; }

  .row { grid-template-columns: 40px 1fr; gap: 14px; padding: 24px 0; }

  /* Los videos pasan a carrusel deslizable con snap */
  .vids {
    grid-template-columns: none;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -24px;
    padding-inline: 24px;
    scrollbar-width: none;
  }
  .vids::-webkit-scrollbar { display: none; }
  .vid { flex: 0 0 78%; scroll-snap-align: center; }
  .vids__hint { display: block; text-align: center; font-size: 13px; color: var(--mute); margin-top: 14px; }

  .faq summary { font-size: 16px; padding: 20px 2px; }
  .faq__body p { padding-right: 8px; }
  .footer__top { flex-direction: column; gap: 26px; }
}
