@import url('https://fonts.googleapis.com/css2?family=Anton&family=Baloo+2:wght@500;600;700;800&display=swap');

:root {
  /* "only light" le dice al navegador que esta página tiene un diseño
     propio de un solo modo y que NO debe aplicarle su tema oscuro
     automático. Sin esto, Samsung Internet y Chrome con tema oscuro
     forzado apagaban el morado lila de la marca. */
  color-scheme: only light;

  --color-bg-top: #a855f7;
  --color-bg-bottom: #7c3aed;
  --color-circle-fill: #7c2ae8;
  --color-purple-dark: #5b1fb0;
  --color-purple-darker: #4c1d95;
  --color-lavender: #f3e8ff;
  --color-pink: #ec4899;
  --color-pink-dark: #be185d;
  --color-white: #ffffff;
  --color-ink: #2a1454;

  --font-display: 'Anton', 'Impact', sans-serif;
  --font-body: 'Baloo 2', 'Poppins', sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --max-width: 1080px;

  --shadow-soft: 0 8px 20px rgba(76, 29, 149, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: #faf7ff;
}

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(124, 58, 237, 0.92);
  backdrop-filter: blur(6px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}
.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9a4bf0, var(--color-circle-fill) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 0.6rem;
}

.header-actions { display: flex; gap: 8px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--color-bg-top) 0%, var(--color-bg-bottom) 100%);
  padding: 64px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 24px;
}

.hero-circle-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
}
.hero-circle-wrap::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,180,254,0.55) 0%, transparent 70%);
}
.hero-circle {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9a4bf0, var(--color-circle-fill) 70%);
  box-shadow: inset 0 -10px 30px rgba(0,0,0,0.25), var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  overflow: hidden;
  animation: logo-entrada 2.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Entrada del logo: aparece pequeño/abajo/transparente, sube y crece,
   se pasa de tamaño con un giro leve al "impactar", y rebota hasta su
   tamaño final. Se ejecuta una sola vez por carga de página (sin
   "infinite"), y termina fija ("both" mantiene el estado final). */
@keyframes logo-entrada {
  0% {
    opacity: 0;
    transform: translateY(48px) scale(0.12);
  }
  55% {
    opacity: 1;
    transform: translateY(-10px) scale(1.28) rotate(-5deg);
  }
  75% {
    transform: translateY(2px) scale(0.93) rotate(2deg);
  }
  90% {
    transform: translateY(0) scale(1.04) rotate(-0.5deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

/* Destello que barre el círculo durante la entrada. Un pseudo-elemento
   aparte para no interferir con el transform/opacity del círculo. */
.hero-circle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.6) 48%, rgba(255,255,255,0.15) 54%, transparent 65%);
  background-size: 250% 250%;
  background-position: -120% -120%;
  opacity: 0;
  pointer-events: none;
  animation: logo-brillo 2.3s ease-out both;
  animation-delay: 0.1s;
}
@keyframes logo-brillo {
  0% { opacity: 0; background-position: -120% -120%; }
  45% { opacity: 0.9; }
  70% { opacity: 0.5; background-position: 120% 120%; }
  100% { opacity: 0; background-position: 120% 120%; }
}

/* Accesibilidad: quien prefiera menos movimiento, ve el logo fijo
   directamente, sin la animación de entrada. */
@media (prefers-reduced-motion: reduce) {
  .hero-circle,
  .hero-circle::after {
    animation: none;
  }
}

.hero-circle .title { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: 1px; }
.hero-circle .big-number { font-family: var(--font-display); font-size: 4.2rem; line-height: 1; margin-top: 4px; }

.hero-tagline {
  max-width: 560px;
  margin: 0 auto 30px;
  color: var(--color-white);
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 600;
}

.price-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
}
.price-label {
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.price-amount {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 2.4rem;
}

/* Burbuja 3D rosa (mismo gradiente/sombra que .btn-primary) SOLO para
   el precio de debajo del logo — no es un botón, es texto informativo.
   La otra aparición del precio (junto a su propio botón de compra más
   abajo) se queda con el estilo simple de arriba. */
.price-box--burbuja {
  gap: 2px;
  background: linear-gradient(180deg, #f472b6, var(--color-pink));
  border-radius: var(--radius-pill);
  padding: 14px 40px;
  box-shadow: 0 5px 0 var(--color-pink-dark), 0 10px 20px rgba(0,0,0,0.25);
}
.price-box--burbuja .price-label {
  color: var(--color-purple-darker);
  opacity: 0.8;
  font-size: 0.75rem;
}
.price-box--burbuja .price-amount {
  color: var(--color-purple-darker);
  font-size: 1.9rem;
  letter-spacing: 0.5px;
}

.cta-note {
  margin-top: 14px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: pre-line;
}
.trial-link {
  margin-top: 22px;
  font-size: 1rem;
  padding: 14px 32px;
}

/* burbujas cómic decorativas del hero, iguales a la app */
.comic-bubble {
  background: var(--color-purple-dark);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 800;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  /* La figura de estrella (ver clip-path) llega hasta el borde superior
     (0%) pero solo hasta el 88% abajo — su centro visual real queda
     más arriba del 50% del cuadro. Con padding parejo, el texto
     centrado quedaba empujado hacia las puntas de abajo y se cortaba
     (ver captura). Menos padding arriba / más abajo sube el texto para
     que quede dentro de la zona segura de la figura. */
  padding: 6px 20px 26px;
  clip-path: polygon(
    50% 0%, 58% 12%, 72% 3%, 74% 18%, 90% 12%, 86% 28%,
    100% 30%, 88% 42%, 100% 55%, 84% 56%, 90% 72%, 74% 65%,
    72% 82%, 58% 72%, 52% 88%, 44% 74%, 32% 88%, 28% 70%,
    12% 78%, 18% 62%, 2% 60%, 16% 46%, 0% 34%, 16% 30%,
    10% 14%, 26% 20%, 30% 4%, 40% 16%
  );
}
.comic-bubble span { font-size: 0.72rem; line-height: 1.18; max-width: 78%; }

.hero-bubbles {
  position: absolute;
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 0 6%;
  top: 40px;
  pointer-events: none;
}
.hero-bubbles .comic-bubble { width: 130px; height: 130px; opacity: 0.9; }
.hero-bubbles .comic-bubble:first-child { transform: rotate(-8deg); }
.hero-bubbles .comic-bubble:last-child { transform: rotate(8deg); }

@media (max-width: 700px) {
  .hero-bubbles { display: none; }
}

/* ---------- Secciones generales ---------- */
section { padding: 72px 0; }

.section-title {
  font-family: var(--font-display);
  color: var(--color-purple-darker);
  font-size: 2rem;
  text-align: center;
  letter-spacing: 0.5px;
  margin-bottom: 40px;
}

/* ---------- Beneficios ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.benefit-card {
  background: var(--color-white);
  border: 3px solid var(--color-lavender);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
}
.benefit-emoji { font-size: 2rem; margin-bottom: 12px; }
.benefit-title {
  font-family: var(--font-display);
  color: var(--color-purple-darker);
  font-size: 1.05rem;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.benefit-text { font-size: 0.92rem; line-height: 1.5; color: #4b3a6b; }

/* ---------- Mockups / capturas ---------- */
.screens-section { background: var(--color-lavender); }
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  align-items: end;
}
.phone-mock {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: linear-gradient(180deg, var(--color-bg-top), var(--color-bg-bottom));
  border-radius: 28px;
  border: 8px solid var(--color-purple-darker);
  /* Proporción real de las capturas (792x1600), para que entren
     completas sin recortarse. */
  aspect-ratio: 99 / 200;
  box-shadow: var(--shadow-soft);
}
.phone-mock img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Velo sobre la zona de la foto en la captura del día: la difumina y
   pone un "?" encima, para insinuar el contenido sin revelarlo.
   Los porcentajes corresponden al recuadro de la foto dentro de esa
   captura (app-4-dia.jpeg). */
.screen-teaser {
  position: absolute;
  inset: 15.4% 11.8% 34.1% 11.7%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 4rem);
  color: var(--color-white);
  text-shadow: 0 6px 22px rgba(76, 29, 149, 0.55);
  /* El fondo translúcido oculta el contenido incluso en navegadores
     que no soporten backdrop-filter. */
  background: rgba(167, 139, 250, 0.62);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.screens-note {
  margin: 26px 0 0;
  text-align: center;
  color: var(--color-purple-darker);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- Cómo funciona ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}
.step-card { text-align: center; }
.step-number {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(180deg, #9a4bf0, var(--color-circle-fill));
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: var(--shadow-soft);
}
.step-title {
  font-family: var(--font-display);
  color: var(--color-purple-darker);
  font-size: 0.98rem;
  margin-bottom: 6px;
}
.step-text { font-size: 0.88rem; color: #4b3a6b; line-height: 1.4; }

/* ---------- CTA repetido ---------- */
.cta-section {
  background: linear-gradient(180deg, var(--color-bg-bottom), var(--color-purple-darker));
  text-align: center;
  color: var(--color-white);
}
.cta-section .section-title { color: var(--color-white); }

/* Aviso de espera bajo el botón de pago. Discreto para no competir con
   el botón, pero con contraste suficiente para que sí se lea. */
.cta-espera {
  max-width: 420px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  line-height: 1.45;
  font-weight: 600;
}

/* ---------- FAQ (accordion) ---------- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 2px solid var(--color-lavender);
  padding: 18px 0;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-purple-darker);
  text-align: left;
  padding: 0;
}
.faq-question .icon { font-family: var(--font-display); font-size: 1.2rem; transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4b3a6b;
}
/* El max-height concreto lo pone main.js según el alto real del
   contenido (hay respuestas de una línea y otras con instructivos
   largos); aquí solo va el espaciado al abrirse. */
.faq-item.open .faq-answer { margin-top: 12px; }

/* Instructivo de instalación dentro de una respuesta del FAQ */
.faq-sub {
  display: block;
  margin: 14px 0 6px;
  color: var(--color-purple-darker);
  font-size: 0.95rem;
}
.faq-steps {
  margin: 0;
  padding-left: 20px;
  line-height: 1.6;
}
.faq-steps li { margin-bottom: 4px; }
.faq-nota {
  margin: 8px 0 0;
  font-size: 0.85rem;
  opacity: 0.8;
  font-style: italic;
}

/* ---------- Testimonios ---------- */
.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 3px solid var(--color-lavender);
  padding: 22px;
  flex: 1 1 240px;
  max-width: 320px;
}
.testimonial-text { font-style: italic; color: #4b3a6b; margin-bottom: 12px; line-height: 1.5; }
.testimonial-author { font-weight: 700; color: var(--color-purple-darker); font-size: 0.85rem; }
/* Aclara que las frases son ejemplos de la experiencia, no reseñas. */
.testimonials-note {
  margin: -26px 0 30px;
  text-align: center;
  color: #6b5b8a;
  font-size: 0.88rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-purple-darker);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 28px;
  font-size: 0.85rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.footer-brand { font-family: var(--font-display); color: var(--color-white); font-size: 1.1rem; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.footer-note { opacity: 0.75; line-height: 1.5; margin-bottom: 10px; }
.footer-social {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
/* Ahora va junto a la marca (dentro de .footer-top), no como fila
   propia — por eso .footer-links es quien lleva la línea divisoria y
   el margen que antes tenía esta clase. */
.footer-links {
  margin-bottom: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.footer-social-link:hover { color: var(--color-white); }
.footer-social-link svg { flex-shrink: 0; }
.footer-copy { opacity: 0.6; }


/* ---------- Utilidades ---------- */
:focus-visible { outline: 3px solid var(--color-purple-darker); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Botón flotante de compra ---------- */
/* Solo el botón, sin barra de fondo ni precio — flota sobre el
   contenido con su propia sombra (la misma que .btn-primary ya trae),
   no ocupa el ancho completo. */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 30; /* debajo de los modales (50), encima del header (20) */
  display: flex;
  justify-content: center;
  pointer-events: none; /* el hueco a los lados del botón deja pasar clics al contenido de abajo */
  /* Respeta el "notch"/barra de gestos de celulares (iPhone con home
     indicator, Android con navegación por gestos). */
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-cta-btn {
  pointer-events: auto;
  padding: 14px 30px;
  font-size: 1rem;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .sticky-cta-btn { padding: 13px 24px; font-size: 0.92rem; }
}

/* Espacio al final de la página para que el botón flotante no quede
   encima de los enlaces del footer (Términos, Privacidad, redes). */
body { padding-bottom: 76px; }

.qr-alt { margin-top: 18px; }
