/* ==========================================================================
   Reconexión Magnética — Sistema de Estilos Visuales con Tipografía Lato y Animaciones Pulsantes
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700&display=swap');

:root {
  --bg-main: #0B0D0F;
  --bg-surface: #14171A;
  --bg-surface-elevated: #1B1F24;
  --bg-option: #121411;

  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #64748B;

  --accent-red: #FF3344;
  --accent-red-bright: #E62E38;
  --accent-yellow: #FFC700;
  --accent-yellow-vivid: #FFD000;
  --accent-gold: #EAB308;
  --accent-green: #22C55E;
  --accent-green-bright: #10B981;
  --accent-blue: #3B82F6;

  --border-option: #C8AA14;
  --border-subtle: rgba(255, 255, 255, 0.08);

  --radius-pill: 9999px;
  --radius-card: 16px;
  --radius-btn: 12px;

  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

html {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.5;
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--bg-main);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Tipografía de títulos en Lato 900 sin bordes ni outlines */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Destaques amarillos vívidos de alto contraste */
.highlight-yellow {
  background-color: #FFC700;
  color: #000000;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block;
}

.highlight-yellow-red {
  background-color: #FFC700;
  color: #FF3344;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block;
}

/* Contenedor centralizado */
.app-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .app-container {
    max-width: 520px;
    padding: 20px 18px;
  }
}

/* Botones de Opción del Quiz (Píldoras con borde dorado) */
.option-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 18px;
  background-color: var(--bg-option);
  border: 1.5px solid var(--border-option);
  border-radius: 32px;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

@media (min-width: 640px) {
  .option-btn {
    padding: 16px 20px;
    font-size: 1.05rem;
  }
}

.option-btn:hover {
  border-color: #FFD000;
  background-color: #1A1D17;
  box-shadow: 0 0 14px rgba(255, 199, 0, 0.3);
  transform: translateY(-1px);
}

.option-btn:focus-visible {
  outline: none;
  border-color: #FFD000;
  box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.4);
}

.option-btn.is-selected {
  border-color: var(--accent-green);
  background-color: rgba(34, 197, 94, 0.15);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.35);
  transform: scale(0.985);
}

/* Ícono circular amarillo con flecha (>) */
.option-arrow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border-option);
  color: #FFC700;
  margin-right: 14px;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 800;
}

.option-btn:hover .option-arrow-icon {
  border-color: #FFD000;
  color: #FFD000;
}

.option-btn.is-selected .option-arrow-icon {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* Botones CTA Rojos y Verdes con Animación Pulsante */
.btn-cta-red {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 20px;
  background-color: var(--accent-red-bright);
  color: #FFFFFF;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(230, 46, 56, 0.4);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-cta-red:hover {
  background-color: #FF4D5A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 46, 56, 0.55);
}

.btn-cta-red:active {
  transform: scale(0.985);
}

/* Animación Pulsante para botones rojos */
.btn-pulse-vibrant {
  animation: pulse-red-vibrant 2s infinite ease-in-out;
}

@keyframes pulse-red-vibrant {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(230, 46, 56, 0.4);
  }
  50% {
    transform: scale(1.025);
    box-shadow: 0 8px 25px rgba(230, 46, 56, 0.75), 0 0 18px rgba(255, 199, 0, 0.35);
  }
}

.btn-cta-green {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 20px;
  background-color: var(--accent-green-bright);
  color: #FFFFFF;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-cta-green:hover {
  background-color: #22C55E;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.55);
}

.btn-cta-green:active {
  transform: scale(0.985);
}

/* Animación Pulsante para botón verde de compra */
.btn-pulse-green {
  animation: pulse-green-vibrant 2s infinite ease-in-out;
}

@keyframes pulse-green-vibrant {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  }
  50% {
    transform: scale(1.025);
    box-shadow: 0 8px 28px rgba(34, 197, 94, 0.75), 0 0 20px rgba(255, 199, 0, 0.35);
  }
}

/* Barra de progreso superior en amarillo sólido */
.progress-bar-top {
  width: 100%;
  height: 5px;
  background: #1C1F24;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #FFC700;
  border-radius: 9999px;
  transition: width 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Transiciones entre pasos del Quiz */
.quiz-step-enter-forward {
  animation: slide-in-right var(--transition-normal) forwards;
}

.quiz-step-enter-backward {
  animation: slide-in-left var(--transition-normal) forwards;
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Placeholders de imagen para Fase 1 */
.image-placeholder {
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.image-placeholder:hover {
  border-color: rgba(255, 199, 0, 0.6) !important;
  background-color: #282D34 !important;
}

/* Notificación flotante de compra reciente */
.recent-purchase-toast {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  background: #10B981;
  color: #FFFFFF;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  max-width: 290px;
  animation: slide-down-toast 350ms ease-out forwards;
}

@keyframes slide-down-toast {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sticky CTA móvil */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(11, 13, 15, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.7);
}

@media (min-width: 768px) {
  .sticky-cta-bar {
    display: none;
  }
}

/* Acordeón de Preguntas Frecuentes */
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #15181C;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: 'Lato', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  gap: 12px;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: #FFC700;
  flex-shrink: 0;
  transition: transform 250ms ease;
}

.faq-item[data-open="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 250ms ease, opacity 250ms ease, padding 250ms ease;
  padding: 0 18px;
  color: #FFFFFF;
  font-size: 0.98rem;
  line-height: 1.6;
}

.faq-item[data-open="true"] .faq-body {
  max-height: 340px;
  opacity: 1;
  padding: 0 18px 18px 18px;
}

/* Accesibilidad y Prefer Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Brilho Neon Estilizado para o Banner de Acesso Total */
.neon-banner-card {
  border: 1.5px solid rgba(255, 199, 0, 0.75);
  border-radius: 20px;
  box-shadow: 
    0 0 16px rgba(255, 199, 0, 0.45),
    0 0 35px rgba(230, 46, 56, 0.35),
    0 10px 30px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.neon-banner-card:hover {
  box-shadow: 
    0 0 24px rgba(255, 199, 0, 0.7),
    0 0 50px rgba(230, 46, 56, 0.5),
    0 14px 40px rgba(0, 0, 0, 0.95);
  transform: translateY(-2px);
}

/* Delay do Pitch de Vendas da VSL (13:35 = 815 segundos) */
.pitch-hidden {
  display: none !important;
}

.pitch-revealed {
  animation: fadeInPitch 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInPitch {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Back-Redirect Modal & Exit-Intent Styles */
.back-redirect-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  transition: opacity 0.25s ease-out;
}

.back-redirect-overlay.hidden {
  display: none !important;
}

.back-redirect-dialog {
  will-change: transform, opacity;
  box-sizing: border-box;
  width: 95% !important;
  max-width: 440px !important;
  margin: auto !important;
  -webkit-overflow-scrolling: touch;
}

.back-redirect-enter {
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideUp {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Pulso e brilho sutil controlado no preço de US$ 5,90 */
.back-redirect-price-glow {
  text-shadow: 0 0 16px rgba(34, 197, 94, 0.45);
  animation: pricePulseGlow 2.5s ease-in-out infinite;
}

@keyframes pricePulseGlow {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 14px rgba(34, 197, 94, 0.4);
  }
  50% {
    transform: scale(1.04);
    text-shadow: 0 0 24px rgba(34, 197, 94, 0.7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-redirect-enter,
  .back-redirect-price-glow {
    animation: none !important;
    transform: none !important;
  }
}

