/* =============================================================
   Saberes OTEC SpA — styles.css
   1. Tokens · 2. Reset · 3. Utilidades · 4. Tipografía
   5. Componentes · 6. Secciones · 7. Efectos · 8. Responsive · 9. Reduced motion
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --navy:      #011633;
  --navy-2:    #13284f;
  --navy-soft: #2c3d61;
  --gold:      #a9873f;
  --gold-2:    #c9ad6a;
  --gold-soft: #efe4c8;
  --gold-ink:  #7a612d;   /* dorado para textos pequeños sobre fondos claros (contraste AA) */
  --cream:     #f7f3ea;
  --paper:     #fffdf8;
  --ink:       #011633;
  --ink-mute:  #56607a;
  --line:      rgba(1, 22, 51, 0.12);
  --line-2:    rgba(1, 22, 51, 0.22);
  --ok:        #2f6b4f;
  --err:       #a33a2b;

  --serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --sans:  "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --maxw: 1240px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(1,22,51,.06), 0 12px 32px -12px rgba(1,22,51,.22);
  --shadow-lg: 0 2px 4px rgba(1,22,51,.06), 0 28px 60px -20px rgba(1,22,51,.35);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --header-h: 76px;
}

/* 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
ul, ol { padding-left: 1.2em; }
::selection { background: var(--gold); color: var(--paper); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

@view-transition { navigation: auto; }

/* 3. Utilidades ------------------------------------------------ */
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--navy); color: var(--cream); z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }

/* 4. Tipografía ------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.display { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 600; font-variation-settings: "opsz" 144; }
.display em, .h2 em, .h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
.h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-variation-settings: "opsz" 144; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-variation-settings: "opsz" 120; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--ink-mute); max-width: 60ch; }
.muted { color: var(--ink-mute); }
.small { font-size: .88rem; }
.prose p + p, .prose p + ul, .prose ul + p, .prose h2 + p, .prose h3 + p { margin-top: 1em; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.prose ul { margin-top: .6em; }
.prose li + li { margin-top: .3em; }

/* 5. Componentes ----------------------------------------------- */

/* Botones — pop-up (lift + sombra) */
.btn {
  --bg: var(--navy); --fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.4rem;
  border-radius: 999px; background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 6px 16px -8px rgba(1,22,51,.55);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 14px 28px -10px rgba(1,22,51,.55); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn--gold { --bg: var(--gold); --fg: var(--navy); }
.btn--gold:hover { --bg: var(--gold-2); }
.btn--ghost { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--light { --bg: var(--cream); --fg: var(--navy); }
.btn--sm { min-height: 40px; padding: .55rem 1rem; font-size: .88rem; }
.btn--block { width: 100%; }
.btn.is-added { --bg: var(--ok); }
.btn .arrow { transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.link-underline { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease-out); padding-bottom: 2px; }
.link-underline:hover { background-size: 100% 1.5px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(1,22,51,.45); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; mix-blend-mode: multiply; }
.nav { margin-left: auto; }
.nav ul { list-style: none; padding: 0; display: flex; gap: .25rem; align-items: center; }
.nav a {
  display: inline-block; padding: .5rem .75rem; border-radius: 999px;
  font-weight: 600; font-size: .93rem; color: var(--navy-soft);
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--navy); background: rgba(1,22,51,.05); }
.nav a[aria-current="page"] { color: var(--navy); background: var(--gold-soft); }
.nav .nav-aula a { box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--navy); }
.cart-link {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; padding: .45rem .9rem; border-radius: 999px;
  background: var(--navy); color: var(--cream); font-weight: 700; font-size: .9rem;
}
.cart-link svg { width: 18px; height: 18px; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--gold); color: var(--navy); font-size: .75rem; font-weight: 800;
}
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--navy); transition: transform .3s var(--ease-out), opacity .2s; }

/* Tarjetas de curso */
.cursos-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.curso-card {
  position: relative; display: flex; flex-direction: column; gap: .8rem;
  padding: 1.6rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.curso-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(169,135,63,.45); }
.curso-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform: scaleX(.18); transform-origin: left; transition: transform .6s var(--ease-out);
}
.curso-card:hover::before { transform: scaleX(1); }
.curso-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .7rem; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  background: var(--cream); color: var(--navy-soft); border: 1px solid var(--line);
}
.tag--gold { background: var(--gold-soft); border-color: transparent; color: var(--gold-ink); }
.curso-card h2, .curso-card h3 { font-size: 1.35rem; }
.curso-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .88rem; color: var(--ink-mute); }
.curso-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.curso-meta svg { width: 15px; height: 15px; color: var(--gold); }
.curso-card details { border-top: 1px dashed var(--line-2); padding-top: .8rem; }
.curso-card summary { cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--navy); list-style: none; display: flex; align-items: center; gap: .4rem; }
.curso-card summary::-webkit-details-marker { display: none; }
.curso-card summary::after { content: "+"; font-size: 1.2rem; color: var(--gold); transition: transform .3s var(--ease-out); }
.curso-card details[open] summary::after { transform: rotate(45deg); }
.curso-card details h3, .curso-card details h4 { font-family: var(--sans); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); margin-top: 1rem; }
.curso-card details ul, .curso-card details ol { font-size: .92rem; color: var(--ink-mute); margin-top: .4rem; }
.curso-card details p { font-size: .92rem; color: var(--ink-mute); margin-top: .6rem; }
.curso-bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .6rem; }
.price { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1; }
.price small { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 600; color: var(--ink-mute); letter-spacing: .04em; margin-top: .35rem; }
.curso-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.qty { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; color: var(--ink-mute); }
.qty input { width: 72px; min-height: 40px; padding: .4rem .6rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line-2); background: var(--paper); text-align: center; }
.badge-ejemplo {
  position: absolute; top: 1rem; right: 1rem;
  font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--err); background: #fbeae6; padding: .2rem .5rem; border-radius: 6px;
}

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.6rem; }
.filters p { font-weight: 700; font-size: .85rem; margin-right: .3rem; color: var(--ink-mute); }
.chip {
  min-height: 40px; padding: .45rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--line-2); font-weight: 600; font-size: .88rem; color: var(--navy-soft);
  transition: all .25s var(--ease-out);
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.filters-group { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filters-empty { padding: 2rem; text-align: center; color: var(--ink-mute); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* Drawer del carro */
.cart-drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 80;
  width: min(430px, 100%);
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.5rem;
  background: var(--paper); box-shadow: -30px 0 60px -30px rgba(1,22,51,.5);
  transform: translateX(105%); visibility: hidden;
  transition: transform .5s var(--ease-out), visibility 0s linear .5s;
}
.cart-drawer.is-open { transform: none; visibility: visible; transition: transform .5s var(--ease-out); }
.cart-drawer-head { display: flex; justify-content: space-between; align-items: center; }
.cart-drawer h2 { font-size: 1.6rem; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; font-size: 1.5rem; line-height: 1; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.icon-btn:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.cart-drawer [data-cart-filled] { display: flex; flex-direction: column; gap: 1rem; flex: 1; min-height: 0; }
.cart-drawer [data-cart-list] { overflow-y: auto; flex: 1; }

.cart-list { list-style: none; padding: 0; display: grid; gap: .75rem; align-content: start; }
.cart-line {
  display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "info qty remove" "info total remove";
  gap: .3rem .8rem; align-items: center;
  padding: 1rem; border-radius: var(--radius-sm); background: var(--cream);
}
.cart-line-info { grid-area: info; }
.cart-line-name { font-weight: 700; line-height: 1.3; }
.cart-line-meta { font-size: .8rem; color: var(--ink-mute); margin-top: .2rem; }
.cart-line-qty { grid-area: qty; }
.cart-line-qty input { width: 64px; min-height: 38px; text-align: center; border-radius: 8px; border: 1.5px solid var(--line-2); background: var(--paper); }
.cart-line-total { grid-area: total; font-weight: 800; text-align: right; font-size: .95rem; }
.cart-line-remove { grid-area: remove; width: 36px; height: 36px; border-radius: 999px; font-size: 1.3rem; color: var(--ink-mute); }
.cart-line-remove:hover { background: #fbeae6; color: var(--err); }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1rem; border-top: 1px solid var(--line); }
.cart-total-row { gap: 1rem; }
.cart-total-row strong { font-family: var(--serif); font-size: 1.25rem; text-align: right; }
.backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(1,22,51,.35); opacity: 0; pointer-events: none; transition: opacity .4s; }
.cart-drawer.is-open + .backdrop { opacity: 1; pointer-events: auto; }

/* Formularios */
.form { display: grid; gap: 1rem; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.field { display: grid; gap: .35rem; }
.field label, .field legend, .label { font-weight: 700; font-size: .88rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem;
  border-radius: var(--radius-sm); border: 1.5px solid var(--line-2); background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(169,135,63,.18); }
.field [aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 4px rgba(163,58,43,.12); }
.field .hint { font-size: .8rem; color: var(--ink-mute); }
fieldset { border: 0; padding: 0; min-width: 0; }
.fieldset-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: var(--cream); }
.fieldset-box > legend { padding: 0 .4rem; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.radio-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1.1rem;
  border-radius: 999px; border: 1.5px solid var(--line-2); font-weight: 600; font-size: .92rem; background: var(--paper);
  transition: all .2s;
}
.radio-pill input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.radio-pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--navy); flex-shrink: 0; }
.check a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.form-status { font-weight: 600; font-size: .92rem; min-height: 1.4em; }
.form-status.is-error { color: var(--err); }
.form-status.is-ok { color: var(--ok); }

/* Tarjetas genéricas */
.card { padding: 1.75rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card--cream { background: var(--cream); box-shadow: none; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--ink-mute); margin-top: .5rem; }
.num { font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--gold); }

/* Aviso */
.notice { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--gold-soft); color: #5b4a1d; font-size: .92rem; }
.notice strong { color: var(--navy); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(0,0,0,.35);
  transition: transform .35s var(--ease-out);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); }
.wa-float svg { width: 30px; height: 30px; }

/* 6. Secciones ------------------------------------------------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--cream); }
.section--navy .lead, .section--navy .muted { color: rgba(247,243,234,.72); }
.section--navy .eyebrow { color: var(--gold-2); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--split { align-items: end; }

/* Hero inicio */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6rem); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 70vmax; height: 70vmax; z-index: -1;
  background: radial-gradient(closest-side, rgba(201,173,106,.28), transparent 70%);
  animation: floatGlow 14s ease-in-out infinite alternate;
}
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: .6rem; font-size: .9rem; color: var(--ink-mute); }
.hero-facts span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-facts svg { width: 18px; height: 18px; color: var(--gold); }
.hero-visual { position: relative; }
.hero-photo {
  position: relative; border-radius: 28px 28px 28px 120px; overflow: hidden;
  aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-lg);
}
.hero-photo img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 45%, rgba(1,22,51,.45)); }
.hero-check { position: absolute; left: -6%; bottom: -10%; width: 58%; z-index: 2; pointer-events: none; filter: drop-shadow(0 10px 18px rgba(1,22,51,.25)); }
.hero-check path { fill: none; stroke: var(--gold); stroke-width: 26; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: drawCheck 1.6s var(--ease-out) .5s forwards; }
.hero-badge {
  position: absolute; right: -4%; top: 8%; z-index: 2;
  padding: .9rem 1.1rem; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-lg);
  font-size: .82rem; line-height: 1.35; max-width: 220px;
}
.hero-badge strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }

/* Split words (hero title) */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split-word > span { display: inline-block; animation: wordUp 1s var(--ease-out) both; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); padding-block: 1.1rem; }
.marquee-track { display: flex; width: max-content; gap: 3rem; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 3rem; font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-style: italic; color: var(--navy-soft); white-space: nowrap; }
.marquee-item::after { content: "✓"; font-style: normal; font-family: var(--sans); font-weight: 800; color: var(--gold); font-size: .9em; }

/* Propuesta / pilares */
.pillars { display: grid; gap: 1.25rem; }
.pillar { display: grid; gap: .7rem; padding: 1.8rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.pillar h3 { font-size: 1.35rem; }
.pillar p { color: var(--ink-mute); }

/* Pasos */
.steps { list-style: none; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.step { position: relative; padding: 1.6rem 1.6rem 1.6rem 4.6rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(247,243,234,.14); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 1.4rem; top: 1.45rem;
  font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--gold-2);
}
.step h3 { font-size: 1.2rem; }
.step p { color: rgba(247,243,234,.72); margin-top: .35rem; font-size: .95rem; }

/* Empresas split */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; display: grid; gap: .7rem; margin-top: 1.2rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist li::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: .15rem; border-radius: 50%; background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9873f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* CTA final */
.cta-band { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(2.5rem, 6vw, 4.5rem); background: var(--navy); color: var(--cream); display: grid; gap: 1.4rem; }
.cta-band::after {
  content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(201,173,106,.35), transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band p { color: rgba(247,243,234,.75); max-width: 55ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Cabecera de página interna */
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem); background: var(--cream); border-bottom: 1px solid var(--line); position: relative; overflow: clip; }
.page-hero::after { content: ""; position: absolute; right: -8%; bottom: -60%; width: 46vmax; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(201,173,106,.22), transparent 70%); pointer-events: none; }
.page-hero .container { display: grid; gap: 1rem; position: relative; z-index: 1; }
.breadcrumb { font-size: .85rem; color: var(--ink-mute); }
.breadcrumb a:hover { color: var(--navy); }

/* Nosotros */
.values { display: grid; gap: 1rem; }
.value { padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.value:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.value h3 { font-size: 1.3rem; display: flex; align-items: baseline; gap: .6rem; }
.value h3 span { font-family: var(--sans); font-size: .75rem; font-weight: 800; color: var(--gold-ink); letter-spacing: .1em; }
.value p { margin-top: .5rem; color: var(--ink-mute); }
.founders { display: grid; gap: 1.25rem; }
.founder { display: grid; gap: 1.2rem; grid-template-columns: auto 1fr; align-items: start; padding: 1.8rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.monogram { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); font-family: var(--serif); font-size: 1.9rem; font-style: italic; box-shadow: inset 0 0 0 3px var(--gold); }
.founder h3 { font-size: 1.4rem; }
.founder .role { font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-top: .3rem; }
.founder p { color: var(--ink-mute); margin-top: .7rem; }
.objectives { list-style: none; padding: 0; display: grid; gap: 1rem; counter-reset: obj; }
.objective { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding: 1.5rem; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(247,243,234,.14); }
.objective::before { counter-increment: obj; content: "OE" counter(obj); font-weight: 800; font-size: .8rem; letter-spacing: .1em; color: var(--navy); background: var(--gold-2); border-radius: 8px; padding: .35rem .55rem; height: fit-content; }
.objective h3 { font-size: 1.2rem; }
.objective p { color: rgba(247,243,234,.72); margin-top: .3rem; font-size: .95rem; }
.objective .kpi { display: inline-block; margin-top: .6rem; font-size: .8rem; font-weight: 700; color: var(--gold-2); }
.mv { display: grid; gap: 1.25rem; }
.mv .card { position: relative; }
.mv .card .eyebrow { margin-bottom: .6rem; }
.mv .card p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; color: var(--navy); }

/* Aula */
.aula-access { display: grid; gap: 1.5rem; padding: clamp(2rem, 5vw, 3rem); border-radius: 28px; background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.aula-access::after { content: ""; position: absolute; right: -15%; top: -30%; width: 55%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(201,173,106,.35), transparent 70%); }
.aula-access > * { position: relative; z-index: 1; }
.aula-access p { color: rgba(247,243,234,.75); }
.faq { display: grid; gap: .75rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); padding: 1.1rem 1.3rem; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .7rem; color: var(--ink-mute); }

/* Contacto */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.contact-list { list-style: none; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: start; }
.contact-list .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); }
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.contact-list a:hover { color: var(--gold-ink); }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); filter: grayscale(.35) contrast(1.05); }

/* Checkout */
.checkout { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
.summary { position: relative; }
.summary .card { display: grid; gap: 1rem; }

/* Gracias */
.thanks { text-align: center; display: grid; gap: 1.2rem; justify-items: center; }
.thanks-check { width: 96px; height: 96px; }
.thanks-check circle { fill: var(--gold-soft); }
.thanks-check path { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: drawCheck 1s var(--ease-out) .3s forwards; }
.pay-box { text-align: left; width: min(100%, 560px); padding: 1.4rem; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.pay-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(247,243,234,.78); padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; font-size: .94rem; }
.footer-grid { display: grid; gap: 2.2rem; }
.footer-brand .wordmark { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--cream); line-height: 1; display: flex; align-items: center; gap: .6rem; }
.footer-brand .wordmark svg { width: 38px; height: 38px; }
.footer-brand .sub { font-size: .8rem; letter-spacing: .38em; font-weight: 700; color: var(--gold-2); margin-top: .5rem; }
.footer-brand p { margin-top: 1rem; max-width: 36ch; }
.site-footer h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); margin-bottom: .9rem; font-weight: 800; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.site-footer a:hover { color: var(--cream); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(247,243,234,.14); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .8rem; color: rgba(247,243,234,.55); }
.footer-bottom a { text-decoration: underline; text-decoration-color: rgba(201,173,106,.5); text-underline-offset: 3px; }

/* 7. Efectos --------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-split] { opacity: 1 !important; transform: none !important; } /* defensivo: nunca ocultar títulos con split */

@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@keyframes wordUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes floatGlow { from { transform: translate(0, 0); } to { transform: translate(-6%, 8%); } }

/* 8. Responsive ------------------------------------------------ */
@media (max-width: 959px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: fixed; inset: 0; z-index: 90; margin: 0;
    background: var(--navy); display: grid; place-items: center;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), visibility 0s linear .35s;
  }
  .nav ul { flex-direction: column; gap: .6rem; }
  .nav a { font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--cream); padding: .35rem 1rem; }
  .nav a:hover, .nav a[aria-current="page"] { background: transparent; color: var(--gold-2); }
  .nav .nav-aula a { box-shadow: none; }
  /* backdrop-filter crea un bloque contenedor para position:fixed; se quita al abrir el menú */
  .nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .nav-open body { overflow: hidden; }
  .nav-open .nav { opacity: 1; visibility: visible; transition: opacity .35s var(--ease-out); }
  .nav-open .nav-toggle { position: relative; z-index: 95; box-shadow: inset 0 0 0 1.5px var(--gold); }
  .nav-open .nav-toggle span { background: var(--cream); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .header-inner { justify-content: space-between; }
  .cart-link { margin-left: auto; }
  .cart-link .cart-label { display: none; }
  .brand img { height: 40px; }
  .hero-check { width: 46%; left: -2%; }
  .hero-badge { right: 4%; top: auto; bottom: 6%; }
}
@media (min-width: 540px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .cursos-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars, .values, .mv { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .section-head--split { grid-template-columns: 1.2fr 1fr; }
  .founders { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.08fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .split--rev .split-media { order: 2; }
  .cursos-grid { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .objectives { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1.25fr 1fr; }
  .checkout { grid-template-columns: 1.3fr 1fr; }
  .summary { position: sticky; top: calc(var(--header-h) + 20px); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .cta-band { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .cta-actions { justify-content: flex-end; }
  .aula-access { grid-template-columns: 1.3fr auto; align-items: center; }
}
@media (min-width: 1280px) {
  .tienda-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 8b. Catálogo real, cifras y galería -------------------------- */
.curso-media { margin: -1.6rem -1.6rem .2rem; aspect-ratio: 640 / 373; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--cream); }
.curso-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.curso-card:hover .curso-media img { transform: scale(1.05); }
.curso-card::before { z-index: 2; }
.curso-buy { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.select-wrap { flex: 1 1 180px; }
.select-wrap select, .search-input {
  width: 100%; min-height: 44px; padding: .55rem 2.2rem .55rem .9rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-2); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9873f' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right .7rem center / 16px no-repeat;
  appearance: none; -webkit-appearance: none; font-weight: 600; font-size: .9rem; color: var(--navy);
}
.select-wrap select:focus, .search-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(169,135,63,.18); }
.search-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9873f' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E"); background-position: left .9rem center; padding-left: 2.6rem; font-weight: 500; min-height: 52px; font-size: 1rem; }
.catalog-tools { display: grid; gap: 1rem; margin-bottom: 1.6rem; }
.catalog-count { font-size: .9rem; color: var(--ink-mute); }
.chip-count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; margin-left: .3rem; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-size: .72rem; font-weight: 800; }
.chip[aria-pressed="true"] .chip-count { background: var(--gold); color: var(--navy); }
.price-table { width: 100%; border-collapse: collapse; margin-top: .8rem; font-size: .88rem; }
.price-table th, .price-table td { padding: .5rem .4rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table th { font-weight: 800; color: var(--navy); white-space: nowrap; }
.price-table td { color: var(--ink-mute); }
.price-table td:last-child { text-align: right; font-weight: 800; color: var(--navy); white-space: nowrap; }

.stats { display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--paper); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: .35rem; }
.stat strong { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: var(--navy); font-weight: 600; }
.stat strong em { color: var(--gold); font-style: italic; }
.stat span { font-size: .9rem; color: var(--ink-mute); }

.gallery { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--cream); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), filter .6s; filter: saturate(.92); }
.gallery figure:hover img { transform: scale(1.04); filter: saturate(1.05); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 2rem .9rem .7rem; font-size: .8rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(1,22,51,.75)); }
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .catalog-tools { grid-template-columns: 1fr auto; align-items: center; }
}

/* Modo cotización y fondo provisorio de tarjetas sin foto */
.price--quote { font-size: 1.35rem; color: var(--navy); }
.price--quote small { font-family: var(--sans); }
.curso-media--ph {
  position: relative; display: grid; place-items: end start; padding: 1rem 1.2rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(201,173,106,.35), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1d3566 100%);
}
.curso-media--ph::after {
  content: ""; position: absolute; right: 1.2rem; top: 1rem; width: 64px; height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cpath d='M6 26l16 16L58 6' fill='none' stroke='%23c9ad6a' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .9;
}
.curso-media--ph span { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--cream); line-height: 1.15; max-width: 75%; }

/* Prueba social: REDCAPACITACION */
.proof {
  margin-top: 1.25rem; padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: var(--radius);
  display: grid; gap: .8rem; align-items: center;
  background: var(--cream); border: 1px solid rgba(169,135,63,.35);
}
.proof-text { font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.45; color: var(--navy); }
.proof-text strong { color: var(--gold-ink); font-weight: 700; }
@media (min-width: 960px) { .proof { grid-template-columns: auto 1fr auto; gap: 1.6rem; } .proof .eyebrow { max-width: 12ch; } }

/* Filtros en celular: una fila deslizable por grupo */
@media (max-width: 719px) {
  .filters { display: grid; gap: .6rem; }
  .filters-group { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .filters-group::-webkit-scrollbar { display: none; }
  .filters-group .chip, .filters-group p { flex-shrink: 0; white-space: nowrap; }
}

/* 8c. Evaluaciones en terreno y trayectoria --------------------- */
.terreno-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.terreno { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy); aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.terreno video { width: 100%; height: 100%; object-fit: cover; display: block; }
.terreno figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.4rem 1rem .9rem;
  background: linear-gradient(transparent, rgba(1,22,51,.88)); color: #fff; display: grid; gap: .15rem;
}
.terreno figcaption strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.terreno figcaption span { font-size: .82rem; color: rgba(255,255,255,.82); }
.terreno figcaption a { color: var(--gold-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.terreno::after {
  content: "● Evaluación real"; position: absolute; top: .8rem; left: .8rem;
  padding: .25rem .6rem; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(1,22,51,.7); color: var(--gold-2); backdrop-filter: blur(6px);
}
.paises { list-style: none; padding: 0; display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr); background: rgba(247,243,234,.14); border: 1px solid rgba(247,243,234,.14); border-radius: var(--radius); overflow: hidden; }
.paises li { background: var(--navy); padding: clamp(1.3rem, 3vw, 2rem); display: grid; gap: .4rem; transition: background-color .4s var(--ease-out); }
.paises li:hover { background: var(--navy-2); }
.pais-code { font-size: .78rem; font-weight: 800; letter-spacing: .2em; color: var(--gold-2); }
.pais-name { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1; color: var(--cream); }
@media (min-width: 720px) {
  .terreno-grid { grid-template-columns: repeat(2, 1fr); }
  .paises { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .terreno-grid { grid-template-columns: repeat(3, 1fr); }
  .paises { grid-template-columns: repeat(6, 1fr); }
}

/* 9. Reduced motion (solo efectos intrusivos) ------------------ */
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .marquee-track { animation-duration: 80s; }
}

/* Páginas individuales de curso */
.curso-link { color: inherit; text-decoration: none; }
.curso-link:hover, .curso-link:focus-visible { text-decoration: underline; text-decoration-color: var(--gold-ink); text-underline-offset: .2em; }
.curso-card--page { align-self: start; }
.curso-card--page .curso-meta { margin: 1rem 0; }
.rel-list { list-style: none; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

/* Pasos sobre fondo claro (página Cotizar cursos) */
.steps--light .step { background: var(--paper); border-color: var(--line); box-shadow: var(--shadow); }
.steps--light .step h3 { color: var(--navy); }
.steps--light .step p { color: var(--ink-mute); }
.steps--light .step::before { color: var(--gold-ink); }
/* ---------- Trabaja con nosotros (postulación de relatores) ---------- */
.form-section { border: 1px solid var(--line, #e5dfd2); border-radius: var(--radius-sm, 12px); padding: 1.25rem; display: grid; gap: 1rem; background: #fff; }
.form-section > h2 { font-size: 1.15rem; margin: 0; color: var(--navy); }
.form-section > p { margin: 0; color: var(--ink-mute); font-size: .9rem; }
.area-block { display: grid; gap: .6rem; }
.area-block .cursos-panel { display: none; gap: .5rem; }
.area-block.is-open .cursos-panel { display: grid; }
.cursos-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.cursos-tools input { flex: 1 1 220px; }
.cursos-tools button { font-size: .8rem; padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--gold); background: transparent; color: var(--navy); cursor: pointer; }
.cursos-list { max-height: 280px; overflow: auto; border: 1px solid var(--line, #e5dfd2); border-radius: 10px; padding: .4rem; display: grid; gap: .1rem; }
.check-item { display: flex; gap: .55rem; align-items: flex-start; padding: .35rem .45rem; border-radius: 8px; font-size: .9rem; cursor: pointer; }
.check-item:hover { background: var(--gold-soft, #f6efdf); }
.check-item input { width: 18px; height: 18px; margin-top: .1rem; accent-color: var(--navy); flex-shrink: 0; }
.cursos-count { font-size: .8rem; color: var(--gold-ink, #7A612D); font-weight: 700; }
.docs-box { display: grid; gap: .35rem; padding: .8rem; border: 1px dashed var(--gold); border-radius: 10px; }
.docs-box ul { margin: 0; padding-left: 1.1rem; font-size: .85rem; }
.docs-box .docs-warn { color: var(--err); list-style: none; margin-left: -1.1rem; }
.check-group { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
@media (min-width: 720px) { .form-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Verificar certificado ---------- */
.verify-result { margin-top: 1.25rem; padding: 1.25rem; border-radius: var(--radius-sm, 12px); border: 1px solid var(--line, #e5dfd2); background: #fff; display: grid; gap: .6rem; }
.verify-result h2 { margin: 0; font-size: 1.2rem; color: var(--navy); }
.verify-result p { margin: 0; }
.verify-result.is-ok { border-color: #2f7d4f; box-shadow: 0 0 0 4px rgba(47,125,79,.10); }
.verify-result.is-ok h2::before { content: "✓ "; color: #2f7d4f; }
.verify-result.is-error { border-color: var(--err, #a33a2b); }
.verify-table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.verify-table th { text-align: left; padding: .45rem .6rem; color: var(--gold-ink, #7A612D); width: 40%; border-bottom: 1px solid var(--line, #e5dfd2); }
.verify-table td { padding: .45rem .6rem; border-bottom: 1px solid var(--line, #e5dfd2); }
