/* Aprende Marketing — estilos de la web. Los colores salen de brand.css */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--background-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link-color); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--brand-mint); }
h1, h2, h3 { margin: 0; color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brand-navy); color: var(--text-on-dark);
  padding: 10px 16px; border-radius: var(--radius-btn); text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--text-on-dark); }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.container--mid { max-width: 1000px; }
.section { padding: var(--section-y) 0; }
.section--white { background: var(--brand-white); }
.section--off { background: var(--brand-offwhite); }
.section--navy { background: var(--brand-navy); color: var(--text-on-dark); }
.split { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; }
.split--top { align-items: flex-start; }
.split > * { flex: 1 1 420px; min-width: 0; }
.cards { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.cards > * { flex: 1 1 300px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--sm { gap: 12px; }
.center { text-align: center; }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; align-items: center; }

/* ---------- Tipografía ---------- */
.eyebrow { font-size: 14px; font-weight: 600; color: var(--brand-blue); text-transform: uppercase; letter-spacing: 0.08em; }
.h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.1; letter-spacing: -0.03em; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -0.02em; color: var(--brand-navy); }
.section--navy .h2 { color: var(--text-on-dark); }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--brand-navy); }
.h3--lg { font-weight: 700; font-size: 22px; }
.lead { font-size: 19px; line-height: 1.6; color: var(--text-secondary); max-width: 600px; }
.on-dark .lead { color: var(--text-on-dark-muted); }
.body-lg { font-size: 18px; line-height: 1.7; color: var(--text-secondary); }
.muted { color: var(--text-secondary); }
.small { font-size: 14px; }
.accent { color: var(--brand-mint); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: var(--radius-btn); border: 0;
  font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: filter .15s ease, background-color .15s ease;
}
.btn svg { flex: none; }
.btn--primary, .btn--primary:hover { background: var(--button-primary-bg); color: var(--button-primary-text); }
.btn--primary:hover { filter: brightness(0.93); }
.btn--secondary { background: var(--brand-white); color: var(--brand-blue); border: 1.5px solid var(--brand-blue); }
.btn--secondary:hover { background: #EFF4FF; color: var(--brand-blue); }
.btn--ghost-dark { color: var(--text-on-dark); border: 1px solid rgba(255, 255, 255, 0.5); background: transparent; }
.btn--ghost-dark:hover { color: var(--text-on-dark); background: rgba(255, 255, 255, 0.08); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 17px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.is-disabled, .btn.is-disabled:hover {
  background: var(--brand-offwhite); color: var(--text-secondary);
  border: 1px solid var(--border-strong); filter: none; cursor: not-allowed;
}
.hero .btn.is-disabled, .hero .btn.is-disabled:hover {
  background: rgba(255, 255, 255, 0.10); color: var(--text-on-dark-muted); border-color: rgba(255, 255, 255, 0.28);
}
.checkout-note { font-size: 14px; line-height: 1.5; color: var(--text-secondary); text-align: center; }
.hero .checkout-note { color: var(--text-on-dark-muted); text-align: left; }
.hero .checkout-note a { color: var(--brand-mint); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--link-color); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--brand-white); border-bottom: 1px solid var(--border); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--brand-graphite); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--brand-blue); }
.nav-mobile { display: none; align-items: center; gap: 8px; }
.menu-toggle {
  width: 44px; height: 44px; border-radius: var(--radius-btn);
  border: 1px solid var(--border); background: var(--brand-white);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.mobile-menu { display: none; border-top: 1px solid var(--border); background: var(--brand-white); padding: 8px var(--gutter) 20px; }
.mobile-menu a { display: flex; align-items: center; min-height: 48px; color: var(--brand-graphite); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero { background: var(--brand-navy); color: var(--text-on-dark); }
.hero__inner { padding-top: 80px; padding-bottom: 88px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px 56px; }
.hero__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero__aside { flex: 1 1 380px; min-width: 0; max-width: 460px; margin: 0 auto; }
.tag-mint {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: rgba(56, 214, 178, 0.12); color: var(--brand-mint); font-size: 14px; font-weight: 600;
}
.tag-mint .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-mint); }
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; font-size: 14px; color: var(--text-on-dark-muted); }
.hero-checks li { display: flex; align-items: center; gap: 8px; }
.hero-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.hero-price strong { font-family: var(--font-display); font-weight: 700; font-size: 42px; line-height: 1.1; }
.hero-price s, .hero-price span { font-size: 16px; color: var(--text-on-dark-muted); }

.video-slot {
  position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden;
  background: #0A1F33; border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.video-slot iframe, .video-slot video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-slot__play { width: 72px; height: 72px; border-radius: 50%; background: var(--brand-mint); display: flex; align-items: center; justify-content: center; }
.video-slot__note { font-size: 14px; font-weight: 600; background: rgba(15, 42, 68, 0.85); padding: 6px 12px; border-radius: 8px; }

/* ---------- Tarjetas ---------- */
.card {
  position: relative; background: var(--background-card); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 32px; display: flex; flex-direction: column; gap: 16px;
}
.card--featured { border: 2px solid var(--brand-navy); }
.card--mint { border: 2px solid var(--brand-mint); }
.card--dashed { border-style: dashed; border-color: #B6BDC9; padding: 20px 24px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.card--flat { padding: 28px; gap: 12px; }
.card--row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.card--row > .stack { flex: 1 1 380px; min-width: 0; }
.card--row > .btn-row { flex: 0 1 260px; }
.card__badge {
  position: absolute; top: -13px; left: 28px;
  background: var(--brand-mint); color: var(--brand-navy);
  font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: var(--radius-pill);
}
.card__foot { margin-top: auto; display: flex; flex-direction: column; gap: 16px; }
.card .muted { font-size: 16px; line-height: 1.6; }
.icon-box { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-navy); display: flex; align-items: center; justify-content: center; }
.label-soon { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.price strong { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1.1; color: var(--brand-navy); }
.price s, .price span { font-size: 16px; color: var(--text-secondary); }
.pill-save { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--brand-navy); background: var(--brand-mint); padding: 4px 10px; border-radius: var(--radius-pill); }
.plain-list { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--text-secondary); }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.5; color: var(--brand-graphite); }
.check-list li { display: flex; gap: 14px; }
.check-list svg { flex: none; margin-top: 2px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 14px; border-radius: var(--radius-pill); background: var(--brand-white); border: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.section--white .chips li { background: var(--brand-offwhite); }
.chips li { color: var(--brand-graphite); }
.on-dark .chips li { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); color: var(--text-on-dark); }

.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.facts li { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 6px; background: var(--brand-white); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; font-size: 15px; font-weight: 600; color: var(--brand-navy); }
.section--white .facts li { background: var(--brand-offwhite); }

.expertise { display: flex; flex-direction: column; gap: 14px; background: var(--brand-white); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.section--white .expertise { background: var(--brand-offwhite); }
.expertise__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.expertise__row + .expertise__row { padding-top: 14px; border-top: 1px solid var(--border); }
.expertise__label { flex: 0 0 88px; font-size: 13px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; }
.expertise__items { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; flex: 1 1 260px; min-width: 0; }
.expertise__items li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--brand-navy); }

/* Vista previa del curso (hero home) */
.preview-card { background: var(--background-card); color: var(--text-primary); border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.preview-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preview-card__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--brand-navy); }
.module-mini { list-style: none; display: flex; flex-direction: column; }
.module-mini li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.module-mini li:last-child { border-bottom: 0; }
.module-mini li.more { color: var(--text-secondary); }
.module-mini b { font-family: var(--font-display); color: var(--brand-blue); width: 24px; flex: none; }
.preview-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.preview-card__label { font-size: 12px; font-weight: 600; color: var(--brand-blue); text-transform: uppercase; letter-spacing: 0.06em; }
.preview-card__price { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--brand-navy); }
.preview-card__price s { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--text-secondary); }

/* Barra de confianza */
.trust { background: var(--brand-offwhite); border-bottom: 1px solid var(--border); }
.trust__inner { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; font-size: 15px; color: var(--brand-graphite); }
.trust__item { display: flex; align-items: center; gap: 10px; }
.trust__num { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--brand-blue); }

/* Metodología */
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 24px; }
.steps li { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--brand-navy); }
.steps__num { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--brand-blue); }

/* Temario */
.modules { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.modules li { display: flex; gap: 20px; align-items: flex-start; padding: 20px 24px; background: var(--background-card); border: 1px solid var(--border); border-radius: 12px; }
.modules__num { flex: none; width: 36px; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--brand-blue); }
.modules h3 { font-size: 17px; font-weight: 600; color: var(--brand-navy); font-family: var(--font-body); }
.modules p { font-size: 15px; line-height: 1.55; color: var(--text-secondary); margin-top: 4px; }

/* Pasos numerados (sesión) */
.howto { list-style: none; counter-reset: paso; display: flex; flex-wrap: wrap; gap: 24px; }
.howto li { counter-increment: paso; flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.howto li::before {
  content: counter(paso); width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-navy); color: var(--brand-mint);
  font-family: var(--font-display); font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* Instructor */
.portrait { width: 100%; max-width: 360px; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 20%; border-radius: 20px; margin: 0 auto; }
.split > .portrait { flex: 0 1 360px; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--border-strong); }
.faq details { border-bottom: 1px solid var(--border-strong); padding: 4px 0; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 12px 4px; font-weight: 600; font-size: 18px; color: var(--brand-navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-display); font-size: 24px; font-weight: 400; color: var(--brand-blue); flex: none; }
.faq details[open] summary::after { content: '–'; }
.faq p { padding: 0 4px 18px; font-size: 16px; line-height: 1.6; color: var(--text-secondary); }

/* Garantía */
.guarantee { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; }
.guarantee__icon { flex: none; width: 84px; height: 84px; border-radius: 50%; background: var(--brand-mint); display: flex; align-items: center; justify-content: center; }
.guarantee__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Formularios ---------- */
.form-card { background: var(--background-card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 48px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.form-row > .field { flex: 1 1 200px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--brand-graphite); }
.field input {
  min-height: 48px; padding: 0 14px; border-radius: var(--radius-btn);
  border: 1px solid var(--border-input); background: var(--brand-white); color: var(--text-primary);
  font-size: 16px; font-family: inherit;
}
.field input:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--focus-ring); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--brand-navy); }
.form-status { font-size: 15px; font-weight: 500; min-height: 1px; }
.form-status--ok { color: var(--success); }
.form-status--error { color: var(--error); }

/* Páginas de gracias */
.thanks { padding: 88px 0 96px; }
.thanks__card { max-width: 720px; margin: 0 auto; background: var(--background-card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 48px; display: flex; flex-direction: column; gap: 20px; }
.thanks__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-mint); display: flex; align-items: center; justify-content: center; }
.thanks__steps { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.thanks__steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.55; color: var(--brand-graphite); }
.thanks__steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-offwhite); color: var(--brand-navy); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }

/* Páginas legales */
.legal { padding: 64px 0 96px; }
.legal__body { max-width: 760px; margin: 0 auto; background: var(--background-card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 48px; }
.legal__body h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; color: var(--brand-navy); margin-bottom: 8px; }
.legal__body h2 { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--brand-navy); margin: 32px 0 10px; }
.legal__body p, .legal__body li { font-size: 16px; line-height: 1.7; color: var(--brand-graphite); }
.legal__body p + p { margin-top: 12px; }
.legal__body ul { padding-left: 22px; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.legal__date { font-size: 14px; color: var(--text-secondary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-navy); color: var(--text-on-dark); border-top: 2px solid var(--brand-mint); }
.site-footer__inner { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; font-size: 14px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand img { height: 64px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--text-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand-mint); }
.site-footer .muted { color: var(--text-on-dark-muted); }

/* ---------- Móvil ---------- */
@media (max-width: 760px) {
  :root { --section-y: 64px; --gutter: 20px; }
  .nav { display: none; }
  .nav-mobile { display: flex; }
  .mobile-menu.is-open { display: flex; flex-direction: column; }
  .brand img { height: 32px; }
  .site-header__bar { min-height: 64px; }
  .hero__inner { padding-top: 40px; padding-bottom: 56px; }
  .btn-row > .btn { width: 100%; }
  .card, .form-card, .thanks__card, .legal__body { padding: 24px; }
  .card--dashed { padding: 20px; }
  .card--row > .btn-row { flex: 1 1 100%; }
  .hero-price strong { font-size: 36px; }
  .modules li { padding: 16px 18px; gap: 12px; }
  .faq summary { font-size: 17px; }
  .site-footer__brand img { height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
