/* ==========================================================================
   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;
}

/* ---------- VTurb Smart Player v4 (06/09/2026) ----------
   O player v4 impõe max-width:400px no próprio elemento e renderiza o botão
   de ação DENTRO dele, abaixo do vídeo. Por isso o container deixa de ter
   aspecto fixo (padding-top) e passa a acompanhar a altura do player. */
.player-45.vturb { padding-top: 0; background: #26221a; } /* fundo escuro sob o botão do VTurb, destacando o dourado */
.player-45.vturb vturb-smartplayer {
  position: static !important;
  display: block;
  width: 100% !important;
  /* o v4 escreve max-width: var(--player-vertical-width, 400px) inline — a variável manda */
  --player-vertical-width: 100% !important;
  max-width: none !important;
  margin: 0 auto;
  /* barra do Progresso Inteligente e "continuar" na paleta (dourado), não no verde padrão */
  --fakebar-background-color: #c79a3d !important;
  --resume-background-color: #c79a3d !important;
}

/* Botão de ação do VTurb — 06/09/2026, correção do "estouro".
   O painel do VTurb grava a largura do botão em PIXELS ABSOLUTOS (767px na
   configuração atual). Como o player é fluido (478px numa janela de 1440px),
   o botão nascia 1,6× mais largo que o vídeo: o GIF vazava para os lados e só
   o miolo aparecia — daí o texto colado nas bordas, sem a folga escura que a
   arte tem. Amarrar a 100% do player resolve em QUALQUER largura de tela, sem
   depender do valor gravado no painel.
   O pulso do VTurb (scale ~1,035) continua funcionando: a arte já reserva
   6,7% de folga lateral, então os ~1,75% de cada lado do pulso ficam dentro
   do GIF, sem tocar a borda do vídeo. */
/* O wrapper que o VTurb injeta (.vturb-light-dom-inject) NÃO tem largura
   própria — fica em 0px, e o botão só aparecia porque tinha largura fixa em
   pixels e "vazava" para fora dele. Ao amarrar o botão em 100%, esse 100%
   passou a ser 100% de ZERO e o botão sumiu (medido em produção 06/09).
   Por isso a largura tem de descer do player: wrapper primeiro, botão depois. */
.player-45.vturb .vturb-light-dom-inject,
.player-45.vturb vturb-anchor-button,
.player-45.vturb .smartplayer-anchor-button {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.player-45.vturb .smartplayer-anchor-button img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* 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);
}

/* ---------- CTA final (fim da página, depois das FAQ) ---------- */
.cta-final {
  margin: 30px 0 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.cta-final-precio {
  text-align: center;
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--ink-soft);
}

.cta-final-precio s {
  color: var(--red);
  text-decoration-thickness: 2px;
  opacity: 0.85;
}

.cta-final-precio strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--green);
  margin-left: 6px;
}

.cta-final-precio span {
  font-size: 13px;
}

/* ---------- 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 — idêntico ao botão de ação do VTurb (cor, fonte, raio,
   sombra e pulso), para que os dois leiam como o MESMO botão ---------- */
/* translateZ(0) dentro do próprio keyframe: a animação SOBRESCREVE o
   `transform` da regra base, então é aqui que a promoção para camada de GPU
   tem de estar — senão a fonte volta a ser re-rasterizada e a tremer.
   1.03 = mesma amplitude do pulso do botão do VTurb, para os quatro pulsarem
   igual. */
@keyframes cta-pulse {
  0%, 100% { transform: scale(1) translateZ(0); }
  50% { transform: scale(1.03) translateZ(0); }
}
/* Todos os CTAs têm a MESMA largura (a da coluna, que é a do player) e o mesmo
   tamanho — pedido do Lucio 06/09: os 4 botões da página (o do VTurb, dentro do
   vídeo, e os 3 da página) têm de parecer o mesmo botão.
   `will-change: transform` é o que tira a tremida da fonte: sem ele o navegador
   RE-RASTERIZA o texto a cada quadro do pulso (hinting muda de posição = letra
   vibrando); com ele o botão vira uma camada de GPU e o pulso escala o bitmap
   já pronto. Mesma lição da arte do GIF do VTurb (fonte fixa) — ver
   `05-criativos/vsl-v3/scripts/make_vturb_assets_v2.py`, função boton(). */
.cta-btn {
  display: block;
  width: 100%;
  /* MESMA largura útil do player (.player-frame = 480px menos a borda de 1px
     de cada lado), que é a largura do botão do VTurb. É o que faz os quatro
     botões lerem como o mesmo botão. Mexeu no .player-frame? Mexe aqui. */
  max-width: 478px;
  margin: 0 auto;
  text-align: center;
  background: #c79a3d;
  color: #fffdf8;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 8px 1px rgba(124, 95, 34, 0.6);
  border: none;
  cursor: pointer;
  animation: cta-pulse 1.6s ease-in-out infinite;
  transition: background 0.15s ease;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.cta-btn:hover { background: #a9812f; color: #fffdf8; }
.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: 58px;
  height: 58px;
  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: 10.5px;
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1.15;
  padding: 2px;
  box-sizing: border-box;
  overflow: hidden;
}

.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 ---------- */
/* Respiro acima do bloco: o CTA que veio antes (depois dos testemunhos) não
   pode encostar no título das perguntas. */
.faq { margin-top: 26px; }

.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); }
#notif-venta .avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--line); background: var(--cream-2);
}

/* ---------- Testimonios ---------- */
.testimonios { margin: 26px 0 8px; }
.testimonios h2 { text-align: center; font-family: Georgia, serif; font-size: 20px; margin: 0 0 14px; }
.testimonio {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 10px;
}
.testimonio img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--line); }
.testimonio p { margin: 0 0 4px; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.testimonio .quien { font-size: 12.5px; color: var(--ink-soft); }
.testimonio .quien strong { color: var(--ink); }
.testimonio .estrellas { color: var(--gold); font-size: 12px; letter-spacing: 1px; margin-bottom: 4px; }

/* ---------- 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; }
}
