:root {
  --red: #e31e24;
  --red-dark: #b90f18;
  --ink: #161a1d;
  --ink-2: #20262a;
  --navy: #071b2f;
  --paper: #ffffff;
  --soft: #f3f5f5;
  --line: #dfe4e5;
  --muted: #687277;
  --green: #95b2a0;
  --radius: 1.4rem;
  --shadow: 0 22px 60px rgba(13, 23, 30, 0.12);
  --container: min(1180px, calc(100vw - 2rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7.5rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-is-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[x-cloak] { display: none !important; }

.container { width: var(--container); margin-inline: auto; }
.sr-only { position: absolute; 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: .75rem; left: .75rem; z-index: 999; transform: translateY(-180%); padding: .75rem 1rem; background: white; border-radius: .5rem; }
.skip-link:focus { transform: none; }

.topbar { background: var(--ink); color: #fff; font-size: .78rem; letter-spacing: .03em; }
.topbar__inner { min-height: 2.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar p { margin: 0; text-transform: uppercase; font-weight: 750; }
.topbar a { color: #e8eded; }
.topbar a span { color: #9ca6aa; margin-right: .4rem; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(13,23,30,.07); backdrop-filter: blur(18px); transition: box-shadow .25s ease; }
.site-header--scrolled { box-shadow: 0 12px 36px rgba(13,23,30,.1); }
.site-header__inner { min-height: 5.5rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; min-width: 190px; }
.brand img { width: 142px; height: auto; }
.brand__divider { width: 1px; height: 2.25rem; margin: 0 .8rem; background: var(--line); }
.brand__program { color: var(--navy); font-family: Georgia, serif; font-size: .75rem; font-weight: 700; line-height: 1.05; letter-spacing: .08em; text-transform: uppercase; }
.desktop-nav { display: flex; justify-content: center; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.desktop-nav a { position: relative; font-size: .87rem; font-weight: 650; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; bottom: -.55rem; width: 100%; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.menu-toggle { display: none; width: 2.8rem; height: 2.8rem; border: 0; border-radius: 50%; background: var(--soft); place-items: center; }
.menu-toggle span:not(.sr-only) { display: block; width: 1.15rem; height: 2px; margin: 3px auto; background: var(--ink); }
.mobile-menu { position: fixed; inset: 7.8rem 0 0; z-index: 90; padding: 1.5rem; background: rgba(255,255,255,.99); }
.mobile-menu nav { display: grid; gap: .45rem; width: min(32rem, 100%); margin: 0 auto; }
.mobile-menu nav > a:not(.button) { padding: 1rem .5rem; border-bottom: 1px solid var(--line); font-size: 1.1rem; font-weight: 700; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3.1rem; padding: .85rem 1.25rem; border: 1px solid transparent; border-radius: .35rem; font-size: .86rem; font-weight: 800; letter-spacing: .015em; transition: transform .2s ease, background .2s ease, color .2s ease, border .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--compact { min-height: 2.65rem; padding: .65rem .95rem; font-size: .78rem; }
.button--large { min-height: 3.6rem; padding: 1rem 1.55rem; }
.button--primary { color: #fff; background: var(--red); box-shadow: 0 12px 30px rgba(227,30,36,.22); }
.button--primary:hover { background: var(--red-dark); }
.button--dark { color: #fff; background: var(--ink); }
.button--ghost { color: var(--ink); border-color: #cdd4d6; background: transparent; }
.button--ghost:hover { border-color: var(--red); color: var(--red); }
.button--glass { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.09); backdrop-filter: blur(12px); }
.button--glass:hover { background: rgba(255,255,255,.18); }
.button--outline { color: var(--red); border-color: var(--red); background: transparent; }

.hero { position: relative; min-height: clamp(680px, 82vh, 860px); display: grid; align-items: center; overflow: hidden; color: #fff; background: var(--navy); }
.hero__video, .hero__veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__video { object-fit: cover; }
.hero__veil { background: linear-gradient(90deg, rgba(6,17,30,.96) 0%, rgba(6,17,30,.82) 36%, rgba(6,17,30,.34) 68%, rgba(6,17,30,.16) 100%); }
.hero__veil::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), transparent 45%, rgba(0,0,0,.35)); }
.hero__pulse { position: absolute; left: 0; right: 0; bottom: 10%; height: 95px; opacity: .18; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 100'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2' d='M0 55h210l18-18 18 37 18-18h140l15-40 21 70 22-31h160l18-12 18 24 18-12h240l17-18 18 37 18-18h260'/%3E%3C/svg%3E") center / cover no-repeat; }
.hero__content { position: relative; z-index: 2; padding-block: 7rem 8rem; }
.hero__copy { width: min(780px, 78%); }
.hero h1 { margin: 1rem 0 1.35rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.1rem, 6.1vw, 6.5rem); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.hero h1 em { color: #ff4249; font-style: normal; }
.hero__copy > p { max-width: 680px; margin: 0; color: #e4e9eb; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.hero__meta div { padding: 1rem 1.25rem 1rem 0; }
.hero__meta div + div { padding-left: 1.25rem; border-left: 1px solid rgba(255,255,255,.18); }
.hero__meta strong, .hero__meta span { display: block; }
.hero__meta strong { font-size: .98rem; }
.hero__meta span { margin-top: .15rem; color: #b9c3c8; font-size: .76rem; }
.hero__controls { position: absolute; z-index: 3; right: 2rem; bottom: 2rem; display: flex; gap: .5rem; }
.hero__controls button { min-height: 2.7rem; padding: .65rem .85rem; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 99px; background: rgba(0,0,0,.24); backdrop-filter: blur(10px); font-size: .72rem; }
.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 1.5rem; display: grid; justify-items: center; gap: .3rem; transform: translateX(-50%); color: #fff; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.hero__scroll span { width: 1px; height: 1.8rem; background: rgba(255,255,255,.7); animation: scrollLine 1.8s ease-in-out infinite; }
@keyframes scrollLine { 0%,100% { transform: scaleY(.35); transform-origin: top; } 50% { transform: scaleY(1); } }

.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--red); font-size: .74rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow > span { width: 2.2rem; height: 2px; background: currentColor; }
.eyebrow--light { color: #ff545a; }

.trust-strip { position: relative; z-index: 5; margin-top: -2px; background: #fff; border-bottom: 1px solid var(--line); }
.trust-strip__grid { display: grid; grid-template-columns: 1fr 1.45fr 1fr; align-items: center; }
.trust-card { min-height: 9rem; display: grid; align-content: center; justify-items: center; padding: 1.5rem; text-align: center; }
.trust-card + .trust-card { border-left: 1px solid var(--line); }
.trust-card > span { color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.trust-card img { width: auto; max-width: 230px; max-height: 58px; margin-top: .55rem; object-fit: contain; }
.trust-card--center strong { color: var(--navy); font-family: Georgia, serif; font-size: 1.25rem; }
.trust-card--center span { margin-top: .5rem; text-transform: none; letter-spacing: 0; }

.section { position: relative; padding-block: clamp(5rem, 9vw, 9rem); overflow: hidden; }
.split { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(3rem, 7vw, 7.5rem); }
.split--wide { grid-template-columns: .96fr 1.04fr; }
.split--reverse { grid-template-columns: 1.05fr .95fr; }
.section-copy h2, .section-heading h2, .faculty-intro h2 { margin: .8rem 0 1.25rem; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 4.6vw, 4.8rem); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.section-copy h2 em, .section-heading h2 em, .faculty-intro h2 em { color: var(--red); font-style: normal; }
.section-copy > p { color: var(--muted); }
.section-copy .lead { color: var(--ink); font-size: 1.18rem; font-weight: 650; }
.text-link { display: inline-flex; gap: .8rem; align-items: center; margin-top: 1.5rem; color: var(--red); font-weight: 800; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(.35rem); }

.media-card { position: relative; min-height: 560px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.media-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5,18,31,.65)); }
.media-card > img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; }
.media-card__badge { position: absolute; z-index: 2; left: 1.4rem; right: 1.4rem; bottom: 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; color: white; border: 1px solid rgba(255,255,255,.28); border-radius: .8rem; background: rgba(6,22,38,.72); backdrop-filter: blur(14px); }
.media-card__badge strong, .media-card__badge span { display: block; }
.media-card__badge span { color: #d5dde0; font-size: .78rem; }
.feature-list { display: grid; gap: 1rem; margin-top: 2rem; }
.feature-list--two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.feature-list > div { display: flex; gap: .85rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.feature-list > div > span { color: var(--red); font-family: Georgia, serif; font-size: 1.15rem; }
.feature-list p { margin: 0; color: var(--muted); font-size: .86rem; }
.feature-list strong { display: block; color: var(--ink); font-size: .9rem; }

.section--dark { min-height: 720px; display: grid; align-items: center; color: white; background: var(--ink); }
.section--dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 12% 20%, rgba(227,30,36,.18), transparent 28%), linear-gradient(90deg, rgba(17,21,24,.98) 0 56%, rgba(17,21,24,.72) 100%); z-index: 1; }
.section--dark__image { position: absolute; inset: 0 0 0 48%; background: url("../images/Curso-Avanzado-de-Hipertension-Arterial-y-Riesgo-Cardiovascular-1.png") center / cover no-repeat; filter: grayscale(.25); }
.dark-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.1fr; gap: 7rem; align-items: center; }
.section-copy--light h2 { color: white; }
.section-copy--light > p { color: #c7d0d3; }
.objective-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid rgba(255,255,255,.18); }
.objective-list li { display: flex; gap: 1rem; align-items: flex-start; min-height: 8rem; padding: 1.5rem 1rem; border-bottom: 1px solid rgba(255,255,255,.18); }
.objective-list li:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.18); }
.objective-list span { color: #ff5056; font-family: Georgia, serif; font-size: 1.3rem; }
.objective-list p { margin: 0; font-weight: 650; }

.brand-rail { padding: 2rem 0; overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; }
.brand-rail__track { width: var(--container); margin: auto; display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); align-items: center; gap: 1rem; }
.brand-rail img { width: 100%; max-height: 55px; object-fit: contain; filter: saturate(.9); }

.section--soft { background: var(--soft); }
.portrait-panel { position: relative; min-height: 640px; overflow: hidden; border-radius: var(--radius); background: #dfe4e5; box-shadow: var(--shadow); }
.portrait-panel > img { width: 100%; height: 100%; min-height: 640px; object-fit: cover; object-position: center top; }
.portrait-panel__note { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; padding: 1.1rem 1.25rem; color: #fff; border-radius: .85rem; background: rgba(7,27,47,.86); backdrop-filter: blur(12px); }
.portrait-panel__note strong, .portrait-panel__note span { display: block; }
.portrait-panel__note span { color: #dce4e7; font-size: .78rem; }
.check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem 1rem; padding: 0; margin: 1.8rem 0 2rem; list-style: none; }
.check-grid li { position: relative; padding: .75rem 0 .75rem 2rem; border-bottom: 1px solid #d4dadd; font-size: .9rem; font-weight: 650; }
.check-grid li::before { content: "✓"; position: absolute; left: 0; top: .7rem; width: 1.35rem; height: 1.35rem; display: grid; place-items: center; color: white; border-radius: 50%; background: var(--red); font-size: .68rem; }

.section--competencies { background: white; }
.competencies-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(3rem,7vw,7rem); align-items: center; }
.competencies-visual { position: relative; min-height: 610px; border-radius: var(--radius); overflow: hidden; background: var(--navy); box-shadow: var(--shadow); }
.competencies-visual img { width: 100%; height: 100%; min-height: 610px; object-fit: cover; }
.competency-list { display: grid; gap: .2rem; padding: 0; margin: 1.7rem 0 0; list-style: none; }
.competency-list li { display: flex; gap: .85rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); font-weight: 650; }
.competency-list li span { flex: 0 0 1.6rem; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; color: white; border-radius: 50%; background: var(--red); font-size: .72rem; }

.section--program { background: #f6f7f7; }
.section-heading--center { max-width: 820px; margin: 0 auto 3rem; text-align: center; }
.section-heading--center .eyebrow { justify-content: center; }
.section-heading--center p { color: var(--muted); }
.module-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .65rem; margin-bottom: .75rem; }
.module-tabs button { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; text-align: left; border: 1px solid #cfd6d8; border-radius: .55rem; background: white; transition: background .2s, color .2s, border .2s, transform .2s; }
.module-tabs button:hover { transform: translateY(-2px); border-color: var(--red); }
.module-tabs button.is-active { color: white; border-color: var(--ink); background: var(--ink); }
.module-tabs button > span { color: var(--red); font-family: Georgia,serif; font-size: 1.2rem; }
.module-tabs button.is-active > span { color: #ff4b51; }
.module-tabs strong { font-size: .85rem; }
.module-detail { padding: clamp(1.5rem,4vw,3rem); color: white; border-radius: var(--radius); background: radial-gradient(circle at 96% 3%, rgba(149,178,160,.22), transparent 28%), linear-gradient(135deg,#14191c,#303638); box-shadow: var(--shadow); }
.module-detail__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.module-detail h3 { margin: .75rem 0 0; font-family: Georgia,serif; font-size: clamp(1.8rem,3vw,2.8rem); line-height: 1.12; }
.status-pill { display: inline-flex; padding: .35rem .65rem; color: #fff; border-radius: 99px; background: var(--red); font-size: .66rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.module-facts { display: grid; grid-template-columns: 1.5fr 1fr .65fr 1fr; gap: 1px; margin: 1rem 0; background: rgba(255,255,255,.12); }
.module-facts div { min-height: 6rem; padding: 1rem; background: rgba(255,255,255,.03); }
.module-facts span, .module-facts strong { display: block; }
.module-facts span { margin-bottom: .5rem; color: #9eaaae; font-size: .64rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.module-facts strong { font-size: .82rem; }
.module-detail__body { display: grid; grid-template-columns: .35fr .65fr; gap: 3rem; padding-top: 1.5rem; }
.mini-label { color: var(--red); font-size: .68rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.module-detail__body h4 { margin: .5rem 0 0; font-family: Georgia,serif; font-size: 1.65rem; }
.module-detail__body ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.module-detail__body li { display: flex; gap: .65rem; align-items: flex-start; color: #dce2e4; font-size: .82rem; }
.module-detail__body li > span:first-child { flex: 0 0 .45rem; width: .45rem; height: .45rem; margin-top: .45rem; border-radius: 50%; background: var(--red); }
.program-actions { display: flex; justify-content: center; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.program-actions > span { color: var(--muted); font-size: .8rem; }

.section--faculty { background: white; }
.faculty-intro { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 5rem; margin-bottom: 3rem; }
.faculty-intro p { color: var(--muted); }
.faculty-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.faculty-card { display: grid; grid-template-columns: .72fr 1.28fr; min-height: 420px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); transition: transform .25s, box-shadow .25s; }
.faculty-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.faculty-card__photo { position: relative; min-height: 420px; background: #d9dedf; }
.faculty-card__photo img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: top center; }
.faculty-card__photo span { position: absolute; left: .9rem; bottom: .9rem; padding: .35rem .65rem; color: white; border-radius: 99px; background: var(--red); font-size: .68rem; font-weight: 800; }
.faculty-card__body { align-self: center; padding: 2rem; }
.faculty-card h3 { margin: .5rem 0 .4rem; color: var(--navy); font-family: Georgia,serif; font-size: 1.75rem; line-height: 1.12; }
.faculty-card p { color: var(--muted); font-size: .86rem; }
.faculty-card .faculty-card__role { color: var(--red); font-weight: 800; }

.section--legrand { color: white; background: var(--red); }
.section--legrand::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(117,0,10,.35), transparent 55%), radial-gradient(circle at 88% 20%, rgba(255,255,255,.12), transparent 27%); }
.legrand-grid { position: relative; display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 6rem; }
.legrand-mark { padding: 2rem; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.legrand-mark img { width: 100%; }
.section--legrand .section-copy h2 { color: white; }
.section--legrand .section-copy h2 em { color: #171a1d; }
.section--legrand .section-copy > p { color: #fff; }
.text-link--light { color: white; }

.final-cta { position: relative; overflow: hidden; color: white; background: var(--navy); }
.final-cta__background { position: absolute; inset: 0; opacity: .18; background: url("../images/Hipertension-Arterial-y-Riesgo-Cardiovascular.png") center / cover no-repeat; }
.final-cta__background::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy), rgba(7,27,47,.78)); }
.final-cta__inner { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 4rem; align-items: center; min-height: 470px; padding-block: 5rem; }
.final-cta__inner > div > span { color: #ff5157; font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.final-cta h2 { margin: .7rem 0 1rem; font-family: Georgia,serif; font-size: clamp(2.7rem,4.6vw,4.8rem); line-height: 1.03; letter-spacing: -.035em; }
.final-cta p { color: #c9d2d6; }
.final-cta__actions { display: grid; gap: .8rem; }

.site-footer { color: #cbd4d7; background: #131719; }
.site-footer__notice { padding: 1rem; color: #fff; text-align: center; background: #252b2e; font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 4rem; padding-block: 4.5rem; }
.footer-grid h3 { margin: 0 0 1.2rem; color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid a, .footer-grid p { display: block; margin: .55rem 0; color: #9fabad; font-size: .82rem; }
.footer-grid a:hover { color: white; }
.footer-brand img { width: 190px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 320px; margin-top: 1.25rem; }
.footer-bottom { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .72rem; }
.footer-bottom strong { color: #ff444b; }

.back-to-top { position: fixed; z-index: 80; right: 1.25rem; bottom: 1.25rem; width: 3rem; height: 3rem; color: white; border: 0; border-radius: 50%; background: var(--red); box-shadow: 0 12px 30px rgba(227,30,36,.25); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .site-header__inner { grid-template-columns: auto 1fr auto; }
  .header-actions { justify-self: end; }
  .menu-toggle { display: grid; }
  .hero__copy { width: min(760px, 90%); }
  .dark-grid { gap: 3rem; }
  .faculty-card { grid-template-columns: 1fr; }
  .faculty-card__photo, .faculty-card__photo img { min-height: 330px; height: 330px; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 820px) {
  .topbar__inner p { display: none; }
  .topbar__inner { justify-content: center; }
  .header-actions { display: none; }
  .site-header__inner { grid-template-columns: auto 1fr auto; gap: 1rem; }
  .hero { min-height: 720px; }
  .hero__veil { background: linear-gradient(90deg, rgba(6,17,30,.94), rgba(6,17,30,.62)); }
  .hero__content { padding-block: 6rem 8rem; }
  .hero__copy { width: 100%; }
  .hero h1 { font-size: clamp(3rem,11vw,5.3rem); }
  .hero__meta { grid-template-columns: 1fr; max-width: 420px; }
  .hero__meta div, .hero__meta div + div { padding: .75rem 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .hero__scroll { display: none; }
  .trust-strip__grid { grid-template-columns: 1fr 1fr; }
  .trust-card--center { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--line); }
  .trust-card + .trust-card { border-left: 0; }
  .trust-card:nth-child(3) { border-left: 1px solid var(--line); }
  .split, .split--wide, .split--reverse, .competencies-grid, .dark-grid, .legrand-grid, .final-cta__inner { grid-template-columns: 1fr; }
  .section--dark__image { inset: 0; opacity: .18; }
  .section--dark::before { background: rgba(17,21,24,.83); }
  .brand-rail__track { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .module-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .module-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .module-detail__body { grid-template-columns: 1fr; gap: 1.5rem; }
  .faculty-intro, .faculty-grid { grid-template-columns: 1fr; }
  .faculty-intro { gap: 1rem; }
  .faculty-card { grid-template-columns: .8fr 1.2fr; }
  .faculty-card__photo, .faculty-card__photo img { min-height: 400px; height: 100%; }
  .program-actions { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  :root { --container: min(100% - 1.25rem, 1180px); --radius: 1rem; }
  html { scroll-padding-top: 6rem; }
  .site-header__inner { min-height: 4.7rem; }
  .brand img { width: 120px; }
  .brand__divider, .brand__program { display: none; }
  .mobile-menu { inset: 7rem 0 0; }
  .hero { min-height: 760px; }
  .hero__content { padding-block: 4.5rem 7.5rem; }
  .hero__copy > p { font-size: 1rem; }
  .hero__actions, .hero__actions .button { width: 100%; }
  .hero__controls { right: .75rem; bottom: .75rem; }
  .trust-card { min-height: 7.5rem; padding: 1rem .5rem; }
  .trust-card img { max-width: 145px; max-height: 48px; }
  .trust-card--center { padding-inline: 1rem; }
  .trust-card--center strong { font-size: 1rem; }
  .section { padding-block: 4.5rem; }
  .section-copy h2, .section-heading h2, .faculty-intro h2 { font-size: 2.5rem; }
  .media-card, .media-card > img, .portrait-panel, .portrait-panel > img, .competencies-visual, .competencies-visual img { min-height: 440px; }
  .feature-list--two, .objective-list, .check-grid, .module-detail__body ul { grid-template-columns: 1fr; }
  .objective-list li:nth-child(odd) { border-right: 0; }
  .objective-list li { min-height: auto; }
  .brand-rail__track { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .module-tabs { gap: .4rem; }
  .module-tabs button { padding: .8rem; }
  .module-tabs button strong { font-size: .72rem; }
  .module-detail__head { display: grid; }
  .module-detail__head .button { width: 100%; }
  .module-facts { grid-template-columns: 1fr; }
  .module-facts div { min-height: auto; }
  .faculty-card { grid-template-columns: 1fr; }
  .faculty-card__photo, .faculty-card__photo img { height: 380px; min-height: 380px; }
  .final-cta__inner { gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; justify-content: center; padding-block: 1rem; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
