/* ============================================================================
 * Grow Level · Funnel Arsenal · Landing
 * Sistema de diseño — tema oscuro premium, acentos de marca (indigo→emerald)
 * ==========================================================================*/

/* ---------- Design tokens ------------------------------------------------ */
:root {
  /* Marca */
  --navy-950: #060917;
  --navy-900: #0a0e27;
  --navy-850: #0e1330;
  --navy-800: #12173d;
  --navy-700: #1b2150;
  --navy-600: #262e6b;

  --indigo: #6d5cff;
  --violet: #a855f7;
  --emerald: #22d3a6;
  --cyan: #38bdf8;

  --grad-brand: linear-gradient(120deg, #7c5cff 0%, #38bdf8 55%, #22d3a6 100%);
  --grad-cta: linear-gradient(120deg, #6d5cff 0%, #22d3a6 100%);
  --grad-cta-hover: linear-gradient(120deg, #5a49f0 0%, #17c096 100%);

  /* Texto */
  --text: #eef1ff;
  --text-soft: #b9c0e0;
  --text-mute: #8891b8;

  /* Superficies */
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --star: #ffc84a;

  /* Layout */
  --maxw: 1140px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 18px 50px rgba(4, 8, 30, 0.45);
  --shadow-glow: 0 0 0 1px rgba(109, 92, 255, 0.25), 0 22px 60px rgba(109, 92, 255, 0.28);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, video { max-width: 100%; display: block; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--navy-950);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fondo con aurora sutil */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 45% at 15% 0%, rgba(109, 92, 255, 0.18), transparent 60%),
    radial-gradient(55% 40% at 90% 10%, rgba(34, 211, 166, 0.14), transparent 60%),
    radial-gradient(70% 60% at 50% 100%, rgba(56, 189, 248, 0.10), transparent 65%),
    var(--navy-950);
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Tipografía --------------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
h4 { font-size: clamp(1.05rem, 1.8vw, 1.25rem); }

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--emerald);
  background: rgba(34, 211, 166, 0.10);
  border: 1px solid rgba(34, 211, 166, 0.28);
  padding: 7px 14px; border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }

/* ---------- Header / Nav ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(8, 11, 30, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav .brand { display: flex; align-items: center; gap: 10px; }
.nav .brand img { height: 30px; width: auto; }
.nav .nav-cta {
  font-size: 0.9rem; font-weight: 700; padding: 10px 18px; border-radius: 999px;
  color: #06210f; background: var(--grad-cta); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav .nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(34, 211, 166, 0.35); }

/* ---------- Secciones ---------------------------------------------------- */
.section { padding: clamp(48px, 8vw, 96px) 0; position: relative; }
.section > .container > h2 { text-align: center; margin-bottom: 14px; }
.section-sub { text-align: center; color: var(--text-soft); max-width: 640px; margin: 0 auto 44px; }

/* ---------- Hero --------------------------------------------------------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(30px, 5vw, 60px); text-align: center; }
.hero-content { max-width: 860px; margin: 0 auto; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 20px; }
.subheadline { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-soft); max-width: 680px; margin: 0 auto 34px; }
.subheadline strong { color: var(--text); font-weight: 700; }

/* VSL */
.vsl-container {
  position: relative; cursor: pointer; max-width: 820px; margin: 0 auto 26px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-glow);
  aspect-ratio: 16 / 9; background: var(--navy-800);
}
.vsl-thumbnail { width: 100%; height: 100%; object-fit: cover; }
.vsl-container video { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
#play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at center, rgba(6, 9, 23, 0.15), rgba(6, 9, 23, 0.45));
  transition: background .25s ease;
}
.vsl-container:hover #play-overlay { background: radial-gradient(circle at center, rgba(6, 9, 23, 0.05), rgba(6, 9, 23, 0.35)); }
.play-btn {
  width: 82px; height: 82px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  transition: transform .25s ease;
}
.vsl-container:hover .play-btn { transform: scale(1.08); }
.play-btn::after {
  content: ""; position: absolute; width: 82px; height: 82px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

.hero-cta-copy {
  max-width: 620px; margin: 0 auto 22px; font-size: 1.02rem; color: var(--text-soft);
  background: var(--surface); border: 1px solid var(--border);
  padding: 16px 22px; border-radius: var(--radius);
}
.hero-cta-copy strong { color: var(--emerald); }

/* ---------- Botón CTA ---------------------------------------------------- */
.cta-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em;
  color: #04210f; text-decoration: none;
  background: var(--grad-cta);
  padding: 17px 40px; border-radius: 999px;
  box-shadow: 0 14px 38px rgba(34, 211, 166, 0.32);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  border: none; cursor: pointer;
}
.cta-button::after { content: "→"; font-weight: 800; transition: transform .2s ease; }
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(34, 211, 166, 0.45); }
.cta-button:hover::after { transform: translateX(4px); }

/* Estado bloqueado (gate del VSL) */
.cta-button.gate-locked {
  background: var(--surface-2); color: var(--text-mute);
  box-shadow: none; cursor: not-allowed; pointer-events: none;
  border: 1px solid var(--border);
}
.cta-button.gate-locked::after { content: "🔒"; }
.cta-note { font-size: 0.85rem; color: var(--text-mute); margin-top: 12px; }

/* ---------- Bloque genérico de tarjeta ----------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }

/* ---------- Problema ----------------------------------------------------- */
#problemSection .container { max-width: 760px; text-align: center; }
#problemSection p { color: var(--text-soft); font-size: 1.1rem; }

/* ---------- Testimonios foto --------------------------------------------- */
.photo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.photo-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--surface); aspect-ratio: 4 / 7;
  transition: transform .3s ease, box-shadow .3s ease;
}
.photo-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-soft); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }

.video-testimonials { margin-top: 60px; }
.video-testimonials h3 { text-align: center; margin-bottom: 28px; }
.video-testimonials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.video-testimonial-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: #000; aspect-ratio: 9 / 16;
}
.video-testimonial-card video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pilares (esto es para ti) ------------------------------------ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { position: relative; padding-top: 30px; }
.pillar .num {
  position: absolute; top: -6px; left: 26px;
  font-size: 2.4rem; font-weight: 900; line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .9;
}
.pillar h4 { margin-bottom: 10px; }
.pillar p { color: var(--text-soft); font-size: 0.98rem; }

/* ---------- Carrusel de clientes ----------------------------------------- */
.carousel-container {
  overflow: hidden; position: relative; padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee { display: flex; gap: 40px; width: max-content; animation: scroll linear infinite; }
.carousel-item {
  flex: 0 0 auto; width: 120px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  filter: grayscale(1) brightness(1.6); opacity: .7; transition: all .3s ease;
}
.carousel-item:hover { filter: none; opacity: 1; }
.carousel-item img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Reviews (Google style) --------------------------------------- */
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.review-user { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.initial {
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-cta); color: #04210f; font-weight: 800; font-size: 1.15rem;
}
.user-name { font-weight: 700; font-size: 0.98rem; }
.user-date { font-size: 0.8rem; color: var(--text-mute); }
.stars { color: var(--star); letter-spacing: 2px; font-size: 0.95rem; }
.review-text { color: var(--text-soft); font-size: 0.96rem; }

/* ---------- Imágenes destacadas (all-in-one / comparativa) --------------- */
.feature-image {
  display: block; width: 100%; height: auto; margin: 0 auto;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}
.feature-wrap { max-width: 1000px; margin: 0 auto; }

/* ---------- Garantía ----------------------------------------------------- */
.guarantee-wrap { max-width: 820px; margin: 0 auto; }
.guarantee-card {
  display: flex; align-items: center; gap: 26px;
  background: linear-gradient(135deg, rgba(109, 92, 255, 0.12), rgba(34, 211, 166, 0.10));
  border: 1px solid rgba(34, 211, 166, 0.28);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-soft);
}
.guarantee-logo { width: 120px; height: auto; flex: 0 0 auto; }
.guarantee-title { font-size: 1.6rem; font-weight: 900; margin-bottom: 8px; }
.guarantee-title span { color: var(--emerald); }
.guarantee-text { color: var(--text-soft); }
.center-cta { text-align: center; margin-top: 40px; }
.cta-subtitle { font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; color: var(--text); }

/* ---------- FAQ ---------------------------------------------------------- */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: border-color .2s ease; }
.faq-item:hover { border-color: var(--border-strong); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; font-weight: 700; font-size: 1.02rem;
  user-select: none;
}
.faq-question span { flex: 0 0 auto; font-size: 1.5rem; font-weight: 400; color: var(--emerald); transition: transform .25s ease; }
.faq-question.open span { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; color: var(--text-soft);
  transition: max-height .3s ease, padding .3s ease; padding: 0 22px;
}
.faq-answer.active { max-height: 360px; padding: 0 22px 22px; }

/* ---------- CTA flotante móvil ------------------------------------------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(8, 11, 30, 0.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  transform: translateY(120%); transition: transform .3s ease;
  display: none;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .cta-button { width: 100%; padding: 15px; }

/* ---------- Footer ------------------------------------------------------- */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--border); text-align: center; color: var(--text-mute); }
.footer-logo { height: 34px; width: auto; margin: 0 auto 18px; opacity: .9; }
.footer p { font-size: 0.9rem; margin: 4px 0; }

/* ---------- Animación de entrada ----------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 900px) {
  .photo-grid, .video-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav .nav-cta { display: none; }
  .guarantee-card { flex-direction: column; text-align: center; padding: 26px 20px; }
  .sticky-cta { display: block; }
  .cta-button { width: 100%; }
  .hero-cta-copy { font-size: 0.96rem; }
}

/* ---------- Accesibilidad ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--emerald); color: #04210f;
  padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ============================================================================
 * Paso 2 · Calendario
 * ==========================================================================*/
#gl-calendar-title { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.glct-box { max-width: 820px; margin: 0 auto; text-align: center; }
#gl-calendar-title .eyebrow { margin-bottom: 20px; }
.glct-box h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.25;
  color: var(--text);
}
.glct-box h1 span {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

.calendar-wrap { max-width: 900px; margin: 0 auto; padding-bottom: clamp(48px, 8vw, 90px); }
.calendar-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(14px, 2.5vw, 26px);
  box-shadow: var(--shadow-soft);
}
.calendar-card iframe { width: 100%; min-height: 720px; border: none; overflow: hidden; display: block; border-radius: 12px; }

.calendar-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px;
  margin: 22px auto 0; max-width: 760px;
}
.calendar-trust li {
  list-style: none; display: flex; align-items: center; gap: 8px;
  color: var(--text-soft); font-size: 0.92rem;
}
.calendar-trust li::before { content: "✓"; color: var(--emerald); font-weight: 800; }

/* ============================================================================
 * Paso 3 · Gracias / confirmación
 * ==========================================================================*/
.ty-hero { text-align: center; padding: clamp(56px, 9vw, 110px) 0 clamp(30px, 5vw, 56px); }
.ty-check {
  width: 92px; height: 92px; margin: 0 auto 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(34, 211, 166, 0.18), rgba(109, 92, 255, 0.14));
  border: 1px solid rgba(34, 211, 166, 0.4);
  box-shadow: 0 0 0 10px rgba(34, 211, 166, 0.06);
  animation: ty-pop .5s cubic-bezier(.2, .9, .3, 1.2) both;
}
.ty-check svg { width: 46px; height: 46px; }
@keyframes ty-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ty-hero h1 { max-width: 760px; margin: 0 auto 16px; }
.ty-hero p.lead { max-width: 620px; margin: 0 auto; color: var(--text-soft); font-size: 1.12rem; }

.ty-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 960px; margin: 0 auto; }
.ty-step { position: relative; padding-top: 30px; }
.ty-step .num {
  position: absolute; top: -4px; left: 26px; font-size: 2.2rem; font-weight: 900; line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ty-step h4 { margin-bottom: 8px; }
.ty-step p { color: var(--text-soft); font-size: 0.96rem; }

.ty-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 12px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong);
  padding: 15px 28px; border-radius: 999px; transition: border-color .2s ease, transform .2s ease;
}
.btn-ghost:hover { border-color: var(--emerald); transform: translateY(-2px); }

.ty-guarantee {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: linear-gradient(135deg, rgba(109, 92, 255, 0.10), rgba(34, 211, 166, 0.08));
  border: 1px solid rgba(34, 211, 166, 0.24); border-radius: var(--radius-lg); padding: 32px;
}
.ty-guarantee .guarantee-title { justify-content: center; }

@media (max-width: 760px) { .ty-steps { grid-template-columns: 1fr; } }
