/*
 * lead.css — Estilos para la landing /guia/ (lead magnet) y el partial .lead-cta
 * Depende de tokens definidos en tokens.css y clases base de base.css / components.css
 */

/* ════════════════════════════════════════════
   HERO DEL LEAD MAGNET
   ════════════════════════════════════════════ */

.lead-hero {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1008 60%, #0d0d0d 100%);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
  overflow: hidden;
}

.lead-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(249,115,22,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(249,115,22,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.lead-hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-10);
  align-items: center;
  position: relative;
}

@media (max-width: 768px) {
  .lead-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.lead-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(249,115,22,0.12);
  border: 1px solid rgba(249,115,22,0.3);
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.lead-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: var(--space-4);
}

.lead-hero__title span {
  color: var(--color-accent);
}

.lead-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: var(--space-6);
}

@media (max-width: 768px) {
  .lead-hero__subtitle {
    max-width: 100%;
  }
}

.lead-hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .lead-hero__actions {
    justify-content: center;
  }
}

.lead-hero__trust {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ── Mockup portada PDF ── */

.lead-mockup {
  flex-shrink: 0;
  width: 180px;
  position: relative;
}

@media (max-width: 768px) {
  .lead-mockup {
    width: 140px;
    margin: 0 auto;
  }
}

.lead-mockup__book {
  background: linear-gradient(145deg, #fff 0%, #f0f0f0 100%);
  border-radius: 6px 10px 10px 6px;
  box-shadow:
    -4px 4px 0 #e0e0e0,
    -8px 8px 0 #d0d0d0,
    0 16px 40px rgba(0,0,0,0.5);
  padding: 18px 16px 18px 20px;
  position: relative;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lead-mockup__book::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(180deg, #e67e22 0%, #f97316 100%);
  border-radius: 6px 0 0 6px;
}

.lead-mockup__badge {
  font-size: 6px;
  font-weight: 800;
  color: #f97316;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.lead-mockup__title {
  font-size: 10px;
  font-weight: 900;
  color: #111;
  line-height: 1.3;
  margin-bottom: 8px;
}

.lead-mockup__title span {
  color: #f97316;
}

.lead-mockup__img {
  flex: 1;
  background: #f4f4f4;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.lead-mockup__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-mockup__brand {
  font-size: 6px;
  color: #aaa;
  text-align: right;
}

/* ════════════════════════════════════════════
   SECCIÓN DE CARACTERÍSTICAS (bento)
   ════════════════════════════════════════════ */

.lead-features {
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--color-border);
}

.lead-features__eyebrow {
  text-align: center;
  margin-bottom: var(--space-2);
}

.lead-features__heading {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-8);
}

/* ════════════════════════════════════════════
   SECCIÓN DEL FORMULARIO
   ════════════════════════════════════════════ */

.lead-form-section {
  padding: var(--space-12) 0 var(--space-16);
  background: linear-gradient(180deg, transparent 0%, rgba(249,115,22,0.03) 100%);
}

.lead-form-wrap {
  max-width: 520px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

@media (max-width: 600px) {
  .lead-form-wrap {
    padding: var(--space-6);
    border-radius: var(--radius-md);
  }
}

.lead-form-wrap__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-2);
  text-align: center;
}

.lead-form-wrap__sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-6);
}

/* ── Estado de éxito (descarga disponible) ── */

.lead-download-box {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
}

.lead-download-box__icon {
  color: #22c55e;
  margin-bottom: var(--space-3);
}

.lead-download-box__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-2);
}

.lead-download-box__sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

/* Las reglas del banner .lead-cta se movieron a footer.css (CSS global),
   porque el banner aparece en páginas de contenido que no cargan lead.css. */
