/* ============================================================
   landing.css — Página de venta pública (clases con prefijo .lp-)
   Reutiliza los tokens de :root definidos en style.css
   ============================================================ */

.lp { background: var(--bg); color: var(--text); }
.lp-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.lp-center { text-align: center; margin-top: 28px; }

/* ---------- Botones ---------- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease;
  white-space: nowrap; line-height: 1;
}
.lp-btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.lp-btn-lg { padding: 15px 26px; font-size: 16px; }
.lp-btn-primary { background: linear-gradient(90deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 10px 24px rgba(11,99,255,.28); }
.lp-btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.lp-btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.lp-btn-ghost:hover { background: var(--primary-light); transform: translateY(-2px); }
.lp-btn-light { background: #fff; color: var(--primary); }
.lp-btn-light:hover { transform: translateY(-2px); }
.lp-btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.lp-btn-ghost-light:hover { background: rgba(255,255,255,.12); }

/* ---------- Header ---------- */
.lp-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .25s ease, box-shadow .25s ease; }
.lp-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.lp-header-inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.lp-logo { display: flex; align-items: center; }
.lp-logo img { display: block; }
.lp-nav { display: flex; gap: 6px; margin-left: 8px; }
.lp-nav a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--text-secondary); transition: color .2s, background-color .2s; }
.lp-nav a:hover { color: var(--primary); background: var(--primary-light); }
.lp-header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lp-theme { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; font-size: 17px; }
.lp-theme:hover { background: var(--primary-light); }
.lp-burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.lp-burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.lp-burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.lp-burger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.lp-burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
.lp-mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 10px 20px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.lp-mobile-nav.open { display: flex; }
.lp-mobile-nav a { padding: 12px 10px; border-radius: 10px; font-weight: 600; color: var(--text); }
.lp-mobile-nav a:hover { background: var(--primary-light); color: var(--primary); }
.lp-mobile-nav .lp-btn { margin-top: 6px; }

/* ---------- Hero ---------- */
.lp-hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 84px) 0 clamp(60px, 9vw, 110px); background:
  radial-gradient(1100px 480px at 88% -8%, rgba(11,99,255,.14), transparent 60%),
  radial-gradient(800px 420px at -5% 10%, rgba(11,99,255,.10), transparent 55%); }
.lp-hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.lp-eyebrow { display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--primary); background: var(--primary-light); border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.lp-hero-copy h1 { margin: 0 0 16px; font-size: clamp(32px, 5vw, 54px); line-height: 1.06; letter-spacing: -1px; font-weight: 800; }
.lp-grad { background: linear-gradient(90deg, var(--primary), #22a3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--text-secondary); line-height: 1.6; max-width: 56ch; margin: 0 0 26px; }
.lp-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-hero-trust { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-secondary); font-size: 14.5px; font-weight: 600; }
.lp-hero-trust li { color: var(--success); }

.lp-hero-media { position: relative; }
.lp-hero-card { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); aspect-ratio: 4/3; background: #0f172a; }
.lp-hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-hero-badge { position: absolute; top: 16px; left: 16px; z-index: 2; background: rgba(255,255,255,.92); color: #0b1220; font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.lp-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 18px; }
.lp-stats > div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; text-align: center; box-shadow: var(--shadow-sm); }
.lp-stats b { display: block; font-size: 26px; font-weight: 800; color: var(--primary); }
.lp-stats span { font-size: 13px; color: var(--text-secondary); }

/* ---------- Secciones ---------- */
.lp-section { padding: clamp(48px, 7vw, 88px) 0; }
.lp-section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.lp-section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 6px 0 10px; letter-spacing: -.6px; font-weight: 800; }
.lp-section-head p { color: var(--text-secondary); font-size: 17px; margin: 0; }

.lp-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.lp-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.lp-feature { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.lp-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.lp-feature-ico { width: 54px; height: 54px; display: grid; place-items: center; font-size: 26px; border-radius: 14px; background: var(--primary-light); margin-bottom: 14px; }
.lp-feature h3 { margin: 0 0 8px; font-size: 18px; }
.lp-feature p { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.55; }

/* ---------- Chips ---------- */
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.lp-chip { border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s; }
.lp-chip:hover { border-color: var(--primary); color: var(--primary); }
.lp-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Cursos ---------- */
.lp-courses { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.lp-course { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.lp-course:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.lp-course-cover { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #0f172a; }
.lp-course-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.lp-course:hover .lp-course-cover img { transform: scale(1.06); }
.lp-course-cat { position: absolute; bottom: 10px; left: 10px; background: rgba(255,255,255,.92); color: #0b1220; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.lp-tag-new { position: absolute; top: 10px; right: 10px; background: var(--success); color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.lp-course-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lp-course-body h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.lp-course-body p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.5; flex: 1; }
.lp-course-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.lp-price { font-weight: 800; color: var(--primary); font-size: 15px; }
a.lp-price:hover { text-decoration: underline; }
.lp-empty { grid-column: 1/-1; text-align: center; padding: 40px; border: 1px dashed var(--border); border-radius: 16px; color: var(--text-secondary); }

/* ---------- Pasos ---------- */
.lp-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; counter-reset: step; }
.lp-step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px 22px; box-shadow: var(--shadow-sm); }
.lp-step-n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); margin-bottom: 14px; }
.lp-step h3 { margin: 0 0 8px; font-size: 18px; }
.lp-step p { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.55; }

/* ---------- Testimonios ---------- */
.lp-quote { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); }
.lp-stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 10px; }
.lp-quote blockquote { margin: 0 0 12px; font-size: 15.5px; line-height: 1.6; }
.lp-quote figcaption { color: var(--text-secondary); font-weight: 600; font-size: 14px; }

/* ---------- CTA band ---------- */
.lp-cta-band { background: linear-gradient(120deg, var(--primary), var(--primary-2)); color: #fff; padding: clamp(40px, 6vw, 70px) 0; }
.lp-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.lp-cta-inner h2 { margin: 0 0 6px; font-size: clamp(24px, 3.2vw, 34px); }
.lp-cta-inner p { margin: 0; opacity: .92; font-size: 17px; }
.lp-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.lp-faq { max-width: 820px; }
.lp-faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 18px; margin-bottom: 12px; }
.lp-faq-item summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after { content: "+"; font-size: 22px; color: var(--primary); transition: transform .2s; }
.lp-faq-item[open] summary::after { transform: rotate(45deg); }
.lp-faq-item p { margin: 0 0 16px; color: var(--text-secondary); line-height: 1.6; }

/* ---------- Footer ---------- */
.lp-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 48px; }
.lp-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 36px; }
.lp-footer-brand p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin: 12px 0 0; max-width: 36ch; }
.lp-footer h4 { font-size: 14px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-secondary); }
.lp-footer a { display: block; padding: 5px 0; color: var(--text); font-size: 14.5px; }
.lp-footer a:hover { color: var(--primary); }
.lp-footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; color: var(--text-secondary); font-size: 13.5px; text-align: center; }

/* ---------- WhatsApp flotante ---------- */
.lp-whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37,211,102,.5); transition: transform .2s; }
.lp-whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Wave decorativa ---------- */
.lp-hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; background: var(--bg); -webkit-mask: radial-gradient(60px 40px at 50% 0, transparent 98%, #000) repeat-x; mask: radial-gradient(60px 40px at 50% 0, transparent 98%, #000) repeat-x; display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .lp-nav { display: none; }
  .lp-burger { display: flex; }
  .lp-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .lp-hero-media { order: -1; }
  .lp-grid-4 { grid-template-columns: repeat(2,1fr); }
  .lp-courses { grid-template-columns: repeat(2,1fr); }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .lp-nav { display: none; }
  .lp-header-actions .lp-btn-primary { display: none; }
  .lp-grid-4, .lp-grid-3, .lp-courses, .lp-steps { grid-template-columns: 1fr; }
  .lp-stats { grid-template-columns: repeat(3,1fr); }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; }
  .lp-cta-inner { flex-direction: column; align-items: flex-start; }
}
