:root {
  --ink: #202020;
  --muted: #5f6469;
  --orange: #f5821f;
  --orange-dark: #d86708;
  --blue: #0a6f8d;
  --blue-dark: #07475d;
  --soft: #f6f5f2;
  --line: #e2ded8;
  --white: #fff;
  --shadow: 0 18px 44px rgba(37, 31, 24, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 16px/1.5 "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(18px, 5vw, 58px);
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,.34), rgba(0,0,0,.06));
}

.site-header.scrolled {
  background: rgba(255,255,255,.96);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.logo img {
  width: 190px;
  max-width: 42vw;
  height: auto;
  display: block;
}

.site-header:not(.scrolled) .logo img {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.28));
}

.logo-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
}

.logo small {
  display: block;
  font-weight: 700;
  color: currentColor;
  opacity: .8;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-weight: 750;
}

.desktop-nav a {
  border-bottom: 2px solid transparent;
  padding: 8px 0;
}

.desktop-nav a:hover {
  border-bottom-color: var(--orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: currentColor;
  font-size: 24px;
  cursor: pointer;
}

.campus-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 3px;
  font-weight: 850;
  border: 2px solid transparent;
}

.campus-link,
.button.primary {
  background: var(--orange);
  color: #fff;
}

.campus-link:hover,
.button.primary:hover {
  background: var(--orange-dark);
}

.button.secondary {
  background: rgba(255,255,255,.9);
  color: var(--blue-dark);
  border-color: rgba(255,255,255,.9);
}

.button.dark {
  background: var(--blue-dark);
  color: #fff;
}

.mobile-menu {
  position: fixed;
  z-index: 19;
  inset: 82px 0 auto;
  display: none;
  padding: 14px 20px 18px;
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mobile-menu.open {
  display: grid;
  gap: 10px;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  color: #fff;
  background: url("./assets/hero-aula-formacion.png") center/cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 16vh;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.42));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.58), rgba(104,48,8,.38), rgba(245,130,31,.42)),
    radial-gradient(circle at center, transparent 0 38%, rgba(0,0,0,.36));
}

.hero-content {
  width: min(880px, calc(100% - 34px));
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 0 70px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .04em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  width: min(760px, 100%);
  margin: 24px auto 0;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 650;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.intro-band,
.contact-band {
  width: min(1180px, calc(100% - 34px));
  margin: -42px auto 0;
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.intro-band h2,
.contact-band h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.12;
}

.intro-band p,
.contact-band p {
  margin: 0;
  color: var(--muted);
}

.section {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
  padding: 78px 0;
}

.section-muted {
  width: 100%;
  max-width: none;
  padding-left: max(17px, calc((100% - 1180px) / 2));
  padding-right: max(17px, calc((100% - 1180px) / 2));
  background: var(--soft);
}

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-head h2,
.split h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.section-head p:not(.eyebrow),
.split p {
  color: var(--muted);
  font-size: 18px;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.region-card {
  min-height: 190px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 22px;
  border-radius: 4px;
  background: linear-gradient(150deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: var(--shadow);
}

.region-card strong {
  font-size: 22px;
  line-height: 1.1;
}

.region-card span {
  color: rgba(255,255,255,.84);
}

.region-card b {
  color: var(--orange);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.funding-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.funding-summary article {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: 4px;
  padding: 18px;
  display: grid;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(37, 31, 24, .08);
}

.funding-summary span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.funding-summary strong {
  font-size: 22px;
  line-height: 1.12;
}

.funding-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.course-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: grid;
}

.course-image {
  min-height: 170px;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  display: block;
  color: #fff;
  font-weight: 900;
  font-size: 42px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.course-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.course-image span {
  min-height: 170px;
  display: grid;
  place-items: center;
}

.course-body {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.course-label {
  color: var(--orange);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.course-body h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.16;
}

.course-description,
.course-source {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.course-meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.course-meta span {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
}

.course-meta b {
  color: var(--blue);
  font-size: 18px;
}

.course-source {
  padding: 10px 12px;
  border-left: 3px solid var(--blue);
  background: #f2f8fa;
  color: var(--blue-dark);
}

.normative-note {
  width: min(940px, 100%);
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.split {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 470px);
  gap: 46px;
  align-items: center;
}

.check-list {
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
}

.check-list li::before {
  content: "✓";
  color: var(--orange);
  font-weight: 900;
}

.campus-preview {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.preview-top {
  background: var(--blue-dark);
  color: #fff;
  padding: 24px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
}

.preview-top span {
  grid-row: span 2;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--orange);
  font-weight: 900;
}

.preview-top small {
  color: rgba(255,255,255,.78);
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.preview-metrics div {
  padding: 18px;
  display: grid;
  gap: 2px;
  border-right: 1px solid var(--line);
}

.preview-metrics strong {
  color: var(--blue);
  font-size: 28px;
}

.preview-metrics span {
  color: var(--muted);
  font-size: 13px;
}

.preview-list {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.preview-list span {
  height: 16px;
  border-radius: 999px;
  background: #e9edf0;
}

.preview-list span:nth-child(2) {
  width: 78%;
}

.preview-list span:nth-child(3) {
  width: 66%;
}

.section-tech {
  padding-top: 34px;
}

.section-apply {
  padding-top: 56px;
}

.apply-layout {
  display: grid;
  grid-template-columns: minmax(280px, 410px) 1fr;
  gap: 28px;
  align-items: start;
}

.apply-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.apply-copy p {
  color: var(--muted);
  font-size: 18px;
}

.contact-card {
  margin-top: 22px;
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(37, 31, 24, .09);
}

.contact-card span {
  color: var(--muted);
  font-weight: 850;
}

.contact-card a {
  color: var(--blue-dark);
  font-size: 24px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-card small {
  color: var(--muted);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--blue-dark);
  font-weight: 850;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cad2d8;
  border-radius: 3px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

.lead-form textarea {
  resize: vertical;
  min-height: 112px;
}

.form-wide {
  grid-column: 1 / -1;
}

.consent {
  grid-template-columns: 22px 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 650;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.privacy-summary {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid #d7e2e6;
  border-left: 5px solid var(--blue);
  background: #f2f8fa;
  color: var(--muted);
  font-size: 14px;
}

.privacy-summary strong {
  color: var(--blue-dark);
  font-size: 16px;
}

.privacy-summary p {
  margin: 0;
}

.privacy-summary a {
  color: var(--blue-dark);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-status.ok {
  color: #08724f;
}

.form-status.error {
  color: #a33318;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.hosting-grid,
.application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hosting-card,
.application-card {
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(37, 31, 24, .09);
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 12px;
  border-top: 5px solid var(--blue);
}

.hosting-card.recommended,
.application-card.recommended {
  border-top-color: var(--orange);
  background: linear-gradient(180deg, #fff, #fff8f1);
}

.hosting-card span,
.application-card span {
  color: var(--orange);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.hosting-card h3,
.application-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.hosting-card strong,
.application-card strong {
  color: var(--blue-dark);
  font-size: 18px;
}

.hosting-card p,
.application-card p {
  margin: 0;
  color: var(--muted);
}

.course-strip {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-strip span {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 3px;
  padding: 10px 12px;
  font-weight: 800;
  color: var(--blue-dark);
  box-shadow: 0 8px 18px rgba(37, 31, 24, .08);
}

.tech-note {
  margin-top: 18px;
  border-left: 5px solid var(--orange);
  background: #f2f8fa;
  padding: 16px 18px;
  display: grid;
  gap: 4px;
  color: var(--blue-dark);
}

.tech-note span {
  color: var(--muted);
}

.quality-section {
  background: #fff;
}

.quality-layout {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) 1.6fr;
  gap: 22px;
  align-items: stretch;
}

.quality-policy,
.quality-grid article {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(30, 30, 30, .08);
}

.quality-policy {
  padding: 28px;
  display: grid;
  align-content: start;
  gap: 14px;
  border-left: 7px solid var(--orange);
}

.quality-policy h3,
.quality-policy p {
  margin: 0;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.quality-grid article {
  min-height: 150px;
  padding: 20px;
  display: grid;
  gap: 8px;
}

.quality-grid span {
  color: var(--orange);
  font-weight: 900;
}

.quality-grid strong {
  color: var(--blue-dark);
  font-size: 18px;
}

.quality-grid p {
  margin: 0;
  color: var(--muted);
}

.contact-band {
  margin: 0 auto 70px;
  background: var(--blue-dark);
  color: #fff;
}

.contact-band p {
  color: rgba(255,255,255,.78);
}

.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 58px);
  background: #1c1c1c;
  color: #fff;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer span {
  color: rgba(255,255,255,.7);
}

.site-footer a {
  color: var(--orange);
  font-weight: 800;
}

.legal-page {
  padding-top: 98px;
}

.legal-page .section {
  max-width: 960px;
}

.legal-page h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.06;
}

.legal-block {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.legal-block h2 {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 28px;
}

.legal-block p {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 17px;
}

.legal-block a {
  color: var(--blue);
  font-weight: 800;
}

.search-dialog {
  width: min(620px, calc(100% - 34px));
  border: 0;
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.search-dialog::backdrop {
  background: rgba(0,0,0,.58);
}

.search-dialog .close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.search-dialog input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  padding: 10px 12px;
}

.search-results {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.search-results a {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .campus-link {
    display: none;
  }

  .intro-band,
  .contact-band,
  .split,
  .apply-layout,
  .quality-layout {
    grid-template-columns: 1fr;
  }

  .region-grid,
  .course-grid,
  .funding-summary,
  .hosting-grid,
  .application-grid,
  .quality-grid,
  .lead-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 74px;
    padding: 12px 16px;
  }

  .logo-mark {
    width: 42px;
    height: 42px;
  }

  .hero-content {
    padding-top: 108px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .region-grid,
  .course-grid,
  .funding-summary,
  .hosting-grid,
  .application-grid,
  .quality-grid,
  .lead-form,
  .preview-metrics {
    grid-template-columns: 1fr;
  }

  .intro-band,
  .section,
  .contact-band {
    width: calc(100% - 24px);
  }

  .section-muted {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-footer {
    display: grid;
  }
}
