:root {
  --blue: #0059a8;
  --blue-dark: #062d62;
  --blue-deep: #041d44;
  --red: #e30613;
  --cyan: #00d7ea;
  --ink: #132238;
  --muted: #5e6c80;
  --line: #d9e2ec;
  --soft: #f2f5f8;
  --white: #fff;
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }

.site-header { align-items: center; background: #fff; border-bottom: 1px solid #e7edf3; display: flex; gap: 24px; justify-content: space-between; margin: auto; min-height: 82px; padding: 14px max(24px, calc((100% - 1240px) / 2)); position: relative; z-index: 4; }
.brand { align-items: center; display: flex; gap: 14px; }
.brand-mark { align-items: baseline; display: flex; gap: 5px; line-height: 1; white-space: nowrap; }
.brand-mark b { color: var(--red); font-size: 2rem; letter-spacing: -.1em; }
.brand-mark i { color: var(--blue); font-size: 1.35rem; font-style: normal; font-weight: 400; letter-spacing: -.07em; }
.brand-caption { border-left: 1px solid var(--line); color: var(--blue); font-size: .72rem; line-height: 1.15; padding-left: 14px; text-transform: uppercase; }
.brand-caption strong { display: block; font-size: .75rem; }
.brand-seal { height: 58px; margin: 0; object-fit: contain; width: 58px; }
.header-tag { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .1em; margin-left: auto; text-transform: uppercase; }
.header-cta { align-items: center; background: var(--blue); border-radius: 999px; color: #fff; display: inline-flex; font-size: .88rem; font-weight: 800; gap: 8px; padding: 11px 16px; }
.header-cta span, .button span { font-size: 1.1em; }

.hero { position: relative; }
.poster-hero { background: linear-gradient(135deg, #f7f8fa 0%, #eef2f5 56%, #dce6ef 100%); display: grid; gap: 36px; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); overflow: hidden; padding: 76px max(28px, calc((100% - 1240px) / 2)) 0; }
.poster-hero::before { background: radial-gradient(circle, #fff 0 38%, transparent 70%); content: ""; height: 780px; left: -180px; opacity: .7; position: absolute; top: -320px; width: 780px; }
.hero-copy { align-self: center; max-width: 630px; padding-bottom: 86px; position: relative; z-index: 1; }
.poster-kicker { color: var(--blue); font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 900; letter-spacing: .04em; margin-bottom: 24px; text-transform: uppercase; }
.poster-overline { color: var(--blue); font-size: clamp(1.5rem, 3vw, 2.7rem); font-weight: 900; letter-spacing: -.06em; margin-bottom: 12px; }
.title-ribbon { background: var(--red); border-radius: 10px 30px 10px 30px; box-shadow: 0 16px 0 rgba(111, 0, 10, .13), 0 20px 26px rgba(67, 26, 35, .18); color: #fff; display: inline-block; font-size: clamp(2.2rem, 5.2vw, 5.1rem); letter-spacing: -.08em; line-height: .98; padding: 18px 28px 21px; transform: rotate(-1.2deg); }
h1 { color: var(--blue-dark); font-size: clamp(2.5rem, 7vw, 5.4rem); letter-spacing: -.06em; line-height: .98; margin-bottom: 28px; max-width: 760px; }
.modality-line { align-items: center; color: var(--red); display: flex; flex-wrap: wrap; font-size: clamp(.9rem, 2vw, 1.25rem); font-weight: 950; gap: 9px; margin: 28px 0 14px; }
.modality-line strong { color: var(--blue); display: block; font-size: clamp(1.8rem, 4vw, 3.15rem); letter-spacing: -.06em; line-height: .9; width: 100%; }
.check-badge { align-items: center; background: var(--red); border-radius: 50%; color: #fff; display: inline-flex; font-size: 1rem; height: 27px; justify-content: center; width: 27px; }
.hero-subtitle { color: var(--blue-dark); font-size: clamp(1.08rem, 2vw, 1.35rem); font-weight: 850; max-width: 600px; }
.hero-description { color: var(--muted); font-size: 1rem; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { border: 0; border-radius: 999px; cursor: pointer; display: inline-flex; font: inherit; font-weight: 850; gap: 8px; justify-content: center; padding: 14px 21px; transition: box-shadow .2s, transform .2s; }
.button:hover { box-shadow: 0 10px 24px rgba(11, 49, 82, .16); transform: translateY(-2px); }
.button-primary { background: var(--red); color: #fff; }
.button-secondary { background: #fff; border: 1px solid #d6e1eb; color: var(--blue); }
.hero-art { align-self: end; background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(213,225,235,.86)); border-radius: 34px 34px 0 0; min-height: 540px; overflow: hidden; position: relative; }
.hero-art::after { background: linear-gradient(90deg, rgba(255,255,255,.7), transparent 35%); content: ""; inset: 0; pointer-events: none; position: absolute; }
.hero-art img { display: block; height: 100%; min-height: 540px; object-fit: cover; object-position: center; width: 100%; }
.art-note { background: var(--blue); border-left: 8px solid var(--cyan); bottom: 30px; color: #fff; font-size: .9rem; font-weight: 850; left: 24px; padding: 10px 16px; position: absolute; z-index: 1; }
.hero-wave { align-items: center; background: var(--blue); border-radius: 48px 48px 12px 12px; color: #fff; display: flex; gap: 34px; grid-column: 1 / -1; justify-content: space-between; margin: -24px 0 0; min-height: 112px; overflow: hidden; padding: 34px max(24px, calc((100% - 1140px) / 2)) 20px; position: relative; z-index: 2; }
.hero-wave::after { background: var(--red); bottom: 0; content: ""; height: 6px; left: 0; position: absolute; width: 25%; }
.hero-wave span:first-child { color: #fff; font-size: .92rem; font-weight: 950; letter-spacing: .1em; }
.hero-wave span:last-child { color: var(--cyan); font-weight: 850; }

.section-wrap { margin: auto; max-width: 1240px; padding: 88px 28px; }
.quick-facts { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); border-radius: 28px; box-shadow: 0 18px 34px rgba(6, 45, 98, .16); display: grid; gap: 1px; grid-template-columns: repeat(5, 1fr); margin-bottom: 14px; margin-top: 24px; padding-bottom: 30px; padding-top: 30px; }
.fact { border-left: 1px solid rgba(255,255,255,.34); padding: 11px 20px; }
.fact:first-child { border-color: var(--red); }
.fact span { color: rgba(255,255,255,.72); display: block; font-size: .72rem; font-weight: 850; letter-spacing: .08em; margin-bottom: 5px; text-transform: uppercase; }
.fact strong { color: #fff; font-size: 1rem; }
.eyebrow { color: var(--red); font-size: .78rem; font-weight: 950; letter-spacing: .12em; margin: 0 0 12px; text-transform: uppercase; }
h2 { color: var(--blue-dark); font-size: clamp(1.85rem, 3.6vw, 3.35rem); letter-spacing: -.055em; line-height: 1.04; margin-bottom: 24px; }
h3 { color: var(--blue-dark); margin-bottom: 8px; }
.two-column { display: grid; gap: 80px; grid-template-columns: 1fr 1fr; }
.two-column p { color: var(--muted); font-size: 1.08rem; }
.red-rule { background: var(--red); display: block; height: 7px; width: 92px; }
.poster-section { background: #fff; }
.section-head-with-image { align-items: center; display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); margin-bottom: 34px; }
.section-head-reverse { grid-template-columns: minmax(260px, .9fr) minmax(0, 1fr); }
.section-head-reverse > div { order: 2; }
.section-head-reverse > img { order: 1; }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 620px; }
.section-illustration { display: block; max-height: 330px; object-fit: contain; width: 100%; }
.section-illustration-square, .section-illustration-wide { border-radius: 28px; box-shadow: 0 18px 42px rgba(9, 43, 86, .14); }
.section-illustration-square { aspect-ratio: 16 / 10; height: 100%; max-height: none; object-fit: cover; object-position: center; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px 24px 8px 24px; box-shadow: 0 12px 26px rgba(9, 43, 86, .06); padding: 26px; position: relative; }
.card::before { background: var(--red); content: ""; height: 5px; left: 0; position: absolute; right: 35%; top: 0; }
.card p { color: var(--muted); margin-bottom: 0; }
.card-icon { color: var(--red); display: block; font-size: 1.8rem; line-height: 1; margin-bottom: 16px; }
.infrastructure-section { overflow: hidden; }
.infrastructure-head { grid-template-columns: minmax(260px, .76fr) minmax(0, 1.24fr); margin-bottom: 38px; }
.infrastructure-illustration { background: #fff; border-radius: 28px; max-height: 360px; object-fit: cover; object-position: right center; }
.infra-card { min-height: 150px; padding-top: 20px; }
.infra-index { color: var(--red); display: block; font-size: .75rem; font-weight: 950; letter-spacing: .1em; margin-bottom: 20px; }
.soft-section { background: var(--soft); position: relative; }
.soft-section::before { background: var(--blue); content: ""; height: 5px; left: 0; position: absolute; top: 0; width: 25%; }
.chips { display: flex; flex-wrap: wrap; gap: 14px; }
.chips span { background: #fff; border-left: 5px solid var(--red); border-radius: 4px 18px 4px 18px; box-shadow: 0 8px 18px rgba(9, 43, 86, .06); color: var(--blue); font-weight: 750; padding: 13px 18px; }
.job-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.job-item { background: var(--soft); border-left: 5px solid var(--blue); color: var(--blue); font-size: 1.05rem; font-weight: 750; padding: 16px 18px; }
.mid-cta { align-items: center; background: var(--blue); color: #fff; display: flex; gap: 30px; justify-content: space-between; overflow: hidden; padding: 68px max(28px, calc((100% - 1128px) / 2)); position: relative; }
.mid-cta::after { border: 1px solid rgba(0, 215, 234, .35); border-radius: 50%; content: ""; height: 420px; position: absolute; right: -90px; top: -230px; width: 420px; }
.mid-cta .eyebrow { color: var(--cyan); }
.mid-cta h2 { color: #fff; margin-bottom: 0; max-width: 690px; position: relative; z-index: 1; }
.mid-cta .button { position: relative; z-index: 1; }
.plan-list { display: grid; gap: 10px; max-width: 780px; }
details { border: 1px solid var(--line); border-radius: 14px; padding: 17px 20px; }
summary { color: var(--blue); cursor: pointer; font-weight: 850; }
.plan-heading { align-items: flex-end; display: flex; gap: 30px; justify-content: space-between; margin-bottom: 32px; }
.plan-heading h2 { margin-bottom: 16px; }
.plan-badge { align-items: center; background: var(--red); border-radius: 8px 24px 8px 24px; box-shadow: 0 12px 24px rgba(227, 6, 19, .16); color: #fff; display: flex; flex-direction: column; min-width: 116px; padding: 16px 20px; transform: rotate(2deg); }
.plan-badge span { font-size: .72rem; font-weight: 950; letter-spacing: .16em; }
.plan-badge strong { font-size: 2.1rem; line-height: 1; }
.plan-tabs { background: var(--soft); border-radius: 28px; padding: 22px; }
.plan-switch { background: #dce7f2; border-radius: 999px; display: inline-flex; gap: 5px; margin-bottom: 24px; padding: 5px; }
.plan-switch button, .level-tabs button { border: 0; cursor: pointer; font: inherit; font-weight: 850; }
.plan-switch button { background: transparent; border-radius: 999px; color: var(--blue); padding: 12px 18px; }
.plan-switch button.is-active { background: var(--blue); box-shadow: 0 7px 14px rgba(6, 45, 98, .16); color: #fff; }
.plan-panel { display: none; }
.plan-panel.is-active { display: block; }
.level-tabs { display: flex; gap: 8px; margin-bottom: 22px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.level-tabs::-webkit-scrollbar { display: none; }
.level-tabs button { background: #fff; border: 1px solid #cbd9e7; border-radius: 999px; color: var(--blue); flex: 0 0 auto; padding: 10px 15px; }
.level-tabs button.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.level-panel { display: none; }
.level-panel.is-active { display: block; }
.level-title { align-items: center; border-bottom: 1px solid #cbd9e7; display: flex; justify-content: space-between; margin-bottom: 18px; padding: 0 2px 12px; }
.level-title span { color: var(--blue-dark); font-size: 1.2rem; font-weight: 900; }
.level-title strong { color: var(--red); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.subject-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.subject-card { background: #fff; border: 1px solid #d4e0eb; border-radius: 7px 18px 7px 18px; box-shadow: 0 8px 18px rgba(9, 43, 86, .06); min-height: 126px; padding: 17px; position: relative; }
.subject-card::before { background: var(--red); content: ""; height: 4px; left: 0; position: absolute; right: 38%; top: 0; }
.subject-top { align-items: center; display: flex; gap: 10px; justify-content: space-between; margin-bottom: 15px; }
.subject-code { color: var(--blue); font-size: .76rem; font-weight: 950; letter-spacing: .04em; }
.subject-hours { background: #e6f9fb; border-radius: 999px; color: #007c91; font-size: .72rem; font-weight: 900; padding: 5px 8px; white-space: nowrap; }
.subject-card h3 { font-size: 1rem; line-height: 1.22; margin: 0; }
.elective-card { border-color: #ffccd0; }
.elective-card::before { background: var(--blue); }
.empty-state { background: var(--soft); border: 1px dashed #aac0d4; border-radius: 16px; color: var(--muted); padding: 22px; }
.activity-list { display: flex; flex-direction: column; }
.activity-list div { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 20px; grid-template-columns: 180px 1fr; padding: 18px 0; }
.activity-list span { color: var(--red); font-size: .75rem; font-weight: 950; text-transform: uppercase; }
.activity-list strong { color: var(--blue-dark); font-size: 1.05rem; }
.experience-category-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.experience-category-card { background: #fff; border: 1px solid var(--line); border-radius: 8px 22px 8px 22px; box-shadow: 0 12px 26px rgba(9, 43, 86, .06); min-height: 250px; padding: 22px; position: relative; }
.experience-category-card::before { background: var(--red); content: ""; height: 5px; left: 0; position: absolute; right: 35%; top: 0; }
.experience-category-card:nth-child(2)::before, .experience-category-card:nth-child(5)::before { background: var(--blue); }
.experience-category-card:nth-child(3)::before, .experience-category-card:nth-child(6)::before { background: var(--cyan); }
.experience-category-card:nth-child(4)::before, .experience-category-card:nth-child(7)::before { background: #f0a400; }
.experience-category-top { align-items: center; display: flex; justify-content: space-between; margin-bottom: 18px; }
.experience-category-top span { color: var(--red); font-size: .7rem; font-weight: 950; letter-spacing: .08em; }
.experience-category-card:nth-child(2) .experience-category-top span, .experience-category-card:nth-child(5) .experience-category-top span { color: var(--blue); }
.experience-category-card:nth-child(3) .experience-category-top span, .experience-category-card:nth-child(6) .experience-category-top span { color: #008b9b; }
.experience-category-card:nth-child(4) .experience-category-top span, .experience-category-card:nth-child(7) .experience-category-top span { color: #af7400; }
.experience-category-top strong { color: var(--muted); font-size: .68rem; }
.experience-category-card h3 { font-size: 1.1rem; line-height: 1.15; }
.experience-category-card > p { color: var(--muted); font-size: .86rem; line-height: 1.45; }
.experience-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.experience-tags span { background: #edf4fb; border-radius: 999px; color: var(--blue); font-size: .72rem; font-weight: 800; padding: 6px 8px; }
.experience-empty { color: var(--muted); font-size: .75rem; font-style: italic; }
.contact-section { display: grid; gap: 50px; grid-template-columns: 1fr 1fr; }
.admissions-section { background: #fff; }
.admissions-heading { margin-bottom: 30px; max-width: 760px; }
.admission-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.admission-card { background: var(--soft); border: 1px solid #d4e0eb; border-radius: 8px 24px 8px 24px; box-shadow: 0 12px 26px rgba(9, 43, 86, .06); min-height: 270px; padding: 24px; position: relative; }
.admission-card::before { background: var(--red); content: ""; height: 5px; left: 0; position: absolute; right: 34%; top: 0; }
.admission-card:nth-child(2)::before { background: var(--blue); }
.admission-card:nth-child(3)::before { background: var(--cyan); }
.admission-top { align-items: center; display: flex; justify-content: space-between; margin-bottom: 24px; }
.admission-top span { color: var(--red); font-size: .75rem; font-weight: 950; letter-spacing: .1em; }
.admission-card:nth-child(2) .admission-top span { color: var(--blue); }
.admission-card:nth-child(3) .admission-top span { color: #008b9b; }
.admission-top strong { color: var(--muted); font-size: .8rem; }
.admission-card h3 { font-size: 1.28rem; line-height: 1.12; }
.admission-card > p { color: var(--muted); font-size: .95rem; }
.admission-note { border-left: 3px solid var(--red); margin-top: 20px; padding-left: 12px; }
.admission-card:nth-child(2) .admission-note { border-color: var(--blue); }
.admission-card:nth-child(3) .admission-note { border-color: var(--cyan); }
.admission-note span { color: var(--blue-dark); display: block; font-size: .72rem; font-weight: 950; letter-spacing: .08em; margin-bottom: 4px; text-transform: uppercase; }
.admission-note p { color: var(--muted); font-size: .78rem; line-height: 1.4; margin: 0; }
.lead-section { background: var(--blue-deep); color: #fff; }
.lead-grid { display: grid; gap: 36px; grid-template-columns: 1fr; margin-left: auto; margin-right: auto; max-width: 980px; }
.lead-grid h2 { color: #fff; }
.lead-grid > div p:not(.eyebrow) { color: #c6d9ec; }
.lead-form { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.lead-grid > div { max-width: 820px; }
.lead-form { margin-left: auto; margin-right: auto; width: min(100%, 820px); }
label { color: #e8f3ff; font-size: .85rem; font-weight: 750; }
input { background: #fff; border: 2px solid transparent; border-radius: 10px; display: block; font: inherit; margin-top: 6px; padding: 12px; width: 100%; }
input:focus { border-color: #80b9ec; outline: 3px solid rgba(128, 185, 236, .33); }
label.full, .lead-form .full { grid-column: 1 / -1; }
label.full { align-items: flex-start; display: flex; font-weight: 500; gap: 10px; line-height: 1.4; }
label.full input { margin: 3px 0 0; width: auto; }
.form-message { color: #c7f6d5; font-weight: 750; min-height: 26px; }
.site-footer { background: #fff; border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: .82rem; gap: 30px; justify-content: space-between; margin: auto; max-width: 1240px; padding: 28px; }
.not-found { margin: auto; max-width: 700px; padding: 140px 28px; text-align: center; }
.not-found h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); margin-left: auto; margin-right: auto; }

@media (max-width: 900px) {
  .poster-hero { grid-template-columns: 1fr; padding-top: 58px; }
  .hero-copy { padding-bottom: 0; }
  .hero-art { min-height: 390px; }
  .hero-art img { min-height: 390px; }
  .hero-wave { margin-top: -30px; }
  .quick-facts { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .lead-grid { gap: 36px; grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .site-header { min-height: 70px; padding: 12px 18px; }
  .brand-caption, .header-tag { display: none; }
  .header-cta { font-size: .78rem; padding: 10px 13px; }
  .poster-hero { gap: 24px; padding: 44px 20px 0; }
  .title-ribbon { border-radius: 8px 20px 8px 20px; padding: 14px 18px 16px; }
  .hero-art, .hero-art img { min-height: 280px; }
  .art-note { bottom: 16px; font-size: .75rem; left: 14px; }
  .hero-wave { align-items: flex-start; border-radius: 30px 30px 10px 10px; flex-direction: column; gap: 4px; margin: -12px 0 0; min-height: 98px; padding: 30px 20px 16px; }
  .hero-wave span:first-child { font-size: .75rem; }
  .hero-wave span:last-child { font-size: .84rem; }
  .section-wrap { padding: 60px 20px; }
  .plan-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .plan-badge { align-self: flex-start; }
  .plan-tabs { padding: 14px; }
  .plan-switch { display: flex; width: 100%; }
  .plan-switch button { flex: 1; font-size: .8rem; padding: 10px 8px; }
  .subject-grid { grid-template-columns: 1fr; }
  .quick-facts { grid-template-columns: repeat(2, 1fr); margin-top: 18px; padding-bottom: 22px; padding-top: 22px; }
  .fact { border-left: 0; border-bottom: 1px solid rgba(255,255,255,.22); padding: 13px 0; }
  .two-column, .contact-section { gap: 28px; grid-template-columns: 1fr; }
  .admission-grid { grid-template-columns: 1fr; }
  .experience-category-grid { grid-template-columns: 1fr; }
  .section-head-with-image, .section-head-reverse { gap: 24px; grid-template-columns: 1fr; }
  .section-head-reverse > div, .section-head-reverse > img { order: initial; }
  .section-illustration { max-height: 280px; }
  .infrastructure-illustration { max-height: 280px; }
  .job-grid { grid-template-columns: 1fr; }
  .activity-list div { gap: 4px; grid-template-columns: 1fr; }
  .mid-cta { align-items: flex-start; flex-direction: column; padding: 48px 20px; }
  .site-footer { flex-direction: column; padding: 24px 20px; }
}

/* Tablet layout: keep every card inside the viewport and give long labels room to wrap. */
@media (min-width: 651px) and (max-width: 1100px) {
  .poster-hero,
  .section-wrap,
  .mid-cta { max-width: none; min-width: 0; width: 100%; }

  .poster-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-left: clamp(22px, 4vw, 48px);
    padding-right: clamp(22px, 4vw, 48px);
  }

  .hero-copy,
  .hero-art,
  .hero-wave { min-width: 0; width: 100%; }

  .quick-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-left: clamp(22px, 4vw, 48px);
    margin-right: clamp(22px, 4vw, 48px);
    overflow: hidden;
    width: auto;
  }

  .fact { min-width: 0; padding-left: 14px; padding-right: 14px; }
  .fact strong { display: block; overflow-wrap: anywhere; }

  .cards,
  .experience-category-grid,
  .admission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .level-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }

  .level-tabs button { min-width: 0; width: 100%; }
  .experience-category-card,
  .admission-card { min-width: 0; }

  .experience-category-top,
  .admission-top {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }

  .experience-category-top span,
  .admission-top span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .experience-category-top strong,
  .admission-top strong { margin-left: auto; text-align: right; white-space: nowrap; }
}

@media (max-width: 480px) {
  .poster-overline { font-size: 1.3rem; }
  .modality-line strong { font-size: 2.25rem; }
  .cards, .lead-form { grid-template-columns: 1fr; }
  .experience-category-grid { grid-template-columns: 1fr; }
  .lead-form .full, label.full { grid-column: 1; }
  .hero-actions .button { width: 100%; }
}

/* Institutional home and faculty catalogue */
.brand-lockup { border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; line-height: 1; padding-left: 13px; }
.brand-lockup strong { color: var(--red); font-size: 1.65rem; letter-spacing: -.08em; }
.brand-lockup span { color: var(--blue); font-size: .68rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.site-nav { align-items: center; display: flex; gap: 22px; margin-left: auto; }
.site-nav > a, .faculty-menu summary { color: var(--blue-dark); font-size: .88rem; font-weight: 850; }
.site-nav > a:hover, .faculty-menu summary:hover { color: var(--red); }
.faculty-menu { border: 0; border-radius: 0; padding: 0; position: relative; }
.faculty-menu summary { list-style: none; padding: 12px 0; }
.faculty-menu summary::-webkit-details-marker { display: none; }
.faculty-menu summary span { color: var(--red); font-size: 1.05em; margin-left: 3px; }
.faculty-mega-menu { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 22px 45px rgba(6, 45, 98, .18); display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(190px, 1fr)); left: 50%; max-height: 72vh; min-width: 720px; overflow-y: auto; padding: 24px; position: absolute; top: calc(100% + 8px); transform: translateX(-50%); z-index: 10; }
.faculty-mega-menu::before { background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); content: ""; height: 13px; left: 50%; position: absolute; top: -7px; transform: rotate(45deg); width: 13px; }
.faculty-mega-menu section { display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.faculty-mega-menu section a { color: var(--muted); font-size: .78rem; line-height: 1.25; }
.faculty-mega-menu section a:hover { color: var(--red); }
.faculty-mega-menu .faculty-menu-title { color: var(--blue-dark); font-size: .82rem; font-weight: 950; margin-bottom: 3px; text-transform: uppercase; }
.institution-hero { background: linear-gradient(120deg, #f5f8fb 0%, #eef4f8 48%, #dce9f1 100%); display: grid; grid-template-columns: minmax(340px, .82fr) minmax(0, 1.18fr); min-height: 575px; overflow: hidden; padding: 70px max(28px, calc((100% - 1240px) / 2)) 0; position: relative; }
.institution-hero::before { background: radial-gradient(circle, rgba(255,255,255,.94) 0 38%, transparent 72%); content: ""; height: 620px; left: -180px; position: absolute; top: -160px; width: 620px; }
.institution-hero-copy { align-self: center; max-width: 610px; padding: 20px 20px 100px 0; position: relative; z-index: 1; }
.institution-hero-copy h1 { font-size: clamp(3rem, 6vw, 5.8rem); max-width: 690px; }
.institution-lead { color: var(--muted); font-size: 1.1rem; max-width: 540px; }
.institution-hero-art { align-self: end; border-radius: 30px 30px 0 0; box-shadow: -20px 22px 40px rgba(6, 45, 98, .1); min-height: 485px; overflow: hidden; position: relative; }
.institution-hero-art img { display: block; height: 100%; min-height: 485px; object-fit: cover; object-position: center; width: 100%; }
.institution-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.institution-pills span { background: #fff; border: 1px solid #dbe6ef; border-radius: 999px; color: var(--blue-dark); font-size: .78rem; font-weight: 750; padding: 8px 12px; }
.institution-pills strong { color: var(--red); font-size: 1.03rem; }
.catalog-section { background: #fff; margin: auto; max-width: 1240px; padding: 92px 28px 105px; }
.catalog-heading { align-items: end; display: grid; gap: 44px; grid-template-columns: minmax(0, 1fr) minmax(280px, .62fr); margin-bottom: 42px; }
.catalog-heading h2 { margin-bottom: 12px; max-width: 700px; }
.catalog-heading p:not(.eyebrow) { color: var(--muted); font-size: 1.04rem; max-width: 650px; }
.search-panel label, .faculty-filter { color: var(--blue-dark); display: block; font-size: .78rem; font-weight: 900; letter-spacing: .03em; }
.search-input-wrap { align-items: center; background: #fff; border: 1px solid #cbd9e7; border-radius: 14px; box-shadow: 0 12px 26px rgba(9, 43, 86, .07); display: flex; gap: 8px; margin-top: 8px; padding: 3px 14px; }
.search-input-wrap span { color: var(--red); font-size: 1.5rem; line-height: 1; }
.search-input-wrap input { border: 0; box-shadow: none; color: var(--blue-dark); margin: 0; outline: 0; padding: 12px 3px; }
.search-input-wrap input:focus { border: 0; outline: 0; }
.catalog-toolbar { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; margin-bottom: 42px; padding-bottom: 15px; }
.catalog-toolbar > span { color: var(--blue-dark); font-size: .9rem; font-weight: 900; }
.faculty-filter { align-items: center; display: flex; gap: 9px; }
.faculty-filter select { background: #fff; border: 1px solid #cbd9e7; border-radius: 9px; color: var(--blue-dark); font: inherit; font-size: .8rem; padding: 8px 10px; }
.faculty-catalog { margin-bottom: 54px; scroll-margin-top: 110px; }
.faculty-catalog-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 18px; }
.faculty-catalog-heading div > span { color: var(--red); font-size: .75rem; font-weight: 950; letter-spacing: .12em; }
.faculty-catalog-heading h3 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin: 4px 0 0; }
.faculty-catalog-heading small { color: var(--muted); font-size: .78rem; font-weight: 800; }
.career-card-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.career-card { background: #fff; border: 1px solid var(--line); border-radius: 18px 30px 18px 30px; box-shadow: 0 12px 28px rgba(9, 43, 86, .08); display: flex; flex-direction: column; min-width: 0; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.career-card:hover { box-shadow: 0 18px 38px rgba(9, 43, 86, .16); transform: translateY(-4px); }
.career-card-image { background: #e9f0f5; display: block; height: 184px; overflow: hidden; position: relative; }
.career-card-image::after { background: linear-gradient(180deg, transparent 48%, rgba(4, 29, 68, .5)); content: ""; inset: 0; position: absolute; }
.career-card-image img { display: block; height: 100%; object-fit: cover; object-position: center; transition: transform .35s; width: 100%; }
.career-card:hover .career-card-image img { transform: scale(1.04); }
.career-card-image > span { bottom: 12px; color: #fff; font-size: .75rem; font-weight: 900; position: absolute; right: 14px; z-index: 1; }
.career-card-image > span b { color: var(--cyan); font-size: 1rem; }
.career-card-body { display: flex; flex: 1; flex-direction: column; padding: 18px 19px 20px; }
.career-card-faculty { color: var(--red); font-size: .68rem; font-weight: 950; letter-spacing: .08em; margin-bottom: 9px; text-transform: uppercase; }
.career-card h4 { font-size: 1.15rem; line-height: 1.13; margin: 0 0 10px; }
.career-card h4 a:hover { color: var(--red); }
.career-card-body > p:not(.career-card-faculty) { color: var(--muted); font-size: .82rem; line-height: 1.45; margin-bottom: 14px; }
.career-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.career-card-meta span { background: #eff8fa; border-radius: 999px; color: #007c91; font-size: .68rem; font-weight: 850; padding: 6px 8px; }
.empty-search { align-items: center; background: var(--soft); border: 1px dashed #abc3d9; border-radius: 18px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; padding: 36px 20px; text-align: center; }
.empty-search strong { color: var(--blue-dark); }
.university-story { background: var(--blue-deep); color: #fff; display: grid; gap: 70px; grid-template-columns: 1fr 1fr; padding: 85px max(28px, calc((100% - 1184px) / 2)); }
.university-story h2 { color: #fff; max-width: 620px; }
.university-story .eyebrow { color: var(--cyan); }
.story-grid { align-self: end; display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.story-grid p { color: #cbdcf0; font-size: .96rem; margin: 0; }

@media (max-width: 900px) {
  .site-nav { gap: 14px; }
  .institution-hero { grid-template-columns: 1fr; padding-top: 48px; }
  .institution-hero-copy { padding-bottom: 36px; }
  .institution-hero-art { min-height: 380px; }
  .institution-hero-art img { min-height: 380px; }
  .catalog-heading { grid-template-columns: 1fr; gap: 20px; }
  .career-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .university-story { gap: 28px; grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .site-header { gap: 12px; }
  .brand-lockup span { display: none; }
  .brand-lockup strong { font-size: 1.35rem; }
  .brand-seal { height: 48px; width: 48px; }
  .site-nav { gap: 11px; }
  .site-nav > a { font-size: .78rem; }
  .faculty-menu summary { font-size: .78rem; }
  .faculty-mega-menu { grid-template-columns: 1fr; left: auto; max-height: 70vh; min-width: min(310px, calc(100vw - 36px)); right: -56px; transform: none; }
  .faculty-mega-menu::before { left: auto; right: 65px; }
  .header-cta { font-size: .72rem; padding: 9px 10px; }
  .institution-hero { padding-left: 20px; padding-right: 20px; }
  .institution-hero-copy h1 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .institution-hero-art, .institution-hero-art img { min-height: 280px; }
  .catalog-section { padding: 64px 20px 76px; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; gap: 14px; }
  .faculty-filter { align-items: flex-start; flex-direction: column; gap: 6px; width: 100%; }
  .faculty-filter select { width: 100%; }
  .faculty-catalog-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .career-card-grid { grid-template-columns: 1fr; }
  .career-card-image { height: 210px; }
  .story-grid { grid-template-columns: 1fr; }
  .university-story { padding: 65px 20px; }
}

/* Credencial virtual y operación de stands */
.credential-page, .scanner-page { background: var(--soft); min-height: 72vh; padding: 72px 20px; }
.credential-card, .scanner-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 20px 46px rgba(9, 43, 86, .12); margin: auto; max-width: 620px; padding: 42px; text-align: center; }
.credential-card h1, .scanner-card h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 14px; }
.credential-lead { color: var(--muted); font-size: 1.05rem; }
.credential-qr { margin: 28px auto 16px; max-width: 290px; }
.credential-qr img, #credential-modal-qr { display: block; height: auto; margin: auto; width: 100%; }
.credential-code { background: #edf4fb; border-radius: 12px; color: var(--blue-dark); font-size: 1.35rem; font-weight: 950; letter-spacing: .12em; padding: 12px 16px; }
.credential-data { display: grid; gap: 4px 14px; grid-template-columns: 1fr 1.5fr; margin: 26px 0; text-align: left; }
.credential-data span { color: var(--muted); font-size: .8rem; }
.credential-data strong { color: var(--blue-dark); }
.scanner-card { max-width: 760px; text-align: left; }
.scanner-card > .eyebrow, .scanner-card > h1, .scanner-card > .section-lead { text-align: center; }
.scanner-card label { color: var(--blue-dark); display: block; margin-top: 18px; }
.scanner-card select { background: #fff; border: 1px solid #cbd9e7; border-radius: 10px; display: block; font: inherit; margin-top: 6px; padding: 12px; width: 100%; }
.scanner-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.scanner-video { background: #071c35; border-radius: 18px; margin: 22px auto; max-height: 420px; object-fit: cover; width: min(100%, 520px); }
.scanner-card form { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 8px; }
.form-message.is-error { color: #ffd0d4; }
.credential-modal[hidden] { display: none; }
.credential-modal { align-items: center; background: rgba(4, 29, 68, .68); display: flex; inset: 0; justify-content: center; padding: 20px; position: fixed; z-index: 20; }
.credential-modal-card { background: #fff; border-radius: 24px; box-shadow: 0 24px 70px rgba(4, 29, 68, .35); max-width: 430px; padding: 34px; position: relative; text-align: center; width: 100%; }
.credential-modal-card h2 { font-size: 2rem; margin-bottom: 12px; }
.credential-modal-card > p:not(.eyebrow) { color: var(--muted); }
.credential-modal-card > img { max-width: 230px; }
.credential-modal-card > strong { color: var(--blue-dark); display: block; font-size: 1.25rem; letter-spacing: .1em; margin: 14px 0 20px; }
.credential-modal-close { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 2rem; line-height: 1; position: absolute; right: 18px; top: 12px; }

@media (max-width: 650px) {
  .credential-page, .scanner-page { padding: 40px 16px; }
  .credential-card, .scanner-card { padding: 28px 20px; }
  .credential-data { grid-template-columns: 1fr; }
}

/* Formulario de pre-registro por pasos */
.lead-form select { background: #fff; border: 2px solid transparent; border-radius: 10px; color: var(--ink); display: block; font: inherit; margin-top: 6px; padding: 12px; width: 100%; }
.lead-form select:focus { border-color: #80b9ec; outline: 3px solid rgba(128, 185, 236, .33); }
.form-progress { align-items: center; display: grid; gap: 8px; grid-template-columns: 34px minmax(20px, 1fr) 34px minmax(20px, 1fr) 34px; margin-bottom: 25px; }
.form-progress-step { align-items: center; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: #cbdcf0; display: inline-flex; font-weight: 900; height: 34px; justify-content: center; width: 34px; }
.form-progress-step.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.form-progress i { background: rgba(255,255,255,.3); display: block; height: 2px; }
.form-progress strong { color: var(--cyan); font-size: .8rem; grid-column: 1 / -1; letter-spacing: .04em; text-align: center; }
.form-step { display: none; }
.form-step.is-active { display: block; }
.form-step-title { color: #fff; font-size: 1.18rem; font-weight: 850; margin-bottom: 18px; }
.form-step-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-step-grid .full { grid-column: 1 / -1; }
.form-step-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.form-next { margin-left: auto; }
.privacy-check { align-items: flex-start; display: flex; gap: 10px; margin-top: 22px; }
.privacy-check input { flex: 0 0 auto; margin: 3px 0 0; width: auto; }

@media (max-width: 650px) {
  .form-step-grid { grid-template-columns: 1fr; }
  .form-step-grid .full { grid-column: auto; }
  .form-progress { gap: 6px; grid-template-columns: 30px minmax(12px, 1fr) 30px minmax(12px, 1fr) 30px; }
  .form-progress-step { height: 30px; width: 30px; }
  .form-step-actions { justify-content: stretch; }
  .form-step-actions .button, .form-next { flex: 1; margin-left: 0; }
}
