/* Entrega del equipo de diseño, 9 de noviembre de 2026 (mockup plataforma 2.0).
   Copiado literal del artefacto; ni una regla reescrita. */

/* Oferta */
.catalog { padding-bottom: 120px; }
.catalog__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-title { font-size: clamp(2.25rem, 4vw, 3.125rem); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; }
.lede { margin-top: 20px; max-width: 559px; color: var(--text); }
.search { position: relative; width: min(465px, 100%); margin-right: 48px; }
.search .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--placeholder); pointer-events: none; }
.search input {
  width: 100%; height: 49px; padding: 10px 18px 10px 52px; border: 1px solid var(--field-border);
  border-radius: 30px; background: var(--surface); color: var(--navy); font-size: 1rem;
}
.search input::placeholder { color: var(--placeholder); opacity: 1; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 10px; margin: 44px 0 36px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 6px 12px 6px 16px;
  border: 1px solid currentColor; border-radius: 999px; background: var(--surface);
  color: var(--cat, var(--navy)); font-size: 0.8125rem; font-weight: 500; white-space: nowrap;
}
.filter__count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: color-mix(in srgb, currentColor 10%, transparent); font-size: 0.6875rem;
}
.filter[aria-pressed="true"] { background: var(--filter-active, var(--btn)); border-color: var(--filter-active, var(--btn)); color: #fff; }
:root[data-theme="dark"] .filter[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); }
.filter[aria-pressed="true"] .filter__count { background: rgb(255 255 255 / 18%); }

.cat-ing { --cat: var(--c-ing); }
.cat-cien { --cat: var(--c-cien); }
.cat-arte { --cat: var(--c-arte); }
.cat-hum { --cat: var(--c-hum); }
.cat-edu { --cat: var(--c-edu); }
.cat-sal { --cat: var(--c-sal); }
.cat-adm { --cat: var(--c-adm); }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px 18px; }
.course-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--card-border);
  border-radius: var(--r-xl); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
@media (hover: hover) {
  .course-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--btn-card) 25%, var(--card-border));
    box-shadow: 10px 14px 34px 2px rgb(0 52 130 / 10%);
  }
}
@media (prefers-reduced-motion: reduce) { .course-card:hover { transform: none; } }
.course-card__img {
  width: calc(100% - 30px); aspect-ratio: 340 / 218; margin: 14px 15px 0; border-radius: var(--r-lg) var(--r-lg) 0 0;
  object-fit: cover; background: var(--surface-2);
}
.course-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 18px 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 26px; padding: 3px 10px;
  border: 1px solid currentColor; border-radius: 999px; color: var(--cat, var(--navy));
  font-size: 0.75rem; font-weight: 500; line-height: 1.3;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.course-card h3 { margin-top: 14px; font-size: 1.5rem; line-height: 1.15; }
.course-card__meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: 0.875rem; color: var(--navy); }
.course-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-card__meta .icon { width: 1.05rem; height: 1.05rem; }
.course-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 24px; }
.price { font: 700 1.5rem/1.15 var(--heading); color: var(--navy); }
.course-card .button { background: var(--btn-card); min-height: 38px; padding: 8px 18px; font-size: 0.9375rem; }

.empty { padding: 48px 24px; text-align: center; color: var(--text); background: var(--surface); border-radius: var(--r-xl); }
.empty strong { display: block; font: 700 1.375rem var(--heading); color: var(--navy); margin-bottom: 6px; }
.empty .button { margin-top: 20px; }


/* Ruta de aprendizaje */
.learning { display: grid; grid-template-columns: minmax(0, 526px) minmax(0, 564px); justify-content: space-between; gap: 56px; padding-bottom: 120px; }
.learning .lede { max-width: 499px; }
.learning__img { width: 100%; aspect-ratio: 526 / 414; margin-top: 32px; border-radius: var(--r-xl); object-fit: cover; }
.steps { list-style: none; padding: 0; display: grid; gap: 16px; align-content: start; }
.step { display: flex; gap: 20px; padding: 24px; background: var(--surface); border-radius: var(--r-lg); }
.step__num {
  display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: var(--r-md);
  background: var(--btn-card); color: #fff; font: 700 1rem var(--heading);
}
.step h3 { font-size: 1.375rem; line-height: 1.25; margin-bottom: 8px; }
.step p { color: var(--text); font-size: 1rem; line-height: 1.5; }


/* Pasos que se rellenan al hacer scroll y se conectan con una línea */
.steps .step { position: relative; }
.steps .step__num {
  position: relative; z-index: 2; background: var(--surface); color: var(--blue);
  border: 2px solid var(--btn-card); transition: background-color .45s ease, color .45s ease, box-shadow .45s ease;
}
.steps .step.is-active .step__num { background: var(--btn-card); color: #fff; box-shadow: 0 8px 20px -8px rgb(1 95 255 / 55%); }
.steps .step:not(:last-child)::before,
.steps .step:not(:last-child)::after {
  content: ""; position: absolute; z-index: 1; left: 51px; width: 2px;
  top: 80px; height: calc(100% - 80px + 16px + 24px);
}
.steps .step:not(:last-child)::before { background: var(--line); }
.steps .step:not(:last-child)::after {
  background: var(--btn-card); transform: scaleY(0); transform-origin: top; transition: transform .6s ease;
}
.steps .step.is-linked::after { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) { .steps .step__num, .steps .step::after { transition: none; } }


/* Plataforma */
.platform { padding-bottom: 120px; }
.platform .section-title { max-width: 738px; margin-inline: auto; text-align: center; }
.platform .section-title em { display: block; font-style: normal; font-weight: inherit; color: var(--blue); }
.benefits { list-style: none; padding: 0; margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.benefit {
  flex: 0 1 calc((100% - 32px) / 3); min-width: 260px; padding: 28px; background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid transparent; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.benefit__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-md); background: color-mix(in srgb, var(--btn-card) 10%, transparent); color: var(--blue); transition: background-color .25s ease, color .25s ease; }
@media (hover: hover) {
  .benefit:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--btn-card) 25%, var(--card-border));
    box-shadow: 10px 14px 34px 2px rgb(0 52 130 / 10%);
  }
  .benefit:hover .benefit__icon { background: var(--btn-card); color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .benefit:hover { transform: none; } }
.benefit__icon .icon { width: 1.6rem; height: 1.6rem; }
.benefit h3 { margin-top: 20px; font-size: 1.375rem; line-height: 1.25; }
.benefit p { margin-top: 8px; color: var(--text); font-size: 1rem; line-height: 1.5; }
@media (max-width: 720px) { .benefit { flex-basis: 100%; min-width: 0; } }


/* Banner final */
.final-cta { padding-bottom: 120px; }
.final-cta__box {
  padding: 80px 32px 64px; border-radius: var(--r-xl); background: var(--panel); color: #fff; text-align: center;
}
.final-cta h2 { color: #fff; font-size: clamp(1.875rem, 3.4vw, 2.625rem); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
.final-cta h2 em { color: var(--gold); font-weight: 400; }
.final-cta p { margin: 18px auto 0; max-width: 560px; font-size: 1rem; color: var(--panel-soft); }
.final-cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.final-cta .button:not(.button--outline) { background: #015fff; }
.final-cta .button--outline { border-color: #7bafff; color: #fff; }
.final-cta .button--outline:hover { background: rgb(255 255 255 / 8%); }
@media (max-width: 720px) { .final-cta__box { padding: 56px 24px 48px; } .final-cta__actions .button { width: 100%; } }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 0.875rem; color: var(--text); }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer p { line-height: 1.5; }

