/* Landing Certcademy — mobile-first. Valores tomados del tema original de MailerLite. */
:root {
  --navy: #1A1C3D;
  --orange: #E66F11;
  --light: #E3E0DF;

  --navy-hover: #3f405c;
  --orange-hover: #d46610;
  --heading: #06193E;
  --text: #333333;
  --muted: #7B7B8C;
  --border: #d8d8d8;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --h1: 39px;
  --h2: 30px;
  --h3: 24px;
  --h4: 21px;
  --p1: 18px;
  --p3: 16px;

  --bar-h: 0px;
}

@media (min-width: 768px) {
  :root {
    --h1: 52px;
    --h2: 40px;
    --h3: 32px;
    --h4: 28px;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--text);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4, p, ul { margin: 0; }

strong { font-weight: 700; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  background: var(--orange);
  color: var(--navy);
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Tipografía ---------- */
.h1, .h2, .h3, .h4 {
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05rem;
  color: var(--heading);
  overflow-wrap: break-word;
  margin-bottom: 0.75rem;
}
.h1 { font-size: var(--h1); }
.h2 { font-size: var(--h2); }
.h3 { font-size: var(--h3); }
.h4 { font-size: var(--h4); }

.p1 { font-size: var(--p1); }
.p3 { font-size: var(--p3); line-height: 1.6; }

.prose > p + p { margin-top: 1rem; }
.prose p { line-height: 1.7; }

.center { text-align: center; }
.right { text-align: right; }
.justify { text-align: justify; }

.on-dark { color: var(--light); }
.on-dark .h1, .on-dark .h2, .on-dark .h3, .on-dark .h4 { color: var(--light); }
.c-orange, .on-dark .c-orange { color: var(--orange); }
.c-navy { color: var(--navy); }
.c-black { color: #000; }
.c-muted { color: var(--muted); }

.mb-1 { margin-bottom: 1rem; }
.mb-15 { margin-bottom: 1.5rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-25 { margin-bottom: 2.5rem; }
.mb-3 { margin-bottom: 3rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0.125rem 21px;
  border: 0;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.375;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-hover); }
.btn-secondary { background: var(--orange); color: var(--navy); }
.btn-secondary:hover { background: var(--orange-hover); }

.btn-sm { min-height: 38px; padding: 0.125rem 18.67px; border-radius: 6px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0.125rem 24px; border-radius: 10px; font-size: 18px; }

.btn-row { display: flex; justify-content: center; }

@media (min-width: 640px) {
  .btn { width: auto; }
}

/* ---------- Barra superior fija ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--orange);
}
.topbar__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 2rem;
}
.topbar__title {
  font-size: var(--h4);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05rem;
  color: #000;
  text-align: center;
}
.topbar__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}
@media (min-width: 768px) {
  .topbar__actions { flex-direction: row; width: auto; }
}
@media (min-width: 1280px) {
  .topbar__inner { padding: 0.5rem 2rem; }
}

/* ---------- Secciones ---------- */
.section { background: var(--light); }
.section--navy { background: var(--navy); }

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 768px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

/* Espaciado vertical de cada sección (valores originales) */
#hero .container       { padding-top: 4.5rem; padding-bottom: 0; }
#hero                  { padding-bottom: 1px; }
#dos-caminos .container { padding-top: 7.5rem; padding-bottom: 6rem; }
#historia .container   { padding-top: 7rem; padding-bottom: 1rem; }
#dominar .container    { padding-top: 2rem; padding-bottom: 1.5rem; }
#estrategia .container { padding-top: 4rem; padding-bottom: 1.5rem; }
#para-ti .container    { padding-top: 2.5rem; padding-bottom: 2rem; }
#precio .container     { padding-top: 2rem; padding-bottom: 0.5rem; }
#temario .container    { padding-top: 7rem; padding-bottom: 7rem; }
#cierre .container     { padding-top: 2rem; padding-bottom: 1rem; }

@media (max-width: 767px) {
  #dos-caminos .container { padding-top: 4.5rem; padding-bottom: 3.5rem; }
  #historia .container    { padding-top: 4.5rem; }
  #temario .container     { padding-top: 4.5rem; padding-bottom: 4.5rem; }
}

/* El destino del scroll no debe quedar debajo de la barra fija */
section[id] { scroll-margin-top: 120px; }
@media (min-width: 768px) {
  section[id] { scroll-margin-top: 64px; }
}

/* ---------- Rejillas ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 4rem;
  align-items: start;
}
.grid--center { align-items: center; }
.grid + .grid { margin-top: 2rem; }

@media (min-width: 1024px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Tarjeta con ícono */
.feature__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.feature__icon { width: 50px; height: 50px; flex: 0 0 50px; }
.feature__title { font-size: var(--p1); font-weight: 700; color: var(--text); }

.portrait { width: 100%; border-radius: 12px; }

.signature { color: #eee; margin-top: 2rem; margin-bottom: 0.5rem; line-height: 1.7; }

/* Listas */
.bullets { margin-left: 1.5rem; padding: 0; list-style: disc; }
.bullets li + li { margin-top: 0.25rem; }

/* Precio */
.price-old { color: var(--muted); }
.price-now { margin-top: 0.5rem; }
.price-note { color: var(--muted); margin-top: 0.75rem; line-height: 1.7; }

/* ---------- Acordeón del temario ---------- */
.accordion { display: grid; gap: 0.5rem; }

.accordion details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.accordion summary {
  position: relative;
  display: block;
  padding: 24px 56px 24px 24px;
  cursor: pointer;
  list-style: none;
  border-radius: 16px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.accordion summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.4rem;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.2s ease;
}
.accordion details[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.accordion summary .h3,
.accordion summary .h4 { margin: 0; }
.accordion__body { padding: 0 24px 24px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: var(--light);
  border-top: 1px solid rgba(227, 224, 223, 0.15);
}
.footer .container {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.footer__logo { width: auto; height: 80px; }

.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(227, 224, 223, 0.08);
  color: var(--light);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.social a:hover { background: var(--orange); color: var(--navy); }
.social a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.footer__copy { font-size: 14px; color: var(--muted); }
.footer__copy a { color: var(--light); }

.cta-gap { margin-top: 2rem; }
.signature-text { color: #eee; line-height: 1.7; }
