:root {
  --plum: #380445;
  --plum-2: #521a63;
  --plum-soft: #f3ecf5;
  --plum-line: #e4d6ea;
  --bg: #fcfaf9;
  --surface: #ffffff;
  --ink: #1f1524;
  --muted: #6a5e70;
  --line: #ece6ee;
  --gold: #b88a4a;

  --m-asinc: #6b3488;
  --m-asinc-bg: #f1e7f6;
  --m-sinc: #16707a;
  --m-sinc-bg: #e3f2f3;
  --m-pres: #a8552f;
  --m-pres-bg: #f8ebe3;

  --wa: #1fae57;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(56, 4, 69, .06), 0 8px 28px rgba(56, 4, 69, .07);
  --shadow-lg: 0 2px 4px rgba(56, 4, 69, .06), 0 18px 48px rgba(56, 4, 69, .13);
  --font-display: 'Jost', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.eyebrow {
  font: 600 .78rem/1 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 56ch; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 500 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--plum); color: #fff; }
.btn--primary:hover { background: var(--plum-2); box-shadow: 0 8px 20px rgba(56, 4, 69, .25); }
.btn--ghost { border-color: var(--plum-line); color: var(--plum); background: transparent; }
.btn--ghost:hover { background: var(--plum-soft); }
.btn--light { background: #fff; color: var(--plum); }
.btn--light:hover { background: var(--plum-soft); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { filter: brightness(1.05); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 250, 249, .88); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 32px; width: auto; }
.brand-tag {
  font: 500 .8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding-left: 14px; border-left: 1px solid var(--plum-line);
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--plum); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .brand img { height: 26px; }
  .brand-tag { font-size: .68rem; padding-left: 10px; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 22px; height: 2px; background: var(--plum); border-radius: 2px;
    position: relative; transition: transform .25s, opacity .2s; content: '';
  }
  .nav-toggle span::before { position: absolute; top: -7px; }
  .nav-toggle span::after { position: absolute; top: 7px; }
  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px; display: none;
  }
  .nav-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: 16px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, #efe2f4 0%, transparent 60%),
    radial-gradient(600px 400px at 0% 100%, #f7efe6 0%, transparent 60%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
}
.hero h1 em { font-style: normal; font-weight: 300; color: var(--plum-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { position: relative; aspect-ratio: 4 / 5; max-width: 420px; justify-self: center; width: 100%; }
.hero-art::before {
  content: ''; position: absolute; inset: 8% -8% -5% 12%;
  border-radius: 200px 200px 28px 28px; background: var(--plum-soft);
  box-shadow: inset 0 0 0 1px var(--plum-line);
}
.hero-photo {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 200px 200px 28px 28px; box-shadow: var(--shadow-lg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-iso {
  position: absolute; width: 64px; right: 18px; bottom: 18px;
  background: #fff; padding: 12px 10px; border-radius: 14px; box-shadow: var(--shadow);
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; padding: 12px 16px; border-radius: 14px;
  font-size: .92rem; font-weight: 500; box-shadow: var(--shadow); white-space: nowrap;
  animation: flotar 6s ease-in-out infinite;
}
.fc-1 { top: 10%; left: -4%; }
.fc-2 { top: 46%; right: -6%; animation-delay: -2s; }
.fc-3 { bottom: 8%; left: 6%; animation-delay: -4s; }
@keyframes flotar { 50% { transform: translateY(-8px); } }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--asincronica { background: var(--m-asinc); }
.dot--sincronica { background: var(--m-sinc); }
.dot--presencial { background: var(--m-pres); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { max-width: 300px; }
  .fc-1 { left: 0; } .fc-2 { right: 0; }
}
@media (max-width: 600px) { .hero-art { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- secciones ---------- */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section--tint { background: var(--plum-soft); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--muted); }

/* ---------- filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: 500 .9rem/1 var(--font-body); padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--plum-line); background: var(--surface); color: var(--muted);
}
.filters button[aria-selected="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }

/* ---------- tarjetas ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
@media (max-width: 380px) { .grid { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media, .price-media { aspect-ratio: 16 / 9; background: var(--plum-soft); overflow: hidden; }
.card-media img, .price-media img { width: 100%; height: 100%; object-fit: cover; }
.is-placeholder {
  display: grid; place-items: center; position: relative;
  background: linear-gradient(135deg, var(--plum) 0%, #6b2a80 100%);
}
.is-placeholder[data-mod="sincronica"] { background: linear-gradient(135deg, #2a1640 0%, var(--m-sinc) 130%); }
.is-placeholder[data-mod="presencial"] { background: linear-gradient(135deg, var(--plum) 0%, var(--m-pres) 140%); }
.is-placeholder::after {
  content: ''; position: absolute; right: 16px; bottom: 14px; width: 28%; aspect-ratio: 919 / 223;
  background: url(../assets/img/selenex-logo-blanco.png) center / contain no-repeat;
  opacity: .35;
}
.is-placeholder span {
  font: 300 clamp(1.8rem, 4vw, 2.4rem)/1 var(--font-display); color: #fff; letter-spacing: .06em;
  text-transform: uppercase; position: relative; z-index: 1; padding: 0 16px; text-align: center;
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.card-body h3 { margin: 12px 0 8px; font-size: 1.28rem; }
.card-body p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-meta { font-size: .88rem; color: var(--ink); margin-bottom: 16px; }
.card-meta::before { content: '◷  '; color: var(--gold); }
.card-foot {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.price { font: 500 1.3rem/1 var(--font-display); color: var(--plum); }
.price s, .price-old { display: block; font-size: .8rem; color: var(--muted); font-family: var(--font-body); margin-bottom: 4px; }
.card-link { font-size: .9rem; color: var(--plum); font-weight: 500; }
.card--skeleton { min-height: 380px; background: linear-gradient(100deg, #f4eff5 30%, #fbf8fb 50%, #f4eff5 70%) 0 0 / 300% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -100% 0; } }
.aviso-ejemplo { margin-top: 20px; font-size: .85rem; color: var(--m-pres); text-align: center; }

.badge {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  font: 600 .74rem/1.2 var(--font-body); letter-spacing: .02em;
}
.badge--asincronica { background: var(--m-asinc-bg); color: var(--m-asinc); }
.badge--sincronica { background: var(--m-sinc-bg); color: var(--m-sinc); }
.badge--presencial { background: var(--m-pres-bg); color: var(--m-pres); }
.badge--hot { background: #f7efe1; color: #8a6224; }
.badge--plain { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }

.empty { text-align: center; padding: 48px 16px; grid-column: 1 / -1; }
.empty p { color: var(--muted); }

/* ---------- modalidades ---------- */
.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .mods { grid-template-columns: 1fr; } }
.mod { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--plum-line); }
.mod p { color: var(--muted); margin: 0; }
.mod-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px; }
.mod-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.mod--asincronica .mod-icon { background: var(--m-asinc-bg); color: var(--m-asinc); }
.mod--sincronica .mod-icon { background: var(--m-sinc-bg); color: var(--m-sinc); }
.mod--presencial .mod-icon { background: var(--m-pres-bg); color: var(--m-pres); }

/* ---------- pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: paso; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: paso; padding: 24px; border-top: 2px solid var(--plum); background: var(--surface); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.steps li::before {
  content: '0' counter(paso); display: block;
  font: 300 2.2rem/1 var(--font-display); color: var(--gold); margin-bottom: 14px;
}
.steps strong { display: block; font: 500 1.15rem/1.3 var(--font-display); margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); border-radius: var(--radius-sm); margin-bottom: 10px; border: 1px solid var(--plum-line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; position: relative;
  font: 500 1.05rem/1.4 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--plum); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band { background: var(--plum); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-inner p { color: rgba(255, 255, 255, .78); max-width: 60ch; margin: 0; }
@media (max-width: 760px) { .cta-inner { flex-direction: column; align-items: flex-start; } }

/* ---------- footer ---------- */
.site-footer { background: #24032d; color: rgba(255, 255, 255, .7); padding: 48px 0 96px; font-size: .92rem; }
.footer-inner { display: grid; gap: 14px; justify-items: start; }
.footer-inner img { height: 32px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- página de curso ---------- */
.curso-loading { padding: 64px 0; }
.curso-hero {
  background: radial-gradient(900px 480px at 90% 0%, #efe2f4 0%, transparent 60%);
  padding: 40px 0 56px;
}
.curso-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.back { display: inline-block; font-size: .9rem; color: var(--muted); text-decoration: none; margin-bottom: 24px; }
.back:hover { color: var(--plum); }
.curso-info h1 { margin-top: 16px; font-size: clamp(2rem, 4.4vw, 3rem); }
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; min-width: 150px; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 500; }
.price-card {
  position: sticky; top: 96px;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.price-body { padding: 24px; display: grid; gap: 10px; }
.price-big { font: 500 2.2rem/1 var(--font-display); color: var(--plum); }
.price-note { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }

.curso-mods { color: var(--plum); font-weight: 500; margin-top: 20px; }
.price-desde { font-size: .85rem; color: var(--muted); margin-bottom: -6px; }
.price small { display: block; font: 400 .8rem/1 var(--font-body); color: var(--muted); margin-bottom: 4px; }

.curso-body { padding-top: 0; }
.curso-main h2 { font-size: 1.6rem; margin-top: 40px; }
.curso-main h2:first-child, .video + h2 { margin-top: 0; }
.curso-main p { color: #3d3242; }
.video { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 40px; box-shadow: var(--shadow); }
.video iframe { width: 100%; height: 100%; border: 0; }
.temario { padding: 0; margin: 0; list-style: none; counter-reset: t; border-top: 1px solid var(--line); }
.temario li { counter-increment: t; padding: 16px 0 16px 52px; border-bottom: 1px solid var(--line); position: relative; }
.temario li::before {
  content: counter(t, decimal-leading-zero); position: absolute; left: 0; top: 15px;
  font: 400 1.05rem/1.5 var(--font-display); color: var(--gold);
}

@media (max-width: 920px) {
  .curso-grid { grid-template-columns: 1fr; gap: 32px; }
  .price-card { position: static; }
}

/* ---------- modalidades de un curso (tarjetas tipo planes) ---------- */
.planes-sec { padding-top: 24px; }
.planes { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; padding-top: 8px; }
.planes--1 { grid-template-columns: minmax(0, 400px); }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.plan--asincronica { --c: var(--m-asinc); --cbg: var(--m-asinc-bg); }
.plan--sincronica { --c: var(--m-sinc); --cbg: var(--m-sinc-bg); }
.plan--presencial { --c: var(--m-pres); --cbg: var(--m-pres-bg); }
.plan-top { padding: 26px 24px 22px; border-top: 5px solid var(--c); }
.plan h3 { color: var(--c); margin-bottom: 4px; }
.plan-sub { color: var(--muted); font-size: .92rem; min-height: 2.8em; margin-bottom: 18px; }
.plan-precio { font: 500 2.2rem/1 var(--font-display); color: var(--plum); }
.plan-precio s { display: block; font: 400 .85rem/1 var(--font-body); color: var(--muted); margin-bottom: 6px; }
.plan-precio small { display: block; font: 400 .85rem/1.4 var(--font-body); color: var(--muted); margin-top: 6px; }
.plan-fecha { margin: 18px 0 20px; padding: 10px 14px; border-radius: 10px; background: var(--cbg); font-size: .9rem; font-weight: 500; }
.plan ul { list-style: none; margin: 0; padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; align-content: start; flex: 1; }
.plan li { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; }
.plan li small { color: var(--muted); }
.plan li.off { color: #b3a7b8; }
.plan--top { border: 2px solid var(--plum); box-shadow: var(--shadow-lg); }
.plan-cinta {
  position: absolute; top: 14px; right: 14px; background: var(--plum); color: #fff;
  font: 600 .72rem/1 var(--font-body); padding: 6px 10px; border-radius: 999px; letter-spacing: .03em;
}
.si, .no { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .78rem; font-weight: 700; }
.si { background: var(--plum-soft); color: var(--plum); }
.si::before { content: '✓'; }
.no { color: #c9bccd; }
.no::before { content: '—'; }
.planes-dots { display: none; }
@media (min-width: 861px) { .plan--top { transform: translateY(-8px); } }

/* En celular las tarjetas se deslizan de costado; se asoma la siguiente para invitar a deslizar. */
@media (max-width: 860px) {
  .planes {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: -16px; padding: 8px 16px 12px; scroll-padding-inline: 16px; scrollbar-width: none;
  }
  .planes::-webkit-scrollbar { display: none; }
  .planes--1 { grid-auto-columns: 100%; }
  .plan { scroll-snap-align: center; }
  .plan-sub { min-height: 0; }
  .planes-dots { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
  .planes-dots button { width: 28px; height: 28px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
  .planes-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--plum-line); transition: width .2s, background .2s; }
  .planes-dots button[aria-current="true"]::before { width: 22px; background: var(--plum); }
}

/* Elección de modalidad en el formulario */
.mod-pick { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.mod-pick legend { font-size: .9rem; font-weight: 500; padding: 0; margin-bottom: 8px; }
.mod-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.mod-opt {
  position: relative; display: grid; gap: 6px; justify-items: start; cursor: pointer;
  padding: 14px 16px; border: 1.5px solid #d9cfdd; border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.mod-opt input { position: absolute; opacity: 0; pointer-events: none; }
.mod-opt strong { font: 500 1.25rem/1 var(--font-display); color: var(--plum); }
.mod-opt small { color: var(--muted); font-size: .8rem; }
.mod-opt:has(input:checked) { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(56, 4, 69, .12); }
.mod-opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- formulario ---------- */
.form, .form-ok { background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.form-curso {
  display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--plum-soft); margin-bottom: 24px;
}
.form-curso span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.form-curso strong { font: 500 1.1rem/1.3 var(--font-display); }
.form-curso em { font-style: normal; color: var(--plum); font-size: .92rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 16px; align-content: start; }
.form-grid .field { margin-bottom: 0; }
.form-grid + .field { margin-top: 16px; }
.field > span { font-size: .9rem; font-weight: 500; }
.field small { color: var(--muted); font-weight: 400; }
.field .help { font-size: .8rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); width: 100%;
  padding: 12px 14px; border-radius: 10px; border: 1px solid #d9cfdd; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(56, 4, 69, .12);
}
.field [aria-invalid="true"] { border-color: #c2412d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; visibility: hidden; }
.form-error { color: #b0321f; background: #fdeeea; padding: 10px 14px; border-radius: 10px; font-size: .92rem; }
.form-legal { font-size: .8rem; color: var(--muted); text-align: center; margin: 12px 0 0; }
.form-ok { text-align: center; }
.form-ok h3 { font-size: 1.6rem; color: var(--plum); }

/* ---------- Instagram ---------- */
.nav-ig, .footer-ig, .footer-tel { display: inline-flex; align-items: center; gap: 8px; }
.nav-ig svg, .footer-ig svg, .footer-tel svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav-ig svg .fill, .footer-ig svg .fill { fill: currentColor; stroke: none; }
.nav-ig span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 860px) { .nav-ig span { position: static; width: auto; height: auto; clip: auto; } }

/* ---------- páginas legales ---------- */
.legal-sec { padding-top: 16px; }
.legal h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.legal h3 { font-size: 1.08rem; margin: 24px 0 8px; }
.legal p, .legal li { color: #3d3242; }
.legal ul { padding-left: 22px; margin: 0 0 1em; display: grid; gap: 6px; }
.legal a { color: var(--plum); text-underline-offset: 3px; }
.legal-meta { background: var(--plum-soft); border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: 8px; font-size: .92rem; }
.legal-contact { background: var(--surface); border: 1px solid var(--plum-line); border-radius: var(--radius); padding: 24px; margin: 28px 0 8px; }
.legal-contact h3 { margin-top: 0; }
.legal-contact .btn { color: #fff; text-decoration: none; }
.form-legal a { color: inherit; }
.acepto { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 18px; cursor: pointer; }
.acepto input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--plum); cursor: pointer; }
.acepto span { font-size: .88rem; font-weight: 400; color: var(--muted); }
.acepto a { color: var(--plum); }
.acepto input[aria-invalid="true"] { outline: 2px solid #c2412d; outline-offset: 2px; }
