/* Paginas SEO generadas por scripts/generate-seo-pages.py (cursos, sedes, blog).
   Mismos colores y tipografias que la home (styles.css). */
:root {
  --bg: #f5f8ff;
  --surface: #ffffff;
  --soft: #edf3ff;
  --text: #111827;
  --muted: #475569;
  --line: #d4e1f7;
  --brand: #0d2f70;
  --brand-mid: #1f6bc8;
  --wa: #128c4a;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(7, 40, 96, 0.10);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 "Rubik", system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-mid); }
h1, h2, h3 { font-family: "Outfit", system-ui, sans-serif; line-height: 1.15; color: var(--brand); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Encabezado */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); font: 700 1rem "Outfit", sans-serif; }
.brand img { width: 40px; height: 40px; }
.head-nav { display: flex; align-items: center; gap: 18px; }
.head-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.head-nav a:not(.btn):hover { color: var(--brand-mid); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.btn:hover { background: var(--brand-mid); }
.btn-wa { background: var(--wa); }
.btn-wa:hover { background: #0e7a3f; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--soft); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }

/* Hero */
.crumbs { font-size: .9rem; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--muted); }
.hero { padding: 24px 0 40px; }
.hero-plain { padding-bottom: 8px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: start; }
.eyebrow { color: var(--brand-mid); font-weight: 600; font-size: .95rem; margin-bottom: .5em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.facts { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.facts span { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.facts strong { font-weight: 600; font-size: .98rem; }
.next { background: var(--soft); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; }
.price { font-weight: 600; color: var(--brand); margin-bottom: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.poster img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Bloques */
.block { padding: 28px 0; }
.checks { padding: 0; list-style: none; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--wa); font-weight: 700; }
.modules details, .faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
.modules summary, .faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; color: var(--brand); }
.modules ul { margin: 0 0 14px; padding-left: 20px; }
.faq details p { color: var(--muted); }
.link-pdf { font-weight: 600; }
.note { color: var(--muted); font-size: .95rem; }

/* Comisiones */
.table-wrap { overflow-x: auto; }
.comisiones { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.comisiones th, .comisiones td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.comisiones th { background: var(--brand); color: #fff; font-weight: 600; font-size: .92rem; }

/* Sedes, opiniones, tarjetas */
.sedes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.sede { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.sede h3 a { color: var(--brand); text-decoration: none; }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius); margin-top: 8px; }
.rating strong { color: var(--brand); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.quotes blockquote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.quotes p { white-space: pre-line; }
.quotes cite { color: var(--muted); font-style: normal; font-size: .92rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; text-decoration: none; color: var(--text); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-kicker { font-size: .82rem; color: var(--brand-mid); font-weight: 600; }
.card-title { font: 700 1.1rem/1.25 "Outfit", sans-serif; color: var(--brand); }
.card-text { color: var(--muted); font-size: .96rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.chip { background: var(--soft); border-radius: 999px; padding: 3px 10px; font-size: .82rem; color: var(--brand); }
.post-card { padding: 0 0 18px; overflow: hidden; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card > span, .post-card > strong { padding: 0 20px; }
.post-card > img + span { padding-top: 12px; }
.cta { text-align: center; background: var(--brand); color: #fff; border-radius: var(--radius); padding: 36px 24px; margin: 28px auto; }
.cta h2 { color: #fff; }
.cta .btn { background: #fff; color: var(--brand); }
.cta .btn-wa { background: var(--wa); color: #fff; }

/* Nota del blog */
.post { max-width: 760px; padding: 20px 0 10px; }
.post-img { border-radius: var(--radius); margin: 8px 0 24px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-body h2 { margin-top: 1.4em; }
.post-body ul { padding-left: 22px; }

/* Pie */
.site-foot { background: #061b3d; color: #cbd5e1; margin-top: 40px; padding: 40px 0 20px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.site-foot h2 { color: #fff; font-size: 1.05rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot a { color: #e2e8f0; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 28px; padding-top: 16px; font-size: .88rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .poster { max-width: 420px; }
  .brand span { display: none; }
  .head-nav { gap: 12px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .facts { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .head-nav a:not(.btn) { font-size: .92rem; }
  .comisiones thead { display: none; }
  .comisiones, .comisiones tbody, .comisiones tr, .comisiones td { display: block; width: 100%; }
  .comisiones tr { border-bottom: 2px solid var(--line); padding: 6px 0; }
  .comisiones td { border: 0; padding: 4px 14px; }
  .comisiones td::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
}

/* Terminos y Privacidad */
.legal h1 { margin-top: 8px; }
.legal h2 { margin-top: 1.6em; font-size: 1.35rem; }
.legal h3 { margin-top: 1.2em; }
.legal ul { padding-left: 22px; }
