/* ============================================
   EMERSON ECUAVOLEY — Propuesta portada solo-cursos
   Mobile-first, ligero. Inter: 400 / 700 / 800.
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:            #0e0e0e;
  --bg-card:       #161616;
  --bg-dark:       #0a0a0a;
  --bg-section:    #111111;
  --border:        rgba(255,255,255,0.08);

  --accent:        #f5c800;
  --accent-dim:    rgba(245,200,0,0.12);

  --text-primary:  #f4f4f4;
  --text-secondary:#9ca3af;
  --text-muted:    #6b7280;

  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius: 14px;
  --nav-h: 56px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }

h1, h2, h3 { font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(1.55rem, 6.5vw, 2.15rem); }
h2 { font-size: clamp(1.35rem, 5vw, 1.9rem); }
p  { color: var(--text-secondary); }

.container { max-width: 720px; margin: 0 auto; padding: 0 20px; }
section { padding: 2.5rem 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: none; }

/* === HEADER (compacto, sin menú) === */
#nav {
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,14,14,0.92);
  backdrop-filter: saturate(140%) blur(6px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { font-weight: 800; font-size: .95rem; color: #fff; display: flex; align-items: baseline; gap: 4px; }
.nav-logo .logo-accent { color: var(--accent); }
.nav-wa {
  display: inline-flex; align-items: center; gap: 6px;
  background: #25d366; color: #062; font-weight: 800; font-size: .78rem;
  padding: .45rem .7rem; border-radius: 999px;
}

/* === KICKER / LABEL === */
.kicker {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .5rem; display: block;
}

/* === HERO === */
#hero { padding-top: 1.5rem; padding-bottom: 1.5rem; }
#hero h1 { color: #fff; margin-bottom: .6rem; }
#hero .lead { font-size: .95rem; margin-bottom: 1rem; }

.author-chip {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 1rem;
}
.author-chip img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.author-chip .who { font-size: .78rem; color: var(--text-secondary); line-height: 1.35; }
.author-chip .who strong { color: #fff; display: block; font-size: .85rem; }

.offer-box {
  background: var(--accent-dim);
  border: 1px solid rgba(245,200,0,0.35);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.offer-box .offer-title { font-size: 1.05rem; font-weight: 800; color: #fff; margin-bottom: .2rem; }
.offer-box .offer-price { color: var(--accent); font-weight: 800; }
.offer-box .offer-sub { font-size: .82rem; color: var(--text-secondary); }

.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: var(--accent); color: #0e0e0e;
  font-weight: 800; font-size: .95rem;
  padding: .95rem 1rem; border: none; border-radius: 10px;
  cursor: pointer; font-family: inherit;
}
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.btn-secondary-link {
  display: block; text-align: center; margin-top: .65rem;
  font-size: .84rem; font-weight: 700; color: var(--text-secondary);
  text-decoration: underline;
}

.trust-line {
  text-align: center; font-size: .74rem; color: var(--text-muted);
  margin-top: .7rem;
}

/* === SECCIÓN GENÉRICA === */
.section-title { color: #fff; margin-bottom: .4rem; }
.section-sub { font-size: .9rem; margin-bottom: 1.2rem; }

/* === VIDEO === */
.video-box { border-radius: var(--radius); overflow: hidden; margin: 1rem 0; box-shadow: 0 0 30px rgba(245,200,0,0.1); }
.video-box video { width: 100%; background: #111; }

.stat-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.stat-chip {
  flex: 1 1 auto; min-width: 120px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: .6rem .8rem; font-size: .78rem; color: var(--text-secondary); text-align: center;
}
.stat-chip strong { display: block; color: var(--accent); font-size: .95rem; }

/* === CURSOS === */
.curso-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem 1.1rem; margin-bottom: 1rem; position: relative;
}
.curso-card.featured { border-color: var(--accent); box-shadow: 0 0 28px rgba(245,200,0,0.14); }
.curso-tag {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .04em;
  background: var(--accent); color: #0e0e0e; padding: .25rem .55rem; border-radius: 999px;
  margin-bottom: .6rem; text-transform: uppercase;
}
.curso-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: .35rem; }
.curso-card .precio { font-size: 1.6rem; font-weight: 800; color: var(--accent); margin: .3rem 0 .6rem; }
.curso-card .precio .antes { font-size: .78rem; color: var(--text-muted); font-weight: 700; text-decoration: line-through; margin-right: 6px; }
.curso-card ul { list-style: none; margin-bottom: 1rem; }
.curso-card li { font-size: .85rem; color: var(--text-secondary); padding-left: 1.1rem; position: relative; margin-bottom: .35rem; }
.curso-card li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.curso-card .bonus { font-size: .82rem; color: #fff; background: rgba(245,200,0,0.08); border: 1px dashed rgba(245,200,0,0.35); border-radius: 8px; padding: .5rem .6rem; margin-bottom: 1rem; }

.btn-comprar {
  width: 100%; background: var(--accent); color: #0e0e0e; border: none;
  font-family: inherit; font-weight: 800; font-size: .9rem; padding: .85rem;
  border-radius: 10px; cursor: pointer; margin-bottom: .5rem;
}
.btn-comprar:disabled { opacity: .6; cursor: not-allowed; }
.btn-transfer {
  width: 100%; background: transparent; color: #25d366; border: 1px solid rgba(37,211,102,.45);
  font-family: inherit; font-weight: 700; font-size: .82rem; padding: .72rem;
  border-radius: 10px; cursor: pointer;
}

/* === PASOS === */
.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex; gap: .8rem; align-items: flex-start;
  font-size: .88rem; color: var(--text-secondary);
  margin-bottom: .9rem;
}
.steps li::before {
  content: counter(step);
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #0e0e0e; font-weight: 800; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
}
.security-note { font-size: .78rem; color: var(--text-muted); margin-top: .8rem; }

/* === TESTIMONIOS === */
.testi { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1rem; }
.testi p { font-style: italic; color: var(--text-primary); font-size: .92rem; margin-bottom: .7rem; }
.testi .autor { font-weight: 700; color: var(--accent); font-size: .82rem; }

/* === FAQ === */
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: .95rem 1.05rem; margin-bottom: .6rem; }
.faq-item summary { cursor: pointer; list-style: none; font-weight: 700; font-size: .9rem; position: relative; padding-right: 1.6rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 0; color: var(--accent); font-size: 1.15rem; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin-top: .6rem; font-size: .85rem; color: var(--text-muted); }

/* === CIERRE === */
#cierre { text-align: center; }
#cierre p { margin-bottom: 1.1rem; font-size: .9rem; }

/* === FOOTER === */
footer { padding: 2rem 0 3rem; border-top: 1px solid var(--border); background: var(--bg-section); }
footer .footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: center; margin-bottom: 1rem; font-size: .8rem; }
footer .footer-links a { color: var(--text-secondary); }
footer .footer-copy { display: block; text-align: center; font-size: .74rem; color: var(--text-muted); }

/* === MODALES (compra tarjeta / transferencia) === */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.82); align-items: center; justify-content: center; padding: 1rem;
}
.modal-box {
  background: var(--bg-card); border: 1px solid var(--accent); border-radius: 16px;
  max-width: 420px; width: 100%; max-height: 92vh; overflow-y: auto;
  padding: 1.6rem 1.4rem; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.modal-close {
  position: absolute; top: 8px; right: 12px; background: none; border: none;
  color: var(--text-muted); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.modal-box label {
  display: block; font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px;
}
.modal-box input, .modal-box select {
  width: 100%; padding: .68rem .8rem; background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-primary); font-family: inherit; font-size: .9rem; margin-bottom: .8rem;
}
.modal-error { display: none; color: #ef4444; font-size: .8rem; margin-bottom: .6rem; font-weight: 600; }
.modal-ok { display: none; margin-top: 10px; padding: 12px; background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.35); border-radius: 8px; color: #25d366; font-weight: 600; text-align: center; font-size: .85rem; }
.tf-bank { background: var(--bg-dark); border: 1px solid var(--border); border-radius: 10px; padding: .8rem .9rem; font-size: .82rem; line-height: 1.75; margin-bottom: 1rem; color: var(--text-secondary); }
.tf-bank strong { color: var(--accent); }
.tf-wa-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25d366; color: #062; font-weight: 800; font-size: .88rem;
  padding: .8rem; border-radius: 10px; margin-bottom: .6rem;
}
.tf-note { text-align: center; font-size: .72rem; color: var(--text-muted); margin-bottom: 1rem; }
.tf-merch { display: none; }
.form-note { font-size: .75rem; color: var(--text-muted); margin-top: .5rem; text-align: center; }

@media (min-width: 640px) {
  .container { padding: 0 32px; }
}

/* Foto de accion arriba (26-sep-2026). Baja altura en movil para que precio y boton sigan sin scroll. */
.hero-img { display:block; margin:0 0 1rem; border-radius:14px; overflow:hidden; border:1px solid rgba(255,255,255,.08); }
.hero-img img { display:block; width:100%; height:170px; object-fit:cover; object-position:50% 22%; }
@media (min-width: 640px) { .hero-img img { height:300px; } }
