/* ============================================================
   STUDIO IVR — styles.css
   Sistema base · Navbar · Hero
   ============================================================ */

/* ── RESET & TOKENS ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0D0D12;
  --violet:     #7C3AED;
  --violet-glow:#7C3AED;
  --magenta:    #EC4899;
  --white:      #FFFFFF;
  --gray-100:   rgba(255,255,255,0.85);
  --gray-300:   rgba(255,255,255,0.52);
  --gray-500:   rgba(255,255,255,0.32);
  --gray-700:   rgba(255,255,255,0.18);
  --gray-900:   rgba(255,255,255,0.07);
  --border:     rgba(255,255,255,0.09);
  --border-md:  rgba(255,255,255,0.14);
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h:      72px;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); }


/* ── BOTONES ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Tamaños */
.btn--sm  { font-size: 0.8125rem; padding: 0.5rem 1.125rem; }
.btn--md  { font-size: 0.9375rem; padding: 0.75rem 1.625rem; }
.btn--lg  { font-size: 1rem;      padding: 0.875rem 1.875rem; font-weight: 700; }

/* Variantes */
.btn--violet {
  background: var(--violet);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.6);
}
.btn--full { width: 100%; }


/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(13,13,18,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-900);
  transition: background 0.25s ease;
}
.nav.is-scrolled {
  background: rgba(13,13,18,0.96);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--white);
  z-index: 901;
}

.nav__logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  /* Si el logo no existe aún, se oculta sin romper el layout */
  display: block;
}
.nav__logo-img[src="img/logo.svg"]:not([src]) { display: none; }

/* Links centro */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav__menu a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-300);
  transition: color 0.15s;
  line-height: 1;
}
.nav__menu a:hover { color: var(--white); }

/* CTA derecha */
.nav__actions {
  display: flex;
  align-items: center;
}

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 901;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav__burger.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-active span:nth-child(2) { opacity: 0; }
.nav__burger.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Drawer mobile */
.nav__drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,13,18,0.98);
  z-index: 899;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
  padding: 0 2rem;
}
.nav__drawer.is-open {
  display: flex;
}
.nav__drawer a {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav__drawer .btn {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  padding: 0.75rem 2rem;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;   /* fallback para navegadores sin soporte de svh */
  min-height: 100svh;  /* altura visible real en móvil, con la barra del navegador visible */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* ── Fondo (funciona con div imagen y con video) ── */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg);
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}
/* Fade inferior suave */
.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* ── Grid perspectivo SVG ── */
.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* ── Ghost UI — Panel izquierda (desktop) ── */
.ghost-l {
  position: absolute;
  left: 2.5%;
  top: 50%;
  width: clamp(185px, 15vw, 240px);
  z-index: 3;
  opacity: 0.88;
}

.gp {
  background: rgba(14,14,24,0.78);
  border: 1px solid var(--border-md);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.gp__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(124,58,237,0.1);
}
.gp__ico {
  width: 26px; height: 26px;
  background: var(--violet);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gp__name { font-size: 0.78rem; font-weight: 700; flex: 1; }
.gp__ts   { font-size: 0.62rem; color: var(--gray-500); }

.gp__rows { padding: 4px 0; }
.gp__r {
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.035);
}
.gp__r:last-child { border-bottom: none; }
.gp__rl {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 1px;
}
.gp__rv { font-size: 0.7rem; color: var(--gray-300); line-height: 1.35; }


/* ── Ghost UI — Derecha (desktop): thumbnail + wave ── */
.ghost-r {
  position: absolute;
  right: 1.5%;
  top: 50%;
  width: clamp(195px, 17vw, 265px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0.88;
}

/* Thumbnail card */
.gt {
  background: rgba(14,14,24,0.78);
  border: 1px solid var(--border-md);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.gt__img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(80,20,180,0.5), rgba(0,0,0,0.5));
  padding: 7px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.gt__yt {
  width: 18px; height: 13px;
  background: #FF0000;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
}
.gt__ratio {
  font-size: 0.6rem; font-weight: 700;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 2px 5px;
}
.gt__chart {
  position: absolute;
  bottom: 10px; left: 8px; right: 8px;
}
.gt__chart svg { width: 100%; height: auto; }
.gt__meta { padding: 8px 10px 10px; }
.gt__title {
  font-size: 0.72rem; font-weight: 700;
  color: var(--white); line-height: 1.3;
  margin-bottom: 3px;
}
.gt__sub { font-size: 0.6rem; color: var(--gray-500); }

/* Waveform card */
.gw {
  background: rgba(14,14,24,0.78);
  border: 1px solid var(--border-md);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 12px 12px;
}
.gw__label {
  font-size: 0.68rem; font-weight: 600;
  color: var(--gray-300);
  margin-bottom: 8px;
}
.gw__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 38px;
}
.gw__bar {
  flex: 1;
  border-radius: 2px;
  background: var(--magenta);
  opacity: 0.7;
}
.gw__ts {
  font-size: 0.6rem;
  color: var(--gray-500);
  margin-top: 7px;
}


/* ── Ghost UI — Mobile (panel de escena simplificado) ── */
.ghost-m {
  display: none;
  position: absolute;
  top: calc(var(--nav-h) + 10px);
  right: -6px;
  width: clamp(152px, 46vw, 190px);
  z-index: 3;
  opacity: 0.85;
}
.gm {
  background: rgba(14,14,24,0.82);
  border: 1px solid var(--border-md);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
.gm__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.gm__left { display: flex; align-items: center; gap: 6px; }
.gm__ico {
  width: 20px; height: 20px;
  background: var(--violet);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gm__name { font-size: 0.72rem; font-weight: 700; }
.gm__ts   { font-size: 0.58rem; color: var(--gray-500); }
.gm__preview {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(80,20,180,0.5), rgba(0,0,0,0.4));
}
.gm__rows { padding: 3px 0; }
.gm__r { padding: 5px 10px; border-bottom: 1px solid rgba(255,255,255,0.035); }
.gm__r:last-child { border-bottom: none; }
.gm__rl {
  font-size: 0.54rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 1px;
}
.gm__rv { font-size: 0.64rem; color: var(--gray-300); line-height: 1.3; }


/* ── Waveform decorativo inferior (solo mobile) ── */
.hero__wave {
  display: none;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 85px;
  align-items: flex-end;
  gap: 2px;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.hero__wave span {
  flex: 1;
  background: var(--violet);
  border-radius: 2px 2px 0 0;
  opacity: 0.2;
}


/* ── Contenido central ── */
.hero__body {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 4rem 1.5rem 4rem;
  max-width: 880px;
  width: 100%;
}

.hero__h1 {
  font-weight: 800;
  font-size: clamp(3rem, 6.5vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--white);
}
/* Desktop vs mobile H1 */
.hero__h1--desk { display: block; }
.hero__h1--mob  { display: none; }

.hero__sub {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 400;
  color: var(--gray-300);
  max-width: 520px;
  line-height: 1.65;
}

.hero__ctas {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.35rem;
}

.hero__micro {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--gray-500);
}


/* ============================================================
   S2 — MÉTRICAS
   ============================================================ */
.metrics {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metrics__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 0 2.5rem;
}

.metric {
  padding: 3rem 0;
  padding-right: 3rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.metric:first-child { padding-left: 0; }
.metric:last-child  { border-right: none; padding-right: 0; }
.metric:not(:first-child) { padding-left: 3rem; }

.metric__num {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  line-height: 1;
  color: var(--white);
}

.metric__desc {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 400;
  color: var(--gray-300);
  line-height: 1.4;
}


/* ============================================================
   S3 — EL PROBLEMA
   ============================================================ */
.problema {
  background: var(--bg);
  padding: 6rem 0 7rem;
}

.problema__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 5rem;
  align-items: start;
}

/* ── Columna izquierda ── */
.problema__h2 {
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.problema__body {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--gray-300);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}
.problema__body:last-of-type { margin-bottom: 0; }

/* Tira de apps */
.tool-strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.tool-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  flex-shrink: 0;
}
.tool-icon--text {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gray-300);
}

.tool-arrow {
  font-size: 0.75rem;
  color: var(--gray-700);
  flex-shrink: 0;
  user-select: none;
}

/* X roja — posicionada absolutamente sobre la tira */
.tool-strip__x {
  position: absolute;
  left: 0; right: 0;
  bottom: -12px;
  width: 100%;
  height: 58px;
  pointer-events: none;
}

/* ── Columna derecha: pain cards ── */
.problema__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
}

.pain-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  /* Las cards son más altas que el contenido — se alinean con la columna izq */
  min-height: 320px;
}

/* Borde top de color por variante */
.pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 14px 14px 0 0;
}
.pain-card--magenta::before { background: var(--magenta);  box-shadow: 0 0 14px rgba(236,72,153,0.5); }
.pain-card--amber::before   { background: #F59E0B;          box-shadow: 0 0 14px rgba(245,158,11,0.5); }
.pain-card--red::before     { background: #EF4444;          box-shadow: 0 0 14px rgba(239,68,68,0.5); }

/* Icono en la card */
.pain-card__ico {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.pain-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--white);
}

.pain-card__body {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-300);
  line-height: 1.65;
}


/* ============================================================
   S4 — CÓMO FUNCIONA
   ============================================================ */
.como {
  background: var(--bg);
  padding: 7rem 0;
}

.como__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  perspective: 1000px;
}

/* Header */
.como__header {
  text-align: center;
  max-width: 860px;
}

.como__h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.07;
  color: var(--white);
  margin-bottom: 1rem;
}

.como__sub {
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  font-weight: 400;
  color: var(--gray-300);
  line-height: 1.6;
}

/* ── Flip Carousel — DESKTOP (≥992px) ── */
/* ──────────────────────────────────────────────────────────────
   S4: FLIP CATERPILLAR CAROUSEL (GSAP Flip)
   Muestra 4 tarjetas. Las demás están fuera del overflow.
   ────────────────────────────────────────────────────────────── */

#flipCarousel {
  display: none;              /* Visible solo ≥992px via media query */
  position: relative;
  width: 100%;
  overflow: hidden;           /* Viewport: oculta tarjetas fuera del área visible */
}

.flip-card {
  flex-shrink: 0;
  /* width calculado por JS para mostrar exactamente 4 */

  background: var(--gray-900);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.flip-card__num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(124,58,237,0.7);
  line-height: 1;
}

.flip-card__ico {
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.flip-card__name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.flip-card__desc {
  font-size: 0.75rem;
  color: var(--gray-300);
  line-height: 1.55;
  margin: 0;
}

/* Tarjeta activa (primera visible, con glow violeta) */
.flip-card--active {
  border-color: var(--violet);
  box-shadow: 0 0 0 1px rgba(124,58,237,0.25), 0 0 28px rgba(124,58,237,0.15);
}
.flip-card--active .flip-card__num { color: var(--violet); }

/* Botones del flip carousel */
.flip-carousel__actions {
  display: none; /* activado junto con .flip-carousel en desktop ≥992px */
  align-items: center;
  gap: 0.75rem;
}

.flip-carousel__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 9999px;
  padding: 0.6rem 1.375rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.flip-carousel__btn:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
}

/* ── Pipeline — MOBILE (se muestra solo en móvil) ── */
.pipeline--mobile {
  display: none; /* oculto por defecto, visible solo en mobile */
  width: 100%;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.pipeline__step {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 0.875rem 1.375rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  transition: border-color 0.2s;
  cursor: default;
}

.pipeline__step--active {
  border-color: var(--violet);
  box-shadow: 0 0 0 1px rgba(124,58,237,0.25), 0 0 28px rgba(124,58,237,0.15);
}
.pipeline__step--active .pipeline__num { color: var(--violet); }

.pipeline__num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(124,58,237,0.7);
  line-height: 1;
}

.pipeline__ico {
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.pipeline__name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.pipeline__desc {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-300);
  line-height: 1.5;
  margin: 0;
}

/* ── Mockup de app ── */
.como__mockup {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(124,58,237,0.1),
    0 32px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(124,58,237,0.08);
}

.como__mockup-img {
  width: 100%;
  height: auto;
  display: block;
}


/* ============================================================
   S5 — DIFERENCIALES
   ============================================================ */
.dif {
  background: var(--bg);
  padding: 7rem 0;
}

.dif__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.dif__header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem;
}

.dif__h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.07;
  color: var(--white);
  margin-bottom: 1rem;
}

.dif__sub {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  font-weight: 400;
  color: var(--gray-300);
  line-height: 1.6;
}

/* ── Lateral pin indicator (list + fill + stage) ── */
.dif__lateral {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 3rem;
  position: relative;
}

.dif__list-col {
  flex: 0 0 280px;
  position: relative;
  padding-left: 1.5rem;
}

.dif__fill-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--border);
}

.dif__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0%;
  background: linear-gradient(180deg, var(--magenta), var(--violet));
  box-shadow: 0 0 10px rgba(124,58,237,0.5);
}

.dif__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.dif__list-item {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--gray-300);
  opacity: 0.45;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.dif__list-item--active {
  color: var(--white);
  opacity: 1;
}

.dif__stage {
  flex: 1;
  position: relative;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

/* Cada tarjeta actúa como "slide": superpuestas, cross-fade por scroll.
   Selector combinado para ganarle a .dif-card { position: relative }. */
.dif-card.dif__slide {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: 320px;
  max-width: 100%;
  opacity: 0;
  visibility: hidden;
}

/* Card base */
.dif-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

/* Borde top por variante */
.dif-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.5px;
}
.dif-card--magenta::before    { background: var(--magenta); box-shadow: 0 0 12px rgba(236,72,153,0.5); }
.dif-card--violet::before     { background: var(--violet);  box-shadow: 0 0 12px rgba(124,58,237,0.5); }
.dif-card--violet-dim::before { background: rgba(124,58,237,0.5); }

.dif-card__text { display: flex; flex-direction: column; gap: 0.5rem; }

.dif-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--white);
}

.dif-card__body {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-300);
  line-height: 1.6;
}

/* Footer de Card 1 */
.dif-card__footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--gray-300);
}
.dif-card__footer svg { color: var(--violet); flex-shrink: 0; }

/* ── Grid 2×2 de imágenes — Card 1 ── */
.img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
}

.img-grid__col { display: contents; }

.img-grid__img {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

/* ── Render timeline — Card 2 ── */
.render-tl {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}

.render-tl__clips {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.render-tl__clip {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.render-tl__clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.render-tl__clip span {
  position: absolute;
  bottom: 2px;
  left: 0; right: 0;
  text-align: center;
  font-size: 0.52rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.4);
  line-height: 1.6;
}

/* Barra de progreso */
.render-tl__bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.render-tl__fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(to right, var(--violet), var(--magenta));
  border-radius: 9999px;
}

.render-tl__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.render-tl__pct {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
}

.render-tl__badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #22C55E;
}

/* ── Mockup YouTube — Card 3 ── */
.yt-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}

.yt-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.yt-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-card__duration {
  position: absolute;
  bottom: 7px;
  right: 7px;
  background: rgba(0,0,0,0.75);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.yt-card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.875rem;
}

.yt-card__yt-icon {
  width: 22px;
  height: 16px;
  background: #FF0000;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yt-card__info { flex: 1; min-width: 0; }

.yt-card__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-card__views {
  font-size: 0.72rem;
  color: var(--gray-500);
  margin-top: 2px;
}

.yt-card__dots {
  font-size: 1rem;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0 0.25rem;
}

/* ============================================================
   S6 — PARA QUIÉN ES
   ============================================================ */
.quien {
  background: var(--bg);
  padding: 7rem 0;
}

.quien__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.quien__header {
  text-align: center;
}

.quien__h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
}

/* ── Bento 2×2 ── */
.quien__bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

/* Card base */
.qcard {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
  will-change: transform;
}

/* Card wide (top-left) — layout horizontal interno */
.qcard--wide {
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.qcard__left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.qcard__text-block {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.qcard__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--white);
}

.qcard__body {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-300);
  line-height: 1.65;
}

.qcard__stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-300);
  margin-top: 0.25rem;
}
.qcard__stat svg { color: var(--violet); flex-shrink: 0; }

/* ── Stack de thumbnails de canal ── */
.channel-stack {
  position: relative;
  width: 240px;
  height: 220px;
  flex-shrink: 0;
}

.channel-card {
  position: absolute;
  width: 155px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: #0F0F18;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

/* Posiciones en el stack (perspectiva fan) */
.channel-card--back {
  top: 0; right: 0;
  transform: rotate(8deg) translateY(4px);
  z-index: 1;
  opacity: 0.75;
}
.channel-card--mid {
  top: 10px; right: 20px;
  transform: rotate(3deg);
  z-index: 2;
  opacity: 0.88;
}
.channel-card--front {
  top: 22px; right: 40px;
  transform: rotate(-1deg);
  z-index: 3;
}

.channel-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.channel-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.channel-card__yt {
  position: absolute;
  top: 6px; left: 6px;
  width: 18px; height: 13px;
  background: #FF0000;
  border-radius: 3px;
}
.channel-card__yt::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-40%, -50%);
  width: 0; height: 0;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent white;
}

.channel-card__bar {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.channel-card__name {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.channel-card__subs {
  font-size: 0.58rem;
  color: var(--gray-500);
}

/* Glow violeta detrás del stack */
.channel-stack::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 180px; height: 180px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.35) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Gráfica de crecimiento ── */
.growth-chart { width: 100%; }
.growth-chart__svg { width: 100%; height: auto; overflow: visible; }

/* ── Flow visual: guion → video ── */
.flow-vis {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding: 0.5rem 0;
}

.flow-vis__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.flow-vis__box {
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-vis__box--video {
  background: transparent;
  border: none;
  width: 116px; height: 80px;
}

.flow-vis__video-thumb {
  width: 100%; height: 100%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1.5px solid rgba(124,58,237,0.5);
}
.flow-vis__video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.flow-vis__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124,58,237,0.4);
}

.flow-vis__label {
  font-size: 0.8125rem;
  color: var(--gray-300);
  text-align: center;
}

.flow-vis__arrow {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.flow-vis__mins {
  font-size: 1rem;
  font-weight: 700;
  color: var(--violet);
  letter-spacing: -0.01em;
}
.flow-vis__arrow-svg {
  width: 100%;
  height: 24px;
}

/* ── Barras de costo ── */
.cost-bars {
  display: flex;
  align-items: flex-end;
  gap: 0;
  justify-content: center;
  padding-top: 0.5rem;
  position: relative;
}

.cost-bars__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 90px;
  text-align: center;
}

.cost-bars__price {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cost-bars__price--red    { color: #F87171; }
.cost-bars__price--violet { color: #A78BFA; }

.cost-bars__bar {
  width: 64px;
  border-radius: 6px 6px 0 0;
}
.cost-bars__bar--red {
  height: 90px;
  background: linear-gradient(to bottom, #EF4444, #B91C1C);
}
.cost-bars__bar--violet {
  height: 38px;
  background: linear-gradient(to bottom, var(--violet), #5B21B6);
}

.cost-bars__label {
  font-size: 0.72rem;
  color: var(--gray-500);
  text-align: center;
}
.cost-bars__label--bold {
  font-weight: 700;
  color: var(--white);
}

.cost-bars__arrow {
  width: 64px;
  align-self: stretch;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.cost-bars__arrow svg { width: 100%; height: 100%; min-height: 80px; }


/* ============================================================
   S7 — TESTIMONIOS
   ============================================================ */
.testimonios {
  background: var(--bg);
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}

/* Aurora glow horizontal detrás de las cards */
.testimonios__aurora {
  position: absolute;
  /* Se posiciona a la altura de las cards */
  top: 44%;
  left: -10%;
  right: -10%;
  height: 260px;
  transform: translateY(-50%);
  background: linear-gradient(
    to right,
    rgba(124,58,237,0.18) 0%,
    rgba(180,40,180,0.12) 40%,
    rgba(236,72,153,0.15) 70%,
    rgba(124,58,237,0.08) 100%
  );
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}

.testimonios__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

/* Header */
.testimonios__header { text-align: center; }

.testimonios__h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 0.875rem;
}

.testimonios__sub {
  font-size: clamp(0.875rem, 1.3vw, 1rem);
  color: var(--gray-300);
  font-weight: 400;
}

/* ── Slider ── */
.testimonios__slider-wrap {
  overflow: hidden;
  /* Sangría negativa para que la 5ª card se corte visualmente */
  margin-right: -2.5rem;
}

.testimonios__track {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* No clip — la 5ta card se ve parcialmente fuera */
}

/* Card base */
.tcard {
  background: rgba(20,20,32,0.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  flex: 0 0 calc(25% - 0.75rem);
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0;
  /* La última se recorta a propósito */
}

/* Card featured — primera, borde violeta */
.tcard--featured {
  border-color: rgba(124,58,237,0.55);
  box-shadow: 0 0 0 1px rgba(124,58,237,0.15), inset 0 0 0 1px rgba(124,58,237,0.08);
}

/* Comillas tipográficas grandes violeta */
.tcard__quote {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--violet);
  margin-bottom: 0.625rem;
  font-family: Georgia, serif; /* para las comillas tipográficas */
}

/* Headline bold blanco */
.tcard__headline {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 0.75rem;
}

/* Línea violeta divisora */
.tcard__divider {
  width: 28px;
  height: 2px;
  background: var(--violet);
  border-radius: 2px;
  margin-bottom: 0.875rem;
  flex-shrink: 0;
}

/* Cuerpo en cursiva */
.tcard__body {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--gray-300);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 0;
}

/* Separador horizontal */
.tcard__sep {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 1.125rem 0;
  flex-shrink: 0;
}

/* Autor */
.tcard__name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.tcard__role {
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* ── Navegación ── */
.testimonios__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tdot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.tdot--active {
  background: var(--violet);
  transform: scale(1.25);
}

.testimonios__next {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.375rem;
  transition: background 0.15s, border-color 0.15s;
}
.testimonios__next:hover {
  background: rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.4);
}

/* ── Stat "14 minutos" ── */
.testimonios__stat {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: center;
}

.testimonios__stat-line {
  flex: 1;
  max-width: 220px;
  height: 1px;
  background: var(--border);
}

.testimonios__stat-text {
  font-size: 0.9375rem;
  color: var(--gray-300);
  white-space: nowrap;
  margin: 0;
}
.testimonios__stat-text strong {
  color: var(--white);
  font-weight: 700;
}


/* ============================================================
   S8 — GARANTÍA
   ============================================================ */
.garantia {
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Radial gradient violeta desde el centro */
.garantia__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 90% at 50% 50%,
      rgba(90,30,200,0.75) 0%,
      rgba(60,15,140,0.55) 35%,
      rgba(20,10,40,0.85)  65%,
      #0D0D12 100%
    );
  z-index: 0;
}

/* Grid de líneas finas violeta */
.garantia__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 1;
  pointer-events: none;
}

/* Número "14" gigante fantasma */
.garantia__ghost {
  position: absolute;
  top: -0.1em;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(18rem, 32vw, 28rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  /* Mismo tono que el fondo violeta, ligeramente más claro */
  color: rgba(130,70,220,0.22);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 2;
}

/* Contenido centrado */
.garantia__wrap {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  max-width: 860px;
  padding: 0 2rem;
}

/* Label "SIN RIESGO" */
.garantia__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(167,139,250,0.9); /* violeta claro */
  /* Pequeño indicador tipo dagger antes del texto */
}
.garantia__label::before {
  content: '†';
  margin-right: 0.4em;
  opacity: 0.7;
}

/* H2 */
.garantia__h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--white);
}

/* Párrafo */
.garantia__body {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--gray-300);
  line-height: 1.65;
  max-width: 580px;
  margin: 0;
}

/* Botón violeta ancho */
.garantia__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--violet);
  color: #fff;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 700;
  padding: 1rem 2.75rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  text-decoration: none;
  margin-top: 0.25rem;
  min-width: 320px;
  box-shadow: 0 0 40px rgba(124,58,237,0.4);
}
.garantia__btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Micro-copy */
.garantia__micro {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin: 0;
}


/* ============================================================
   S9 — CTA FINAL
   ============================================================ */
.final {
  position: relative;
  overflow: hidden;
  background: #000;
  padding: 8rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
}

/* Canvas de estrellas — ocupa toda la sección */
.final__stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Glow violeta izquierda */
.final__glow--left {
  position: absolute;
  top: 50%;
  left: -5%;
  transform: translateY(-50%);
  width: 42%;
  height: 80%;
  background: radial-gradient(ellipse at center,
    rgba(100,40,220,0.55) 0%,
    rgba(80,20,180,0.25) 40%,
    transparent 70%
  );
  filter: blur(32px);
  pointer-events: none;
  z-index: 1;
}

/* Glow magenta/rosa derecha */
.final__glow--right {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: 40%;
  height: 80%;
  background: radial-gradient(ellipse at center,
    rgba(200,40,140,0.45) 0%,
    rgba(160,20,100,0.2)  40%,
    transparent 70%
  );
  filter: blur(36px);
  pointer-events: none;
  z-index: 1;
}

/* Contenido */
.final__wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  max-width: 900px;
  padding: 0 2rem;
}

.final__h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--white);
}

.final__sub {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--gray-300);
  margin: 0;
}

/* Botones */
.final__ctas {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.final__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  text-decoration: none;
  min-width: 220px;
}
.final__btn:hover { opacity: 0.88; transform: translateY(-1px); }

.final__btn--violet {
  background: var(--violet);
  color: #fff;
  border: none;
}
.final__btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.final__btn--ghost:hover { border-color: rgba(255,255,255,0.65); }

.final__micro {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin: 0;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0A0A0F;
  border-top: 1px solid var(--border);
}

.footer__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Brand */
.footer__logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  display: block;
  margin-bottom: 0.5rem;
}
.footer__tagline {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 0;
  max-width: 240px;
}

/* Nav grupos */
.footer__nav {
  display: contents;
}

.footer__nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer__nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.footer__nav-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
}
.footer__nav-group a {
  font-size: 0.875rem;
  color: var(--gray-300);
  transition: color 0.15s;
}
.footer__nav-group a:hover { color: var(--white); }

/* Social */
.footer__social {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer__social-links {
  display: flex;
  gap: 0.75rem;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.footer__social-link:hover {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.4);
  color: var(--white);
}

/* Bottom bar */
.footer__bottom {
  border-top: 1px solid var(--border);
}
.footer__bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__copy {
  font-size: 0.78rem;
  color: var(--gray-700);
}
.footer__legal {
  display: flex;
  gap: 1.5rem;
}
.footer__legal a {
  font-size: 0.78rem;
  color: var(--gray-700);
  transition: color 0.15s;
}
.footer__legal a:hover { color: var(--gray-300); }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .ghost-l { display: none; }
  .ghost-r { display: none; }
}

@media (max-width: 767px) {
  /* Navbar */
  .nav { padding: 0 1.25rem; }
  .nav__menu    { display: none; }
  .nav__actions { display: none; }
  .nav__burger  { display: flex; }

  /* Hero */
  .hero { align-items: flex-end; padding-top: 0; }
  .hero__body {
    padding: 0 1.25rem 5rem;
    gap: 1rem;
    margin-top: auto;
  }

  .hero__h1--desk { display: none; }
  .hero__h1--mob  { display: block; }
  .hero__h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }

  /* CTAs apilados */
  .hero__ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero__ctas .btn { width: 100%; }

  /* CTA final mobile */
  .final { padding: 5rem 0; min-height: auto; }
  .final__h2 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .final__ctas { flex-direction: column; width: 100%; }
  .final__btn { min-width: 0; width: 100%; }

  /* Footer mobile */
  .footer__wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.25rem;
  }
  .footer__bottom-inner {
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* Garantía mobile */
  .garantia { padding: 5rem 0; }
  .garantia__ghost { font-size: 40vw; }
  .garantia__btn { min-width: 0; width: 100%; }
  .garantia__wrap { padding: 0 1.25rem; }

  /* Testimonios mobile */
  .testimonios { padding: 4.5rem 0 3.5rem; }
  .testimonios__wrap { padding: 0 1.25rem; gap: 2rem; }
  .testimonios__slider-wrap { margin-right: -1.25rem; overflow: visible; }
  .tcard {
    flex: 0 0 85vw;
    min-width: 0;
  }
  .testimonios__aurora {
    top: 38%;
    height: 200px;
    filter: blur(36px);
  }

  /* Para quién es mobile */
  .quien { padding: 4.5rem 0; }
  .quien__wrap { padding: 0 1.25rem; gap: 2rem; }
  .quien__bento { grid-template-columns: 1fr; }
  .qcard--wide { flex-direction: column; align-items: flex-start; }
  .channel-stack {
    width: 100%;
    height: 220px;
    position: relative;
  }
  .channel-card { width: 150px; }
  /* Centrar las tres cards usando left desde el 50% del contenedor */
  .channel-card--back  { left: calc(50% - 55px);  right: auto; top: 0; }
  .channel-card--mid   { left: calc(50% - 72px);  right: auto; top: 10px; }
  .channel-card--front { left: calc(50% - 88px);  right: auto; top: 22px; }

  /* Diferenciales mobile */
  .dif { padding: 4.5rem 0; }
  .dif__wrap { padding: 0 1.25rem; gap: 2.5rem; }

  /* Mobile: tarjetas apiladas verticalmente, sin animación */
  .dif__lateral { flex-direction: column; gap: 1.25rem; }
  .dif__list-col { display: none; }
  .dif__stage {
    width: 100%;
    height: auto !important;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .dif-card.dif__slide {
    position: relative !important;
    width: 100% !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  /* Cómo funciona mobile */
  .como { padding: 4.5rem 0; }
  .como__wrap { padding: 0 1.25rem; gap: 2.5rem; }
  /* Mobile: ocultar flip carousel y botones, mostrar pipeline list */
  #flipCarousel { display: none !important; }
  .flip-carousel__actions { display: none !important; }
  .pipeline--mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
  .como__mockup { border-radius: 10px; }

  /* Problema mobile */
  .problema { padding: 4rem 0 5rem; }
  .problema__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1.25rem;
  }
  .problema__cards {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .pain-card { min-height: auto; }

  /* Métricas mobile */
  .metrics__inner {
    grid-template-columns: 1fr;
    padding: 0 1.25rem;
  }
  .metric {
    padding: 1.75rem 0;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    align-items: baseline;
    gap: 1.25rem;
  }
  .metric:not(:first-child) { padding-left: 0; }
  .metric:last-child { border-bottom: none; }
  .metric__num { font-size: clamp(2rem, 9vw, 2.8rem); white-space: nowrap; }

  /* Ghost mobile visible */
  .ghost-m { display: block; }

  /* Waveform inferior visible */
  .hero__wave { display: flex; }
}

@media (max-width: 480px) {
  .hero__h1 { font-size: 2.4rem; }
  .hero__sub { font-size: 0.88rem; }
}

/* ============================================================
   S3 — EL PROBLEMA
   ============================================================ */
.problema {
  padding: 7rem 0;
  background: var(--bg);
}

.problema__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 5rem;
  align-items: center;
}

.problema__h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.problema__body {
  font-size: 0.9375rem;
  color: var(--gray-300);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}
.problema__body:last-of-type { margin-bottom: 0; }

/* Tira de herramientas */
.tool-strip {
  margin-top: 2rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  padding-bottom: 18px;
}

.tool-strip__icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  flex-shrink: 0;
}
.tool-strip__icon--label {
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(255,255,255,0.6);
}

.tool-strip__arrow {
  font-size: 0.75rem;
  color: var(--gray-700);
  flex-shrink: 0;
}

.tool-strip__x {
  position: absolute;
  bottom: -2px;
  left: 10px;
  right: 10px;
  width: calc(100% - 20px);
  pointer-events: none;
}

/* Pain cards */
.problema__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pain-card {
  background: #111116;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 14px 14px 0 0;
}
.pain-card--1::before {
  background: linear-gradient(90deg, var(--magenta), transparent);
  box-shadow: 0 0 14px rgba(236,72,153,0.4);
}
.pain-card--2::before {
  background: linear-gradient(90deg, #F59E0B, transparent);
  box-shadow: 0 0 14px rgba(245,158,11,0.4);
}
.pain-card--3::before {
  background: linear-gradient(90deg, #EF4444, transparent);
  box-shadow: 0 0 14px rgba(239,68,68,0.4);
}

.pain-card__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}
.pain-card--1 .pain-card__icon { color: var(--magenta); }
.pain-card--2 .pain-card__icon { color: #F59E0B; }
.pain-card--3 .pain-card__icon { color: #EF4444; }

.pain-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.pain-card__body {
  font-size: 0.8438rem;
  color: var(--gray-300);
  line-height: 1.65;
}

/* S3 responsive */
@media (max-width: 1023px) {
  .problema__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .problema__cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .problema { padding: 4.5rem 0; }
  .problema__inner { padding: 0 1.25rem; gap: 2.5rem; }
  .problema__h2 { font-size: clamp(1.75rem, 8vw, 2.25rem); }
}

/* ============================================================
   S3 — SLIDER INFINITO GSAP (reemplaza las 3 pain cards)
   ============================================================ */
.problema__slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.pslide {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: visible;
}

.pslide__cards {
  position: absolute;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 230px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pslide__card {
  position: absolute;
  top: 0;
  left: 0;
  width: 230px;
  height: 300px;
  background: #111116;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  will-change: transform, opacity;
}

.pslide__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 16px 16px 0 0;
}

.pslide__card--magenta::before {
  background: linear-gradient(90deg, var(--magenta), transparent);
  box-shadow: 0 0 14px rgba(236,72,153,0.4);
}
.pslide__card--amber::before {
  background: linear-gradient(90deg, #F59E0B, transparent);
  box-shadow: 0 0 14px rgba(245,158,11,0.4);
}
.pslide__card--red::before {
  background: linear-gradient(90deg, #EF4444, transparent);
  box-shadow: 0 0 14px rgba(239,68,68,0.4);
}

.pslide__ico { width: 22px; height: 22px; flex-shrink: 0; }
.pslide__card--magenta .pslide__ico { color: var(--magenta); }
.pslide__card--amber   .pslide__ico { color: #F59E0B; }
.pslide__card--red     .pslide__ico { color: #EF4444; }

.pslide__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.pslide__body {
  font-size: 0.8438rem;
  color: var(--gray-300);
  line-height: 1.65;
}

.pslide__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pslide__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 9999px;
  padding: 0.6rem 1.375rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pslide__btn:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
}
.pslide__btn svg { flex-shrink: 0; }

.pslide__drag-proxy {
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

@media (max-width: 1023px) {
  .pslide { height: 380px; }
}

@media (max-width: 767px) {
  .pslide { height: 340px; }
  .pslide__cards { width: 200px; height: 270px; }
  .pslide__card { width: 200px; height: 270px; padding: 1.5rem 1.25rem; }
  .pslide__title { font-size: 1rem; }
  .pslide__body { font-size: 0.8125rem; }
}

/* ============================================================
   ANIMACIONES — HERO GHOST FLOAT
   ============================================================ */
@keyframes floatLeft {
  0%   { transform: translateY(-48%) perspective(700px) rotateY(10deg) rotateX(-1deg) translateY(0px); }
  50%  { transform: translateY(-48%) perspective(700px) rotateY(10deg) rotateX(-1deg) translateY(-12px); }
  100% { transform: translateY(-48%) perspective(700px) rotateY(10deg) rotateX(-1deg) translateY(0px); }
}

@keyframes floatRight {
  0%   { transform: translateY(-54%) perspective(700px) rotateY(-9deg) rotateX(1deg) translateY(0px); }
  50%  { transform: translateY(-54%) perspective(700px) rotateY(-9deg) rotateX(1deg) translateY(-10px); }
  100% { transform: translateY(-54%) perspective(700px) rotateY(-9deg) rotateX(1deg) translateY(0px); }
}

@keyframes floatMobile {
  0%   { transform: perspective(500px) rotateY(-8deg) translateY(0px); }
  50%  { transform: perspective(500px) rotateY(-8deg) translateY(-8px); }
  100% { transform: perspective(500px) rotateY(-8deg) translateY(0px); }
}

.ghost-l {
  animation: floatLeft 5s ease-in-out infinite;
}

.ghost-r {
  animation: floatRight 5.8s ease-in-out infinite;
}

.ghost-m {
  animation: floatMobile 5.2s ease-in-out infinite;
}

/* ============================================================
   HOME ENTRANCE ANIMATIONS
============================================================ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleFade {
  from {
    opacity: 0;
    transform: scale(.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================
   ENTRADA SUAVE HOME
========================================== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero */

.hero__h1{
    opacity:0;
    animation:fadeUp .8s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay:.15s;
}

.hero__sub{
    opacity:0;
    animation:fadeUp .8s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay:.35s;
}

.hero__ctas{
    opacity:0;
    animation:fadeUp .8s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay:.55s;
}

.hero__micro{
    opacity:0;
    animation:fadeUp .8s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay:.75s;
}

/* ============================================================
   S4 — FLIP CAROUSEL: activar en desktop (≥992px)
   ============================================================ */
@media (min-width: 992px) {
  #flipCarousel {
    display: block;
  }
  .flip-carousel__actions {
    display: flex;
  }
  .pipeline--mobile {
    display: none !important;
  }
}