/* Bigtraffics · Curso Meta Ads · hoja de estilos */

/* ---------- Tokens ---------- */
:root {
  /* Paleta */
  --purple: #7151d6;        /* botones y acentos */
  --purple-deep: #6d4ed0;   /* titular y texto violeta */
  --purple-soft: #ac96d6;   /* violeta apagado de la mancha del fondo */
  --yellow: #ffd32b;        /* amarillo de marca: SOLO relleno de los botones de compra */

  --ink: #10101c;
  --ink-soft: #5f5b6b;      /* texto secundario */
  --ink-faint: #6b6777;
  --bg: #fcfbfe;
  --bg-alt: #f4eefc;
  --bg-hero: #f5f2fb;
  --bg-hero-end: #f3edf9;
  --bg-soft: #f8f5fc;
  --lilac: #e8def6;
  --lilac-light: #f3ecfc;
  --line: #eae2f7;
  --line-strong: #e8def6;
  --white: #fff;

  /* Tipografía */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-hero: clamp(2.125rem, 4.5vw, 3.375rem);
  --fs-h1: clamp(2.1rem, 1.35rem + 3.5vw, 3.6rem);
  --fs-h2: clamp(1.75rem, 3.5vw, 2.5rem);
  --fs-h3: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  --fs-lead: 1rem;
  --fs-hero-lead: 1rem;
  /* escala usada en toda la página: 13 · 14 · 16 · 18 · títulos 28-40 · portada 34-54 */

  /* Espaciado */
  --space-section: clamp(64px, 9vw, 112px);
  --container: 1180px;
  --radius: 10px;
  --radius-lg: 12px;
  --radius-full: 999px;

  /* Sombra */
  --shadow-sm: 0 2px 10px rgba(16, 16, 28, 0.05);
  --shadow-md: 0 12px 30px -14px rgba(16, 16, 28, 0.22);
  --shadow-lg: 0 22px 50px -22px rgba(16, 16, 28, 0.28);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.no-scroll, html.no-scroll body { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h2 { font-size: var(--fs-h2); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; text-wrap: balance; letter-spacing: -0.01em; }
h1, h2 { font-weight: 700; }
b, strong { font-weight: 600; }
p { margin: 0; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

[hidden] { display: none !important; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
section { padding: var(--space-section) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--purple-deep); margin: 0 0 12px; display: block;
}
.section-head { max-width: 720px; margin: 0 0 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); margin-top: 14px; max-width: 62ch; }
.center .lead { margin-inline: auto; }
.visually-hidden {
  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: absolute; left: 12px; top: -60px; background: var(--purple); color: #fff;
  padding: 12px 18px; border-radius: var(--radius); z-index: 200; transition: top 0.2s var(--ease);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 1rem;
  border: none; cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
  min-height: 44px; touch-action: manipulation; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--yellow); color: var(--ink);
  box-shadow: 0 10px 24px -10px rgba(16, 16, 28, 0.38), inset 0 -2px 0 rgba(16, 16, 28, 0.08);
}
.btn-primary:hover { filter: brightness(0.97); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(16, 16, 28, 0.42); }
/* Botón de arriba: secundario (borde violeta) para que no compita con el amarillo */
.btn.hero-nav-cta, .btn.hero-nav-cta:hover { background: transparent; color: var(--purple-deep); border: 1.5px solid var(--purple); box-shadow: none; filter: none; }
.btn.hero-nav-cta:hover { background: #fff; }

/* ---------- Efectos táctiles (solo celular; los activa js/main.js) ---------- */
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: translateX(-160%) skewX(-18deg); opacity: 0;
}
.btn-primary.is-shining::after { animation: btnShine 1s cubic-bezier(0.4, 0, 0.2, 1) 1; }
.btn-primary.is-shining svg { animation: btnNudge 0.8s ease-in-out 0.45s 1; }
@keyframes btnShine { 0% { transform: translateX(-160%) skewX(-18deg); opacity: 1; } 100% { transform: translateX(330%) skewX(-18deg); opacity: 1; } }
@keyframes btnNudge { 0%, 100% { transform: translateX(0); } 45% { transform: translateX(6px); } }
.btn-primary .ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, 0.7); transform: scale(0); animation: btnRipple 0.55s ease-out forwards;
}
@keyframes btnRipple { to { transform: scale(1); opacity: 0; } }
.is-touch .btn-primary:active { transform: scale(0.96); }
.btn-ghost {
  background: transparent; color: var(--purple-deep); border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--purple); background: var(--bg-alt); }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; padding: 14px 28px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent; transition: border-color 0.25s var(--ease);
}
/* El desenfoque va en un ::before, no en .site-header: un backdrop-filter en el propio
   header crearía un "containing block" nuevo y rompería el position:fixed del menú móvil. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled::before { background: rgba(255,255,255,0.92); box-shadow: var(--shadow-sm); }
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; max-width: var(--container); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }
.brand-name { font-weight: 600; font-size: 1rem; color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  padding: 10px 12px; border-radius: var(--radius-full); font-weight: 500; font-size: 0.88rem;
  color: var(--ink-soft); transition: background 0.2s, color 0.2s; white-space: nowrap;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--purple-deep); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 12px 22px; font-size: 0.92rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: none; background: var(--bg-alt);
  border-radius: 12px; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle span { margin: 5px 0; }
.nav-toggle[aria-expanded="true"] { position: relative; }

@media (max-width: 880px) {
  .site-nav {
    position: fixed; top: 0; bottom: 0; right: -100%; width: min(320px, 78vw);
    background: #fff; flex-direction: column; z-index: 150;
    justify-content: center; align-items: stretch; padding: 100px 28px 40px; gap: 4px;
    transition: right 0.32s var(--ease); box-shadow: -20px 0 60px rgba(16,16,28,0.15);
  }
  .site-nav.is-open { right: 0; }
  .site-nav a { padding: 16px 10px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero (claro, persona + tarjetas flotantes) ---------- */
.hero {
  padding: 0; overflow: clip;
  background: linear-gradient(180deg, var(--bg-hero) 0%, var(--bg-hero-end) 78%, var(--bg-soft) 100%);
}
.hero-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 8px; }
.hero-brand { display: inline-flex; align-items: center; min-height: 44px; }
.hero-brand img { height: 27px; width: auto; }
.btn.hero-nav-cta { padding: 9px 16px; font-size: 0.875rem; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 18px; }
.hero h1 { font-size: var(--fs-hero); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.hero-accent { display: block; color: var(--purple-deep); }
.hero h1 { color: var(--ink); }
.hero-lead { font-size: var(--fs-hero-lead); line-height: 1.65; color: var(--ink-soft); margin-top: 14px; max-width: 44ch; }
.hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin-top: 22px; }
.hero-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; font-weight: 600; font-size: 1rem; color: var(--ink); }
.hero-link svg { width: 24px; height: 24px; color: var(--purple); }
.hero-link:hover { color: var(--purple-deep); }
.hero-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; font-size: 0.875rem; font-weight: 500; color: var(--ink-soft); }
.hero-secure svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--purple); }

.hero-visual { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1186 / 1243; margin: 12px auto 0; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; z-index: 1; }

.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 12px; min-width: 150px;
  background: #fff; border-radius: 10px; box-shadow: 0 14px 30px -12px rgba(16, 16, 28, 0.25);
  animation: floatCard 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 1.125rem; font-weight: 600; line-height: 1.15; }
.float-card small { display: block; max-width: 14ch; font-size: 0.8125rem; font-weight: 400; line-height: 1.3; color: var(--ink-soft); }
.float-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: var(--bg-alt); color: var(--purple); }
.float-icon svg { width: 20px; height: 20px; }
/* ninguna tarjeta tapa la cara: en celular van del mentón hacia abajo */
.card-a { right: 0; top: 40%; }
.card-b { left: 0; top: 58%; }
.card-c { right: 0; bottom: 4%; }
.card-b, .card-c { animation: none; } /* una sola tarjeta en movimiento */
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (min-width: 640px) {
  .card-a { top: 14%; }
  .card-b { top: 47%; }
  .card-c { bottom: 8%; }
  .hero-actions { flex-direction: row; align-items: center; gap: 22px; }
  .hero-secure { justify-content: flex-start; margin-top: 14px; }
  :root { --fs-hero-lead: 1.125rem; }
}
@media (min-width: 640px) and (max-width: 959px) {
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-secure { justify-content: center; }
  .hero-visual { max-width: 480px; }
}
@media (max-width: 360px) {
  .float-card { transform: none; min-width: 0; gap: 8px; padding: 6px 10px 6px 6px; }
  .float-card strong { font-size: 0.875rem; }
  .float-card small { font-size: 0.8125rem; }
  .float-icon { width: 26px; height: 26px; }
  .float-icon svg { width: 15px; height: 15px; }
  .card-b { top: 62%; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 32px; padding-top: 20px; }
  .hero-copy { align-self: center; padding-bottom: 36px; }
  .hero-lead { margin-top: 20px; }
  .hero-actions { margin-top: 28px; }
  .hero-secure { margin-top: 18px; }
  .hero-visual { align-self: end; max-width: 560px; margin-top: 0; }
  .float-card { gap: 12px; padding: 14px 16px 14px 12px; }
  .float-card strong { font-size: 1.125rem; white-space: nowrap; }
  .float-card small { font-size: 0.8125rem; }
  .float-icon { width: 40px; height: 40px; }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .float-card { min-width: 140px; gap: 10px; padding: 12px 12px 12px 10px; }
  .float-card strong { font-size: 1rem; }
  .float-card small { font-size: 0.8125rem; }
  .float-icon { width: 36px; height: 36px; }
}

/* ---------- Franja bajo la portada ---------- */
/* --strip-over: cuánto se monta sobre la portada; la mitad inferior toma el color de la sección siguiente */
:root { --strip-over: 36px; }
.hero-strip { position: relative; z-index: 4; margin-top: calc(-1 * var(--strip-over)); background: linear-gradient(to bottom, transparent var(--strip-over), var(--bg-alt) var(--strip-over)); }
.hero-strip-card { padding: 14px 16px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); }
.hero-strip-card p { margin: 0 0 10px; font-size: 0.8125rem; text-align: center; color: var(--ink-soft); }
.hero-strip-card ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; margin: 0; padding: 0; list-style: none; }
.hero-strip-card li { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.hero-strip-card svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--purple); }
.card-c { bottom: calc(var(--strip-over) + 12px); }
@media (min-width: 780px) {
  .hero-strip-card { padding: 16px 28px 18px; }
  .hero-strip-card ul { display: flex; justify-content: space-between; gap: 20px; }
  .hero-strip-card li { font-size: 0.875rem; }
}
@media (min-width: 960px) { :root { --strip-over: 44px; } .hero-copy { padding-bottom: 68px; } }

/* ---------- Reveal on scroll ---------- */
[data-reveal].reveal-pending { opacity: 0; transform: translateY(22px); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Transformación (antes / después) ---------- */
.transform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.transform-col { border-radius: var(--radius-lg); padding: 28px 26px; }
.transform-col.before { background: transparent; }
.transform-col.after { background: #fff; border: 2px solid var(--purple); box-shadow: var(--shadow-md); }
.transform-col h3 { font-size: 1.125rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.transform-col.after h3 { color: var(--purple-deep); }
.transform-col.after h3 svg { width: 30px; height: 30px; padding: 6px; margin: 0; border-radius: 9px; background: var(--lilac-light); color: var(--purple); }
.transform-list li { display: flex; gap: 10px; padding: 8px 0; font-size: 1rem; align-items: flex-start; }
.transform-col.before .transform-list li { color: var(--ink-soft); }
.transform-col.after .transform-list li { color: var(--ink); font-weight: 500; }
.transform-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.transform-col.before svg { color: var(--ink-faint); }
.transform-col.after .transform-list svg { color: var(--purple); }
/* celular: cada "antes" va pegado a su "después" (cuatro parejas en una sola columna) */
@media (max-width: 780px) {
  .transform-grid { display: flex; flex-direction: column; gap: 0; }
  .transform-col, .transform-list { display: contents; }
  .transform-col h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .transform-list li { padding: 10px 14px; border: 1.5px solid var(--purple); }
  .transform-col.before .transform-list li { background: var(--lilac-light); border-bottom: 0; border-radius: 12px 12px 0 0; font-size: 0.875rem; }
  .transform-col.after .transform-list li { background: #fff; border-top: 0; border-radius: 0 0 12px 12px; margin-bottom: 12px; }
  .before li:nth-child(1) { order: 1; } .after li:nth-child(1) { order: 2; }
  .before li:nth-child(2) { order: 3; } .after li:nth-child(2) { order: 4; }
  .before li:nth-child(3) { order: 5; } .after li:nth-child(3) { order: 6; }
  .before li:nth-child(4) { order: 7; } .after li:nth-child(4) { order: 8; }
}

/* ---------- Comparación de anuncios (ejemplo ilustrativo) ---------- */
.ad-compare { max-width: 920px; margin: 56px auto 0; padding: 40px 32px 32px; border-radius: 14px; background: var(--bg-alt); }
.ad-compare > h3 { font-size: 1.75rem; font-weight: 700; text-align: center; }
.ad-compare-note { max-width: 60ch; margin: 10px auto 0; font-size: 0.875rem; color: var(--ink-soft); text-align: center; }
.ad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 16px 28px; margin-top: 32px; }
.ad-example { display: flex; flex-direction: column; gap: 16px; }
.ad-label { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 700; }
.ad-mark { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink-faint); color: var(--ink-faint); }
.ad-mark svg { width: 14px; height: 14px; }
.is-clear .ad-label { color: var(--purple-deep); }
.is-clear .ad-mark { background: var(--purple); border-color: var(--purple); color: #fff; }
/* la tarjeta imita una publicación patrocinada; no es interactiva */
.ad-mock { display: flex; flex-direction: column; background: #fff; border: 2px solid transparent; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md); }
.is-clear .ad-mock { border-color: var(--purple); box-shadow: var(--shadow-lg); }
.ad-mock-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 0; }
.ad-avatar { width: 48px; height: 48px; flex-shrink: 0; }
.ad-author { flex: 1; min-width: 0; }
.ad-author b { display: block; font-size: 1rem; line-height: 1.3; }
.ad-author small { display: flex; align-items: center; gap: 4px; font-size: 0.8125rem; line-height: 1.4; color: var(--ink-faint); }
.ad-author small svg { width: 13px; height: 13px; }
.ad-more { width: 22px; height: 22px; flex-shrink: 0; align-self: flex-start; color: var(--ink-faint); }
.ad-mock-text { flex: 1; padding: 12px 14px 14px; font-size: 0.875rem; line-height: 1.55; }
.ad-mock-img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--lilac-light); }
.ad-mock-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--bg-soft); }
.ad-dest { min-width: 0; }
.ad-dest small { display: block; font-size: 0.8125rem; line-height: 1.35; color: var(--ink-faint); }
.ad-dest b { display: block; font-size: 0.875rem; line-height: 1.35; }
.ad-mock-btn { display: flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 9px 12px; border-radius: 8px; background: var(--lilac); font-size: 0.8125rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.ad-mock-btn svg { width: 16px; height: 16px; }
.is-clear .ad-mock-btn { background: var(--purple); color: #fff; }
.ad-actions { display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 6px; border-top: 1px solid var(--line); font-size: 0.8125rem; font-weight: 600; color: var(--ink-faint); }
.ad-actions span { display: flex; align-items: center; justify-content: center; gap: 6px; }
.ad-actions svg { width: 17px; height: 17px; flex-shrink: 0; }
/* lectura del anuncio: los mismos tres puntos en ambos */
.ad-points { display: flex; flex-direction: column; gap: 8px; padding: 4px 4px 0; }
.ad-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; line-height: 1.55; color: var(--ink-soft); }
.ad-points svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--ink-faint); }
.ad-points strong { color: var(--ink); }
.is-clear .ad-points li { color: var(--ink); }
.is-clear .ad-points svg { color: var(--purple); }
/* lado a lado: título, publicación y puntos quedan alineados entre las dos columnas */
@media (min-width: 861px) { .ad-example { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 16px; align-items: start; } .ad-example .ad-mock { align-self: stretch; } }
@media (max-width: 860px) {
  .ad-grid { grid-template-columns: minmax(0, 440px); gap: 36px; }
}
@media (max-width: 780px) {
  /* el panel ocupa todo el ancho para que los anuncios se vean grandes */
  .ad-compare { margin: 40px -20px 0; padding: 32px 16px; border-radius: 0; }
  .ad-compare > h3, .ad-compare-note { text-align: left; margin-inline: 0; }
  .ad-grid { margin-top: 28px; }
}
@media (max-width: 359px) {
  .ad-actions span { gap: 4px; }
  .ad-actions svg { width: 15px; height: 15px; }
  .ad-mock-btn { padding: 8px 9px; }
}

/* ---------- Currículum ---------- */
.curriculum-list { display: flex; flex-direction: column; gap: 14px; }
.curr-item {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: clip;
}
.curr-item summary {
  list-style: none; cursor: pointer; padding: 22px 24px; display: flex; align-items: center; gap: 18px;
  -webkit-tap-highlight-color: transparent;
}
.curr-item summary::-webkit-details-marker { display: none; }
.curr-num {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--purple); color: #fff; font-weight: 600; font-size: 0.875rem;
}
.curr-summary-text { flex: 1; min-width: 0; }
.curr-summary-text h3 { font-size: 1rem; margin-bottom: 3px; }
.curr-summary-text p { font-size: 0.875rem; color: var(--ink-faint); }
.curr-chevron { flex-shrink: 0; width: 22px; height: 22px; color: var(--ink-faint); transition: transform 0.3s var(--ease); }
.curr-item[open] .curr-chevron { transform: rotate(180deg); color: var(--purple); }
.curr-item[open] summary { border-bottom: 1px solid var(--line); }
.curr-body { padding: 4px 24px 24px 84px; }
.curr-body ul { display: flex; flex-direction: column; gap: 10px; }
.curr-body li { display: flex; gap: 10px; font-size: 0.875rem; color: var(--ink-soft); align-items: flex-start; }
.curr-body svg { width: 16px; height: 16px; color: var(--purple); flex-shrink: 0; margin-top: 3px; }
.curr-body .curr-note { font-size: 0.875rem; color: var(--ink-faint); font-style: italic; margin-top: 6px; }

/* animación de apertura suave del <details> */
@media (prefers-reduced-motion: no-preference) {
  .curr-body { animation: curr-open 0.28s var(--ease); }
}
@keyframes curr-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 600px) {
  .curr-item summary { padding: 18px; gap: 12px; }
  .curr-body { padding: 0 18px 20px 18px; }
}

/* ---------- Para quién es ---------- */
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.audience-card { border-radius: var(--radius-lg); padding: 30px 26px; }
.audience-card.yes { background: var(--bg-alt); }
.audience-card.no { background: transparent; padding-inline: 4px; }
.audience-card h3 { font-size: 1.125rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.audience-card ul li { display: flex; gap: 10px; padding: 7px 0; font-size: 1rem; color: var(--ink-soft); align-items: flex-start; }
.audience-card svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.audience-card.yes svg { color: var(--purple); }
.audience-card.no svg { color: var(--ink-faint); }
@media (max-width: 780px) { .audience-grid { grid-template-columns: 1fr; } }

/* ---------- Instructor / prueba social ---------- */
.instructor { background: #fff; border-block: 1px solid var(--line); }
.proof-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: 80px;
  grid-template-areas: "foto ." "foto titulo" "foto texto" "foto ."; grid-template-rows: 1fr auto auto 1fr;
}
.proof-head { grid-area: titulo; }
.proof-body { grid-area: texto; }
/* Foto del instructor: apoyada en un bloque violeta, la gorra sobresale por arriba */
.proof-visual { grid-area: foto; position: relative; align-self: center; justify-self: center; width: 100%; max-width: 440px; aspect-ratio: 100 / 118; }
.proof-panel, .proof-frame { position: absolute; left: 0; right: 0; bottom: 0; top: 19%; border-radius: 14px; }
.proof-panel { background: var(--purple); overflow: hidden; }
.proof-panel::after { content: ""; position: absolute; width: 92%; aspect-ratio: 1; left: 12%; top: 6%; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.proof-frame { background: var(--lilac); transform: translate(18px, 18px); }
.proof-dots {
  position: absolute; left: -26px; top: 8%; width: 126px; height: 126px;
  background-image: radial-gradient(var(--purple-soft) 3px, transparent 3.5px); background-size: 18px 18px;
}
.proof-photo { position: absolute; z-index: 2; bottom: 0; left: 3%; width: 94%; height: auto; }
.proof-badge {
  position: absolute; z-index: 3; right: -14px; bottom: -4px; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); text-align: left;
}
.proof-badge img { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; }
.proof-badge strong { display: block; font-size: 1rem; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.proof-badge small { display: block; font-size: 0.8125rem; line-height: 1.35; color: var(--ink-soft); }
.proof-quote { margin: 24px 0 0; padding-left: 22px; border-left: 4px solid var(--purple); }
.proof-quote p { font-size: 1.75rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.proof-bio { margin-top: 22px; max-width: 60ch; font-size: 1rem; line-height: 1.7; color: var(--ink-soft); }
.proof-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; border-block: 1px solid var(--line); }
.proof-stats li { padding: 18px 14px; }
.proof-stats li:first-child { padding-left: 0; }
.proof-stats li + li { border-left: 1px solid var(--line); padding-left: 22px; }
.proof-stats strong { display: block; font-size: 2.125rem; font-weight: 700; line-height: 1.1; color: var(--purple-deep); font-variant-numeric: tabular-nums; }
.proof-stats span { display: block; margin-top: 4px; font-size: 0.875rem; line-height: 1.35; color: var(--ink-soft); }
.proof-cta { margin-top: 28px; }
.social-links { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.social-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-full);
  background: var(--bg-alt); font-size: 0.85rem; font-weight: 500; border: 1px solid var(--line);
  transition: border-color 0.2s, color 0.2s;
}
.social-link:hover { border-color: var(--purple); color: var(--purple-deep); }
.social-link svg { width: 16px; height: 16px; }
@media (max-width: 820px) {
  .proof-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "titulo" "foto" "texto"; grid-template-rows: auto auto auto; }
  .proof-visual { max-width: 360px; width: calc(100% - 28px); margin-top: 8px; }
  .proof-frame { transform: translate(12px, 12px); }
  .proof-dots { left: -12px; width: 90px; height: 90px; }
  .proof-badge { right: -12px; padding: 10px 14px 10px 10px; }
  .proof-badge img { width: 38px; height: 38px; }
  .proof-body { margin-top: 20px; }
  .proof-quote { padding-left: 16px; }
  .proof-quote p { font-size: 1.125rem; line-height: 1.5; }
  .proof-stats li { padding: 14px 8px; }
  .proof-stats li + li { padding-left: 14px; }
  .proof-stats strong { font-size: 1.75rem; }
  .proof-stats span { font-size: 0.8125rem; }
  .proof-cta { width: 100%; }
  .social-links { justify-content: center; }
}

/* ---------- Clase gratis ---------- */
.video-frame { max-width: 860px; margin: 0 auto; aspect-ratio: 80 / 43;border-radius: 14px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lg); }
.video-frame video { display: block; width: 100%; height: 100%; }

/* ---------- Formulario antes de la clase gratis ---------- */
.lead-gate { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 960px; margin: 0 auto; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.lead-preview { position: relative; aspect-ratio: 80 / 43;background: var(--bg-hero); }
.lead-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lead-lock { position: absolute; right: 14px; top: 14px; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; }
.lead-lock svg { width: 22px; height: 22px; }
.lead-form { display: flex; flex-direction: column; gap: 12px; padding: 24px 20px; }
.field label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"] { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--purple-soft); border-radius: var(--radius); }
.field input::placeholder { color: var(--ink-faint); opacity: 0.75; }
.field input:focus-visible { outline: 3px solid var(--purple); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--ink); border-width: 2px; }
.field-error { font-size: 0.8125rem; font-weight: 600; color: var(--ink); margin-top: 4px; }
.field-error:empty { display: none; }
.field .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-soft); line-height: 1.5; margin-bottom: 0; cursor: pointer; }
.consent input { width: 22px; height: 22px; flex-shrink: 0; margin: 0; accent-color: var(--purple); }
.link-button { background: none; border: 0; padding: 8px 0 0 32px; font-size: 0.8125rem; color: var(--purple-deep); text-decoration: underline; }
.demo-note { font-size: 0.8125rem; text-align: center; color: var(--ink-faint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.free-class { scroll-margin-top: 0; }
.btn-violet { background: var(--purple); color: #fff; }
.btn-violet:hover { background: var(--purple-deep); }
.btn-violet:disabled { opacity: 0.6; cursor: wait; }
/* con el formulario en pantalla hay una sola acción: la barra de compra se aparta */
.gate-visible .sticky-buy.is-visible { transform: translateY(110%); visibility: hidden; }
.is-typing .sticky-buy, .is-typing .to-top, .gate-visible .to-top { display: none; }
@media (min-width: 820px) {
  .lead-gate { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; }
  .lead-preview { aspect-ratio: auto; }
  .lead-form { padding: 28px; }
}
.privacy-dialog { width: min(520px, calc(100vw - 32px)); max-height: 85vh; padding: 24px; border: 0; border-radius: 14px; color: var(--ink); box-shadow: var(--shadow-lg); }
.privacy-dialog::backdrop { background: rgba(16, 16, 28, 0.55); }
.privacy-dialog h2 { font-size: 1.125rem; margin-bottom: 12px; }
.privacy-dialog p { font-size: 0.875rem; color: var(--ink-soft); margin-bottom: 10px; }
.privacy-dialog mark { background: var(--lilac); color: var(--ink); padding: 0 4px; border-radius: 4px; }

.newsletter-note { font-size: 0.8125rem; line-height: 1.55; text-align: center; color: var(--ink-faint); }
.newsletter-note .link-button { display: inline-block; padding: 6px 4px; font-size: inherit; }
.email-hint { text-align: left; padding: 6px 0 0; font-size: 0.875rem; }
.video-error { max-width: 860px; margin: 8px auto 0; text-align: center; }
.section-cta[hidden], .class-banner[hidden] { display: none; }
.class-banner { display: flex; flex-direction: column; align-items: stretch; gap: 18px; max-width: 860px; margin: 16px auto 0; padding: 24px 20px; border-radius: 14px; background: var(--ink); color: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.class-banner h3 { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: #fff; text-wrap: balance; }
.class-banner p { margin: 6px 0 0; font-size: 0.875rem; line-height: 1.55; color: var(--lilac); }
.class-banner .btn { flex-shrink: 0; }
@media (min-width: 780px) { .class-banner { flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; padding: 24px 28px; text-align: left; } }
.banner-visible .sticky-buy.is-visible { transform: translateY(110%); visibility: hidden; }

/* ---------- Por dentro del curso ---------- */
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.module-cover { display: none; position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--lilac); }
.module-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.module-cover b { position: absolute; top: 4px; right: 22px; font-size: 9.375rem; line-height: 1.1; font-weight: 700; color: var(--purple-soft); opacity: 0.55; }
.module-cover-text { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; padding: 32px; }
.module-cover-text small { font-size: 0.875rem; font-weight: 600; color: var(--purple-deep); }
.module-cover-text strong { margin-top: 6px; font-size: 1.75rem; line-height: 1.2; color: var(--ink); }
.module-cover-text > span { margin-top: 8px; font-size: 1rem; color: var(--ink-soft); }
/* con foto: texto blanco sobre un degradado oscuro para que siempre se lea */
.module-cover.has-photo b { display: none; }
.module-cover.has-photo .module-cover-text { padding-top: 96px; background: linear-gradient(to bottom, rgba(16, 16, 28, 0), rgba(16, 16, 28, 0.72) 45%, rgba(16, 16, 28, 0.9)); }
.module-cover.has-photo .module-cover-text * { color: #fff; }
@media (min-width: 960px) {
  .course-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
  .module-cover { display: block; position: sticky; top: 24px; }
}
/* pantallas medianas: el título del panel es más pequeño para no chocar con el número */
@media (min-width: 960px) and (max-width: 1199px) {
  .module-cover b { font-size: 6rem; }
  .module-cover-text { padding: 24px; }
  .module-cover-text strong { font-size: 1.125rem; }
}

/* ---------- Cómo funciona (dentro de la oferta) ---------- */
.buy-steps { margin-top: 0; }
.buy-steps h3 { font-size: 1.125rem; text-align: center; margin-bottom: 22px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.step-num { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--lilac-light); color: var(--purple); font-weight: 700; font-size: 1rem; }
.steps h4 { font-size: 1rem; margin: 0 0 2px; font-weight: 600; }
.steps p { font-size: 0.875rem; color: var(--ink-soft); }
@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .buy-steps h3 { text-align: left; }
}

/* ---------- Botón al final de sección ---------- */
.section-cta { display: flex; justify-content: center; margin-top: 32px; }
@media (max-width: 639px) { .section-cta .btn { width: 100%; } }


/* ---------- Oferta: lo que recibes + precio en una sola tarjeta ---------- */
.offer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.offer-list { align-self: center; padding: 18px 12px; }
.offer-list h3 { font-size: 1.125rem; margin-bottom: 18px; }
.includes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: -10px -12px; }
.includes li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; }
.include-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--lilac-light); color: var(--purple); }
.include-icon svg { width: 22px; height: 22px; }
.includes h4 { font-size: 1rem; font-weight: 600; margin: 0 0 2px; }
.includes p { font-size: 0.875rem; line-height: 1.55; color: var(--ink-soft); }
@media (min-width: 640px) { .includes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 4px; } }
/* precio: panel oscuro para que el precio y el botón sean lo primero que se ve */
.price-card { padding: 28px 22px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.price-card .btn { padding-inline: 12px; }
@media (max-width: 359px) { .price-card { padding-inline: 14px; } .price-card .btn { padding-inline: 8px; gap: 6px; } }
.price-name { font-size: 1.125rem; margin-bottom: 12px; color: #fff; }
.price-now { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 6px; }
.price-now .amount { font-size: 3.375rem; font-weight: 700; line-height: 1; color: #fff; }
.price-now .unit { color: var(--lilac); font-weight: 400; font-size: 0.875rem; }
.price-currency { margin-bottom: 20px; font-size: 0.8125rem; line-height: 1.5; color: var(--lilac); }
.price-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 0.8125rem; color: var(--lilac); }
.price-secure svg { width: 15px; height: 15px; }
.price-anchor { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.875rem; line-height: 1.55; color: var(--lilac); }
@media (min-width: 640px) { .offer-list { padding: 28px; } .price-card { padding: 32px; } }
@media (min-width: 960px) { .offer { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: 14px; } }

/* ---------- Bono: grupo de WhatsApp con un teléfono que sobresale del bloque ---------- */
.group-bonus { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; min-height: 380px; margin: 128px 0; padding: 48px 56px; border-radius: 14px; background: var(--purple); color: #fff; }
.group-bonus::after { content: ""; position: absolute; right: 46px; top: 50%; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); transform: translateY(-50%); }
.group-copy { align-self: center; max-width: 520px; }
.group-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%; background: #fff; color: var(--purple); }
.group-icon svg { width: 26px; height: 26px; }
.group-bonus h3 { font-size: 1.75rem; font-weight: 700; color: #fff; }
.group-copy > p { margin-top: 12px; font-size: 1rem; line-height: 1.65; }
.group-points { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.group-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; line-height: 1.55; }
.group-points svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.wa-stage { position: relative; z-index: 1; }
.wa-phone { position: absolute; left: 50%; top: 50%; width: 296px; height: 544px; padding: 10px; border-radius: 46px; background: var(--ink); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28), 0 44px 70px -28px rgba(16, 16, 28, 0.6); transform: translate(-50%, -50%) rotate(4deg); }
.wa-phone::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 18px; width: 78px; height: 22px; border-radius: 12px; background: var(--ink); transform: translateX(-50%); }
.wa-screen { display: flex; flex-direction: column; height: 100%; border-radius: 36px; overflow: hidden; background: var(--lilac-light); color: var(--ink); text-align: left; }
.wa-status { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px 6px 24px; background: #fff; font-size: 0.8125rem; font-weight: 600; line-height: 1.4; }
.wa-status svg { width: 40px; height: 13px; }
.wa-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px 10px 8px; background: #fff; border-bottom: 1px solid var(--line); }
.wa-back { width: 22px; height: 22px; flex-shrink: 0; color: var(--purple); }
.wa-head img { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.wa-head b { display: block; font-size: 0.875rem; line-height: 1.3; }
.wa-head small { display: block; font-size: 0.8125rem; line-height: 1.3; color: var(--ink-faint); }
.wa-chat { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 0; padding: 10px 12px; background-image: radial-gradient(var(--lilac) 1.5px, transparent 2px); background-size: 16px 16px; }
.wa-date { align-self: center; padding: 3px 10px; border-radius: 8px; background: #fff; font-size: 0.8125rem; line-height: 1.4; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.wa-msg { max-width: 88%; padding: 7px 10px 5px; border-radius: 12px; font-size: 0.8125rem; line-height: 1.42; box-shadow: 0 1px 2px rgba(16, 16, 28, 0.12); }
.wa-msg.is-in { align-self: flex-start; border-top-left-radius: 3px; background: #fff; }
.wa-msg.is-out { align-self: flex-end; border-top-right-radius: 3px; background: var(--purple); color: #fff; }
.wa-msg b { display: block; color: var(--purple-deep); }
.wa-msg small { display: flex; float: right; align-items: center; gap: 3px; margin: 3px 0 0 10px; font-size: 0.8125rem; line-height: 1.2; color: var(--ink-faint); }
.wa-msg.is-out small { color: var(--lilac); }
.wa-msg small svg { width: 15px; height: 15px; }
.wa-input { display: flex; align-items: center; gap: 8px; padding: 10px 12px 18px; background: #fff; }
.wa-input span { flex: 1; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 20px; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-faint); }
.wa-input i { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--purple); color: #fff; }
.wa-input svg { width: 18px; height: 18px; }
/* los mensajes entran uno tras otro la primera vez que se ve el teléfono (sin "reducir movimiento") */
.wa-stage.reveal-pending:not(.is-visible) .wa-msg { opacity: 0; }
.wa-stage.reveal-pending.is-visible .wa-msg { animation: wa-in 0.45s var(--ease) both; }
.wa-stage.is-visible .wa-msg:nth-of-type(1) { animation-delay: 0.35s; }
.wa-stage.is-visible .wa-msg:nth-of-type(2) { animation-delay: 1.05s; }
.wa-stage.is-visible .wa-msg:nth-of-type(3) { animation-delay: 1.85s; }
.wa-stage.is-visible .wa-msg:nth-of-type(4) { animation-delay: 2.55s; }
@keyframes wa-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  /* celular: bloque a todo el ancho y el teléfono sale por abajo */
  .group-bonus { grid-template-columns: minmax(0, 1fr); gap: 36px; min-height: 0; margin: 40px -20px 128px; padding: 40px 20px 0; border-radius: 0; }
  .group-bonus::after { right: 50%; top: auto; bottom: 40px; width: min(360px, 94vw); height: min(360px, 94vw); transform: translateX(50%); }
  .group-copy { justify-self: center; }
  .wa-stage { justify-self: center; margin-bottom: -80px; }
  .wa-phone { position: relative; left: auto; top: auto; width: min(296px, 84vw); transform: rotate(3deg); }
}

/* ---------- Opiniones ---------- */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars svg { width: 18px; height: 18px; }
.stars svg.on { fill: var(--purple); }
.stars svg.off { fill: var(--lilac); }
.hero-rating { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; font-size: 0.875rem; font-weight: 500; color: var(--ink-soft); }
@media (min-width: 640px) { .hero-rating { justify-content: flex-start; } }
@media (min-width: 640px) and (max-width: 959px) { .hero-rating { justify-content: center; } }
.reviews-summary { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; font-weight: 500; color: var(--ink-soft); }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.reviews li { display: flex; }
.review { display: flex; flex-direction: column; gap: 12px; width: 100%; margin: 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { font-size: 1rem; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.review figcaption { font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft); }
@media (max-width: 959px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .reviews { grid-template-columns: minmax(0, 1fr); } .reviews-summary { justify-content: flex-start; } }

/* ---------- Garantía ---------- */
section.guarantee-section { padding-top: 0 !important; }
.guarantee { display: flex; gap: 22px; align-items: flex-start; max-width: 780px; margin: 0 auto; padding: 28px; background: #fff; border: 2px solid var(--purple); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.guarantee-icon { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; background: var(--lilac-light); color: var(--purple); }
.guarantee-icon svg { width: 30px; height: 30px; }
.guarantee h2 { font-size: 1.75rem; margin-bottom: 8px; }
.guarantee p { color: var(--ink-soft); font-size: 1rem; line-height: 1.65; }
@media (max-width: 639px) { .guarantee { flex-direction: column; gap: 14px; padding: 22px; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-col { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 960px) {
  /* dos columnas independientes: abrir una pregunta no mueve la otra columna */
  .faq-list { max-width: none; flex-direction: row; align-items: flex-start; gap: 16px; }
  .faq-col { flex: 1 1 0; min-width: 0; }
}
.faq-item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; font-weight: 500; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .curr-chevron { color: var(--purple); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-body { padding: 4px 22px 20px; color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }

/* ---------- CTA final ---------- */
.final-cta { background: linear-gradient(180deg, var(--bg-alt), var(--lilac)); text-align: center; }
.final-cta .lead { margin-inline: auto; }
.final-cta .btn-primary { margin-top: 28px; }
.final-cta { padding-bottom: 40px; }
.final-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--lilac); }
.final-brand img { height: 24px; width: auto; }
.final-brand p { max-width: 60ch; font-size: 0.8125rem; color: var(--ink-faint); }
@media (max-width: 480px) { .final-cta .btn-primary { width: 100%; padding-inline: 16px; } }

/* ---------- Barra flotante de compra (móvil) ---------- */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff;
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(16,16,28,0.12);
  padding: 12px 16px; display: none; align-items: center; justify-content: space-between; gap: 12px;
  transform: translateY(110%); transition: transform 0.25s ease-in;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.sticky-buy.is-visible { transform: translateY(0); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.sticky-buy .price-mini { font-weight: 700; font-size: 1.125rem; }
.sticky-buy .price-mini em { font-style: normal; font-weight: 400; font-size: 0.8125rem; color: var(--ink-faint); }
.sticky-buy .price-mini small { display: block; font-size: 0.8125rem; color: var(--ink-faint); font-weight: 400; }
@media (max-width: 780px) { .sticky-buy { display: flex; } main > section.final-cta { padding-bottom: 104px; } }

/* ---------- Volver arriba ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); color: var(--purple);
  display: flex; align-items: center; justify-content: center; z-index: 80; opacity: 0; pointer-events: none;
  transform: translateY(10px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }
/* en celular la barra de compra ya basta: la flecha tapaba textos */
@media (max-width: 780px) { .to-top { display: none; } }
/* preguntas: en celular se ven las 5 de compra y un botón muestra el resto */
.faq-more { display: flex; width: 100%; max-width: 780px; margin: 16px auto 0; border: 1.5px solid var(--purple); color: var(--purple-deep); }
@media (max-width: 780px) {
  .faq-list.is-collapsed .faq-col:first-child .faq-item:nth-child(n+6), .faq-list.is-collapsed .faq-col + .faq-col { display: none; }
}
@media (min-width: 781px) { .faq-more { display: none; } }

/* ---------- Utilidades responsive generales ---------- */
@media (max-width: 780px) {
  section:not(.hero) { padding: 52px 0; }
  .section-head, .section-head.center { text-align: left; margin-bottom: 28px; }
  .section-head.center .lead { margin-inline: 0; }
}

/* ---------- Efecto de tarjetas: suben, sombra suave y línea violeta abajo ---------- */
.curr-item, .faq-item, .includes li, .transform-list li { transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; }
.transform-col[data-reveal] { transition: opacity 0.6s var(--ease), transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; }
/* computadora: al pasar el cursor (o al llegar con el teclado) */
@media (hover: hover) and (pointer: fine) {
  .curr-item:hover, .faq-item:hover, .includes li:hover, .transform-col[data-reveal]:hover,
  .curr-item:focus-within, .faq-item:focus-within {
    transform: translateY(-7px);
    box-shadow: inset 0 -3px 0 var(--purple), 0 20px 50px -14px rgba(16, 16, 28, 0.28);
  }
  .includes li:hover, .transform-col[data-reveal]:hover { background-color: #fff; }
}
/* celular: js/main.js marca con .is-focus la tarjeta que queda en el centro; también al tocarla */
.curr-item.is-focus, .faq-item.is-focus, .includes li.is-focus, .transform-list li.is-focus,
.is-touch .curr-item:active, .is-touch .faq-item:active {
  box-shadow: inset 0 -3px 0 var(--purple), 0 16px 36px -14px rgba(16, 16, 28, 0.3);
}
.curr-item.is-focus, .faq-item.is-focus, .includes li.is-focus { transform: translateY(-4px); }
.includes li.is-focus { background-color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .curr-item, .faq-item, .includes li, .transform-list li, .transform-col[data-reveal] { transition: none; }
  .curr-item:hover, .faq-item:hover, .includes li:hover, .transform-col[data-reveal]:hover,
  .curr-item:focus-within, .faq-item:focus-within { transform: none; }
}
