/* The sales page at /programa/comprar/. Builds on ../programa.css (tokens,
   buttons, form fields, the .auth-wrap card used by the return screens). */

html { scroll-behavior: smooth; }
.sales { overflow-x: hidden; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 720px; }
section.band { padding: 5rem 0; }
.band-white { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.sales h2 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1;
  font-size: clamp(2rem, 4.6vw, 2.9rem); margin: 0.5rem 0 1rem;
}
.sales h1, .sales h2, .sales h3 { font-variant-numeric: lining-nums; }
.sales h2 em { font-style: italic; color: var(--accent); }
.lead { font-size: 1.1rem; font-weight: 300; color: var(--text-soft); line-height: 1.7; max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ── Top bar ── */
.sales-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.sales-top .links { display: flex; align-items: center; gap: 1rem; font-size: 0.88rem; }
.sales-top .links a.plain { color: var(--text-soft); text-decoration: none; }
.sales-top .links a.plain:hover { color: var(--accent); }

/* ── Hero ── */
.hero { position: relative; padding: 3rem 0 3.6rem; text-align: center; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -30%; right: -12%; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%); opacity: 0.8; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -35%; left: -10%; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, var(--warm) 0%, transparent 70%); opacity: 0.6; pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em; line-height: 1.04;
  font-size: clamp(2.6rem, 7vw, 4.6rem); max-width: 820px; margin: 0.8rem auto 0;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-cta { margin-top: 1.6rem; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }

/* ── Video del hero (vertical, 9:16) ── */
.hero-video {
  position: relative; margin: 1.6rem auto 0;
  height: min(52vh, 560px); height: min(52svh, 560px);
  aspect-ratio: 9 / 16; max-width: 100%;
  border-radius: 22px; overflow: hidden; background: #141412;
  box-shadow: 0 18px 50px rgba(26,26,24,0.18);
}
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; left: 50%; top: 53%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding-left: 5px;
  background: rgba(255,255,255,0.94); color: var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,0.28); transition: transform 0.2s ease;
}
.video-play::before {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7); animation: ring 2s ease-out infinite;
}
@keyframes ring { from { transform: scale(0.9); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.video-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.hero-video.playing .video-play { display: none; }
.hero-price { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.45rem 0.8rem; }
.hero-price .price-old { font-size: 1.15rem; }
.hero-price .price-now { font-family: var(--serif); font-variant-numeric: lining-nums; font-size: 2rem; line-height: 1; }
.btn-big { font-size: 1.05rem; padding: 1.05rem 2rem; border-radius: 14px; }
.btn-big:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(94,122,82,0.3); }
.cta-note { font-size: 0.9rem; color: var(--text-soft); }

/* ── Precio de lanzamiento (hero, bloque de pago, barra fija) ── */
.price-old {
  color: var(--text-faint); font-weight: 400;
  text-decoration: line-through; text-decoration-thickness: 1.5px;
}
.price-now { color: var(--accent-hover); font-weight: 600; font-size: 1.05rem; }
.launch-tag {
  display: inline-block; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.03em;
  color: var(--accent-hover); background: var(--accent-light);
  border-radius: 100px; padding: 0.32rem 0.85rem;
}
/* ── El problema ── */
.turn { margin-top: 2rem; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.3; max-width: 720px; }
.turn em { font-style: italic; color: var(--accent); }

/* ── Lo que vas a aprender ── */
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.4rem; }
.outcome { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.outcome .ico {
  width: 40px; height: 40px; border-radius: 11px; background: var(--accent-light); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.9rem;
}
.outcome h3 { font-size: 1.02rem; font-weight: 500; line-height: 1.35; margin-bottom: 0.35rem; }
.outcome p { font-size: 0.92rem; color: var(--text-soft); font-weight: 300; line-height: 1.55; }

/* ── Temario ── */
.temario { margin-top: 2.2rem; display: grid; gap: 0.7rem; }
.temario details { background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.temario summary {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; cursor: pointer; list-style: none;
}
.temario summary::-webkit-details-marker { display: none; }
.temario .num {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-light); color: var(--accent-hover);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.9rem;
}
.temario .mt { flex: 1; min-width: 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.temario .mm { flex: none; font-size: 0.82rem; color: var(--text-soft); white-space: nowrap; }
.temario .chev { flex: none; color: var(--text-soft); transition: transform 0.2s ease; }
.temario details[open] .chev { transform: rotate(180deg); }
.temario ol { list-style: none; border-top: 1px solid var(--border); padding: 0.4rem 0; }
.temario li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 1.3rem 0.6rem 4.4rem; font-size: 0.96rem; line-height: 1.4; }
.temario li span { flex: none; font-size: 0.8rem; color: var(--text-faint); white-space: nowrap; }

/* ── Henry ── */
.about { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2.4rem; align-items: center; }
.about img {
  width: 220px; height: 220px; border-radius: 28px; object-fit: cover; object-position: center top;
  box-shadow: 0 14px 40px rgba(26,26,24,0.12);
}
.about p { font-size: 1.05rem; font-weight: 300; line-height: 1.75; color: var(--text); margin-top: 0.9rem; max-width: 600px; }

/* ── Oferta + formulario ── */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.offer-list { list-style: none; display: grid; gap: 0.8rem; margin-top: 1.6rem; }
.offer-list li { position: relative; padding-left: 1.9rem; font-size: 1.02rem; line-height: 1.5; }
.offer-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.checkout { background: var(--white); border: 1px solid var(--border); border-radius: 22px; padding: 2rem; box-shadow: 0 18px 50px rgba(26,26,24,0.08); }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 0.9rem; }
.checkout .price-old { font-family: var(--serif); font-variant-numeric: lining-nums; font-size: 1.7rem; }
.checkout .price { font-size: 3rem; }
.checkout .launch-tag { margin-top: 0.7rem; }
.checkout .price-note { font-size: 0.9rem; margin: 0.8rem 0 1.4rem; }
.offer-intro { margin-top: 1.6rem; font-size: 1.02rem; font-weight: 500; }
.offer-intro + .offer-list { margin-top: 0.9rem; }
.checkout .legal { margin-top: 1rem; }
.secure { display: flex; align-items: center; justify-content: center; gap: 0.45rem; font-size: 0.82rem; color: var(--text-soft); margin-top: 0.9rem; }

/* ── FAQ ── */
.faq { margin-top: 2rem; display: grid; gap: 0.6rem; }
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: 14px; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.05rem 1.3rem; cursor: pointer; list-style: none; font-weight: 500; font-size: 1.02rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 1.4rem; font-weight: 300; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { padding: 0 1.3rem 1.2rem; font-size: 0.97rem; font-weight: 300; color: var(--text-soft); line-height: 1.7; }


/* ── Cierre (dentro de la sección de preguntas) ── */
.closing-card {
  margin-top: 3rem; padding: 2.8rem 1.6rem; border-radius: 22px; text-align: center;
  background: var(--text); color: var(--white);
}
.closing-card h2 { margin-top: 0; }
.closing-card h2 em { color: #B9CDB0; }
.closing-card .lead { color: #C9C6BD; margin: 0 auto 1.8rem; }
.closing-card .btn-primary { background: var(--white); color: var(--text); }
.closing-card .btn-primary:hover { background: var(--accent-light); }

.sales-foot { padding: 2rem 1.5rem 2.4rem; text-align: center; font-size: 0.78rem; color: var(--text-faint); line-height: 1.7; }
.sales-foot a { color: var(--text-soft); }

/* ── Barra fija (móvil) ── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: none; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(26,26,24,0.08);
  transform: translateY(110%); transition: transform 0.25s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .p { font-family: var(--serif); font-variant-numeric: lining-nums; font-size: 1.5rem; font-weight: 600; line-height: 1; }
.sticky-cta .p .price-old { font-size: 1.05rem; margin-right: 0.15rem; }
.sticky-cta .p small { display: block; max-width: 15rem; line-height: 1.3; font-family: var(--sans); font-size: 0.72rem; font-weight: 400; color: var(--text-soft); margin-top: 0.2rem; }
.sticky-cta .btn { padding: 0.8rem 1.3rem; }

@media (max-width: 860px) {
  section.band { padding: 3.6rem 0; }
  .outcomes, .offer { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; text-align: center; gap: 1.6rem; }
  .about img { margin: 0 auto; width: 160px; height: 160px; }
  .about p { margin-left: auto; margin-right: auto; }
  .sticky-cta { display: flex; }
  .sales-foot { padding-bottom: 6.5rem; }   /* room for the fixed bar */
}
@media (max-width: 640px) {
  .wrap { padding: 0 1rem; }
  .hero { padding: 1.6rem 0 2.6rem; }
  .hero h1 { font-size: clamp(2.1rem, 9.4vw, 2.6rem); }
  .hero-video { margin-top: 1.2rem; }
  .video-play { width: 62px; height: 62px; top: 52%; }
  .video-play svg { width: 24px; height: 24px; }
  .video-play::before { inset: -7px; }
  .sales-top { padding: 0.7rem 1rem; }
  .sales-top .links a.plain { display: none; }
  .temario .mm { display: none; }
  .temario li { padding-left: 1.3rem; }
  .checkout { padding: 1.5rem 1.2rem; }
}

/* Clase gratis, justo debajo del video del hero */
.free-band { padding-top: 1rem; }
.free-class { margin: 1.6rem 0 1.8rem; border-radius: 16px; overflow: hidden; background: #141412; box-shadow: 0 14px 40px rgba(26,26,24,0.16); aspect-ratio: 16 / 9; }
.free-class video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Antes y después junto al video del hero (25/10) */
.hero-media { margin: 1.6rem auto 0; display: flex; align-items: center; justify-content: center; gap: 2rem; }
.hero-media .hero-video { margin: 0; }
.hero-proof { width: 340px; text-align: left; }
.hero-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.hero-ba figure { position: relative; margin: 0; }
.hero-ba img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: 16px; box-shadow: 0 10px 30px rgba(26,26,24,0.14); }
.hero-ba figcaption { position: absolute; left: 0.5rem; bottom: 0.5rem; padding: 0.15rem 0.6rem; border-radius: 8px; background: rgba(250,250,247,0.92); font-size: 0.82rem; color: var(--text); }
.hero-story { margin-top: 0.9rem; font-size: 1.05rem; line-height: 1.5; color: var(--text); }
.hero-story span { color: var(--accent); font-weight: 500; }
@media (max-width: 760px) {
  /* Celular (25/10, Henry): primero el antes y después grande, que se vea el
     cuerpo; debajo el video en autoplay invita a bajar y verlo. */
  .hero { padding-top: 1.4rem; }
  .hero h1 { font-size: 1.95rem; margin-top: 0; }
  .hero-story span { display: block; }
  .hero-media { flex-direction: column; align-items: center; gap: 0.7rem; margin-top: 0.8rem; }
  .hero-proof { width: 100%; max-width: 420px; text-align: center; }
  .hero-ba img { aspect-ratio: 4 / 5; object-position: center 25%; }
  .hero-story { margin-top: 0.5rem; font-size: 0.95rem; line-height: 1.35; }
  .hero-media .hero-video { height: 400px; }
}

/* Al terminar: 4 bloques compactos debajo de "Hola, soy Henry" (25/10) */
.outcomes-title { margin-top: 2.6rem; font-family: var(--serif); font-weight: 600; font-size: 1.6rem; text-align: center; }
.outcomes.outcomes-4 { grid-template-columns: repeat(4, 1fr); margin-top: 1.2rem; gap: 0.8rem; }
.outcomes-4 .outcome { padding: 1.1rem; }
.outcomes-4 .outcome p { font-size: 0.88rem; line-height: 1.5; }
@media (max-width: 860px) {
  .outcomes.outcomes-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .outcomes-4 .outcome { padding: 0.85rem; }
  .outcomes-4 .outcome .ico { display: none; }
  .outcomes-4 .outcome h3 { font-size: 0.95rem; }
  .outcomes-4 .outcome p { font-size: 0.82rem; }
}

/* Video del hero en autoplay silencioso + botón para activar el sonido (25/10) */
.video-sound {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
  padding: 0.75rem 1.1rem; border: none; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.95); color: var(--text); font: 500 0.92rem var(--sans);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); animation: pulse 2.2s ease-in-out infinite;
}
.video-sound svg { flex: none; color: var(--accent); }
@keyframes pulse { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.05); } }
.hero-video.playing .video-sound { display: none; }
@media (max-width: 760px) { .video-sound { font-size: 0.85rem; padding: 0.65rem 0.95rem; } }
/* Autoplay bloqueado (07/11): el botón va al centro, más grande, como play. */
.hero-video.stopped .video-sound {
  bottom: auto; top: 50%; transform: translate(-50%, -50%);
  font-size: 1rem; padding: 0.85rem 1.3rem; animation: none;
}

/* Sin "Pago único" (13/11): el botón guarda el aire que esa línea le daba. */
.checkout > .btn-block { margin-top: 1.4rem; }
