/* ==========================================================================
   La Novena Ordenada a San Judas Tadeo — VSL page styles
   Mobile-first, vertical. System fonts only. Single file, no CDN.
   ========================================================================== */

:root {
  --cream: #f6f1e6;
  --cream-2: #efe6d2;
  --ink: #26221a;
  --ink-soft: #55503f;
  --gold: #a9812f;
  --gold-dark: #7c5f22;
  --line: #ddd2b3;
  --red: #9a3b32;
  --green: #2f6b45;
  --white: #fffdf8;
  --radius: 10px;
  --maxw: 560px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body { line-height: 1.5; }

.oculto { display: none !important; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------- Faixa superior ---------- */
.faixa-topo {
  background: var(--ink);
  color: var(--cream-2);
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  padding: 8px 10px;
}

/* ---------- Headline ---------- */
.headline-area {
  padding: 22px 18px 14px;
  text-align: center;
}

.headline-area h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}

.headline-sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Player ---------- */
.player-area {
  padding: 6px 14px 8px;
}

.player-frame {
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(38, 34, 26, 0.18);
  border: 1px solid var(--line);
}

.player-45 {
  position: relative;
  width: 100%;
  padding-top: 125%; /* 4:5 (1080x1350) */
  background: #000;
}

.player-45 video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Overlay "toque para escuchar/ver" — cubre el video hasta el primer toque */
.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 4, 0.4);
  transition: opacity 0.25s ease;
}

.player-overlay.oculto {
  opacity: 0;
  pointer-events: none;
}

.player-overlay-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(10, 8, 4, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  padding: 18px 22px;
  color: #fffdf8;
  font-size: 13.5px;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  max-width: 78%;
}

.player-overlay-btn svg { color: #fffdf8; }

/* Botón discreto de pausa/play — sin barra de progreso */
.player-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(10, 8, 4, 0.5);
  color: #fffdf8;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.player-nota {
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---------- Bloque de oferta ---------- */
.oferta {
  padding: 10px 16px 40px;
}

.oferta.revelada { animation: aparecer 0.5s ease-in; }

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

.separador {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 26px auto;
}

/* ---------- Oferta rápida (pegada al player, mismo CTA repetido más abajo) ---------- */
.oferta-rapida {
  padding-top: 4px;
}

.precio-linea {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 0 0 12px;
}

.precio-antes-mini {
  font-size: 13px;
  color: var(--red);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: 0.85;
}

.precio-ahora-mini {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
}

.precio-ahora-mini small {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
}

.cta-soporte {
  text-align: center;
  font-size: 11px;
  color: var(--ink-soft);
  margin: 8px 0 0;
}

.capa-producto {
  max-width: 220px;
  margin: 0 auto 18px;
  display: block;
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(38, 34, 26, 0.22);
}

.oferta h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  text-align: center;
  margin: 0 0 14px;
  color: var(--ink);
}

.lista-incluye {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.lista-incluye li {
  padding: 11px 14px;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.lista-incluye li:last-child { border-bottom: none; }

.lista-incluye .check {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Ancoraje de precio ---------- */
.precio-box {
  text-align: center;
  margin: 28px 0 10px;
}

.precio-antes {
  font-size: 16px;
  color: var(--red);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: 0.85;
}

.precio-ahora {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--green);
  margin: 2px 0 0;
}

.precio-ahora small {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-soft);
}

/* ---------- Bloque conversión de moneda ---------- */
.conversion-moneda {
  background: var(--cream-2);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  margin: 16px 0;
}

.conversion-moneda strong { color: var(--ink); }

/* ---------- Métodos de pago ---------- */
.metodos-pago {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 14px 0 22px;
}

.metodos-pago span {
  font-size: 11.5px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 11px;
  color: var(--ink-soft);
}

/* ---------- CTA ---------- */
.cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(180deg, #c79a3d, var(--gold-dark));
  color: var(--white);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: 0.01em;
  padding: 17px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(124, 95, 34, 0.35);
  border: none;
  cursor: pointer;
}

.cta-btn:active { transform: translateY(1px); }

.cta-sub {
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin: 8px 0 0;
}

/* ---------- Garantía ---------- */
.garantia {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin: 22px 0;
}

.garantia .sello {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 13px;
  text-align: center;
  line-height: 1.1;
}

.garantia p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.garantia strong { color: var(--ink); }

/* ---------- No soy sacerdote ---------- */
.nota-autor {
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
  font-style: italic;
  margin: 18px 0;
  padding: 0 6px;
}

/* ---------- FAQ ---------- */
.faq h3 {
  font-family: Georgia, serif;
  font-size: 17px;
  text-align: center;
  margin: 0 0 14px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 12px 2px;
}

.faq-item p.pregunta {
  font-weight: 700;
  font-size: 13.5px;
  margin: 0 0 5px;
  color: var(--ink);
}

.faq-item p.respuesta {
  font-size: 13.5px;
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Notificaciones de venta ---------- */
#notif-venta {
  position: fixed;
  left: 10px;
  bottom: 10px;
  max-width: 260px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 6px 20px rgba(38, 34, 26, 0.2);
  padding: 9px 12px;
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

#notif-venta.visible {
  opacity: 1;
  transform: translateY(0);
}

#notif-venta .punto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

#notif-venta strong { color: var(--ink); }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: var(--cream-2);
  padding: 24px 18px 30px;
  font-size: 11.5px;
  line-height: 1.6;
}

footer .wrap p { margin: 0 0 10px; opacity: 0.85; }

footer a { color: var(--cream-2); text-decoration: underline; }

footer .links { margin-top: 12px; }
footer .links a { margin-right: 14px; }

/* ---------- Páginas simples (gracias / privacidad / términos) ---------- */
.pagina-simple {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 20px 50px;
}

.pagina-simple h1 {
  font-family: Georgia, serif;
  font-size: 22px;
  margin: 0 0 16px;
}

.pagina-simple h2 {
  font-family: Georgia, serif;
  font-size: 16px;
  margin: 26px 0 8px;
}

.pagina-simple p, .pagina-simple li { font-size: 14px; color: var(--ink-soft); }

.pagina-simple .aviso-box {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 18px 0;
}

.pagina-simple .volver {
  display: inline-block;
  margin-top: 20px;
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 640px) {
  .headline-area h1 { font-size: 26px; }
  .precio-ahora { font-size: 46px; }
}

/* ---------- Pantallas angostas (iPhone ~390px) ----------
   Objetivo: título + video quepan arriba, y que el botón de la oferta
   rápida (revelado tras el delay del pitch) quede visible en la misma
   pantalla, justo debajo del video, sin necesitar scroll. */
@media (max-width: 400px) {
  .headline-area { padding: 14px 16px 10px; }
  .headline-area h1 { font-size: 19px; line-height: 1.3; }
  .headline-sub { font-size: 12.5px; }
  .player-area { padding: 4px 10px 6px; }
  .player-nota { margin-top: 4px; font-size: 11px; }
  .oferta { padding: 6px 16px 40px; }
  .oferta-rapida .cta-btn { padding: 14px 14px; font-size: 15.5px; }
}
