/*
 * Total Learning — home page styles.
 * Hand-written from the Claude Design source (HomeTotalLearning.dc.html,
 * project 15119e28-d3e2-4994-a018-61c155d13581). `cqi` design units become
 * `vw` here (equivalent at full page width). Mobile breakpoint: 759px, same
 * as the design's script.
 */

:root {
  --navy: #2A2553;
  --navy-hover: #1C1840;
  --orange: #EE6D1A;
  --orange-hover: #D95F12;
  --blue: #2B6CB4;
  --cream: #FAF7F2;
  --border: #ECE6DC;
  --border-strong: #E2DBCF;
  --muted: #5E5A72;
  --dark: #1F1A44;
  --chip-bg: #E3EDF8;
  --chip-fg: #2B6CB4;
  --peach: #F59A5C;
}

/* Material Symbols Rounded ligature-text icon (v3, design v3-cursos-relatores.md).
   Icons are decorative, so callers add aria-hidden="true" on the element. */
.msr {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

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

body, h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
img { max-width: 100%; display: block; }

body {
  background: var(--cream);
  color: var(--navy);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--orange); }

input::placeholder, textarea::placeholder { color: #9A96AA; }

.page { overflow: hidden; }

/* ---------- Buttons & shared bits ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-hover); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-hover); color: #fff; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow--light { color: var(--peach); }

.section__title {
  font-size: clamp(32px, 3.8vw, 54px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 800;
  text-wrap: balance;
}
.section__lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}
.section__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
  align-items: end;
}
.section__head--narrow { display: flex; flex-direction: column; align-items: stretch; gap: 16px; max-width: 720px; }
.section__head-text { display: flex; flex-direction: column; gap: 16px; }

.section--white { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) clamp(20px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 4vw, 64px);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 247, 242, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { height: clamp(40px, 3.6vw, 52px); width: auto; display: block; }
.site-header__nav { display: flex; gap: 32px; font-size: 15px; font-weight: 600; }
.site-header__cta { font-size: 15px; padding: 12px 22px; }

.site-header__toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.site-header__toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; display: block; }
.site-header__toggle span:last-child { width: 14px; margin-left: -6px; background: var(--orange); }

.site-header__mobile-nav {
  padding: 8px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 18px;
  font-weight: 700;
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.site-header__mobile-nav[hidden] { display: none; }
.site-header__mobile-nav a { padding: 14px 4px; border-bottom: 1px solid var(--border); }
.site-header__mobile-nav .btn { margin-top: 16px; text-align: center; justify-content: center; padding: 16px; }

@media (max-width: 759px) {
  .site-header__nav, .site-header__cta { display: none; }
  .site-header__toggle { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 96px) clamp(20px, 5vw, 64px) clamp(56px, 7vw, 112px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }

.pill {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.pill__tag { background: var(--blue); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }

.hero__title {
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 800;
  text-wrap: balance;
}
.text-orange { color: var(--orange); }

.hero__lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--muted); max-width: 520px; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 2.4vw, 40px); padding-top: 28px; border-top: 1px solid var(--border-strong); }
.hero__stats > div { flex: 1 1 0; min-width: 120px; }
.hero__stat-num { font-size: clamp(28px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.hero__stat-label { font-size: 14px; color: var(--muted); margin-top: 2px; }

.hero__media { position: relative; padding: 0 0 28px 0; }
.hero__media-shape { position: absolute; right: -6%; top: 8%; width: 78%; height: 88%; background: var(--orange); border-radius: 40px; }
.hero__media-frame {
  position: relative;
  width: 88%;
  aspect-ratio: 4 / 5;
  max-height: 600px;
  border-radius: 32px;
  overflow: hidden;
  background: #E9E8F1;
}
.hero__media-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute;
  left: 0;
  bottom: 0;
  background: #fff;
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 20px 40px -20px rgba(42, 37, 83, .35);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__badge-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--chip-bg); color: var(--blue); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.hero__badge-title { font-weight: 800; font-size: 15px; }
.hero__badge-sub { font-size: 13px; color: var(--muted); }

/* ---------- Propuesta ---------- */

.propuesta__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.propuesta__card { background: var(--cream); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.propuesta__card h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.propuesta__card p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.propuesta__num { width: 56px; height: 56px; border-radius: 18px; color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.propuesta__num--orange { background: var(--orange); }
.propuesta__num--blue { background: var(--blue); }
.propuesta__num--navy { background: var(--navy); }

/* ---------- Cursos ---------- */

.cursos__tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 calc(-1 * clamp(20px, 5vw, 64px));
  padding: 4px clamp(20px, 5vw, 64px);
  scrollbar-width: none;
  flex-wrap: wrap;
}
.cursos__tabs::-webkit-scrollbar { display: none; }
@media (max-width: 759px) { .cursos__tabs { flex-wrap: nowrap; } }

.cursos__tab {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.cursos__tab:hover { border-color: var(--navy); }
.cursos__tab.is-active { border-color: var(--navy); background: var(--navy); color: #fff; font-weight: 700; }
.cursos__tab .msr { font-size: 20px; color: var(--muted); }
.cursos__tab.is-active .msr { color: #fff; }
.cursos__tab-count {
  background: #F1ECE4;
  color: var(--muted);
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cursos__tab.is-active .cursos__tab-count { background: var(--orange); color: #fff; }

.cursos__tab-label--mobile { display: none; }
@media (max-width: 759px) {
  .cursos__tab-label--desktop { display: none; }
  .cursos__tab-label--mobile { display: inline; }
}

.cursos__panel[hidden] { display: none; }
.cursos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }

.course-card {
  appearance: none;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  color: var(--navy);
  text-align: left;
  width: 100%;
  transition: transform .2s, box-shadow .2s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(42, 37, 83, .45); }
/* The card is a <button>: its rows do not stretch on their own, so
   space-between would have no room to push the number / arrow right. */
.course-card__top, .course-card__cta { align-self: stretch; width: 100%; }
.course-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.course-card__icon-tile { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; flex: none; }
.course-card__icon-tile .msr { font-size: 28px; }
.course-card__tag { align-self: flex-start; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.course-card__tag-dot { width: 6px; height: 6px; border-radius: 999px; flex: none; }
.course-card__num { font-size: 14px; font-weight: 700; color: #B5AFA3; }
.course-card__title { font-size: 19px; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; flex: 1; text-wrap: pretty; }
.course-card__cta { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; color: var(--orange); }
.course-card__arrow { width: 36px; height: 36px; border-radius: 999px; background: #FDEBDD; display: flex; align-items: center; justify-content: center; }

/* ---------- Equipo ---------- */

.equipo__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 759px) {
  .equipo__list {
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -20px;
    padding: 0 20px 8px;
    scroll-padding: 0 20px;
    scrollbar-width: none;
  }
  .equipo__list::-webkit-scrollbar { display: none; }
}
.relator-card { background: var(--cream); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 18px; scroll-snap-align: start; }
.relator-card__head { display: flex; align-items: center; gap: 14px; }
.relator-card__avatar { width: 56px; height: 56px; flex: none; border-radius: 999px; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.relator-card__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.relator-card__name { font-weight: 800; font-size: 17px; line-height: 1.25; letter-spacing: -.01em; }
.relator-card__role { font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--blue); }

.relator-card__highlights { display: flex; flex-wrap: wrap; gap: 6px; }
.relator-card__highlight { background: #FDEBDD; color: #A94A0C; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; line-height: 1.3; }

.relator-card__credentials { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--border); padding-top: 16px; }
.relator-card__credential { display: flex; gap: 12px; align-items: flex-start; }
.relator-card__credential[hidden] { display: none; }
.relator-card__credential-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--orange); flex: none; margin-top: 8px; }
.relator-card__credential-body { display: flex; flex-direction: column; gap: 2px; }
.relator-card__credential-title { font-size: 14.5px; font-weight: 700; line-height: 1.4; text-wrap: pretty; }
.relator-card__credential-institution { font-size: 13px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }

.relator-card__toggle {
  margin-top: auto;
  align-self: flex-start;
  border: 0;
  background: none;
  padding: 6px 0;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.relator-card__toggle:hover { color: var(--orange-hover); }

/* ---------- Impacto ---------- */

.impacto-wrap { max-width: 1280px; margin: 0 auto; padding: clamp(64px, 8vw, 120px) clamp(20px, 5vw, 64px) 0; }
.impacto {
  background: var(--navy);
  color: #fff;
  border-radius: clamp(28px, 3vw, 40px);
  padding: clamp(36px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(36px, 4vw, 64px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.impacto::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: var(--orange);
  opacity: .9;
}
.impacto__title { position: relative; font-size: clamp(32px, 3.8vw, 54px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
.impacto__stats { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.impacto__stat { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 24px; padding: 28px; }
.impacto__stat-num { font-size: clamp(40px, 4.4vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.impacto__stat-label { font-size: 15px; margin-top: 10px; color: #D9D7E6; }

/* ---------- Por qué ---------- */

.por-que {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.por-que__media { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; }
.por-que__media-bg { position: absolute; inset: 0; border-radius: 999px; background: var(--chip-bg); }
.por-que__media-frame { position: absolute; inset: 6%; border-radius: 999px; overflow: hidden; }
.por-que__media-frame img { width: 100%; height: 100%; object-fit: cover; }
.por-que__badge { position: absolute; right: 4%; top: 10%; background: var(--orange); color: #fff; font-weight: 800; font-size: 14px; padding: 10px 16px; border-radius: 999px; }
.por-que__copy { display: flex; flex-direction: column; gap: 24px; }
.por-que__bullets { display: flex; flex-direction: column; gap: 12px; }
.por-que__bullet { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; font-weight: 700; font-size: 16px; }
.dot { width: 12px; height: 12px; border-radius: 999px; flex: none; }
.dot--orange { background: var(--orange); }
.dot--blue { background: var(--blue); }
.dot--navy { background: var(--navy); }

/* ---------- Preguntas frecuentes ---------- */

.faq__list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq__item { background: var(--cream); border: 1px solid var(--border); border-radius: 18px; }
.faq__item[open] { border-color: var(--border-strong); }
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "+";
  flex: none;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: var(--orange);
}
.faq__item[open] > .faq__question::after { content: "\2212"; }
.faq__question:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 18px; }
.faq__answer { padding: 0 24px 22px; font-size: 16px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }

/* ---------- Contacto ---------- */

.contacto { background: var(--navy); color: #fff; }
.contacto__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.contacto__copy { display: flex; flex-direction: column; gap: 20px; }
.contacto__title { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
.contacto__lead { font-size: 17px; line-height: 1.65; color: #D9D7E6; max-width: 440px; text-wrap: pretty; }
.contacto__direct { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 8px; }
.contacto__direct span { font-size: 14px; color: #B9B6CC; }
.contacto__direct a { color: #fff; font-weight: 700; font-size: 18px; }
.contacto__direct a:hover { color: var(--peach); }

.contacto__form { background: #fff; color: var(--navy); border-radius: 28px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.contacto__success, .contacto__error { border-radius: 14px; padding: 14px 16px; font-weight: 700; font-size: 15px; }
.contacto__success[hidden], .contacto__error[hidden] { display: none; }
.contacto__success { background: var(--chip-bg); color: var(--blue); }
.contacto__error { background: #FCECE4; color: #B94A0F; }
.contacto__honeypot { position: absolute; left: -9999px; top: -9999px; }
.contacto__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }

.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--cream);
  color: var(--navy);
  outline-color: var(--orange);
}
.field select { padding: 0 12px; }
.field textarea { height: auto; padding: 14px 16px; resize: vertical; }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: #B94A0F; }
.field__error { font-size: 13px; font-weight: 600; color: #B94A0F; }
.field__error:empty { display: none; }
.contacto__legal { font-size: 12px; color: var(--muted); }
.contacto__legal a { text-decoration: underline; }
.contacto__submit { align-self: stretch; height: 56px; justify-content: center; }

.field--consent { font-weight: 400; }
.field-consent__row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted); font-weight: 400; }
.field-consent__row input[type="checkbox"] { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--orange); flex: none; }
.field-consent__row a { color: var(--navy); text-decoration: underline; }
.field-consent__row a:hover { color: var(--orange); }

/* ---------- Course picker (Cursos de interés) ---------- */

.course-picker-field { position: relative; }
.course-picker__label-hint { font-weight: 500; color: var(--muted); }

.course-picker { display: flex; flex-direction: column; gap: 8px; position: relative; }

.course-picker__trigger {
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  padding: 8px 44px 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--cream);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  position: relative;
  text-align: left;
}
.course-picker__trigger[aria-expanded="true"] { border-color: var(--orange); }

.course-picker__chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 1; min-width: 0; }
.course-picker__placeholder { color: #9A96AA; font-size: 16px; font-weight: 500; padding: 0 6px; }

.course-picker__chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 5px 5px 5px 12px;
  font-size: 13px;
  font-weight: 600;
  max-width: 100%;
  box-sizing: border-box;
}
.course-picker__chip-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course-picker__chip-remove {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  flex: none;
  padding: 0;
}

.course-picker__caret {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 11px;
}

.course-picker__backdrop { position: fixed; inset: 0; z-index: 29; }
.course-picker__backdrop[hidden] { display: none; }

.course-picker__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 30px 60px -24px rgba(31, 26, 68, .45);
  max-height: 460px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--navy);
}
.course-picker__panel[hidden] { display: none; }

.course-picker__header {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-picker__mobile-titlerow { display: none; }
.course-picker__mobile-title { font-weight: 800; font-size: 18px; }
.course-picker__grabber { width: 40px; height: 4px; border-radius: 4px; background: var(--border-strong); }

.course-picker__search { position: relative; }
.course-picker__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border: 2px solid #9A96AA;
  border-radius: 999px;
}
/* .field scope beats the generic `.field input` rule, which would otherwise
   override padding, height and radius. */
.field .course-picker__search-input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  height: 48px;
  padding: 0 16px 0 40px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--cream);
  color: var(--navy);
  outline-color: var(--orange);
}

.course-picker__filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex-wrap: wrap; }
.course-picker__filters::-webkit-scrollbar { display: none; }
.course-picker__filter {
  flex: none;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.course-picker__filter:hover { border-color: var(--navy); }
.course-picker__filter.is-active {
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.course-picker__list { overflow-y: auto; flex: 1; min-height: 0; padding: 0 6px 8px; }
.course-picker__group[hidden] { display: none; }

.course-picker__group-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  padding: 14px 10px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  justify-content: space-between;
}
.course-picker__group-count { color: #9A96AA; }

.course-picker__option {
  width: 100%;
  text-align: left;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy);
  cursor: pointer;
}
.course-picker__option[hidden] { display: none; }
.course-picker__option:hover { background: #F6F2EB; }
.course-picker__option.is-selected { background: #FDEBDD; }

.course-picker__checkbox {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
  box-sizing: border-box;
  border-radius: 6px;
  border: 2px solid #CFC8BB;
  background: #fff;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.course-picker__option.is-selected .course-picker__checkbox { border-color: var(--orange); background: var(--orange); }
.course-picker__option.is-selected .course-picker__checkbox::after { content: "✓"; }

.course-picker__option-title { text-wrap: pretty; }

.course-picker__empty { padding: 36px 16px; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.5; }
.course-picker__empty[hidden] { display: none; }

.course-picker__footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.course-picker__clear {
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  padding: 10px 6px;
}
.course-picker__clear:hover { color: var(--navy); }
.course-picker__done {
  border: 0;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
}
.course-picker__done:hover { background: var(--orange-hover); }

.field--invalid .course-picker__trigger { border-color: #B94A0F; }

@media (max-width: 759px) {
  .course-picker__backdrop:not([hidden]) { background: rgba(31, 26, 68, .55); z-index: 59; }

  .course-picker__panel:not([hidden]) {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: 86vh;
    max-height: none;
    z-index: 60;
    border-radius: 24px 24px 0 0;
  }

  .course-picker__mobile-titlerow { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 2px; }
  .course-picker__filters { flex-wrap: nowrap; }
}

/* ---------- Course modal ---------- */

.course-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(31, 26, 68, .55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.course-modal[hidden] { display: none; }
.course-modal__overlay { position: absolute; inset: 0; }
.course-modal__dialog {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  overflow: auto;
  border-radius: 28px;
  box-shadow: 0 40px 80px -30px rgba(31, 26, 68, .6);
  display: flex;
  flex-direction: column;
}
@media (max-width: 759px) {
  .course-modal { align-items: flex-end; padding: 0; }
  .course-modal__dialog { border-radius: 28px 28px 0 0; max-height: 92vh; }
}
.course-modal__header {
  background: var(--cream);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.course-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--navy);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.course-modal__close:hover { border-color: var(--navy); }
.course-modal__meta { display: flex; align-items: center; gap: 14px; }
.course-modal__icon-tile { width: 56px; height: 56px; flex: none; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.course-modal__icon-tile .msr { font-size: 28px; }
.course-modal__area { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.course-modal__title { padding-right: 48px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; text-wrap: pretty; }
.course-modal__body { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.course-modal__description { font-size: 16px; line-height: 1.6; color: var(--muted); }

.course-modal__list { display: flex; flex-direction: column; gap: 14px; counter-reset: objective; }
.course-modal__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--cream);
  border-radius: 18px;
  padding: 18px;
  counter-increment: objective;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
}
.course-modal__list li::before {
  content: counter(objective);
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: #D9D7E6; }
.site-footer__inner { max-width: 1280px; margin: 0 auto; padding: clamp(48px, 5vw, 72px) clamp(20px, 5vw, 64px) 32px; display: flex; flex-direction: column; gap: 40px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.site-footer__logo { height: 64px; width: auto; align-self: start; justify-self: start; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.site-footer__heading { font-weight: 800; color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer__col a { color: #D9D7E6; }
.site-footer__col a:hover { color: #fff; }
.site-footer__email { color: #fff; font-weight: 700; }
.site-footer__email:hover { color: var(--peach); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 24px; font-size: 13px; color: #A9A5C0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.site-footer__legal-links { display: flex; gap: 16px; }
.site-footer__legal-links a { color: #A9A5C0; }
.site-footer__legal-links a:hover { color: #fff; }

/* ---------- Legal pages (privacy policy / terms of service) ---------- */

.legal { background: #fff; }
.legal__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 32px) clamp(80px, 8vw, 120px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.legal__title { font-size: clamp(32px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.legal__updated { font-size: 14px; color: var(--muted); margin-top: -8px; }
.legal h2 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin-top: 16px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--navy); text-wrap: pretty; }
.legal ul, .legal ol { padding-left: 22px; list-style: disc; display: flex; flex-direction: column; gap: 8px; }
.legal ol { list-style: decimal; }
.legal a { text-decoration: underline; }

/* ---------- Contact submit: loading state ---------- */

.contacto__submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.contacto__submit-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 999px;
  animation: contacto-spin .8s linear infinite;
}
.contacto__submit.is-loading .contacto__submit-spinner { display: inline-block; }
.contacto__submit:disabled { cursor: progress; opacity: .85; }
.contacto__submit:disabled:hover { background: var(--orange); }

@keyframes contacto-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .contacto__submit-spinner { animation: none; border-color: #fff; opacity: .7; }
}
