:root {
  --red: #c70a0d;
  --orange: #f2811d;
  --teal: #1c7b7f;
  --legal-bg: #1b4357;
  --royal-blue: #3B5BDB;
  --muted: #65676b;
  --bg: #f6f6ff;
  --text: #000000;
  --green: #249c00;
  --green-alt: #53b544;
  --green-alt-hover: #46963a;
  --headline-font: 'Montserrat', sans-serif;
  --content-font: 'Figtree', sans-serif;
  --content-width: 1170px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--content-font);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

.topbar {
  background-color: var(--red);
  padding: 14px 16px;
  text-align: center;
}

.topbar p {
  margin: 0;
  color: #fff;
  font-family: var(--headline-font);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 15px;
}

main {
  padding: 32px 20px 0;
}

.hero {
  max-width: var(--content-width);
  margin: 0 auto;
}

.headline {
  font-family: var(--headline-font);
  font-weight: 800;
  font-size: clamp(26px, 4.2vw, 44px);
  line-height: 1.3;
  margin: 0 0 24px;
  text-align: center;
}

.headline .hl { color: var(--royal-blue); }

.headline-sub {
  display: block;
  font-family: var(--content-font);
  font-weight: 600;
  font-style: normal;
  color: var(--muted);
  font-size: clamp(16px, 4.2vw, 34px);
  margin-top: 12px;
}

.hl-underline {
  text-decoration: underline;
  text-decoration-color: var(--royal-blue);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.video-wrap {
  border-radius: 6px;
  overflow: hidden;
}

.btn-container {
  text-align: center;
  margin-top: 20px;
}

#btn-unirme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  width: 500px;
  max-width: 100%;
  height: 60px;
  padding: 0 40px;
  background-color: var(--green-alt);
  color: #fff;
  font-family: var(--content-font);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: 0.6px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.8s ease;
}

#btn-unirme:hover { transform: scale(1.05); background-color: var(--green-alt-hover); }

/* El estado oculto de arriba (opacity + visibility + pointer-events) es a proposito
   y NO se saca: si el paquete de tracking no llega a cargar, el CTA queda oculto y
   sobre todo NO clickeable, en vez de quedar visible para quien todavia no vio la
   oferta. Quien lo revela es `src/superpowers/reveal.js`, con estilos inline. */

@media (max-width: 540px) {
  #btn-unirme {
    width: 90vw;
    font-size: 20px;
    letter-spacing: 0.5px;
  }
}

.watch {
  text-align: center;
  font-weight: 700;
  margin: 16px auto 18px;
}

.micro {
  text-align: center;
  font-size: 13px;
  opacity: 0.78;
  margin-top: 12px;
}

.byline {
  margin-top: 28px;
}

.byline p {
  margin: 0 0 4px;
  font-size: 14px;
  color: #444;
}

.bio {
  font-family: var(--content-font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  margin: 20px 0 32px;
}

.bio strong { font-weight: 700; }

/* En la página original este temporizador existe y corre en segundo plano
   (efecto de urgencia interno), pero es completamente transparente/invisible
   para la visitante: color y fondo en rgba(0,0,0,0). Se replica igual aquí. */
.countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 0;
}

.timer-box {
  background-color: transparent;
  border: 0;
  padding: 10px 18px;
  text-align: center;
  min-width: 70px;
}

.timer-box .count {
  font-family: var(--headline-font);
  font-weight: 800;
  font-size: 32px;
  color: transparent;
}

.timer-box .label {
  font-size: 15px;
  color: transparent;
}

.testimonials-section {
  background-color: #ffffff;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 20px 20px 40px;
  text-align: center;
}

.section-title {
  font-family: var(--content-font);
  font-weight: 700;
  color: var(--red);
  font-size: clamp(24px, 4vw, 32px);
  margin: 0 0 28px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 0 auto 28px;
  max-width: var(--content-width);
}

.testimonial-grid img {
  width: 100%;
  border-radius: 12px;
}

/* Testimonios de TEXTO (nombre + comentario), alternativa a las capturas de imagen.
   Ver src/components/Testimonials.astro y su prop `textItems`. */
.testimonial-text-grid {
  display: grid;
  gap: 16px;
  margin: 0 auto 28px;
  max-width: 900px;
  text-align: left;
}

.testimonial-card {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: var(--red);
}

.testimonial-body p {
  margin: 6px 0 10px;
  line-height: 1.55;
}

.testimonial-meta {
  font-size: 12px;
  color: var(--muted);
}

footer {
  background-color: var(--legal-bg);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 28px 20px 24px;
}

footer p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 11px;
  line-height: 1.6;
  color: #C9CFD6;
  text-align: center;
}

footer p + p {
  margin-top: 10px;
}

footer .footer-links {
  font-size: 12px;
  color: #fff;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* ── MODAL DE FORMULARIO ────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27, 67, 87, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2147483647; /* por encima del sticky/floating del player VTurb */
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeInOverlay 0.25s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(27, 67, 87, 0.18), 0 4px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  background: linear-gradient(135deg, var(--teal) 0%, var(--legal-bg) 100%);
  padding: 28px 32px 24px;
  text-align: center;
  position: relative;
}

.modal-header-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--headline-font);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.modal-header h2 {
  font-family: var(--headline-font);
  font-weight: 800;
  font-size: clamp(18px, 3vw, 24px);
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.modal-close:hover { background: rgba(255, 255, 255, 0.35); }

.modal-body {
  padding: 24px 28px 28px;
  background: linear-gradient(180deg, var(--bg) 0%, #ffffff 100%);
}

.modal-body iframe {
  width: 100%;
  height: 520px;
  border: none;
  border-radius: 10px;
  display: block;
}

.modal-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: #888;
}

.modal-trust span { font-size: 15px; }

@media (max-width: 560px) {
  .modal-card { border-radius: 14px; }
  .modal-header { padding: 22px 20px 18px; }
  .modal-body { padding: 18px 16px 22px; }
  .modal-body iframe { height: 560px; }
}
