:root {
  --navy: #082d53;
  --blue: #294a70;
  --blue-light: #496989;
  --orange: #f4a024;
  --ink: #183b5c;
  --text: #5c7080;
  --soft: #f3f6f8;
  --white: #fff;
  --shadow: 0 16px 42px rgba(8, 45, 83, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: #fff; font: 400 16px/1.65 Inter, Arial, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .55em; color: var(--navy); font-family: Outfit, Arial, sans-serif; line-height: 1.12; }
p { margin: 0 0 1em; }
button, input, textarea { font: inherit; }
.wrapper { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 88px 0; }
.center { text-align: center; }
.eyebrow { margin-bottom: 10px; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.about-copy > .eyebrow, .academic-section .eyebrow, .home-gallery .eyebrow, .testimonials-intro .eyebrow { font-size: 24px; }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2, .home-intro h2 { font-size: clamp(32px, 4vw, 46px); }
.button { display: inline-block; padding: 13px 23px; border: 2px solid var(--orange); border-radius: 5px; background: var(--orange); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.button:hover, .button:focus-visible { background: var(--navy); border-color: var(--navy); }
.button-light { background: #fff; border-color: #fff; color: var(--navy); }
.button-outline { background: transparent; color: var(--navy); }
.text-link { color: var(--blue); font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--orange); }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 10000; padding: 10px 14px; background: #fff; color: var(--navy); }
.skip-link:focus { top: 12px; }

/* Encabezado compartido */
.site-header { position: relative; z-index: 100; background: #fff; }
.header-top { min-height: 104px; }
.header-top-inner { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.site-logo img { width: 70px; height: 70px; object-fit: contain; }
.contact-strip { display: flex; align-items: center; gap: 42px; }
.contact-item { display: flex; align-items: center; gap: 13px; color: var(--navy); text-decoration: none; }
.contact-item svg { width: 29px; height: 29px; fill: none; stroke: #063b50; stroke-width: 1.8; }
.contact-item span { display: flex; flex-direction: column; }
.contact-item strong { font-size: 14px; }
.contact-item small { margin-top: 2px; font-size: 11px; }
.navigation-bar { background: var(--blue); }
.navigation-inner { min-height: 62px; display: flex; align-items: center; }
.main-menu { display: flex; align-items: stretch; height: 62px; }
.main-menu > a, .menu-dropdown > a { display: flex; align-items: center; padding: 0 14px; color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.main-menu > a:first-child { padding-left: 0; }
.main-menu a:hover, .main-menu a:focus-visible, .main-menu a.active { color: var(--orange); }
.menu-dropdown { position: relative; display: flex; }
.menu-dropdown > a svg { width: 10px; margin-left: 7px; fill: none; stroke: currentColor; stroke-width: 2; }
.submenu { position: absolute; left: 0; top: 100%; width: 330px; padding: 8px 0; background: var(--navy); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease; }
.regulations-menu .submenu { width: 210px; }
.submenu a { display: block; padding: 11px 18px; color: #fff; font-size: 12px; line-height: 1.35; text-decoration: none; }
.submenu-unavailable { display: block; padding: 11px 18px; color: #b9c8d6; font-size: 12px; line-height: 1.35; }
.submenu-unavailable small, .footer-unavailable small { display: block; color: var(--orange); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.menu-dropdown:hover .submenu, .menu-dropdown:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.campus-button { margin-left: auto; padding: 11px 20px; border-radius: 5px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.campus-button:hover { background: #fff; color: var(--orange); }
.menu-toggle { display: none; }

/* Inicio */
.home-hero { min-height: 560px; display: flex; align-items: center; background: linear-gradient(rgba(5,24,44,.58), rgba(5,24,44,.58)), var(--hero-image) center/cover no-repeat; }
.hero-content { display: flex; align-items: center; flex-direction: column; padding-bottom: 66px; color: #fff; text-align: center; }
.hero-logo { width: clamp(190px, 23vw, 285px); margin-bottom: 20px; padding: 14px; border-radius: 50%; background: rgba(255,255,255,.94); filter: drop-shadow(0 8px 18px rgba(0,0,0,.22)); }
.hero-content > p { max-width: 630px; margin-bottom: 28px; font-size: 18px; }
.program-ribbon { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); margin-top: -78px; box-shadow: var(--shadow); }
.program-ribbon a { min-height: 166px; display: flex; flex-direction: column; justify-content: space-between; padding: 27px 19px 20px; color: #fff; text-decoration: none; transition: transform .2s ease, filter .2s ease; }
.program-ribbon a:nth-child(7n+1) { background: #0bbf62; }
.program-ribbon a:nth-child(7n+2) { background: #fac438; }
.program-ribbon a:nth-child(7n+3) { background: #3479c6; }
.program-ribbon a:nth-child(7n+4) { background: #dd48b3; }
.program-ribbon a:nth-child(7n+5) { background: #ed2d32; }
.program-ribbon a:nth-child(7n+6) { background: #299b59; }
.program-ribbon a:nth-child(7n) { background: #294a70; }
.program-ribbon a:hover { z-index: 1; transform: translateY(-10px); filter: brightness(1.05); }
.program-ribbon a[aria-disabled] { cursor: default; }
.program-ribbon a[aria-disabled]:hover { transform: none; filter: none; }
.program-ribbon span { font: 600 clamp(20px, 1.8vw, 26px)/1.25 Outfit, Arial, sans-serif; }
.program-ribbon b { width: max-content; padding: 5px 9px; border: 1px solid rgba(255,255,255,.85); font-size: 10px; text-transform: uppercase; }
.home-texture { background: linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,.8)), #fff url('../images/texture-map.png') center 70px/1200px auto no-repeat; }
.home-intro { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; padding-top: 105px; }
.about-visual { position: relative; min-height: 535px; }
.about-main-image { position: absolute; left: 0; top: 0; width: 54%; height: 395px; border-radius: 28px; object-fit: cover; box-shadow: var(--shadow); }
.recognition-card { position: absolute; right: 0; top: 25px; z-index: 1; width: 58%; height: 230px; border: 6px solid #fff; border-radius: 25px; box-shadow: var(--shadow); object-fit: cover; }
.about-video { position: absolute; right: 0; bottom: 0; z-index: 2; width: 68%; height: 305px; overflow: hidden; border: 6px solid #fff; border-radius: 26px; box-shadow: var(--shadow); }
.about-video video { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: #111; cursor: pointer; transform: translate(-50%, -50%); transition: transform .2s ease, background .2s ease, color .2s ease; }
.video-play:hover, .video-play:focus-visible { background: var(--orange); color: #fff; transform: translate(-50%, -50%) scale(1.08); }
.video-play[hidden] { display: none; }
.about-video svg { width: 25px; fill: currentColor; }
.about-copy h2 { font-size: clamp(34px, 4vw, 48px); }
.about-points { margin: 35px 0 0; padding: 27px 34px; border-radius: 0 28px 0 28px; background: #fff; box-shadow: var(--shadow); list-style: none; }
.about-points li { position: relative; margin: 13px 0; padding-left: 30px; }
.about-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 11px; height: 11px; border: 4px solid var(--orange); border-radius: 50%; }
.stats-section { padding: 35px 0 80px; background: transparent; }
.section-divider { display: flex; align-items: center; gap: 20px; margin-bottom: 50px; color: var(--orange); font-size: 24px; font-weight: 800; letter-spacing: .08em; text-align: center; }
.section-divider::before, .section-divider::after { content: ""; height: 1px; flex: 1; background: #dce4e9; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 45px; }
.stats-grid article { text-align: center; }
.stat-number { display: flex; align-items: center; justify-content: center; gap: 12px; }
.stat-icon { width: 43px; height: 43px; fill: var(--orange); }
.stats-grid strong, .stats-grid b { color: var(--orange); font: 700 45px/1 Outfit, Arial, sans-serif; }
.stats-grid h3 { margin: 10px 0 7px; font-size: 20px; }
.stats-grid p { margin: 0; font-size: 13px; }
.academic-section { background: linear-gradient(rgba(2,20,63,.76), rgba(2,20,63,.76)), url('../images/academic-background.jpeg') center/cover no-repeat; background-attachment: fixed; color: #fff; }
.academic-section h2, .academic-section h3 { color: #fff; }
.academic-section .section-heading > p:not(.eyebrow) { color: #e7edf3; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.feature-card { overflow: hidden; border-radius: 8px; background: #fff; color: var(--text); box-shadow: var(--shadow); }
.feature-card img { width: 100%; height: 260px; object-fit: cover; }
.feature-card div { padding: 24px; }
.feature-card h3 { color: var(--navy); font-size: 21px; }
.feature-card p { font-size: 14px; }
.academic-section .center { margin-top: 35px; }
.home-gallery { text-align: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; max-width: 850px; margin-inline: auto; }
.gallery-grid img { width: 100%; height: 230px; object-fit: cover; }
.gallery-grid img:nth-child(1), .gallery-grid img:nth-child(6) { margin-top: 45px; }
.clinic-section { padding: 0; }
.public-clinic-card { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: center; padding: 65px max(20px, calc((100% - 1080px) / 2)); background: linear-gradient(115deg, var(--blue), var(--blue-light)); color: #fff; }
.public-clinic-card h2 { color: #fff; font-size: clamp(28px, 3.5vw, 42px); text-transform: uppercase; }
.public-clinic-card h3 { margin-bottom: 12px; color: var(--orange); font-size: 22px; }
.public-clinic-card p { margin: 0; }
.public-clinic-details { display: grid; gap: 20px; padding-left: 45px; border-left: 1px solid rgba(255,255,255,.45); }
.public-clinic-details p { display: grid; gap: 3px; }
.public-clinic-details span { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.public-clinic-details a, .public-clinic-details strong { color: #fff; font: 700 24px/1 Outfit, Arial, sans-serif; text-decoration: none; }
.public-clinic-details a:hover { color: var(--orange); }
.testimonials-section { padding: 90px 0; background: linear-gradient(rgba(8,45,83,.82), rgba(8,45,83,.82)), url('../images/testimonials-background.jpeg') center/cover no-repeat; background-attachment: fixed; color: #fff; }
.testimonials-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 65px; align-items: center; }
.testimonials-intro h2 { color: #fff; font-size: clamp(32px, 4vw, 45px); }
.testimonials-intro > p:last-child { color: #e1e9ef; }
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.testimonials-grid blockquote { margin: 0; padding: 25px; border-radius: 16px; background: #fff; color: var(--text); box-shadow: var(--shadow); transition: transform .2s ease; }
.testimonials-grid blockquote:hover { transform: translateY(-6px); }
.testimonials-grid blockquote:nth-child(odd) { transform: translateY(22px); }
.testimonials-grid blockquote:nth-child(odd):hover { transform: translateY(16px); }
.testimonials-grid blockquote p { font-size: 13px; }
.testimonials-grid cite { display: flex; flex-direction: column; color: var(--navy); font-style: normal; }
.testimonials-grid cite strong { font-size: 13px; }
.testimonials-grid cite small { color: var(--text); font-size: 10px; }

/* Páginas interiores */
.page-hero { position: relative; isolation: isolate; padding: 85px 0; background: linear-gradient(125deg, var(--navy), var(--blue)); color: #fff; overflow: hidden; }
.page-hero::before, .page-hero::after { content: ""; position: absolute; z-index: 0; border: solid var(--orange); border-radius: 50%; pointer-events: none; }
.page-hero::after { width: 430px; height: 430px; right: -100px; top: -280px; border-width: 42px; }
.page-hero::before { width: 210px; height: 210px; left: 8%; bottom: -165px; border-width: 28px; opacity: .9; }
.route-nosotros .page-hero::after { width: 470px; height: 470px; right: -180px; top: -290px; border-width: 46px; }
.route-nosotros .page-hero::before { width: 180px; height: 180px; left: 34%; bottom: -145px; border-width: 22px; }
.route-programas .page-hero::after { width: 330px; height: 330px; right: 15%; top: -235px; border-width: 36px; }
.route-programas .page-hero::before { width: 280px; height: 280px; left: -130px; bottom: -205px; border-width: 35px; }
.route-galeria .page-hero::after { width: 520px; height: 520px; right: -260px; top: -330px; border-width: 50px; }
.route-galeria .page-hero::before { width: 155px; height: 155px; left: 55%; bottom: -115px; border-width: 19px; }
.route-contacto .page-hero::after { width: 390px; height: 390px; right: 4%; top: -300px; border-width: 40px; }
.route-contacto .page-hero::before { width: 260px; height: 260px; left: -115px; bottom: -185px; border-width: 32px; }
.route-admisiones .page-hero::after { width: 360px; height: 360px; right: 7%; top: -255px; border-width: 38px; }
.route-admisiones .page-hero::before { width: 245px; height: 245px; left: -105px; bottom: -155px; border-width: 32px; }
.route-aviso-de-privacidad .page-hero::after { width: 520px; height: 520px; right: -230px; top: -355px; border-width: 54px; }
.route-aviso-de-privacidad .page-hero::before { width: 170px; height: 170px; left: 44%; bottom: -125px; border-width: 22px; }
.page-hero .wrapper { position: relative; z-index: 1; }
.page-hero h1 { max-width: 850px; color: #fff; font-size: clamp(43px, 6vw, 68px); }
.page-hero p, .hero-rich { max-width: 680px; }
.page-hero-about { padding: 105px 0; }
.about-intro { display: grid; grid-template-columns: 1.3fr .7fr; gap: 75px; align-items: center; }
.rich-content h2 { font-size: clamp(31px, 4vw, 43px); }
.rich-content h3 { margin-top: 30px; font-size: 25px; }
.about-intro aside { padding: 38px; border-radius: 0 30px 0 30px; background: var(--orange); color: #fff; box-shadow: 18px 18px 0 #e6edf1; }
.about-intro aside h2 { color: #fff; font-size: 30px; }
.institution-content { max-width: 1050px; }
.institution-content > section + section, .institution-content > div + section, .institution-content > section + div { margin-top: 60px; }
.institution-lead { max-width: 900px; }
.director-message { padding: 42px; border-left: 7px solid var(--orange); background: var(--navy); color: #e5edf3; box-shadow: var(--shadow); }
.director-message h2 { color: #fff; }
.institution-principles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.institution-principles section { padding: 32px; background: var(--soft); }
.institution-values { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.institution-values article { padding: 24px; border-top: 4px solid var(--orange); background: var(--soft); }
.institution-values h3 { font-size: 20px; }
.institution-values p { margin: 0; }
.institution-content > blockquote { margin: 60px 0 0; padding: 32px; border-left: 6px solid var(--orange); background: var(--soft); color: var(--navy); font: 600 24px/1.4 Outfit, Arial, sans-serif; }
.team-section { background: var(--soft); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.team-card { display: grid; grid-template-columns: 160px 1fr; gap: 23px; padding: 18px; background: #fff; box-shadow: var(--shadow); transition: transform .2s ease; }
.team-card:hover { transform: translateY(-7px); }
.team-card img { width: 160px; height: 205px; object-fit: cover; }
.team-card h3 { font-size: 23px; }
.team-card p { font-size: 14px; }
.team-card.featured { grid-column: 1 / -1; grid-template-columns: 260px 1fr; padding: 25px; background: var(--navy); color: #fff; }
.team-card.featured img { width: 260px; height: 290px; }
.team-card.featured h3 { color: #fff; font-size: 30px; }
.cta-section { padding: 55px 0; background: var(--blue); color: #fff; }
.cta-section .wrapper { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-section h2 { margin: 0; color: #fff; font-size: 34px; }
.program-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.program-card { overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.program-card img { width: 100%; height: 225px; object-fit: cover; }
.program-card div { padding: 25px; }
.program-card h2 { font-size: 24px; }
.program-card p { font-size: 14px; }
.program-unavailable { color: var(--orange); font-size: 13px; font-weight: 800; text-transform: uppercase; }

/* Plantilla única para programas */
.program-hero { position: relative; clear: both; width: 100%; padding: 95px 0; background: linear-gradient(120deg, #082d53 0%, #1c4b77 100%); color: #fff; overflow: hidden; }
.program-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -130px; top: -330px; border: 48px solid var(--orange); border-radius: 50%; }
.program-hero .wrapper { position: relative; z-index: 1; }
.program-hero h1 { max-width: 900px; color: #fff; font-size: clamp(40px, 5.4vw, 67px); }
.program-hero > .wrapper > p:not(.eyebrow) { max-width: 740px; font-size: 18px; }
.program-hero .eyebrow, .program-hero h1, .program-hero > .wrapper > p, .program-meta { animation: program-hero-in .65s both; }
.program-hero h1 { animation-delay: .08s; }
.program-hero > .wrapper > p:not(.eyebrow) { animation-delay: .16s; }
.program-meta { animation-delay: .24s; }
.program-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.program-meta span { min-width: 130px; padding: 11px 15px; border: 1px solid rgba(255,255,255,.38); color: #fff; font-weight: 600; }
.program-meta small { display: block; color: #d7e2eb; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.program-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 45px; align-items: start; scroll-margin-top: 25px; }
.program-content { min-width: 0; }
.program-content > .reveal-ready, .program-aside.reveal-ready { opacity: 0; transform: translateY(24px); transition: opacity .55s ease var(--reveal-delay, 0ms), transform .55s ease var(--reveal-delay, 0ms); }
.program-content > .reveal-ready.is-visible, .program-aside.reveal-ready.is-visible { opacity: 1; transform: none; }
.program-content > h2 { margin-top: 65px; padding-top: 18px; border-top: 1px solid #dce4e9; font-size: clamp(29px, 3.5vw, 40px); }
.program-content > h2:first-child { margin-top: 0; padding-top: 0; border: 0; }
.program-content h3 { margin-top: 28px; }
.program-content li { margin-bottom: 9px; }
.program-content li::marker { color: var(--orange); }
.program-content blockquote { margin: 45px 0 0; padding: 30px; border-left: 5px solid var(--orange); background: var(--soft); color: var(--navy); font: 600 20px/1.5 Outfit, Arial, sans-serif; }
.program-content details { margin: 14px 0; border-left: 5px solid var(--orange); background: var(--soft); transition: transform .2s ease, box-shadow .2s ease; }
.program-content details:hover { transform: translateX(4px); box-shadow: 0 10px 24px rgba(8,45,83,.09); }
.program-content summary { padding: 18px 22px; color: var(--navy); font-weight: 700; cursor: pointer; }
.program-content details > div { padding: 0 22px 18px; animation: program-detail-open .25s ease both; }
.curriculum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 25px 0; }
.curriculum-grid section { padding: 22px; background: var(--navy); color: #fff; transition: transform .22s ease, box-shadow .22s ease; }
.curriculum-grid section:hover { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(8,45,83,.18); }
.curriculum-grid strong { color: var(--orange); font-family: Outfit, Arial, sans-serif; font-size: 20px; }
.curriculum-grid p { position: relative; margin: 12px 0 0; padding-left: 17px; font-size: 13px; line-height: 1.45; }
.curriculum-grid p::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.program-aside { display: grid; grid-template-columns: minmax(260px, 1fr) repeat(3, auto); align-items: center; gap: 22px; padding: 30px; background: var(--orange); color: #fff; box-shadow: var(--shadow); }
.program-aside h2 { margin: 0 0 5px; color: #fff; font-size: 27px; }
.program-aside p { margin: 0; }
.program-aside .button { width: auto; margin: 0; text-align: center; white-space: nowrap; }
.program-aside .button-outline { border-color: #fff; color: #fff; }

@keyframes program-hero-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes program-detail-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* Galería, contacto y 404 */
.gallery-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-page-grid figure { margin: 0; overflow: hidden; background: var(--soft); }
.gallery-page-grid img { width: 100%; height: 300px; object-fit: cover; transition: transform .3s ease; }
.gallery-page-grid figure:hover img { transform: scale(1.035); }
.gallery-page-grid figcaption { padding: 12px 15px; font-size: 12px; }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 75px; }
.contact-layout h2 { font-size: clamp(32px, 4vw, 45px); }
.contact-list { margin-top: 35px; }
.contact-list div { padding: 14px 0; border-bottom: 1px solid #dce4e9; }
.contact-list dt { color: var(--navy); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.contact-list dd { margin: 3px 0 0; }
.contact-form { display: grid; gap: 18px; padding: 35px; background: var(--soft); }
.contact-form label { color: var(--navy); font-size: 13px; font-weight: 700; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1px solid #c8d4dc; border-radius: 3px; background: #fff; }
.contact-form .privacy-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.contact-form .privacy-check input { width: auto; margin: 5px 0 0; padding: 0; }
.contact-form .privacy-check a { color: var(--blue); }
.clinic-card { margin-top: 35px; padding: 28px; border-left: 5px solid var(--orange); background: var(--soft); }
.clinic-card h3 { font-size: 24px; }
.clinic-card a { color: var(--blue); font-weight: 700; }
.document-viewer { width: 100%; height: min(78vh, 1000px); border: 0; box-shadow: var(--shadow); }
.regulation-page .center { margin-top: 25px; }
.legal-content { max-width: 930px; }
.legal-content > h2 { margin-top: 55px; padding-top: 20px; border-top: 1px solid #dce4e9; }
.legal-content li { margin-bottom: 9px; }
.route-admisiones .legal-content { padding-top: 34px; }
.route-admisiones .legal-content > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.brochure { max-width: 850px; margin: 48px auto 0; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.brochure img { display: block; width: 100%; height: auto; }
.brochure figcaption { padding: 18px; text-align: center; background: var(--soft); }
.admission-date { margin-top: 45px; padding: 32px; border-left: 6px solid var(--orange); background: var(--navy); color: #fff; }
.admission-date span, .admission-date strong { display: block; }
.admission-date span { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admission-date strong { margin: 5px 0; font: 700 34px/1.2 Outfit, Arial, sans-serif; }
.admission-date p { margin: 0; }
.notice { padding: 12px; background: #dff1e4; color: #205a31; }
.not-found { min-height: 520px; display: grid; place-items: center; text-align: center; background: var(--soft); }
.not-found h1 { font-size: clamp(42px, 7vw, 75px); }

/* Pie compartido */
.site-footer { padding: 68px 0 0; background: #234d77; color: #dbe5ed; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .7fr; gap: 50px; padding-bottom: 55px; }
.site-footer h2 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.site-footer p, .site-footer li { font-size: 12px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-unavailable { color: #b9c8d6; }
.footer-bottom { padding: 17px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; }
.scroll-top { position: fixed; right: 0; bottom: 28px; z-index: 90; width: 52px; height: 52px; display: grid; place-items: center; padding: 0; border: 0; background: var(--orange); color: #fff; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s ease; cursor: pointer; }
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.scroll-top svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 3; }

@media (max-width: 960px) {
  .academic-section, .testimonials-section { background-attachment: scroll; }
  .contact-strip { gap: 20px; }
  .header-phone, .header-facebook { display: none; }
  .program-ribbon { grid-template-columns: repeat(4, 1fr); }
  .program-list { grid-template-columns: 1fr 1fr; }
  .program-layout { grid-template-columns: 1fr; }
  .program-aside { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .wrapper { width: min(100% - 30px, 1180px); }
  .section { padding: 60px 0; }
  .header-top, .header-top-inner { min-height: 78px; }
  .site-logo img { width: 54px; height: 54px; }
  .contact-item:not(.header-email) { display: none; }
  .contact-item strong { font-size: 11px; }
  .navigation-inner { min-height: 56px; }
  .menu-toggle { display: flex; align-items: center; flex-direction: column; gap: 4px; padding: 7px; border: 0; background: transparent; color: #fff; cursor: pointer; }
  .menu-toggle span { width: 25px; height: 2px; background: currentColor; }
  .menu-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; }
  .main-menu { position: absolute; left: 0; right: 0; top: 100%; height: auto; display: none; flex-direction: column; align-items: stretch; padding: 10px 15px 18px; background: var(--navy); box-shadow: var(--shadow); }
  .main-menu.open { display: flex; }
  .main-menu > a, .menu-dropdown > a { min-height: 44px; padding: 0 8px; }
  .main-menu > a:first-child { padding-left: 8px; }
  .menu-dropdown { display: block; }
  .submenu { position: static; width: auto; display: block; padding: 0 0 5px 15px; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .regulations-menu .submenu { width: auto; }
  .submenu a { padding: 8px; }
  .campus-button { padding: 9px 12px; font-size: 10px; }
  .home-hero { min-height: 470px; }
  .hero-content { padding-bottom: 35px; }
  .hero-content > p:not(.eyebrow) { font-size: 16px; }
  .program-ribbon { grid-template-columns: 1fr 1fr; margin-top: 0; width: 100%; }
  .program-ribbon a { min-height: 130px; }
  .home-intro, .about-intro, .testimonials-layout, .contact-layout { grid-template-columns: 1fr; gap: 42px; }
  .institution-principles, .institution-values { grid-template-columns: 1fr; }
  .about-visual { min-height: 510px; }
  .stats-grid, .feature-grid { grid-template-columns: 1fr; }
  .stats-grid { gap: 35px; }
  .gallery-grid, .gallery-page-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid img:nth-child(1), .gallery-grid img:nth-child(6) { margin-top: 0; }
  .testimonials-grid blockquote:nth-child(odd), .testimonials-grid blockquote:nth-child(odd):hover { transform: none; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card.featured { grid-column: auto; }
  .cta-section .wrapper { align-items: flex-start; flex-direction: column; }
  .program-list { grid-template-columns: 1fr; }
  .public-clinic-card { grid-template-columns: 1fr; padding: 35px; }
  .public-clinic-details { grid-template-columns: 1fr 1fr; padding: 25px 0 0; border-top: 1px solid rgba(255,255,255,.45); border-left: 0; }
  .curriculum-grid { grid-template-columns: 1fr; }
  .program-aside { grid-template-columns: 1fr; }
  .program-aside .button { width: 100%; white-space: normal; }
  :is(.route-nosotros, .route-programas, .route-galeria, .route-contacto, .route-admisiones, .route-aviso-de-privacidad) .page-hero::after { border-width: 30px; }
  :is(.route-nosotros, .route-programas, .route-galeria, .route-contacto, .route-admisiones, .route-aviso-de-privacidad) .page-hero::before { border-width: 18px; }
  .route-nosotros .page-hero::after { width: 300px; height: 300px; right: -150px; top: -190px; }
  .route-nosotros .page-hero::before { width: 135px; height: 135px; left: 28%; bottom: -95px; }
  .route-programas .page-hero::after { width: 250px; height: 250px; right: 8%; top: -180px; }
  .route-programas .page-hero::before { width: 180px; height: 180px; left: -90px; bottom: -125px; }
  .route-galeria .page-hero::after { width: 330px; height: 330px; right: -180px; top: -205px; }
  .route-galeria .page-hero::before { width: 110px; height: 110px; left: 58%; bottom: -75px; }
  .route-contacto .page-hero::after { width: 270px; height: 270px; right: -75px; top: -210px; }
  .route-contacto .page-hero::before { width: 170px; height: 170px; left: -85px; bottom: -115px; }
  .route-admisiones .page-hero::after { width: 280px; height: 280px; right: -120px; top: -205px; }
  .route-admisiones .page-hero::before { width: 145px; height: 145px; left: -70px; bottom: -95px; }
  .route-aviso-de-privacidad .page-hero::after { width: 315px; height: 315px; right: -175px; top: -205px; }
  .route-aviso-de-privacidad .page-hero::before { width: 125px; height: 125px; left: 44%; bottom: -85px; }
}

@media (max-width: 520px) {
  .contact-strip { display: none; }
  .program-ribbon { grid-template-columns: 1fr; }
  .about-visual { min-height: 470px; }
  .about-main-image { width: 60%; height: 330px; }
  .recognition-card { width: 60%; height: 185px; }
  .about-video { width: 72%; height: 260px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .gallery-grid, .gallery-page-grid { grid-template-columns: 1fr; }
  .public-clinic-card { padding: 28px; }
  .public-clinic-details { grid-template-columns: 1fr; }
  .team-card, .team-card.featured { grid-template-columns: 1fr; }
  .team-card img, .team-card.featured img { width: 100%; height: 300px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .program-meta { display: grid; grid-template-columns: 1fr 1fr; }
  .program-meta span { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .academic-section, .testimonials-section { background-attachment: scroll; }
}
