/* ==========================================================================
 * styles.css — Sistema de diseño de la réplica del funnel de Chema (Training
 * Academy). Réplica FIEL e INDEPENDIENTE de GoHighLevel. Marca: verde #019a32.
 * Titulares 'Bebas Neue', cuerpo 'Montserrat'. Secciones oscuras con imagen
 * de fondo al 30%. Mobile-first + responsive.
 * ========================================================================== */
:root {
  --green: #019a32;         /* verde de marca dominante */
  --green-bright: #37ca37;  /* verde vivo (CTA/acentos) */
  --green-lite: #8bc73d;
  --blue: #188bf6;
  --turquoise: #94ffe9;
  --orange: #f7931d;
  --red: #ef3f36;
  --yellow: #f4ed2f;
  --ink: #14181f;           /* texto oscuro */
  --muted: #5b6472;
  --line: #e7ebf0;
  --bg: #ffffff;
  --bg-soft: #f5f8f6;
  --dark: #05070a;          /* fondo oscuro de secciones hero/test */
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(1, 154, 50, .12);
  --shadow-sm: 0 6px 22px rgba(10, 20, 15, .08);
  --maxw: 1080px;
  --headline: 'Bebas Neue', 'Montserrat', system-ui, sans-serif;
  --body: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); color: var(--ink);
  background: var(--bg); line-height: 1.6; font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---- Tipografía ---- */
h1, h2, h3 { font-family: var(--headline); font-weight: 400; line-height: 1.02;
  letter-spacing: .5px; margin: 0 0 .4em; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); }
.hl { color: var(--green); font-weight: 700; }
.hl-b { color: var(--green-bright); font-weight: 700; }
.center { text-align: center; }
strong, b { font-weight: 700; }

/* ---- Header sticky ---- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.logo { height: 60px; width: auto; }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 800; font-size: 1rem; letter-spacing: .3px;
  text-transform: uppercase; cursor: pointer; border: 0; border-radius: 999px;
  padding: 15px 30px; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  line-height: 1; text-align: center;
}
.btn-green { background: linear-gradient(180deg, var(--green-bright), var(--green));
  color: #fff; box-shadow: 0 12px 28px rgba(1,154,50,.35); }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(1,154,50,.45); }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 12px 28px rgba(37,211,102,.35); }
.btn-wa:hover { transform: translateY(-2px); }
.btn-lg { padding: 18px 40px; font-size: 1.12rem; }
.btn-ghost { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-block { display: flex; width: 100%; }

.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(1,154,50,.1);
  color: var(--green); font-weight: 700; font-size: .82rem; letter-spacing: .4px;
  text-transform: uppercase; padding: 8px 16px; border-radius: 999px; margin-bottom: 18px; }
.badge.on-dark { background: rgba(55,202,55,.16); color: var(--green-bright); }

/* ---- Secciones ---- */
section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark {
  position: relative; background: var(--dark); color: #fff;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: #c7cfda; }
.section-dark .bg-image {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .28; z-index: 0; pointer-events: none;
}
.section-dark .wrap { position: relative; z-index: 1; }

/* ---- Hero ---- */
.hero { padding: 70px 0 54px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 42px; align-items: center; }
.hero-media img { border-radius: var(--radius); border: 3px solid var(--green);
  box-shadow: var(--shadow); margin: 0 auto; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-media { order: -1; } }

/* ---- Bullets de beneficio ---- */
.benefits { display: grid; gap: 16px; margin: 26px 0; }
.benefit { display: flex; gap: 14px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.benefit .n { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--green-bright), var(--green)); color: #fff; font-weight: 800; }
.benefit b { display: block; margin-bottom: 2px; }
.benefit span { color: var(--muted); font-size: .96rem; }
.section-dark .benefit { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section-dark .benefit span { color: #b6bfca; }

/* Lista con ● (fiel al original que usa el carácter círculo inline) */
.dot-list { list-style: none; padding: 0; margin: 18px 0; }
.dot-list li { position: relative; padding-left: 26px; margin-bottom: 12px; }
.dot-list li::before { content: '●'; color: var(--green); position: absolute; left: 0; top: 0; }
.section-dark .dot-list li::before { color: var(--green-bright); }

/* ---- Vídeo VSL ---- */
.vsl { max-width: 820px; margin: 0 auto; }
.vsl video { width: 100%; border-radius: var(--radius); border: 3px solid var(--green);
  background: #000; box-shadow: var(--shadow); display: block; }
.vsl .sound-hint { text-align: center; margin-top: 12px; font-weight: 700; color: var(--green); }
.section-dark .vsl .sound-hint { color: var(--green-bright); }

/* ---- Formulario de captación ---- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px; }
.lead-form { max-width: 520px; margin: 0 auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field input { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--body); font-size: 1rem; transition: border .15s ease, box-shadow .15s ease; }
.field input:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px rgba(1,154,50,.12); }
.field .err { color: var(--red); font-size: .82rem; margin-top: 5px; display: none; }
.field.invalid input { border-color: var(--red); }
.field.invalid .err { display: block; }
.iti { width: 100%; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* ---- FAQ ---- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden;
  background: #fff; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--body); font-weight: 700; font-size: 1.02rem; padding: 18px 20px;
  display: flex; justify-content: space-between; gap: 14px; align-items: center; color: var(--ink); }
.faq-q .chev { transition: transform .2s ease; color: var(--green); flex: 0 0 auto; font-size: 1.4rem; line-height: 1; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a > div { padding: 0 20px 18px; color: var(--muted); }
.section-dark .faq-item { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section-dark .faq-q { color: #fff; }
.section-dark .faq-a > div { color: #b6bfca; }

/* ---- Prueba social ---- */
.testis { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.testis img { border-radius: 14px; box-shadow: var(--shadow-sm); width: 100%; }
@media (max-width: 640px) { .testis { grid-template-columns: 1fr; } }

/* ---- Encuesta / test ---- */
.survey { max-width: 720px; margin: 0 auto; }
.survey-progress { height: 8px; background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.survey-progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green-bright), var(--green)); transition: width .3s ease; }
.survey-count { text-align: right; font-size: .85rem; color: #aeb7c2; margin-bottom: 20px; }
.q-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  padding: 28px 26px; }
.q-title { font-family: var(--body); font-weight: 700; font-size: clamp(1.15rem, 3vw, 1.5rem); margin-bottom: 20px; color: #fff; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1.5px solid rgba(255,255,255,.16); color: #fff;
  border-radius: 12px; padding: 15px 18px; margin-bottom: 12px; font-family: var(--body); font-size: 1rem;
  transition: border .15s ease, background .15s ease, transform .1s ease; }
.opt:hover { border-color: var(--green-bright); background: rgba(55,202,55,.08); }
.opt.sel { border-color: var(--green-bright); background: rgba(55,202,55,.16); }
.opt .mark { flex: 0 0 22px; height: 22px; border-radius: 6px; border: 2px solid rgba(255,255,255,.4); display: grid; place-items: center; }
.opt.single .mark { border-radius: 50%; }
.opt.sel .mark { border-color: var(--green-bright); background: var(--green-bright); color: #04210c; }
.q-number { border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04); color: #fff;
  border-radius: 12px; padding: 15px 18px; width: 100%; font-family: var(--body); font-size: 1.15rem; }
.q-number:focus { outline: 0; border-color: var(--green-bright); }
.survey-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 24px; }
.hint { color: #aeb7c2; font-size: .85rem; margin-top: 10px; }

/* ---- Calendario / Calendly ---- */
.calendly-inline-widget { min-width: 320px; height: 720px; }
.cal-fallback { text-align: center; margin-top: 18px; }

/* ---- Footer ---- */
.site-footer { background: var(--dark); color: #aeb7c2; padding: 40px 0; text-align: center; }
.site-footer .logo { height: 40px; margin: 0 auto 16px; opacity: .95; }
.site-footer nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.site-footer nav a { color: #aeb7c2; font-size: .9rem; }
.site-footer nav a:hover { color: var(--green-bright); }
.site-footer small { color: #6b7480; }

/* ---- Utilidades ---- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 18px; }
.hide { display: none !important; }
.pill-cta { text-align: center; margin-top: 30px; }
.spacer { height: 20px; }

/* Barra flotante de WhatsApp (móvil) */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px;
  border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.5); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  section { padding: 46px 0; }
  .card { padding: 22px; }
  .btn { width: 100%; }
}

/* Prueba social: logo de marca centrado (CIERRE 212) */
.testis-brand { display: flex; justify-content: center; }
.testis-brand img { height: 72px; width: auto; max-width: 78%; object-fit: contain; }
