/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Brand */
  --color-brand: #BF00FF;
  --color-bg: #FFFFFF;

  /* Neutrals */
  --color-ink: #0A0A0A;
  --color-text: #242424;
  --color-muted: #686868;
  --color-border: #E7E7E7;
  --color-surface: #F7F7F7;
  --color-surface-strong: #F1F1F1;
  --color-white: #FFFFFF;
  --color-error: #B42318;
  --color-success: #16794A;

  /* Brand tonal scale */
  --color-brand-strong: #A800E0;
  --color-brand-deep: #7A00A3;
  --color-brand-tint: rgba(191,0,255,.05);
  --color-brand-tint-2: rgba(191,0,255,.10);
  --color-brand-line: rgba(191,0,255,.22);
  --color-brand-glow: rgba(191,0,255,.15);

  /* Cool-tinted neutrals */
  --color-ink-2: #1C1B22;
  --color-surface-cool: #F5F4F8;
  --color-footer-bg: #0C0A12;
  --color-footer-text: #A9A6B4;
  --color-footer-line: rgba(255,255,255,.09);

  /* Typography */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --text-hero: clamp(48px, 5.35vw, 80px);
  --text-h2: clamp(36px, 3.7vw, 54px);
  --text-h3: 26px;
  --text-body-lg: 20px;
  --text-body: 17px;
  --text-small: 14px;
  --text-label: 13px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-28: 112px;
  --space-30: 120px;
  --space-36: 144px;

  /* Radii */
  --radius-button: 10px;
  --radius-input: 10px;
  --radius-card: 20px;
  --radius-video: 24px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card: 0 12px 32px rgba(0,0,0,.07);
  --shadow-video: 0 16px 48px rgba(0,0,0,.10);

  /* Motion */
  --duration-fast: 140ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-standard: cubic-bezier(.2,.8,.2,1);

  /* Layout */
  --page-max: 1440px;
  --content-max: 1200px;
  --copy-max: 760px;
  --narrow-max: 680px;
  --gutter: 40px;
}

@media (max-width: 1279px) { :root { --gutter: 32px; } }
@media (max-width: 1023px) { :root { --gutter: 24px; } }
@media (max-width: 767px)  { :root { --gutter: 20px; } }
@media (max-width: 379px)  { :root { --gutter: 16px; } }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  /* Precisión: el ancla se detiene justo bajo el header sticky (72px) + aire */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
}

body {
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  -webkit-appearance: none;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  text-wrap: balance;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--color-ink);
}
input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  -webkit-appearance: none;
}

::selection {
  background: var(--color-brand);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  padding: .6rem 1.2rem;
  background: var(--color-ink);
  color: #fff;
  z-index: 9999;
  border-radius: var(--radius-button);
  font-size: var(--text-small);
  font-weight: 600;
  transition: top var(--duration-base) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-brand-deep);
  background: var(--color-brand-tint);
  border: 1.5px solid var(--color-brand-line);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  line-height: 1.4;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1100ms cubic-bezier(.16,1,.3,1),
              transform 1100ms cubic-bezier(.16,1,.3,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.reveal[data-split] { opacity: 1; transform: none; }

.word-reveal .word-anim {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
  transition-delay: calc(var(--word-index, 0) * 45ms);
}
.word-reveal.is-visible .word-anim {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 46px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-button);
  /* Curva tipo "spring" (Framer): entra rápido y asienta suave */
  transition: transform .28s cubic-bezier(.34,1.56,.64,1),
              box-shadow .28s cubic-bezier(.16,1,.3,1),
              background .2s var(--ease-out),
              color .2s var(--ease-out),
              border-color .2s var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
  letter-spacing: .01em;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: linear-gradient(180deg, #C61FFF 0%, var(--color-brand) 100%);
  color: #fff;
  position: relative;
  /* borde superior de luz + sombra base */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25),
              0 2px 6px rgba(191,0,255,.22);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3),
              0 8px 22px rgba(191,0,255,.36),
              0 2px 8px rgba(191,0,255,.2);
}
.btn-primary:active {
  transform: translateY(0) scale(.97);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.15),
              0 1px 3px rgba(191,0,255,.2);
  transition-duration: .1s;
}
.btn-primary:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

.btn-secondary {
  background: transparent;
  color: var(--color-ink);
  border: 1.5px solid var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-brand-line);
  background: var(--color-brand-tint);
  color: var(--color-brand-deep);
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 6px 18px rgba(191,0,255,.12);
}
.btn-secondary:active {
  transform: translateY(0) scale(.97);
  transition-duration: .1s;
}
.btn-secondary:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: background .2s, color .2s, border-color .2s; }
  .btn:hover, .btn:active { transform: none; }
}

.btn-sm {
  height: 38px;
  padding: 0 18px;
  font-size: 13px;
}

/* =============================================================
   5. Cookie banner
   ============================================================= */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 40px));
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
  z-index: 9000;
  display: none;
  gap: var(--space-6);
  align-items: center;
  flex-wrap: wrap;
}
#cookie-banner.is-visible { display: flex; }

.cookie-text {
  flex: 1;
  min-width: 200px;
  font-size: var(--text-small);
  color: var(--color-muted);
  line-height: 1.5;
}
.cookie-text a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  flex-shrink: 0;
}

#cookie-panel {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}
#cookie-panel.is-visible { display: flex; }

.cookie-panel-inner {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: var(--space-10);
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-panel-inner h2,
.cookie-panel-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-ink);
}
.cookie-panel-inner p {
  font-size: var(--text-small);
  color: var(--color-muted);
  margin-bottom: var(--space-6);
}

.cookie-category {
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-5);
}
.cookie-category:last-of-type { border-bottom: none; }

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}
.cookie-category-title {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-ink);
}
.cookie-category p {
  font-size: var(--text-small);
  color: var(--color-muted);
  margin: 0;
}

/* Toggle switch */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  transition: background var(--duration-base) var(--ease-out);
  cursor: pointer;
}
.toggle input:checked + .toggle-track { background: var(--color-brand); }
.toggle-track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--duration-base) var(--ease-out);
}
.toggle input:checked + .toggle-track::before { transform: translateX(20px); }
.toggle input:disabled + .toggle-track { cursor: not-allowed; opacity: .5; }

.cookie-panel-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

/* =============================================================
   6. Header
   ============================================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 800;
  height: 56px;
  /* Por defecto: sólido (funciona en cualquier página de fondo claro) */
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out);
  display: flex;
  align-items: center;
  color: var(--color-text);
}

/* Homepage: el header flota transparente sobre el hero oscuro y se vuelve
   sólido al hacer scroll (.scrolled lo añade el JS) */
#site-header.over-hero:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  color: #fff;
}
#site-header.over-hero:not(.scrolled) .header-logo-text { color: #fff; }
#site-header.over-hero:not(.scrolled) .header-nav a { color: rgba(255,255,255,.8); }
#site-header.over-hero:not(.scrolled) .header-nav a:hover { color: #fff; }
#site-header.over-hero:not(.scrolled) .header-nav a.is-active { color: #fff; }
#site-header.over-hero:not(.scrolled) .nav-lamp {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
}
#site-header.over-hero:not(.scrolled) .header-cta {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}
#site-header.over-hero:not(.scrolled) .header-menu-btn { color: #fff; }

/* =============================================================
   HEADER ADAPTATIVO — transparente sobre hero, blanco fuera del hero
   ============================================================= */
#site-header.header-on-dark,
#site-header.header-on-light {
  transition:
    color 320ms cubic-bezier(0.23, 1, 0.32, 1),
    background 320ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 320ms cubic-bezier(0.23, 1, 0.32, 1);
}

/* Sobre fondo oscuro (hero foto) → TRANSPARENTE + letras claras */
#site-header.header-on-dark {
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  color: #fff;
}
#site-header.header-on-dark .header-logo-text { color: #fff; }
#site-header.header-on-dark .header-logo img { filter: brightness(0) invert(1); }
#site-header.header-on-dark .header-nav a { color: rgba(255, 255, 255, 0.82); }
#site-header.header-on-dark .header-nav a:hover { color: #fff; }
#site-header.header-on-dark .header-nav a.is-active { color: #fff; }
#site-header.header-on-dark .header-menu-btn { color: #fff; }
#site-header.header-on-dark .nav-lamp {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}
#site-header.header-on-dark .pill-btn--outline {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.4);
  color: #14141c;
}
#site-header.header-on-dark .pill-btn--outline .pill-btn-seal {
  background: #14141c;
  color: #ffffff;
}

/* Sobre fondo claro → BLANCO SÓLIDO + letras oscuras */
#site-header.header-on-light {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(20, 12, 40, 0.06);
  color: var(--color-text);
}
#site-header.header-on-light .header-logo-text { color: var(--color-ink); }
#site-header.header-on-light .header-logo img { filter: none; }
#site-header.header-on-light .header-nav a { color: var(--color-muted); }
#site-header.header-on-light .header-nav a:hover { color: var(--color-ink); }
#site-header.header-on-light .header-nav a.is-active { color: var(--color-brand-deep); }
#site-header.header-on-light .header-menu-btn { color: var(--color-ink); }
#site-header.header-on-light .pill-btn--outline {
  background: #ffffff;
  border-color: rgba(20, 20, 28, 0.14);
  color: #14141c;
}
#site-header.header-on-light .pill-btn--outline .pill-btn-seal {
  background: #14141c;
  color: #ffffff;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-6);
  min-height: 44px;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  height: 36px;
  justify-self: start;
}
.header-logo img {
  height: 22px;
  width: auto;
}
.header-logo-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.header-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-self: center;
  height: 34px;
  gap: 6px;
}
.header-nav a {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-muted);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: color var(--duration-base) var(--ease-out);
  white-space: nowrap;
  letter-spacing: .005em;
}

/* En la home de clínicas la nav se echa un poco a la derecha */
body:not(.partners-page):not(.form-page) .header-nav {
  justify-self: end;
  margin-right: var(--space-4);
}
.header-nav a:hover { color: var(--color-ink); }
.header-nav a.is-active { color: var(--color-brand-deep); font-weight: 600; }

/* Tubelight active-section indicator */
.nav-lamp {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--color-brand-tint);
  border: 1px solid var(--color-brand-line);
  opacity: 0;
  z-index: -1;
  transition: left var(--duration-slow) var(--ease-out),
              width var(--duration-slow) var(--ease-out),
              opacity var(--duration-base) var(--ease-out);
}
.nav-lamp.is-active { opacity: 1; }
.nav-lamp::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% -50%;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-brand), transparent);
  border-radius: var(--radius-pill);
}

.header-cta {
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
}
.header-cta-group {
  justify-self: end;
  gap: 8px;
}

.header-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-button);
  color: var(--color-ink);
  transition: background var(--duration-base) var(--ease-out);
}
.header-menu-btn:hover { background: var(--color-surface); }
.header-menu-btn svg { pointer-events: none; }

/* Mobile menu */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-white);
  z-index: 900;
  display: flex;
  flex-direction: column;
  padding: 0 var(--space-5) var(--space-10);
  transform: translateY(-100%);
  transition: transform var(--duration-slow) var(--ease-out);
}
#mobile-menu.is-open { transform: translateY(0); }

.mobile-menu-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding-top: var(--space-8);
  flex: 1;
}
.mobile-menu-nav a {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-ink);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--duration-base) var(--ease-out);
}
.mobile-menu-nav a:hover { color: var(--color-brand); }

.mobile-menu-cta {
  margin-top: var(--space-8);
  width: 100%;
  height: 56px;
  font-size: 17px;
}

/* =============================================================
   7. Hero
   ============================================================= */
#hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin-top: -56px;            /* el hero sube tras el header sticky para hacer de fondo */
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/img/hero-bg.jpg") center / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 40%, rgba(191,0,255,.10) 0%, transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.42) 55%, rgba(0,0,0,.72) 100%);
}

/* El contenido se centra verticalmente (más arriba que antes) */
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-split {
  width: 100%;
}

.hero-left {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.hero-h1 {
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: var(--space-5);
}
.hero-h1 em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  color: var(--color-brand);
  -webkit-text-fill-color: var(--color-brand);
}

.hero-h2 {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 600;
  color: rgba(255,255,255,.94);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-4);
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
  max-width: 55ch;
  margin-inline: auto;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(4px);
}
.hero-btn-ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.5);
  color: #fff;
}

/* Stats marquee — full-bleed anclado al borde inferior del hero */
.hero-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 14px;
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.hero-stats-track {
  display: flex;
  gap: 3rem;
  animation: hero-marquee 28s linear infinite;
  width: max-content;
  padding-left: 3rem;
}
@keyframes hero-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.hero-stat-value {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-brand);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 500;
}

/* =============================================================
   8. VSL
   ============================================================= */
#video {
  padding-block: var(--space-24);
}

.vsl-wrap {
  max-width: 880px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.vsl-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-surface-strong);
  border-radius: var(--radius-video);
  border: 1px solid var(--color-border);
  box-shadow:
    var(--shadow-video),
    0 0 0 1px rgba(191,0,255,.06);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}
.vsl-container:hover {
  box-shadow:
    0 20px 56px rgba(0,0,0,.13),
    0 0 0 1px rgba(191,0,255,.12);
}
/* Con el sonido ya activado, el vídeo se puede pausar clicando encima */
.vsl-container.is-unmuted { cursor: pointer; }

/* Vídeo no disponible: se queda la portada, sin cursor ni hover engañosos */
.vsl-container.is-poster-only { cursor: default; }
.vsl-container.is-poster-only:hover {
  box-shadow:
    var(--shadow-video),
    0 0 0 1px rgba(191,0,255,.06);
}

/* Reproductor de YouTube embebido — ocupa todo el contenedor 16:9 */
.vsl-container.has-poster {
  background-size: cover;
  background-position: center;
}
.vsl-yt,
.vsl-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* El iframe aparece con un fundido cuando el reproductor está listo */
.vsl-container[data-yt-player] iframe {
  opacity: 0;
  transition: opacity .45s var(--ease-out);
}
.vsl-container[data-yt-player].yt-ready iframe { opacity: 1; }

/* Vídeo */
.vsl-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--color-ink);
}

/* Botón "activar sonido" superpuesto (patrón VSL) */
.vsl-unmute {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  cursor: pointer;
  background: rgba(12,10,18,.28);
  border: 0;
  transition: background var(--duration-base) var(--ease-out), opacity .4s var(--ease-out);
}
.vsl-unmute:hover { background: rgba(12,10,18,.18); }
.vsl-unmute.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.vsl-unmute-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--color-brand), #8B00C2);
  box-shadow: 0 10px 34px rgba(191,0,255,.45);
  position: relative;
  transition: transform var(--duration-base) var(--ease-out);
}
.vsl-unmute-icon::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(191,0,255,.7);
  animation: play-pulse 2.4s ease-out infinite;
}
.vsl-unmute:hover .vsl-unmute-icon { transform: scale(1.07); }
.vsl-unmute-text {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .01em;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
  padding: 8px 18px;
  background: rgba(0,0,0,.35);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}
@keyframes play-pulse {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.35); opacity: 0; }
}

.vsl-meta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-6);
  justify-content: center;
  font-size: var(--text-small);
  color: var(--color-muted);
}
.vsl-meta span { display: flex; align-items: center; gap: 6px; }

/* Iframe overlay */
.vsl-iframe-wrap {
  position: absolute;
  inset: 0;
  display: none;
}
.vsl-iframe-wrap.is-active {
  display: block;
}
.vsl-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* VSL summary */
.vsl-summary {
  margin-top: var(--space-8);
  max-width: var(--copy-max);
  margin-inline: auto;
  font-size: var(--text-body);
  color: var(--color-muted);
  line-height: 1.65;
  text-align: center;
}
.vsl-summary strong { color: var(--color-text); }

/* =============================================================
   9. Trust strip
   ============================================================= */
#confianza {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: 28px;
}

.trust-inner {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.trust-label {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-muted);
  max-width: 220px;
  line-height: 1.4;
  flex-shrink: 0;
  border-right: 1px solid var(--color-border);
  padding-right: var(--space-10);
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  flex-wrap: wrap;
  flex: 1;
}

.trust-logo-slot {
  height: 32px;
  background: var(--color-surface-strong);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-5);
  min-width: 100px;
  font-size: var(--text-label);
  color: var(--color-muted);
  font-weight: 500;
  letter-spacing: .02em;
}

/* =============================================================
   10. Como funciona
   ============================================================= */
#como-funciona {
  padding-block: var(--space-28);
}

.mechanism-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-16);
  align-items: start;
}

.mechanism-header {
  position: sticky;
  top: calc(72px + var(--space-10));
}

.mechanism-header .eyebrow { margin-bottom: var(--space-6); }

.mechanism-h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  margin-bottom: var(--space-6);
}

.mechanism-desc {
  font-size: var(--text-body);
  color: var(--color-muted);
  line-height: 1.65;
  max-width: 420px;
}

.mechanism-steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-6);
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}
.step:last-child { border-bottom: none; }

.step-number {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-surface-strong);
  -webkit-text-stroke: 1.5px var(--color-border);
}

.step-body {}
.step-title {
  font-size: var(--text-h3);
  font-weight: 650;
  margin-bottom: var(--space-3);
}
.step-desc {
  font-size: var(--text-body);
  color: var(--color-muted);
  line-height: 1.6;
}

/* =============================================================
   11. Testimonios
   ============================================================= */
#testimonios {
  position: relative;
  padding-block: var(--space-28);
  background:
    radial-gradient(ellipse 70% 50% at 20% 100%, rgba(191,0,255,.05) 0%, transparent 60%),
    var(--color-surface-cool);
  overflow: hidden;
}
#testimonios::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--color-brand-line) 50%, transparent 90%);
}

.testimonios-header {
  text-align: center;
  margin-bottom: var(--space-12);
}
.testimonios-header .eyebrow { margin-bottom: var(--space-5); }
.testimonios-header h2 { font-size: var(--text-h2); font-weight: 700; margin-bottom: var(--space-4); }
.testimonios-header p { font-size: var(--text-body-lg); color: var(--color-muted); max-width: 62ch; margin-inline: auto;  font-weight: 500;}

/* Columnas con desplazamiento automatico */
.tcol-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  max-height: 700px;
  overflow: hidden;
  /* difumina el corte arriba y abajo */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
}
.tcol:nth-child(2),
.tcol:nth-child(3) { display: none; }
@media (min-width: 768px) {
  .tcol-wrap { grid-template-columns: 1fr 1fr; }
  .tcol:nth-child(2) { display: block; }
}
@media (min-width: 1024px) {
  .tcol-wrap { grid-template-columns: 1fr 1fr 1fr; }
  .tcol:nth-child(3) { display: block; }
}

.tcol { overflow: hidden; }
.tcol-track {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  animation: tcol-scroll linear infinite;
  will-change: transform;
}
/* ritmos distintos por columna: se siente organico, no sincronizado */
.tcol-1 .tcol-track { animation-duration: 58s; }
.tcol-2 .tcol-track { animation-duration: 74s; }
.tcol-3 .tcol-track { animation-duration: 66s; }
.tcol:hover .tcol-track { animation-play-state: paused; }

@keyframes tcol-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

/* Tarjeta blanca con pie oscuro */
.tcard {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.tcard:hover {
  border-color: var(--color-brand-line);
  box-shadow: 0 8px 24px rgba(15,10,25,.08);
}

.tcard-body {
  padding: 28px 26px 32px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

.tcard-quote {
  font-size: 15px;
  line-height: 1.72;
  color: var(--color-text);
  letter-spacing: -0.005em;
}
.tcard-quote p + p {
  margin-top: var(--space-3);
}

/* Pie: una sola imagen (cara + nombre + cargo) a sangre */
.tcard-person {
  margin-top: auto;
  background: #0B0B0D;      /* se ve mientras la imagen carga */
  line-height: 0;           /* sin hueco bajo la imagen */
}
.tcard-badge {
  width: 100%;
  height: auto;
  display: block;
  color: transparent;       /* oculta el alt si aun no esta el archivo */
}



/* =============================================================
   12. Resultados
   ============================================================= */
#resultados {
  position: relative;
  padding-block: var(--space-28);
}
#resultados::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.resultados-header {
  text-align: center;
  margin-bottom: var(--space-16);
}
.resultados-header .eyebrow { margin-bottom: var(--space-5); }
.resultados-header h2 { font-size: var(--text-h2); font-weight: 700; margin-bottom: var(--space-4); }
.resultados-header p { font-size: var(--text-body-lg); color: var(--color-muted); max-width: 62ch; margin-inline: auto;  font-weight: 500;}

/* Before/After */
.antes-despues {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  max-width: 960px;
  margin-inline: auto;
}

.ad-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-6) 28px;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.ad-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.ad-label {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}

.ad-card-title {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
}
.ad-card-title em {
  font-style: normal;
  color: var(--color-brand);
}
.ad-subtitle {
  font-size: var(--text-small);
  color: var(--color-muted);
  margin-bottom: var(--space-5);
  font-weight: 500;
}

.ad-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ad-item {
  position: relative;
  padding-left: 30px;
  font-size: var(--text-small);
  color: var(--color-text);
  line-height: 1.5;
}
.ad-item strong {
  font-weight: 700;
  color: var(--color-ink);
}

.ad-icon {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
}
.ad-icon-before { color: #B42318; }
.ad-icon-after { color: var(--color-success); }

.ad-card.ad-after {
  border-color: rgba(191,0,255,.25);
  background: linear-gradient(165deg, rgba(191,0,255,.03) 0%, rgba(191,0,255,.07) 100%);
  position: relative;
}
.ad-card.ad-after::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-brand), transparent);
  border-radius: 0 0 2px 2px;
  opacity: .6;
}

.ad-rgpd-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-success);
  background: rgba(22,163,74,.08);
  border: 1px solid rgba(22,163,74,.2);
  border-radius: 6px;
  padding: 4px 8px;
}

/* =============================================================
   12b. Producto
   ============================================================= */
#producto {
  padding-block: var(--space-28);
  background: var(--color-surface-cool);
  overflow: hidden;
}

/* Puente "Podemos ayudarte" + flecha */
.producto-help {
  text-align: center;
  margin-bottom: var(--space-16);
}
.producto-help-title {
  font-size: var(--text-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin-bottom: var(--space-5);
}
.producto-scroll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: var(--color-brand);
  box-shadow: 0 4px 16px rgba(191,0,255,.28);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s var(--ease-out);
  animation: scroll-bounce 2.2s ease-in-out infinite;
}
.producto-scroll-btn:hover {
  transform: translateY(2px) scale(1.06);
  box-shadow: 0 8px 24px rgba(191,0,255,.4);
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Encaje — título orientado a búsqueda + checklist */
.producto-encaje {
  max-width: 640px;
  margin: 0 auto var(--space-20);
  text-align: center;
  scroll-margin-top: 90px;
}
.producto-encaje-h {
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.producto-encaje-lead {
  font-size: var(--text-body);
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 55ch;
  margin: 0 auto var(--space-8);
}
.producto-fit-list {
  display: inline-flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: left;
}
.producto-fit-list li {
  position: relative;
  padding-left: 30px;
  font-size: var(--text-body);
  color: var(--color-text);
  line-height: 1.45;
}
.producto-fit-list svg {
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  color: var(--color-brand);
}

/* Split: texto + imagen cortada a la derecha */
/* Producto — texto a la izquierda + carrusel a la derecha */
#producto { position: relative; overflow: hidden; }

.producto-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  margin-bottom: var(--space-10);
}

.producto-text {
  max-width: 520px;
  text-align: left;
}
.producto-text .eyebrow {
  margin-bottom: var(--space-4);
}
.producto-text h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

/* Capacidades — alineadas a la izquierda dentro del bloque de texto */
.producto-caps {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
  text-align: left;
}
.producto-caps li {
  position: relative;
  padding-left: 28px;
  font-size: clamp(15px, 1.05vw, 17px);
  color: var(--color-text);
  line-height: 1.6;
}
.producto-cap-check {
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  color: var(--color-brand);
}

/* Carrusel — más compacto, imágenes completas */
.producto-carousel {
  --carousel-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --carousel-duration: 620ms;
  width: 100%;
  max-width: 560px;
  margin: 0;
  justify-self: end;
}

.producto-carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #f6f2fb 0%, #ece4f5 100%);
  box-shadow:
    0 20px 56px -24px rgba(20, 12, 40, 0.24),
    0 6px 20px -12px rgba(20, 12, 40, 0.12);
}

.producto-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform var(--carousel-duration) var(--carousel-ease);
  will-change: transform;
}

.producto-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}
/* Foto derecha (embudo/objecciones) — más grande, ocupa todo el placeholder */
.producto-carousel-slide[data-index="2"] { padding: 4px; }
/* Foto centro (campañas) — ligeramente mayor que el default */
.producto-carousel-slide[data-index="1"] { padding: 6px; }
.producto-carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 6px;
}

/* Botones prev / next */
.producto-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(20, 12, 40, 0.16);
  background: rgba(245, 244, 248, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(60, 55, 75, 0.86);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  box-shadow: 0 6px 20px -8px rgba(20, 12, 40, 0.22);
  transition:
    transform 220ms var(--carousel-ease),
    background 220ms var(--carousel-ease),
    border-color 220ms var(--carousel-ease),
    color 220ms var(--carousel-ease),
    box-shadow 220ms var(--carousel-ease),
    opacity 220ms var(--carousel-ease);
}
.producto-carousel-btn:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #ffffff;
  box-shadow: 0 12px 28px -8px rgba(191, 0, 255, 0.42);
}
.producto-carousel-btn:active {
  transform: translateY(-50%) scale(0.94);
  background: #a800e0;
  border-color: #a800e0;
  color: #ffffff;
}
.producto-carousel-btn:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}
.producto-carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.producto-carousel-btn--prev { left: 14px; }
.producto-carousel-btn--next { right: 14px; }

/* Dots */
.producto-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-6);
}
.producto-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(20, 12, 40, 0.18);
  padding: 0;
  cursor: pointer;
  transition:
    width 320ms var(--carousel-ease),
    background 320ms var(--carousel-ease);
}
.producto-carousel-dot:hover {
  background: rgba(20, 12, 40, 0.32);
}
.producto-carousel-dot:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}
.producto-carousel-dot[aria-selected="true"] {
  width: 24px;
  background: var(--color-brand);
}

/* CTA debajo del layout */
.producto-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-4);
}

/* Tablet — stack vertical */
@media (max-width: 900px) {
  .producto-split-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }
  .producto-text {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
  }
  .producto-caps { display: inline-flex; margin: 0 auto; }
  .producto-carousel {
    max-width: 640px;
    margin: 0 auto;
    justify-self: center;
  }
  .producto-carousel-viewport { aspect-ratio: 4 / 3; }
  .producto-carousel-btn { width: 40px; height: 40px; }
  .producto-carousel-btn--prev { left: 10px; }
  .producto-carousel-btn--next { right: 10px; }
}

/* Móvil */
@media (max-width: 640px) {
  .producto-carousel-viewport {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }
  .producto-carousel-slide { padding: 14px; }
  .producto-carousel-btn {
    width: 36px;
    height: 36px;
  }
  .producto-carousel-btn--prev { left: 8px; }
  .producto-carousel-btn--next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .producto-carousel-track,
  .producto-carousel-btn,
  .producto-carousel-dot {
    transition: none;
  }
}

/* =============================================================
   15b. Los fundadores (embeds de LinkedIn)
   ============================================================= */
#fundadores {
  padding-block: var(--space-28);
  background: var(--color-surface-cool);
  border-top: 1px solid var(--color-border);
}
.fundadores-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-16);
}
.fundadores-header .eyebrow { margin-bottom: var(--space-4); }
.fundadores-header h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.fundadores-header p {
  color: var(--color-muted);
  font-size: var(--text-body);
  line-height: 1.6;
 font-weight: 500;}
.fundadores-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  align-items: start;
}
.fundadores-post {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15,10,25,.04);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.fundadores-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(15,10,25,.08);
}
.fundadores-post iframe {
  width: 100%;
  min-height: 540px;
  border: 0;
  display: block;
}
@media (max-width: 1023px) {
  .fundadores-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}

/* Case note */
.resultados-case-note {
  text-align: center;
  margin-top: var(--space-12);
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-card);
  max-width: 680px;
  margin-inline: auto;
}
.resultados-case-note p {
  font-size: var(--text-small);
  color: var(--color-muted);
  margin-bottom: var(--space-5);
}

/* =============================================================
   13. Para quién
   ============================================================= */
#para-quien {
  padding-block: var(--space-28);
}

.paraquien-inner {
  background:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(191,0,255,.05) 0%, transparent 60%),
    var(--color-surface-cool);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-16);
}

.paraquien-header {
  margin-bottom: var(--space-12);
}
.paraquien-header .eyebrow { margin-bottom: var(--space-5); }
.paraquien-header h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  max-width: 680px;
}

.paraquien-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.pq-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: var(--text-body);
  color: var(--color-text);
  line-height: 1.5;
  padding: var(--space-4) var(--space-5);
  border-radius: 12px;
  transition: background var(--duration-base) var(--ease-out);
}
.pq-item:hover {
  background: rgba(191,0,255,.04);
}

.pq-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-brand);
}

/* =============================================================
   14. FAQ
   ============================================================= */
#preguntas {
  padding-block: var(--space-28);
}

.faq-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--space-16);
  align-items: start;
}

.faq-header {
  position: sticky;
  top: calc(72px + var(--space-10));
}
.faq-header .eyebrow { margin-bottom: var(--space-5); }
.faq-header h2 {
  font-size: var(--text-h2);
  font-weight: 700;
}

.faq-list {
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-5) var(--space-4);
  margin-inline: calc(var(--space-4) * -1);
  width: calc(100% + var(--space-4) * 2);
  min-height: 64px;
  text-align: left;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-ink);
  cursor: pointer;
  border-radius: 12px;
  transition: color var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out);
}
.faq-trigger:hover { color: var(--color-brand); background: var(--color-brand-tint); }
.faq-trigger[aria-expanded="true"] { color: var(--color-brand); }

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-out);
}
.faq-trigger[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

/* Transición sin jank: grid interpola entre 0fr y 1fr sin max-height */
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.16,1,.3,1);
}
.faq-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.faq-panel[aria-hidden="false"] {
  grid-template-rows: 1fr;
}
.faq-answer {
  font-size: var(--text-body);
  color: var(--color-muted);
  line-height: 1.65;
  padding-bottom: var(--space-4);
  max-width: 72ch;
}
.faq-answer + .faq-answer,
.faq-answer-list + .faq-answer,
.faq-answer + .faq-answer-list {
  padding-top: 0;
}
.faq-answer-list {
  list-style: none;
  counter-reset: faq-counter;
  padding: 0 0 var(--space-4) 0;
  max-width: 72ch;
  color: var(--color-muted);
  font-size: var(--text-body);
  line-height: 1.6;
}
.faq-answer-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: var(--space-3);
}
.faq-answer-list li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand);
}
.faq-answer-list--ordered {
  counter-reset: faq-counter;
}
.faq-answer-list--ordered li {
  padding-left: 34px;
}
.faq-answer-list--ordered li::before {
  counter-increment: faq-counter;
  content: counter(faq-counter);
  background: var(--color-brand-tint);
  color: var(--color-brand-deep);
  border: 1px solid var(--color-brand-line);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  top: 2px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* =============================================================
   15. Demo form
   ============================================================= */
#solicitar-demo {
  padding-block: var(--space-24);
  background: var(--color-surface);
}

.demo-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-16);
  align-items: start;
}

.demo-header .eyebrow { margin-bottom: var(--space-5); }
.demo-header h1,
.demo-header h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  margin-bottom: var(--space-5);
}
.demo-header p {
  font-size: var(--text-body);
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: var(--space-8);
}

/* Compact demo CTA (index.html) — links out to /solicitar-demo.html */
.demo-cta {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.demo-cta .eyebrow { margin-bottom: var(--space-5); }
.demo-cta h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  margin-bottom: var(--space-5);
}
.demo-cta p {
  font-size: var(--text-body);
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: var(--space-8);
}
.demo-cta .btn { margin-bottom: var(--space-5); }
.demo-cta .demo-reply-time { justify-content: center; }

.demo-criteria-title {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-ink);
  margin: var(--space-4) 0 var(--space-3);
  letter-spacing: -0.005em;
}

.demo-criteria {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.demo-criteria-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-small);
  color: var(--color-text);
  line-height: 1.5;
}

.demo-criteria-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-brand);
}

.demo-reply-time {
  font-size: var(--text-small);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Form */
.demo-form-wrap {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-10);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-ink);
}
.form-label .req { color: var(--color-brand); }

.form-control {
  height: 48px;
  padding: 0 var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-input);
  font-size: var(--text-body);
  color: var(--color-ink);
  background: var(--color-white);
  transition: border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  width: 100%;
}
.form-control::placeholder { color: var(--color-muted); }
.form-control:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(191,0,255,.1);
  outline: none;
}
.form-control.has-error { border-color: var(--color-error); }

select.form-control {
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23686868' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

textarea.form-control {
  height: 100px;
  padding: var(--space-4);
  resize: vertical;
}

.form-error {
  font-size: 12px;
  color: var(--color-error);
  display: none;
}
.form-field.has-error .form-error { display: block; }

.form-check {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-4);
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-brand);
  cursor: pointer;
}
.form-check-label {
  font-size: var(--text-small);
  color: var(--color-muted);
  line-height: 1.5;
  cursor: pointer;
}
.form-check-label a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-info {
  font-size: 11px;
  color: var(--color-muted);
  margin-top: var(--space-3);
  line-height: 1.5;
}
.form-info a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-submit-btn {
  width: 100%;
  height: 52px;
  font-size: var(--text-body);
  margin-top: var(--space-2);
}
.form-submit-microcopy {
  font-size: 13px;
  color: var(--color-muted);
  text-align: center;
  margin-top: var(--space-3);
  line-height: 1.5;
}

.form-status {
  display: none;
  padding: var(--space-4);
  border-radius: var(--radius-input);
  font-size: var(--text-small);
  margin-top: var(--space-4);
  text-align: center;
}
.form-status.success {
  background: rgba(22,121,74,.08);
  color: var(--color-success);
  border: 1px solid rgba(22,121,74,.2);
}
.form-status.error {
  background: rgba(180,35,24,.08);
  color: var(--color-error);
  border: 1px solid rgba(180,35,24,.2);
}

/* Entrada animada del formulario — cada casilla se ilumina en secuencia (bf00ff) */
.form-animate-in .form-field,
.form-animate-in .form-check {
  animation: field-light .5s cubic-bezier(.16,1,.3,1) backwards;
  animation-delay: calc(var(--field-index, 0) * .09s);
  border-radius: var(--radius-input);
}
@keyframes field-light {
  0%   { opacity: 0; transform: translateY(10px); box-shadow: 0 0 0 0 rgba(191,0,255,0); }
  45%  { opacity: 1; box-shadow: 0 0 0 3px rgba(191,0,255,.22); }
  100% { opacity: 1; transform: translateY(0); box-shadow: 0 0 0 0 rgba(191,0,255,0); }
}
.form-animate-in .form-field .form-control {
  animation: field-fill .5s cubic-bezier(.16,1,.3,1) backwards;
  animation-delay: calc(var(--field-index, 0) * .09s);
}
@keyframes field-fill {
  0%   { background: var(--color-white); }
  45%  { background: rgba(191,0,255,.06); }
  100% { background: var(--color-white); }
}
.form-animate-in .form-submit-btn {
  animation: submit-pop .55s cubic-bezier(.16,1,.3,1) backwards;
  animation-delay: var(--submit-delay, .8s);
}
@keyframes submit-pop {
  0%   { opacity: 0; transform: scale(.96); box-shadow: 0 0 0 0 rgba(191,0,255,0); }
  55%  { opacity: 1; transform: scale(1.015); box-shadow: 0 0 0 5px rgba(191,0,255,.25), 0 10px 32px rgba(191,0,255,.4); }
  100% { opacity: 1; transform: scale(1); box-shadow: 0 1px 3px rgba(191,0,255,.2); }
}

@media (prefers-reduced-motion: reduce) {
  .form-animate-in .form-field,
  .form-animate-in .form-check,
  .form-animate-in .form-field .form-control,
  .form-animate-in .form-submit-btn { animation: none; }
}

/* Chips (multi-select y radio) — se iluminan en morado al seleccionar */
.form-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.form-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition:
    border-color 220ms cubic-bezier(0.23, 1, 0.32, 1),
    background 220ms cubic-bezier(0.23, 1, 0.32, 1),
    color 220ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 220ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}
.form-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.form-chip:hover {
  border-color: rgba(191, 0, 255, 0.4);
  background: rgba(191, 0, 255, 0.04);
}
.form-chip:has(input:checked) {
  border-color: var(--color-brand);
  background: rgba(191, 0, 255, 0.10);
  color: var(--color-brand-deep, var(--color-brand));
  box-shadow: 0 0 0 3px rgba(191, 0, 255, 0.14), 0 6px 16px -8px rgba(191, 0, 255, 0.4);
  transform: translateY(-1px);
}
.form-chip:focus-within {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* Formulario compacto — cabe en 1 viewport */
.form-page .demo-grid {
  gap: var(--space-8);
}
.form-page .form-row {
  gap: var(--space-3);
}
.form-page .form-field { margin-bottom: 10px; }
.form-page .form-label { margin-bottom: 4px; font-size: 13px; }
.form-page .form-control { padding: 10px 12px; font-size: 14px; }
.form-page textarea.form-control { min-height: 68px; }
.form-page .form-check { margin-top: var(--space-3); font-size: 13px; }
.form-page .form-submit-btn { margin-top: var(--space-4); }
.form-page main { padding-block: clamp(80px, 8vh, 96px) 24px; }
.form-page .demo-header p { font-size: 14.5px; }

@media (min-height: 900px) {
  .form-page main { padding-block: clamp(100px, 12vh, 140px) 32px; }
}

/* =============================================================
   16. Footer
   ============================================================= */
#footer {
  padding-top: var(--space-24);
  border-top: 1px solid var(--color-border);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-16);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--color-border);
}

.footer-brand {}
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-4);
}
.footer-logo-row img { height: 24px; width: auto; }
.footer-logo-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-ink);
}
.footer-desc {
  font-size: var(--text-small);
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: var(--space-5);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--text-small);
  color: var(--color-muted);
}
.footer-contact svg { flex-shrink: 0; color: var(--color-brand); }
.footer-contact a {
  color: var(--color-muted);
  transition: color var(--duration-base) var(--ease-out);
}
.footer-contact a:hover { color: #fff; }
.footer-social {
  display: flex;
  gap: var(--space-3);
}
.footer-social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  transition: color var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}
.footer-social-link:hover { color: var(--color-ink); border-color: var(--color-ink); }

.footer-col h4 {
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: var(--space-5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a {
  font-size: var(--text-small);
  color: var(--color-muted);
  transition: color var(--duration-base) var(--ease-out);
}
.footer-col a:hover { color: var(--color-ink); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-block: var(--space-6);
}
.footer-bottom p {
  font-size: var(--text-small);
  color: var(--color-muted);
}
.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}
.footer-bottom-links a {
  font-size: var(--text-small);
  color: var(--color-muted);
  transition: color var(--duration-base) var(--ease-out);
}
.footer-bottom-links a:hover { color: var(--color-ink); }

.footer-reopen-cookies {
  background: none;
  border: none;
  font-size: var(--text-small);
  color: var(--color-muted);
  cursor: pointer;
  transition: color var(--duration-base) var(--ease-out);
}
.footer-reopen-cookies:hover { color: var(--color-ink); }

/* Footer wordmark */
.footer-wordmark {
  padding-top: var(--space-10);
  line-height: .9;
  user-select: none;
  pointer-events: none;
}
.footer-wordmark-text {
  font-size: clamp(34px, 8.2vw, 108px);
  font-weight: 800;
  letter-spacing: -0.03em;
  display: block;
  white-space: nowrap;
  text-align: center;
}

/* =============================================================
   17. Legal pages
   ============================================================= */
.legal-page {
  max-width: 760px;
  margin-inline: auto;
  padding-block: var(--space-16);
}
.legal-page h1 {
  font-size: 38px;
  font-weight: 750;
  margin-bottom: var(--space-3);
}
.legal-page .legal-date {
  font-size: var(--text-small);
  color: var(--color-muted);
  margin-bottom: var(--space-12);
}
.legal-page h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  letter-spacing: -.01em;
}
.legal-page p {
  font-size: var(--text-body);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.legal-page a {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--space-5);
}
.legal-page th, .legal-page td {
  border: 1px solid var(--color-border);
  padding: var(--space-4);
  font-size: var(--text-small);
  text-align: left;
}
.legal-page th {
  background: var(--color-surface);
  font-weight: 600;
  color: var(--color-ink);
}
.legal-page td { color: var(--color-muted); }

/* Thanks page */
.gracias-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: var(--space-16);
}
.gracias-inner {
  max-width: 560px;
}
.gracias-icon {
  width: 64px;
  height: 64px;
  background: rgba(191,0,255,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  color: var(--color-brand);
}
.gracias-inner h1 {
  font-size: 38px;
  font-weight: 750;
  margin-bottom: var(--space-4);
}
.gracias-inner p {
  font-size: var(--text-body-lg);
  color: var(--color-muted);
  margin-bottom: var(--space-8);
  line-height: 1.55;
}

/* =============================================================
   18. Responsive
   ============================================================= */
@media (max-width: 1023px) {
  .mechanism-grid { grid-template-columns: 1fr; }
  .mechanism-header { position: static; }

  .faq-grid { grid-template-columns: 1fr; }
  .faq-header { position: static; }
  .faq-header h2 { font-size: 34px; }

  .demo-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .antes-despues { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  #hero { min-height: 100svh; }

  .hero-h1 { font-size: clamp(32px, 9vw, 52px); }
  .hero-sub { font-size: var(--text-body); }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .header-nav { display: none; }
  .header-cta-group { display: none; }
  .header-cta { display: none; }
  .header-menu-btn { display: flex; }

  .trust-inner { flex-direction: column; gap: var(--space-6); }
  .trust-label { border-right: none; padding-right: 0; border-bottom: 1px solid var(--color-border); padding-bottom: var(--space-6); max-width: none; }
  .trust-logos { justify-content: flex-start; }

  .paraquien-grid { grid-template-columns: 1fr; }
  .paraquien-inner { padding: var(--space-8); }

  .form-row { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--space-3); }

  .demo-form-wrap { padding: var(--space-6); }

  .step { grid-template-columns: 40px 1fr; }
  .step-number { font-size: 32px; }

  #testimonios, #resultados, #preguntas, #producto, #fundadores { padding-block: var(--space-20); }
  #video, #solicitar-demo { padding-block: var(--space-16); }
}

@media (max-width: 479px) {
  .btn { font-size: var(--text-small); }
  .cookie-actions { flex-direction: column; }
  .footer-bottom-links { flex-wrap: wrap; gap: var(--space-3); }
}

/* =============================================================
   19. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tcol-track { animation: none; }
  .tcol-wrap { max-height: none; -webkit-mask-image: none; mask-image: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .word-reveal .word-anim {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav-lamp {
    transition: none;
  }
}

/* =============================================================
   20. Pase de diseño — transcripción, WhatsApp, cierre, pie
   ============================================================= */

/* Vídeo — botón + transcripción indexable */
.vsl-transcript-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-brand-deep);
  padding: 4px 8px;
  border-radius: var(--radius-button);
  transition: color var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out);
}
.vsl-transcript-toggle:hover { color: var(--color-brand); background: var(--color-brand-tint); }
.vsl-transcript-toggle svg { flex-shrink: 0; }

.vsl-transcript {
  max-width: var(--copy-max);
  margin-inline: auto;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--duration-slow) var(--ease-out),
              opacity var(--duration-slow) var(--ease-out),
              margin-top var(--duration-slow) var(--ease-out);
}
.vsl-transcript.is-open {
  max-height: 4000px;
  opacity: 1;
  margin-top: var(--space-6);
}

/* Subtítulos dentro de la transcripción — estructuran el texto para lectura y SEO */
.vsl-transcript-h {
  font-size: var(--text-body);
  font-weight: 650;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}
.vsl-transcript-h:first-of-type { margin-top: var(--space-4); }
.vsl-transcript-inner {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-brand);
  border-radius: var(--radius-card);
  padding: var(--space-6) var(--space-8);
}
.vsl-transcript-title {
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: var(--space-3);
}
.vsl-transcript p {
  font-size: var(--text-body);
  color: var(--color-muted);
  line-height: 1.7;
}

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: clamp(16px, 4vw, 28px);
  bottom: clamp(16px, 4vw, 28px);
  z-index: 8500;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 56px;
  width: 56px;
  padding: 0;
  border-radius: var(--radius-pill);
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  overflow: hidden;
  transition: width var(--duration-slow) var(--ease-out),
              transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.wa-float svg { flex-shrink: 0; width: 56px; }
.wa-float-label {
  font-size: var(--text-small);
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  transition: opacity var(--duration-base) var(--ease-out),
              max-width var(--duration-slow) var(--ease-out),
              padding var(--duration-slow) var(--ease-out);
}
@media (hover: hover) {
  .wa-float:hover {
    width: 168px;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,.24);
  }
  .wa-float:hover .wa-float-label { opacity: 1; max-width: 120px; padding-right: 20px; }
}
.wa-float:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 3px; }
.wa-float::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid #25D366;
  opacity: 0;
  animation: wa-pulse 2.5s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* Cierre — CTA final como tarjeta de realce */
#solicitar-demo {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(191,0,255,.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 30%, rgba(191,0,255,.04) 0%, transparent 50%),
    var(--color-surface-cool);
}
.demo-cta {
  background: var(--color-white);
  border: 1px solid var(--color-brand-line);
  border-radius: var(--radius-card);
  padding: var(--space-16) var(--space-12);
  box-shadow: 0 12px 32px rgba(191,0,255,.06), var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.demo-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-brand), transparent);
  border-radius: 0 0 2px 2px;
}
.demo-cta-reassure {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
  margin-bottom: var(--space-8);
}
.demo-cta-reassure li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text);
}
.demo-cta-reassure svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--color-brand); }

/* Pie oscuro con matiz de marca (más profundidad, respetando identidad) */
#footer {
  background: var(--color-footer-bg);
  border-top: none;
  color: var(--color-footer-text);
}
.footer-top { border-bottom-color: var(--color-footer-line); }
.footer-logo-name,
.footer-col h4 { color: #fff; }
.footer-desc,
.footer-col a,
.footer-bottom p,
.footer-bottom-links a,
.footer-reopen-cookies { color: var(--color-footer-text); }
.footer-col a:hover,
.footer-bottom-links a:hover,
.footer-reopen-cookies:hover { color: #fff; }
.footer-social-link { border-color: var(--color-footer-line); color: var(--color-footer-text); }
.footer-social-link:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.footer-bottom { border-top: 1px solid var(--color-footer-line); }
.footer-wordmark-text {
  background: linear-gradient(100deg, #BF00FF 0%, #D96BFF 45%, #8B00C2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: .92;
}

@media (prefers-reduced-motion: reduce) {
  .vsl-transcript,
  .wa-float,
  .wa-float-label { transition: none; }
  .wa-float::after,
  .vsl-unmute-icon::after { animation: none; }
  .hero-stats-track { animation: none; }
  .producto-scroll-btn { animation: none; }
  #page-loader img { animation: none; opacity: 1; }
  .hero-bg { transform: none !important; }
  .founder-card:hover { transform: none; }
}

/* =============================================================
   20. Barra de progreso de scroll (línea morada superior)
   ============================================================= */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 900;
  pointer-events: none;
}
#scroll-progress::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, var(--color-brand), #8B00C2);
  transition: width .1s linear;
  transform-origin: left;
  box-shadow: 0 0 8px rgba(191,0,255,.5);
}

/* =============================================================
   21. Page loader — overlay con logo pulsante al navegar
   ============================================================= */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease-out);
}
#page-loader.is-active {
  opacity: 1;
  pointer-events: auto;
}
#page-loader img {
  width: 72px;
  height: 72px;
  animation: loader-pulse 1.2s ease-in-out infinite;
  filter: drop-shadow(0 4px 24px rgba(191,0,255,.25));
}
@keyframes loader-pulse {
  0%, 100% { opacity: .28; transform: scale(.92); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

/* =============================================================
   22. Fundadores — tarjetas con cara + nombre + rol
   ============================================================= */
.fundadores-people {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-bottom: var(--space-20);
}
.founder-card {
  position: relative;
  width: 240px;
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  text-align: center;
  box-shadow: 0 2px 12px rgba(15,10,25,.04);
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.16,1,.3,1),
              box-shadow .35s var(--ease-out),
              border-color .35s var(--ease-out);
  will-change: transform;
}
.founder-card:hover {
  border-color: var(--color-brand-line);
  box-shadow: 0 12px 32px rgba(15,10,25,.10),
              0 0 0 1px rgba(191,0,255,.08);
}
.founder-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto var(--space-5);
  background: linear-gradient(135deg, var(--color-brand) 0%, #8B00C2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .04em;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(191,0,255,.24);
}
.founder-avatar { position: relative; }
/* Iniciales de reserva: se ven si la foto aún no está subida */
.founder-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
}
.founder-avatar img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  color: transparent;      /* oculta el texto alt si la imagen falta */
}
.founder-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: -0.005em;
  margin-bottom: 2px;
}
.founder-role {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}
.founder-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-brand-deep);
  transition: color .2s var(--ease-out);
}
.founder-link:hover { color: var(--color-brand); }
@media (max-width: 767px) {
  .fundadores-people { gap: var(--space-4); }
  .founder-card { width: 100%; max-width: 320px; }
}

/* =============================================================
   23. CTA loading (cursor + botón desactivado tras click)
   ============================================================= */
.btn.is-loading {
  cursor: wait;
  pointer-events: none;
  opacity: .8;
}
body.is-navigating { cursor: wait; }

/* =============================================================
   PILL BUTTON — pill + seal (label slide + icon diagonal swap)
   ============================================================= */
/* min-width a propósito: en móvil el toolbar oculta .header-cta-group
   (ver @media max-width:767px) y muestra el hamburger. Si esta regla
   fuera incondicional, al declararse después ganaría siempre la cascada
   y el pill button reaparecería sobredimensionado en móvil. */
@media (min-width: 768px) {
  .header-cta-group {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

.pill-btn {
  --pill-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --pill-duration: 320ms;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 16px;
  height: 34px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  box-sizing: border-box;
  transition:
    background-color var(--pill-duration) var(--pill-ease),
    border-color var(--pill-duration) var(--pill-ease),
    box-shadow var(--pill-duration) var(--pill-ease),
    transform var(--pill-duration) var(--pill-ease);
  will-change: transform;
}
.pill-btn:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}
.pill-btn:active {
  transform: translateY(1px);
}

/* Label con dos capas — la de arriba baja, la fantasma sube */
.pill-btn-label {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1em;
  white-space: nowrap;
}
.pill-btn-label-text {
  display: block;
  transition: transform var(--pill-duration) var(--pill-ease);
}
.pill-btn-label-text--ghost {
  position: absolute;
  inset: 0;
  transform: translateY(-110%);
}
@media (prefers-reduced-motion: no-preference) {
  .pill-btn:hover .pill-btn-label-text:not(.pill-btn-label-text--ghost) {
    transform: translateY(110%);
  }
  .pill-btn:hover .pill-btn-label-text--ghost {
    transform: translateY(0);
  }
}

/* Seal — círculo con el icono en la esquina derecha */
.pill-btn-seal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  transition: background-color var(--pill-duration) var(--pill-ease);
}
.pill-btn-icon {
  position: relative;
  transition: transform var(--pill-duration) var(--pill-ease);
}
.pill-btn-icon--ghost {
  position: absolute;
  transform: translate(-160%, 160%);
}
@media (prefers-reduced-motion: no-preference) {
  .pill-btn:hover .pill-btn-icon:not(.pill-btn-icon--ghost) {
    transform: translate(160%, -160%);
  }
  .pill-btn:hover .pill-btn-icon--ghost {
    transform: translate(0, 0);
  }
}

/* Variante OUTLINE — blanco con recuadro gris (para el toolbar) */
.pill-btn--outline {
  background: #ffffff;
  color: #14141c;
  border-color: rgba(20, 20, 28, 0.14);
  box-shadow: 0 1px 2px rgba(20, 12, 40, 0.06);
}
.pill-btn--outline:hover {
  background: #ffffff;
  border-color: rgba(20, 20, 28, 0.28);
  box-shadow: 0 6px 20px -8px rgba(20, 12, 40, 0.18);
}
.pill-btn--outline .pill-btn-seal {
  background: #14141c;
  color: #ffffff;
}

/* Header sobre hero oscuro — el outline se adapta al fondo */
#site-header.over-hero:not(.scrolled) .pill-btn--outline {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Variante BRAND — morado #BF00FF (para la sección partners) */
.pill-btn--brand {
  background: var(--color-brand);
  color: #ffffff;
  border-color: var(--color-brand);
  box-shadow:
    0 12px 32px -12px rgba(191, 0, 255, 0.45),
    0 4px 12px -6px rgba(191, 0, 255, 0.25);
}
.pill-btn--brand:hover {
  background: #a800e0;
  border-color: #a800e0;
  box-shadow:
    0 16px 40px -12px rgba(191, 0, 255, 0.55),
    0 6px 16px -6px rgba(191, 0, 255, 0.32);
}
.pill-btn--brand .pill-btn-seal {
  background: #ffffff;
  color: var(--color-brand);
}

/* Tamaño ligeramente más grande para el CTA final — seal encajado dentro del pill */
.partners-cta {
  height: 54px;
  padding: 7px 7px 7px 28px;
  font-size: 13px;
  gap: 14px;
}
.partners-cta .pill-btn-seal {
  width: 40px;
  height: 40px;
}
.partners-cta .pill-btn-icon,
.partners-cta .pill-btn-icon--ghost {
  width: 16px;
  height: 16px;
}

/* Mobile menu partner button — un poco más arriba y sin ocupar todo el ancho */
.mobile-menu-partners {
  margin-top: var(--space-4);
  align-self: flex-start;
}

/* =============================================================
   PARTNERS — sección final antes del footer
   ============================================================= */
.partners-section {
  position: relative;
  padding-block: var(--space-24);
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(191, 0, 255, 0.12), transparent 70%),
    linear-gradient(180deg, transparent 0%, rgba(191, 0, 255, 0.04) 100%);
  border-top: 1px solid rgba(191, 0, 255, 0.18);
  overflow: hidden;
}
.partners-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  z-index: 1;
}
.partners-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(191, 0, 255, 0.35);
  background: rgba(191, 0, 255, 0.08);
  color: var(--color-brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.partners-title {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  /* Color base sólido — SIEMPRE visible en cualquier momento del keyframe */
  background-color: var(--color-text);
  background-image: linear-gradient(100deg,
    var(--color-text) 0%,
    var(--color-text) 42%,
    #BF00FF 48%,
    #d84dff 50%,
    #BF00FF 52%,
    var(--color-text) 58%,
    var(--color-text) 100%);
  background-size: 240% 100%;
  background-repeat: no-repeat;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  will-change: background-position;
}
@media (prefers-reduced-motion: no-preference) {
  .partners-title {
    animation: partners-shimmer 5.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  }
}
@keyframes partners-shimmer {
  0%   { background-position: 120% 0; }
  100% { background-position: -20% 0; }
}
.partners-desc {
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 560px;
  margin: 0;
}
.partners-cta {
  margin-top: var(--space-2);
}

/* Línea inferior — sutil línea #BF00FF ESTÁTICA sin animación */
.partners-glow {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(191, 0, 255, 0.35) 25%,
    rgba(191, 0, 255, 0.7) 50%,
    rgba(191, 0, 255, 0.35) 75%,
    transparent 100%);
  opacity: 0.9;
  pointer-events: none;
}

@media (max-width: 640px) {
  .partners-section { padding-block: var(--space-16); }
  .pill-btn { font-size: 11px; padding: 5px 5px 5px 18px; gap: 10px; }
  .pill-btn-seal { width: 30px; height: 30px; }
  .partners-cta { font-size: 12px; padding: 7px 7px 7px 22px; }
  .partners-cta .pill-btn-seal { width: 36px; height: 36px; }
}

/* =============================================================
   PARTNERS LANDING (partners.html) — dark hero + brand system
   ============================================================= */

/* Partners page reutiliza el sistema .over-hero de la home para respetar
   el estado .scrolled: transparente + texto blanco sobre hero, blanco sólido
   + texto oscuro al hacer scroll. Sin selectores propios. */

.partners-page { background: #ffffff; color: var(--color-text); }

/* Italic morado en el H1 del hero de partners (mismo estilo que .hero-h1 em) */
.partners-hero-h1 em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  color: var(--color-brand);
  -webkit-text-fill-color: var(--color-brand);
  text-shadow: 0 2px 24px rgba(191, 0, 255, 0.35);
}

/* Entrada al llegar a partners — bounce desde la izquierda */
@media (prefers-reduced-motion: no-preference) {
  .partners-page main#main-content {
    animation: partners-page-enter 900ms cubic-bezier(0.22, 1.16, 0.36, 1) both;
  }
  .partners-page #site-header {
    animation: partners-header-enter 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 60ms;
  }
}
@keyframes partners-page-enter {
  0%   { opacity: 0; transform: translate3d(-56px, 0, 0); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes partners-header-enter {
  0%   { opacity: 0; transform: translate3d(0, -12px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Salida de la página actual al pulsar un CTA hacia partners */
body.is-leaving-to-partners main {
  transition: opacity 240ms ease-out, transform 240ms cubic-bezier(0.4, 0, 0.6, 1);
  opacity: 0;
  transform: translate3d(32px, 0, 0);
  pointer-events: none;
}

/* HERO — full viewport, imagen de fondo con fade a header + tint morado */
.partners-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  /* Sube tras el header sticky para hacer de fondo integrado */
  margin-top: -56px;
  padding-top: calc(clamp(80px, 12vh, 140px) + 56px);
  padding-bottom: clamp(64px, 10vh, 120px);
  overflow: hidden;
  isolation: isolate;
}
.partners-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 30% 30%, rgba(191, 0, 255, 0.35), transparent 65%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(74, 0, 107, 0.55), transparent 70%),
    linear-gradient(180deg, #14051f 0%, #0a0611 100%);
}
.partners-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

/* Tint de marca — capa sutil con mezcla morada para armonizar la foto con la paleta */
.partners-hero-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(191, 0, 255, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(20, 12, 40, 0.28) 0%, rgba(20, 12, 40, 0.14) 60%, rgba(10, 6, 17, 0.02) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Fade: 100% transparente sobre H1 (centro-abajo) y crece hasta el header */
.partners-hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 6, 17, 0.92) 0%,
      rgba(10, 6, 17, 0.75) 12%,
      rgba(10, 6, 17, 0.45) 30%,
      rgba(10, 6, 17, 0.18) 52%,
      rgba(10, 6, 17, 0.0) 68%,
      rgba(10, 6, 17, 0.28) 92%,
      rgba(10, 6, 17, 0.55) 100%);
  pointer-events: none;
}

.partners-hero-inner {
  position: relative;
  max-width: 820px;
  margin-left: clamp(0px, 8vw, 120px);
  margin-right: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-4);
  color: #fff;
}
.partners-hero-inner > * { text-align: left; align-self: flex-start; }
@media (max-width: 900px) {
  .partners-hero-inner { margin-left: 0; }
}
.partners-hero-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.partners-hero-h1 {
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: var(--space-4) 0 0;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.partners-hero-subh1 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.94);
  margin: 0;
  background: linear-gradient(90deg, #fff 0%, #f5eaff 55%, #d8a6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.partners-hero-body {
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 720px;
  margin: 0;
}
.partners-hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-5);
}
.partners-hero-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.partners-hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

/* VIDEO SECTION — mismo tamaño que la home, sin título ni eyebrow */
.partners-video-section {
  background: #ffffff;
  padding-block: clamp(64px, 10vh, 128px);
  position: relative;
}
.partners-video-section .vsl-wrap {
  max-width: 960px;
}

/* BENEFICIOS */
.partners-benefits {
  background: #ffffff;
  padding-block: clamp(72px, 12vh, 140px);
  border-top: 1px solid var(--color-border);
}
.partners-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-12);
}
.partners-section-header h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: var(--space-3) 0 var(--space-4);
}
.partners-section-header p {
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-muted);
  margin: 0;
}
.partners-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  padding: 0;
  margin: 0;
  list-style: none;
  perspective: 1400px;
}

/* Flip card container */
.flip-card {
  aspect-ratio: 337 / 350;
  width: 100%;
  min-height: 260px;
}
.flip-card--wide {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  min-height: 240px;
}

/* Inner wrapper — el que rota, es un <button> para accesibilidad y toggle */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: center;
}
.flip-card-inner:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 4px;
  border-radius: 20px;
}

/* Flip trigger — hover (desktop) + click toggle (touch) */
@media (hover: hover) {
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
}
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* Caras */
.flip-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  box-sizing: border-box;
}

/* FRONT — beneficio super resumido en el centro */
.flip-card-front {
  background: #ffffff;
  border: 1.5px solid rgba(108, 111, 118, 0.12);
  box-shadow: 0 4px 16px rgba(20, 12, 40, 0.05);
  gap: var(--space-4);
  transition:
    border-color 320ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 320ms cubic-bezier(0.23, 1, 0.32, 1);
}
.flip-card:hover .flip-card-front,
.flip-card.is-flipped .flip-card-front {
  border-color: rgba(191, 0, 255, 0.32);
  box-shadow: 0 12px 32px -14px rgba(191, 0, 255, 0.28);
}

.flip-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(191, 0, 255, 0.08);
  color: var(--color-brand);
  border: 1px solid rgba(191, 0, 255, 0.20);
}
.flip-card-summary {
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0;
}
.flip-card-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(191, 0, 255, 0.08);
  border: 1px solid rgba(191, 0, 255, 0.20);
  color: var(--color-brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* BACK — explicación completa, fondo morado profundo con degradado */
.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(155deg, #14051f 0%, #4a006b 55%, #8a00cc 100%);
  color: #ffffff;
  gap: var(--space-3);
  box-shadow:
    0 20px 50px -20px rgba(191, 0, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.flip-card-back::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 255, 255, 0.14), transparent 65%);
  pointer-events: none;
}
.flip-card-back-title {
  font-size: clamp(17px, 1.7vw, 19px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  color: #ffffff;
  position: relative;
}
.flip-card-back p {
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  position: relative;
}

/* Reduced motion — sin flip, mostrar back visible por defecto abierto por click */
@media (prefers-reduced-motion: reduce) {
  .flip-card-inner,
  .flip-card-front,
  .flip-card-back {
    transition: none;
  }
}

/* CÓMO FUNCIONA */
.partners-how {
  background: #ffffff;
  padding-block: clamp(72px, 12vh, 140px);
}

/* Timeline acordeón — dots + fill del título + expandible */
.how-timeline {
  --dot-size: 44px;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
}
/* Línea vertical conectora entre los dots */
.how-timeline::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 40px;
  left: calc(var(--dot-size) / 2);
  width: 1px;
  background: rgba(20, 12, 40, 0.12);
  pointer-events: none;
}

.how-timeline-item {
  position: relative;
  border-bottom: 1px solid rgba(20, 12, 40, 0.08);
}
.how-timeline-item:last-child {
  border-bottom: none;
}

.how-timeline-toggle {
  display: grid;
  grid-template-columns: var(--dot-size) 1fr 24px;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  width: 100%;
  padding: clamp(16px, 2.4vw, 22px) 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  position: relative;
  z-index: 1;
}
.how-timeline-toggle:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Dot numérico — outlined por defecto, morado sólido al hover, blanco sobre morado al abrir */
.how-timeline-dot {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 999px;
  border: 1.5px solid rgba(191, 0, 255, 0.5);
  background: #ffffff;
  color: var(--color-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition:
    background 320ms cubic-bezier(0.23, 1, 0.32, 1),
    color 320ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 320ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 320ms cubic-bezier(0.23, 1, 0.32, 1);
}
.how-timeline-toggle:hover .how-timeline-dot {
  background: var(--color-brand);
  color: #ffffff;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 4px rgba(191, 0, 255, 0.12);
}
.how-timeline-item.is-open .how-timeline-dot {
  background: var(--color-brand);
  color: #ffffff;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 6px rgba(191, 0, 255, 0.14);
}

/* Título — fill left→right al hover / abrir */
.how-timeline-title {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  background-color: rgba(20, 12, 40, 0.22);
  background-image: linear-gradient(90deg, var(--color-ink) 0%, var(--color-ink) 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: background-size 620ms cubic-bezier(0.23, 1, 0.32, 1);
}
.how-timeline-toggle:hover .how-timeline-title,
.how-timeline-item.is-open .how-timeline-title {
  background-size: 100% 100%;
}

/* Meta (semana / duración) */
.how-timeline-meta {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
}

/* Chevron */
.how-timeline-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  transition: transform 340ms cubic-bezier(0.23, 1, 0.32, 1), color 320ms;
}
.how-timeline-toggle:hover .how-timeline-chevron {
  color: var(--color-brand);
}
.how-timeline-item.is-open .how-timeline-chevron {
  transform: rotate(180deg);
  color: var(--color-brand);
}

/* Contenido expandible — controlado por JS via inline max-height */
.how-timeline-content {
  overflow: hidden;
  height: 0;
  transition: height 480ms cubic-bezier(0.23, 1, 0.32, 1);
}
.how-timeline-content-inner p {
  padding: 4px 8px calc(clamp(16px, 2.4vw, 22px)) calc(var(--dot-size) + clamp(14px, 2vw, 24px));
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.65;
  max-width: 780px;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 380ms cubic-bezier(0.23, 1, 0.32, 1) 120ms,
    transform 380ms cubic-bezier(0.23, 1, 0.32, 1) 120ms;
}
.how-timeline-item.is-open .how-timeline-content-inner p {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive — móvil */
@media (max-width: 640px) {
  .how-timeline { --dot-size: 36px; }
  .how-timeline-toggle {
    grid-template-columns: var(--dot-size) 1fr 20px;
    gap: 12px;
    padding: 14px 0;
  }
  .how-timeline-chevron {
    grid-column: 3;
    grid-row: 1 / 3;
  }
  .how-timeline-title { font-size: 18px; }
  .how-timeline-content-inner p {
    padding-left: 0;
    padding-right: 8px;
    padding-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .how-timeline-title,
  .how-timeline-content,
  .how-timeline-content-inner p,
  .how-timeline-chevron,
  .how-timeline-dot { transition: none; }
}
.partners-how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: how-step;
}
.partners-how-step {
  padding: var(--space-6);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  position: relative;
}
.partners-how-num {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-brand);
  display: block;
  margin-bottom: var(--space-3);
}
.partners-how-step h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 var(--space-2);
  color: var(--color-text);
}
.partners-how-step p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-muted);
  margin: 0;
}

/* OFERTA PREMIUM (carta Hormozi) */
.partners-offer {
  background: #0a0611;
  padding-block: clamp(80px, 14vh, 160px);
  position: relative;
  overflow: hidden;
}
.partners-offer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(191, 0, 255, 0.5) 50%, transparent 100%);
}
.partners-offer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(191, 0, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(191, 0, 255, 0.10), transparent 70%);
  pointer-events: none;
}
.partners-offer-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(191, 0, 255, 0.32);
  border-radius: 24px;
  box-shadow:
    0 30px 80px -30px rgba(191, 0, 255, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 1;
  overflow: hidden;
}
.partners-offer-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(191, 0, 255, 0.16);
  border: 1px solid rgba(191, 0, 255, 0.45);
  color: #e9c6ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.partners-offer-title {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #ffffff;
  margin: var(--space-4) 0 var(--space-4);
}
.partners-offer-lead {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 var(--space-6);
}
.partners-offer-list {
  padding: 0;
  margin: 0 0 var(--space-6);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.partners-offer-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}
.partners-offer-list li strong { color: #ffffff; font-weight: 600; }
.partners-offer-list svg { color: var(--color-brand); flex-shrink: 0; margin-top: 4px; }

.partners-offer-price {
  padding: var(--space-5);
  border-top: 1px dashed rgba(191, 0, 255, 0.28);
  border-bottom: 1px dashed rgba(191, 0, 255, 0.28);
  margin: 0 0 var(--space-6);
  text-align: center;
}
.partners-offer-price-line {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}
.partners-offer-price-sub {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
  margin: 0;
}
.partners-offer-cta {
  display: flex;
  justify-content: center;
}
.partners-offer-glow {
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(191, 0, 255, 0.55) 0%, transparent 50%, rgba(191, 0, 255, 0.25) 100%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
  z-index: 2;
}

/* CTA FINAL — hereda .partners-title (shimmer) + .partners-glow (sweep) del sistema principal */
.partners-final {
  padding-block: clamp(80px, 12vh, 140px);
  background: #ffffff;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(191, 0, 255, 0.18);
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(191, 0, 255, 0.10), transparent 70%),
    #ffffff;
}
.partners-final-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  z-index: 1;
}
.partners-final-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 520px;
  margin: 0;
}

/* Botón .btn-lg — soporte por si no existe */
.btn.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .partners-hero-actions .btn { width: 100%; justify-content: center; }
  .partners-hero-actions { width: 100%; }
  .partners-benefit-card--wide { grid-column: auto; }
  .flip-card--wide { grid-column: auto; }
}
@media (max-width: 640px) {
  .partners-hero { padding-top: 110px; }
  .partners-hero-inner { gap: var(--space-3); }
  .partners-offer-card { padding: var(--space-6) var(--space-5); }
  .partners-offer-list li { flex-wrap: wrap; }
}

/* =============================================================
   DESKTOP COMPACTO — reduce padding vertical y tamaño de títulos
   Solo aplica a >= 900px. Móvil y tablet no se tocan.
   ============================================================= */
@media (min-width: 900px) {
  /* Padding vertical de las secciones — antes 96-112px, ahora 56-64px */
  #video, #producto, #testimonios, #resultados, #preguntas,
  #fundadores, #solicitar-demo, #partners,
  .partners-benefits, .partners-how, .partners-final,
  .partners-video-section {
    padding-block: 60px;
  }
  .partners-offer { padding-block: 40px; }

  /* Títulos de sección más compactos — antes clamp(36,3.7vw,54px) */
  .testimonios-header h2,
  .resultados-header h2,
  .faq-header h2,
  .fundadores-header h2,
  .demo-cta h2,
  .partners-section-header h2,
  .partners-title,
  .partners-offer-title {
    font-size: clamp(28px, 2.6vw, 40px);
    line-height: 1.15;
  }
  .producto-text h2 {
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.2;
  }

  /* Reducir margen entre header de sección y contenido de la sección */
  .testimonios-header,
  .resultados-header,
  .faq-header,
  .fundadores-header,
  .partners-section-header {
    margin-bottom: var(--space-6);
  }

  /* Párrafos de subtítulo bajo el H2 — reducir peso visual */
  .testimonios-header p,
  .resultados-header p,
  .faq-header p,
  .fundadores-header p,
  .partners-section-header p {
    font-size: var(--text-body);
    max-width: 58ch;
  }

  /* Ad-cards (Resultados) — más compactas para caber los dos en un vistazo */
  .ad-card { padding: 20px 24px; }
  .ad-card-title { font-size: 22px; }
  .ad-subtitle { margin-bottom: var(--space-3); }
  .ad-list { gap: 10px; }

  /* Demo CTA final — el bloque enorme "Descubre cómo mejorar..." */
  .demo-cta { padding: var(--space-8) var(--space-10); }
  .demo-cta h2 { margin-bottom: var(--space-3); }
  .demo-cta p { max-width: 55ch; margin-bottom: var(--space-4); }

  /* Cards de beneficios (partners) — reducir alto */
  .flip-card { min-height: 220px; }
  .flip-card-summary { font-size: clamp(18px, 1.8vw, 22px); }
  .flip-card-face { padding: var(--space-5); }

  /* Timeline "cómo funciona" — filas más compactas */
  .how-timeline-toggle { padding: 14px 0; }
  .how-timeline-title { font-size: clamp(18px, 2vw, 24px); }

  /* Oferta Hormozi — reducir espaciados internos */
  .partners-offer-card { padding: 24px 32px; }
  .partners-offer-tag { padding: 3px 10px; font-size: 10px; }
  .partners-offer-title { font-size: clamp(20px, 2.2vw, 28px); margin: var(--space-2) 0 var(--space-3); }
  .partners-offer-lead { margin-bottom: var(--space-3); font-size: 14px; }
  .partners-offer-list { margin-bottom: var(--space-3); gap: 6px; }
  .partners-offer-list li { padding: 8px 10px; font-size: 13px; }
  .partners-offer-price { padding: var(--space-3); margin-bottom: var(--space-3); }
  .partners-offer-price-line { font-size: clamp(16px, 1.8vw, 20px); margin-bottom: 4px; }
  .partners-offer-price-sub { font-size: 12.5px; }

  /* Header de video (partners) más compacto */
  .partners-video-header { margin-bottom: var(--space-6); }
  .partners-video-header h2 { font-size: clamp(22px, 2.4vw, 32px); }

  /* Testimonios — columnas scroll con menos alto (700 → 460) */
  .tcol-wrap { max-height: 460px; }

  /* Resultados — cards Antes/Después más compactas */
  #resultados { padding-block: 44px; }
  .resultados-header { margin-bottom: var(--space-4); }
  .resultados-header h2 { margin-bottom: var(--space-2); }
  .ad-card { padding: 16px 20px; }
  .ad-label { margin-bottom: var(--space-2); }
  .ad-card-title { font-size: 20px; margin-bottom: 4px; }
  .ad-subtitle { margin-bottom: var(--space-2); font-size: 13px; }
  .ad-list { gap: 6px; }
  .ad-item { font-size: 13px; line-height: 1.4; padding-left: 26px; }
  .resultados-case-note { margin-top: var(--space-2); font-size: 12px; }

  /* Fundadores — iframes de LinkedIn más compactos (609 → 340) */
  .fundadores-post iframe {
    min-height: 340px;
    max-height: 340px;
  }
  #fundadores { padding-block: 32px; }
  .fundadores-header { margin-bottom: var(--space-3); }
  .fundadores-header h2 { margin-bottom: var(--space-2); }
  .fundadores-header p { max-width: 55ch; margin: 0 auto; }
  .fundadores-people { gap: var(--space-4); margin-bottom: var(--space-4); }
  .founder-card { width: 200px; padding: var(--space-4); }
  .founder-avatar { width: 60px; height: 60px; margin-bottom: var(--space-3); font-size: 18px; }
  .fundadores-grid { gap: var(--space-4); }
}
