:root {
    --navy: #0b3476;
    --navy-dark: #071f49;
    --navy-deep: #04152e;
    --green: #07913f;
    --green-dark: #046f30;
    --green-soft: #e9f7ee;
    --ink: #071f49;
    --muted: #5e687d;
    --line: #e1e6ee;
    --surface: #ffffff;
    --surface-soft: #f4f7fb;
    --shadow: 0 16px 38px rgba(7, 31, 73, 0.11);
    --shadow-soft: 0 9px 24px rgba(7, 31, 73, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

button {
    color: inherit;
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

svg {
    display: block;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.skip-link {
    position: fixed;
    z-index: 999;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    background: white;
    color: var(--navy);
    font-weight: 800;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(7, 31, 73, 0.08);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 3px 16px rgba(7, 31, 73, 0.04);
    backdrop-filter: blur(16px);
}

.nav-shell {
    width: min(1400px, calc(100% - 42px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    min-width: 272px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand-logo {
    width: 58px;
    height: 66px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 5px;
    background: white;
}

.brand-logo img {
    width: 54px;
    height: auto;
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    color: var(--navy-dark);
    font-size: 18px;
    line-height: 0.9;
    letter-spacing: 0.015em;
}

.brand-text small {
    color: var(--green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 9.5px;
    font-style: italic;
    line-height: 1.1;
}

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 1.35vw, 24px);
}

.main-nav a {
    position: relative;
    padding: 30px 0;
    color: #17213a;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--green);
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 20px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--green);
}

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

.header-button {
    min-height: 46px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 7px 18px rgba(7, 31, 73, 0.13);
    font-size: 12px;
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 11px 25px rgba(7, 31, 73, 0.19);
}

.header-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admission-button {
    min-width: 164px;
    background: var(--green);
}

.admission-button:hover {
    background: var(--green-dark);
}

.login-button {
    min-width: 145px;
    background: var(--navy);
}

.login-button:hover {
    background: var(--navy-dark);
}

.menu-toggle {
    display: none;
}

.hero {
    min-height: 510px;
    position: relative;
    overflow: hidden;
    background: var(--navy-deep);
}

.hero-slides,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-photo {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 900ms ease, transform 6s ease;
}

.hero-photo.active {
    opacity: 1;
    transform: scale(1.04);
}

.hero-photo {
    background-position: center 52%;
    background-size: cover;
    transform: scale(1.015);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(2, 13, 29, 0.91) 0%, rgba(2, 16, 34, 0.76) 36%, rgba(4, 25, 45, 0.32) 72%, rgba(2, 16, 31, 0.48) 100%),
        linear-gradient(0deg, rgba(2, 15, 31, 0.3), transparent 55%);
}

.hero-shell {
    width: min(1320px, calc(100% - 48px));
    min-height: 510px;
    margin: 0 auto;
    padding: 48px 32px 54px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 690px) minmax(250px, 1fr);
    align-items: center;
    gap: 76px;
}

.hero-copy {
    color: white;
}

.hero-kicker {
    margin-bottom: 13px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #a7f3c1;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-kicker::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 2px;
    background: #36bd68;
}

.hero h1 {
    max-width: 735px;
    margin: 0;
    color: white;
    font-size: clamp(48px, 4.2vw, 68px);
    font-weight: 850;
    letter-spacing: -0.047em;
    line-height: 0.98;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
}

.hero h1 span {
    display: block;
}

.hero-copy > p {
    max-width: 620px;
    margin: 20px 0 25px;
    color: #f0f4f9;
    font-size: 16px;
    font-weight: 520;
    line-height: 1.55;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-button {
    min-height: 50px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.hero-button:hover {
    transform: translateY(-2px);
}

.hero-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-admission {
    min-width: 184px;
    background: var(--green);
    color: white;
    box-shadow: 0 10px 24px rgba(1, 73, 32, 0.28);
}

.hero-secondary {
    min-width: 152px;
    background: white;
    color: var(--navy-dark);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.hero-secondary svg {
    margin-left: 4px;
}

.hero-features {
    width: min(100%, 300px);
    justify-self: end;
    display: grid;
    gap: 12px;
}

.feature {
    min-height: 58px;
    padding: 7px 18px 7px 9px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(6, 26, 43, 0.78);
    color: white;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(9px);
}

.feature > span {
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: white;
    color: var(--green);
}

.feature svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature strong {
    font-size: 13px;
}

.hero-dots {
    position: absolute;
    right: 0;
    bottom: 20px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hero-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 2px solid white;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.hero-dots .active {
    border-color: #69d690;
    background: #69d690;
}

.trust-strip {
    border-bottom: 1px solid var(--line);
    background: white;
}

.trust-shell {
    width: min(1280px, calc(100% - 48px));
    min-height: 94px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.trust-shell article {
    min-width: 0;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border-right: 1px solid var(--line);
}

.trust-shell article:first-child {
    border-left: 1px solid var(--line);
}

.trust-shell article > span {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid #9cddb4;
    border-radius: 50%;
    color: var(--green);
}

.trust-shell svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.trust-shell article div {
    display: grid;
    gap: 2px;
}

.trust-shell strong {
    color: var(--navy-dark);
    font-size: 14px;
}

.trust-shell small {
    color: var(--muted);
    font-size: 10px;
}

.overview-section,
.gallery-section {
    background: white;
}

.overview-shell {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding: 58px 0 64px;
    display: grid;
    grid-template-columns: minmax(0, 2.15fr) minmax(330px, 0.95fr);
    gap: 24px;
}

.academic-panel,
.updates-panel {
    min-width: 0;
}

.panel-heading {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 22px;
}

.section-label {
    display: block;
    margin-bottom: 8px;
    color: var(--green);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.panel-heading h2,
.section-intro h2 {
    margin: 0;
    color: var(--navy-dark);
    font-size: clamp(28px, 2.4vw, 40px);
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.panel-heading > p,
.section-intro > p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

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

.academic-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
    box-shadow: var(--shadow-soft);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.academic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.academic-image {
    height: 192px;
    position: relative;
    overflow: hidden;
}

.academic-image::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(0deg, rgba(3, 23, 43, 0.56), transparent);
    pointer-events: none;
}

.academic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.academic-card:hover img {
    transform: scale(1.035);
}

.academic-stage {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(3, 23, 43, 0.82);
    color: white;
    font-size: 9px;
    font-weight: 780;
    backdrop-filter: blur(8px);
}

.academic-stage svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: #8de4a9;
    stroke-width: 1.8;
}

.academic-body {
    position: relative;
    min-height: 150px;
    padding: 22px 18px 20px;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: start;
    gap: 12px;
}

.academic-body > span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid #bce9ca;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-size: 10px;
    font-weight: 850;
    box-shadow: 0 7px 18px rgba(7, 145, 63, 0.18);
}

.academic-body > div {
    min-width: 0;
}

.academic-body h3 {
    margin: 0 0 8px;
    color: var(--navy-dark);
    font-size: 18px;
}

.academic-body p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.updates-panel {
    display: grid;
    gap: 16px;
}

.updates-column {
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.updates-heading {
    margin-bottom: 15px;
    padding-bottom: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.updates-heading span {
    color: var(--navy-dark);
    font-size: 16px;
    font-weight: 800;
}

.updates-heading small {
    color: var(--green);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.update-placeholder {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 13px;
}

.placeholder-icon,
.placeholder-date {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 10px;
    background: var(--green-soft);
    color: var(--green);
    font-weight: 850;
}

.placeholder-date {
    background: #edf3fc;
    color: var(--navy);
}

.placeholder-date strong {
    font-size: 18px;
    line-height: 1;
}

.placeholder-date small {
    font-size: 7px;
    letter-spacing: 0.08em;
}

.update-placeholder > div {
    display: grid;
    align-content: start;
    gap: 3px;
}

.update-placeholder > div small {
    color: var(--green);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.update-placeholder > div strong {
    color: var(--navy-dark);
    font-size: 13px;
}

.update-placeholder p {
    margin: 1px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.identity-section {
    background: var(--surface-soft);
}

.identity-shell,
.gallery-shell,
.contact-shell {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.identity-shell {
    padding: 72px 0 74px;
}

.section-intro {
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 40px;
}

.section-intro h2 {
    max-width: 680px;
}

.identity-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.identity-cards article {
    padding: 27px 29px;
    border: 1px solid #dfe5ed;
    border-radius: 16px;
    background: white;
    box-shadow: 0 8px 20px rgba(7, 31, 73, 0.045);
}

.identity-cards article > span {
    color: var(--green);
    font-size: 10px;
    font-weight: 850;
}

.identity-cards h3 {
    margin: 10px 0 9px;
    color: var(--navy);
    font-size: 20px;
}

.identity-cards p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.values-heading {
    margin: 48px 0 20px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.values-heading h3 {
    max-width: 630px;
    margin: 0;
    color: var(--navy-dark);
    font-size: clamp(25px, 2vw, 34px);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.values-toggle {
    display: none;
}

.values-grid {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    list-style: none;
}

.values-grid li {
    min-height: 96px;
    padding: 18px 20px;
    display: grid;
    align-content: center;
    gap: 7px;
    border: 1px solid #dfe5ed;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.78);
}

.values-grid strong {
    color: var(--navy-dark);
    font-size: 14px;
}

.values-grid span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.gallery-shell {
    padding: 72px 0 78px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    grid-template-rows: repeat(2, 205px);
    gap: 14px;
}

.gallery-grid .gallery-item {
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 15px;
    background: var(--navy-dark);
    color: white;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 12px 28px rgba(7, 31, 73, 0.1);
}

.gallery-grid .gallery-featured {
    grid-row: 1 / span 2;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-grid .gallery-item > span:not(.gallery-more-label) {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(3, 23, 43, 0.87);
    color: white;
    font-size: 11px;
    font-weight: 750;
    backdrop-filter: blur(8px);
}

.gallery-more::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 23, 43, 0.72), rgba(3, 23, 43, 0.05));
}

.gallery-more-label {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 12px;
    left: 12px;
    min-height: 52px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9px;
    background: rgba(3, 23, 43, 0.9);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.gallery-more-label b {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    font-size: 20px;
    font-weight: 500;
}

.gallery-dialog {
    width: min(1080px, calc(100% - 32px));
    max-height: min(820px, calc(100vh - 32px));
    padding: 24px;
    border: 0;
    border-radius: 22px;
    background: white;
    color: var(--ink);
    box-shadow: 0 30px 90px rgba(2, 17, 40, 0.32);
}

.gallery-dialog::backdrop {
    background: rgba(2, 13, 29, 0.78);
    backdrop-filter: blur(5px);
}

.gallery-dialog-head {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.gallery-dialog-head h2 {
    margin: 3px 0 0;
    color: var(--navy-dark);
    font-size: clamp(25px, 3vw, 38px);
    letter-spacing: -0.035em;
}

.gallery-close {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--navy);
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

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

.gallery-dialog-grid figure {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 13px;
    background: var(--surface-soft);
}

.gallery-dialog-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
}

.gallery-dialog-grid figcaption {
    padding: 11px 13px;
    color: var(--navy-dark);
    font-size: 11px;
    font-weight: 750;
}

.contact-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 3% 0%, rgba(7, 145, 63, 0.24), transparent 27%),
        var(--navy-dark);
    color: white;
}

.contact-shell {
    padding: 72px 0;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 70px;
}

.light-label {
    color: #85e7a7;
}

.contact-intro h2 {
    max-width: 500px;
    margin: 0;
    color: white;
    font-size: clamp(34px, 3vw, 50px);
    letter-spacing: -0.04em;
    line-height: 1.03;
}

.contact-intro p {
    max-width: 500px;
    margin: 16px 0 22px;
    color: #d7e0ed;
    font-size: 14px;
    line-height: 1.6;
}

.family-support {
    margin: -7px 0 22px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #a9bad0;
    font-size: 10px;
    letter-spacing: 0.02em;
}

.family-support span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5ee58a;
    box-shadow: 0 0 0 5px rgba(94, 229, 138, 0.12);
}

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

.contact-admission {
    min-height: 48px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    background: var(--green);
    color: white;
    font-size: 12px;
    font-weight: 800;
    transition: transform 160ms ease, background 160ms ease;
}

.contact-admission:hover {
    transform: translateY(-2px);
    background: #09a549;
}

.contact-admission svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-whatsapp {
    min-height: 48px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
    color: white;
    font-size: 11px;
    font-weight: 780;
    transition: background 160ms ease, transform 160ms ease;
}

.contact-whatsapp:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.contact-whatsapp svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.contact-card {
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    font-style: normal;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(12px);
}

.contact-card-heading {
    margin-bottom: 13px;
    padding: 2px 3px 15px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-card-heading div {
    display: grid;
    gap: 5px;
}

.contact-card-heading span {
    color: #83e4a4;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.contact-card-heading strong {
    font-size: 17px;
}

.contact-card-heading > small {
    color: #aebdd1;
    font-size: 8px;
    white-space: nowrap;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.contact-card a {
    min-width: 0;
    min-height: 76px;
    padding: 13px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.085);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.contact-card a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.15);
}

.contact-card a.address-row {
    grid-column: 1 / -1;
}

.contact-card a.contact-option-whatsapp {
    border-color: rgba(84, 226, 133, 0.3);
    background: linear-gradient(135deg, rgba(12, 160, 72, 0.26), rgba(255, 255, 255, 0.08));
}

.contact-card a > span {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: white;
    color: var(--green);
}

.contact-card a > span svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-card a div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.contact-card small {
    color: #b9c6d9;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-card strong {
    overflow-wrap: anywhere;
    color: white;
    font-size: 11px;
    line-height: 1.35;
}

.contact-arrow {
    width: 15px;
    height: 15px;
    margin-left: auto;
    flex: 0 0 auto;
    fill: none;
    stroke: #94a8c2;
    stroke-width: 1.7;
}

.site-footer {
    background: #03152f;
    color: white;
}

.footer-shell {
    width: min(1240px, calc(100% - 48px));
    min-height: 104px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    align-items: center;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    width: 42px;
    height: 50px;
    object-fit: contain;
    border-radius: 3px;
    background: white;
}

.footer-brand div {
    display: grid;
    gap: 3px;
}

.footer-brand strong {
    font-size: 12px;
}

.footer-brand span,
.site-footer p {
    margin: 0;
    color: #8495ae;
    font-size: 8px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
}

.footer-links a {
    font-size: 9px;
    font-weight: 700;
}

.footer-links a:hover {
    color: #7ce09f;
}

.floating-whatsapp {
    width: 54px;
    height: 54px;
    position: fixed;
    z-index: 80;
    right: 22px;
    bottom: 22px;
    display: grid;
    place-items: center;
    border: 3px solid white;
    border-radius: 50%;
    background: #1faa59;
    color: white;
    box-shadow: 0 12px 28px rgba(3, 21, 47, 0.3);
    transition: transform 160ms ease;
}

.floating-whatsapp:hover {
    transform: translateY(-3px) scale(1.03);
}

.floating-whatsapp svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1240px) {
    .nav-shell {
        width: min(1180px, calc(100% - 30px));
        gap: 14px;
    }

    .brand {
        min-width: 230px;
    }

    .brand-text strong {
        font-size: 16px;
    }

    .main-nav {
        gap: 12px;
    }

    .main-nav a {
        font-size: 11px;
    }

    .header-actions {
        margin-left: 4px;
    }

    .header-button {
        min-width: auto;
        padding: 0 12px;
    }

    .hero-shell {
        gap: 40px;
    }
}

@media (max-width: 1050px) {
    html {
        scroll-padding-top: 76px;
    }

    .nav-shell {
        min-height: 76px;
    }

    .brand {
        min-width: 0;
        margin-right: auto;
    }

    .main-nav {
        position: fixed;
        z-index: 120;
        top: 76px;
        right: 0;
        bottom: 0;
        width: min(360px, 88vw);
        padding: 24px;
        display: grid;
        align-content: start;
        gap: 0;
        background: white;
        box-shadow: -18px 0 36px rgba(7, 31, 73, 0.18);
        transform: translateX(105%);
        transition: transform 220ms ease;
    }

    .main-nav::before {
        content: "Navegación";
        margin-bottom: 12px;
        color: var(--green);
        font-size: 10px;
        font-weight: 850;
        letter-spacing: 0.13em;
        text-transform: uppercase;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav a {
        padding: 16px 2px;
        border-bottom: 1px solid var(--line);
        color: var(--navy-dark);
        font-size: 15px;
    }

    .main-nav a.active::after {
        width: 3px;
        height: 24px;
        right: auto;
        bottom: 14px;
        left: -11px;
    }

    .menu-toggle {
        width: 48px;
        height: 48px;
        padding: 0;
        display: grid;
        place-content: center;
        gap: 5px;
        border: 1px solid #d9e0e9;
        border-radius: 9px;
        background: white;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 24px;
        height: 2px;
        border-radius: 3px;
        background: var(--navy);
        transition: transform 180ms ease, opacity 180ms ease;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .admission-button {
        display: none;
    }

    .login-button {
        min-width: 118px;
    }

    .hero-shell {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 32px;
    }

    .trust-shell {
        width: 100%;
    }

    .trust-shell article {
        padding-inline: 12px;
    }

    .trust-shell article > span {
        width: 40px;
        height: 40px;
    }

    .trust-shell strong {
        font-size: 12px;
    }

    .overview-shell {
        grid-template-columns: 1fr;
    }

    .updates-panel {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    :root {
        --radius: 15px;
    }

    html {
        scroll-padding-top: 72px;
    }

    .nav-shell {
        width: calc(100% - 28px);
        min-height: 72px;
        gap: 10px;
    }

    .brand {
        gap: 8px;
    }

    .brand-logo {
        width: 47px;
        height: 56px;
    }

    .brand-logo img {
        width: 45px;
    }

    .brand-text strong {
        font-size: 15px;
        line-height: 0.92;
    }

    .brand-text small {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .login-button {
        min-width: 48px;
        width: 48px;
        height: 48px;
        padding: 0;
        border-radius: 9px;
    }

    .login-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .login-button svg {
        width: 23px;
        height: 23px;
    }

    .menu-toggle {
        width: 48px;
        height: 48px;
    }

    .main-nav {
        top: 72px;
    }

    .hero,
    .hero-shell {
        min-height: 575px;
    }

    .hero-photo {
        background-position: 42% center;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(2, 15, 33, 0.8) 0%, rgba(2, 15, 33, 0.7) 58%, rgba(2, 15, 33, 0.9) 100%),
            linear-gradient(90deg, rgba(2, 15, 33, 0.52), transparent);
    }

    .hero-shell {
        width: calc(100% - 32px);
        padding: 44px 0 39px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 23px;
    }

    .hero-kicker {
        margin-bottom: 12px;
        font-size: 10px;
    }

    .hero h1 {
        max-width: 590px;
        font-size: clamp(39px, 11vw, 50px);
        letter-spacing: -0.045em;
        line-height: 1.01;
    }

    .hero-copy > p {
        margin: 18px 0 21px;
        font-size: 15px;
        line-height: 1.5;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .hero-button {
        width: 100%;
        min-width: 0;
        min-height: 49px;
        padding: 0 12px;
        font-size: 12px;
    }

    .hero-features {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .feature {
        min-height: 51px;
        padding: 6px 10px 6px 7px;
        gap: 8px;
        border-radius: 11px;
    }

    .feature > span {
        width: 36px;
        height: 36px;
    }

    .feature svg {
        width: 18px;
        height: 18px;
    }

    .feature strong {
        font-size: 10px;
        line-height: 1.2;
    }

    .hero-dots {
        bottom: 13px;
    }

    .trust-shell {
        padding: 0 20px;
        grid-template-columns: 1fr;
    }

    .trust-shell article,
    .trust-shell article:first-child {
        min-height: 76px;
        padding: 13px 4px;
        justify-content: flex-start;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        border-left: 0;
    }

    .trust-shell article:last-child {
        border-bottom: 0;
    }

    .trust-shell article > span {
        width: 42px;
        height: 42px;
    }

    .trust-shell strong {
        font-size: 14px;
    }

    .trust-shell small {
        font-size: 10px;
    }

    .overview-shell,
    .identity-shell,
    .gallery-shell,
    .contact-shell {
        width: calc(100% - 32px);
    }

    .overview-shell {
        padding: 52px 0 58px;
        gap: 28px;
    }

    .panel-heading,
    .section-intro {
        margin-bottom: 23px;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .panel-heading h2,
    .section-intro h2 {
        font-size: 32px;
        line-height: 1.08;
    }

    .panel-heading > p,
    .section-intro > p {
        max-width: 560px;
        font-size: 14px;
    }

    .academic-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .academic-image {
        height: 230px;
    }

    .academic-body {
        min-height: 0;
        padding: 22px 20px 24px;
        grid-template-columns: 44px 1fr;
    }

    .academic-body h3 {
        font-size: 21px;
    }

    .academic-body p {
        font-size: 13px;
    }

    .updates-panel {
        grid-template-columns: 1fr;
    }

    .updates-column {
        padding: 18px;
    }

    .updates-heading span {
        font-size: 17px;
    }

    .update-placeholder {
        grid-template-columns: 56px 1fr;
    }

    .update-placeholder > div strong {
        font-size: 14px;
    }

    .update-placeholder p {
        font-size: 11px;
    }

    .identity-shell {
        padding: 58px 0 60px;
    }

    .identity-cards {
        grid-template-columns: 1fr;
    }

    .identity-cards article {
        padding: 24px 22px;
    }

    .identity-cards p {
        font-size: 13px;
        line-height: 1.65;
    }

    .values-heading {
        margin: 40px 0 18px;
        display: grid;
        gap: 18px;
    }

    .values-heading h3 {
        font-size: 28px;
    }

    .values-toggle {
        min-height: 46px;
        padding: 0 16px;
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border: 0;
        border-radius: 8px;
        background: var(--navy);
        color: white;
        font-size: 12px;
        font-weight: 800;
        cursor: pointer;
    }

    .values-toggle svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform 180ms ease;
    }

    .values-toggle[aria-expanded="true"] svg {
        transform: rotate(-90deg);
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .values-grid li {
        min-height: 104px;
        padding: 20px;
    }

    .values-grid li:nth-child(n + 5) {
        display: none;
    }

    .values-grid.expanded li:nth-child(n + 5) {
        display: grid;
    }

    .values-grid strong {
        font-size: 16px;
    }

    .values-grid span {
        font-size: 13px;
    }

    .gallery-shell {
        padding: 58px 0 62px;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 14px;
    }

    .gallery-grid .gallery-featured {
        grid-row: auto;
    }

    .gallery-grid .gallery-item {
        height: 260px;
    }

    .gallery-dialog {
        padding: 18px;
    }

    .gallery-dialog-grid {
        grid-template-columns: 1fr;
    }

    .contact-shell {
        padding: 58px 0 60px;
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .contact-intro h2 {
        font-size: 38px;
    }

    .contact-card {
        padding: 14px;
    }

    .contact-card-heading {
        align-items: start;
    }

    .contact-card-heading > small {
        display: none;
    }

    .contact-options {
        grid-template-columns: 1fr;
    }

    .contact-card a.address-row {
        grid-column: auto;
    }

    .contact-card a {
        min-height: 78px;
    }

    .contact-card strong {
        font-size: 13px;
    }

    .footer-shell {
        width: calc(100% - 32px);
        padding: 35px 0 30px;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 23px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 15px 21px;
    }

    .footer-links a {
        font-size: 11px;
    }

    .footer-brand span,
    .site-footer p {
        font-size: 9px;
    }

    .floating-whatsapp {
        width: 50px;
        height: 50px;
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 430px) {
    .brand-text strong {
        font-size: 14px;
    }

    .hero,
    .hero-shell {
        min-height: 610px;
    }

    .hero-shell {
        padding-top: 36px;
    }

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

    .hero-actions {
        grid-template-columns: 1fr;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .feature:nth-child(n + 4) {
        display: none;
    }

    .academic-image {
        height: 210px;
    }

    .contact-intro h2 {
        font-size: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    
    /* =====================================================
   NOTICIAS DINÁMICAS DEL SITIO WEB
===================================================== */

.web-news-list {
    display: grid;
}

.web-news-card {
    min-width: 0;
    padding: 12px 0;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.web-news-card:first-child {
    padding-top: 0;
}

.web-news-card:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.web-news-image,
.web-news-fallback {
    width: 72px;
    height: 62px;
    border-radius: 10px;
}

.web-news-image {
    display: block;
    object-fit: cover;
    background: var(--surface-soft);
}

.web-news-fallback {
    display: grid;
    place-items: center;
    background:
        linear-gradient(
            145deg,
            var(--green-soft),
            #ffffff
        );
    color: var(--green);
    font-size: 20px;
    font-weight: 850;
    border: 1px solid #c9ecd4;
}

.web-news-content {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 4px;
}

.web-news-date {
    color: var(--green);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.web-news-title {
    margin: 0;
    color: var(--navy-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.web-news-summary {
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.web-news-card:hover .web-news-image {
    transform: scale(1.025);
}

.web-news-image {
    transition: transform 180ms ease;
}

/* ===== AJUSTE RESPONSIVE ===== */

@media (max-width: 760px) {
    .web-news-card {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 14px;
        padding: 14px 0;
    }

    .web-news-image,
    .web-news-fallback {
        width: 82px;
        height: 70px;
    }

    .web-news-title {
        font-size: 14px;
    }

    .web-news-summary {
        font-size: 11px;
    }
}

@media (max-width: 430px) {
    .web-news-card {
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 12px;
    }

    .web-news-image,
    .web-news-fallback {
        width: 74px;
        height: 66px;
    }
}

}
