@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Source+Sans+3:wght@400;500;600;700;800&display=swap");

:root {
    --ink: #10233b;
    --ink-soft: #38556f;
    --navy: #10355a;
    --teal: #2f6f9f;
    --teal-dark: #1d5b86;
    --coral: #a34f3a;
    --sun: #f3c77c;
    --cream: #eef7fb;
    --mint: #e3f1f7;
    --paper: #f8fbfd;
    --white: #ffffff;
    --line: #bdd7e7;
    --sky: #7fb6d4;
    --shadow: 0 24px 64px rgba(20, 51, 61, 0.12);
    --shadow-soft: 0 14px 36px rgba(20, 51, 61, 0.08);
    --radius-sm: 12px;
    --radius: 22px;
    --radius-lg: 34px;
    --container: 1180px;
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    text-shadow: none !important;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    overflow-x: clip;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: var(--teal-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

a:hover {
    color: var(--coral);
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 4px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--navy);
    line-height: 1.08;
}

h1,
h2 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.025em;
}

h1 {
    max-width: 820px;
    margin-bottom: 24px;
    font-size: clamp(3rem, 7vw, 5.7rem);
}

h2 {
    margin-bottom: 22px;
    font-size: clamp(2.25rem, 4.5vw, 4rem);
}

h3 {
    margin-bottom: 14px;
    font-size: 1.35rem;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.section {
    padding-block: clamp(76px, 10vw, 132px);
}

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

.section--faq {
    background: var(--mint);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--teal-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 28px;
    height: 2px;
    background: currentColor;
    content: "";
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transform: translateY(-180%);
}

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

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 2px solid var(--teal);
    border-radius: 999px;
    background: var(--teal);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    box-shadow: 0 12px 24px rgba(46, 98, 118, 0.22);
    color: var(--white);
    transform: translateY(-2px);
}

.button--small {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 0.86rem;
}

.button--outline {
    border-color: rgba(20, 51, 61, 0.22);
    background: transparent;
    color: var(--navy);
}

.button--outline:hover {
    border-color: var(--navy);
    background: var(--navy);
}

.button--dark {
    border-color: var(--navy);
    background: var(--navy);
}

.button--dark:hover {
    border-color: var(--teal);
    background: var(--teal);
}

.button--light {
    border-color: var(--white);
    background: var(--white);
    color: var(--navy);
}

.button--light:hover {
    border-color: var(--sun);
    background: var(--sun);
    color: var(--navy);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal-dark);
    font-weight: 800;
    text-decoration: none;
}

.text-link span {
    font-size: 1.25em;
    transition: transform 180ms ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

.text-link--light {
    color: var(--white);
}

/* Header */
.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(173, 207, 220, 0.9);
    background: rgba(247, 251, 253, 0.97);
    box-shadow: 0 8px 30px rgba(20, 51, 61, 0.05);
    backdrop-filter: blur(16px);
}

.site-header__utility {
    background: var(--navy);
    color: var(--white);
}

.site-header__utility-inner {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header__utility p {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    line-height: 1.2;
    text-transform: uppercase;
}

.utility-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.utility-nav a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.74rem;
    font-weight: 750;
    text-decoration: none;
}

.utility-nav a:hover {
    color: var(--sun);
}

.site-header__inner {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 14px;
    color: var(--navy);
    text-decoration: none;
}

.site-brand:hover {
    color: var(--navy);
}

.site-brand__crest {
    display: block;
    flex: 0 0 auto;
    width: 54px;
    height: 72px;
    overflow: hidden;
}

.site-brand__image {
    width: auto;
    max-width: none;
    height: 72px;
}

.site-brand__text {
    display: grid;
    line-height: 1.05;
}

.site-brand__text strong {
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.12rem;
    letter-spacing: -0.01em;
}

.site-brand__text small {
    margin-top: 6px;
    color: var(--teal-dark);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__list a {
    position: relative;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav__list a::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 3px;
    border-radius: 99px;
    background: var(--coral);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.site-nav__list a:hover::after,
.site-nav__list .current-menu-item > a::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-weight: 800;
}

.nav-toggle__icon {
    display: grid;
    gap: 4px;
}

.nav-toggle__icon i {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}
/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(70px, 9vw, 118px) clamp(76px, 10vw, 132px);
    background: linear-gradient(145deg, var(--paper) 0%, var(--cream) 100%);
}

.hero__grid {
    position: relative;
    z-index: 2;
    display: block;
}

.hero__copy {
    max-width: 880px;
}

.hero__lead {
    max-width: 680px;
    margin-bottom: 32px;
    color: var(--ink-soft);
    font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero__proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 32px 0 0;
    padding: 0;
    color: var(--ink-soft);
    font-size: 0.86rem;
    font-weight: 750;
    list-style: none;
}

.hero__proof li {
    position: relative;
    padding-left: 19px;
}

.hero__proof li::before {
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--coral);
    content: "";
}
/* Content blocks */
.trust-strip {
    border-block: 1px solid var(--line);
    background: var(--white);
}

.trust-strip__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.trust-strip__grid > div {
    display: flex;
    min-height: 108px;
    align-items: center;
    gap: 16px;
    padding: 24px clamp(20px, 4vw, 44px);
    border-right: 1px solid var(--line);
}

.trust-strip__grid > div:last-child {
    border-right: 0;
}

.trust-strip span {
    color: var(--coral);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-style: italic;
}

.trust-strip strong {
    color: var(--navy);
    font-size: 0.9rem;
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.75fr);
    align-items: end;
    gap: clamp(48px, 8vw, 110px);
}

.intro-grid h2 {
    margin-bottom: 0;
}

.intro-grid__text p {
    margin-bottom: 26px;
    color: var(--ink-soft);
    font-size: 1.1rem;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
    align-items: end;
    gap: 60px;
    margin-bottom: 54px;
}

.section-heading h2,
.section-heading p {
    margin-bottom: 0;
}

.section-heading p {
    color: var(--ink-soft);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    min-height: 310px;
    padding: 34px;
    border: 1px solid rgba(173, 207, 220, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.feature-card--accent {
    background: var(--teal);
    transform: translateY(-18px);
}

.feature-card--accent h3,
.feature-card--accent p,
.feature-card--accent .feature-card__number {
    color: var(--white);
}

.feature-card__number {
    display: block;
    margin-bottom: 70px;
    color: var(--coral);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-style: italic;
}

.feature-card p {
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.levels-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(60px, 9vw, 130px);
}

.levels-grid__copy {
    position: sticky;
    top: 128px;
}

.levels-grid__copy p {
    margin-bottom: 30px;
    color: var(--ink-soft);
}

.level-list {
    border-top: 1px solid var(--line);
}

.level-list article {
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
}

.level-list article > span {
    color: var(--coral);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.level-list h3 {
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: 2rem;
}

.level-list p {
    max-width: 590px;
    margin-bottom: 0;
    color: var(--ink-soft);
}

.section--admission {
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
}

.section-heading--light h2,
.section-heading--light p,
.section-heading--light .eyebrow {
    color: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 0 44px;
    padding: 0;
    list-style: none;
    counter-reset: steps;
}

.steps-grid li {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
}

.steps-grid li > span {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 52px;
    place-items: center;
    border-radius: 50%;
    background: var(--sun);
    color: var(--navy);
    font-weight: 900;
}

.steps-grid h3 {
    color: var(--white);
}

.steps-grid p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.93rem;
}

/* En páginas de fondo claro, los pasos deben mantener contraste alto. */
.main-content > .section:not(.section--admission) .steps-grid li {
    border-color: rgba(10, 50, 100, 0.14);
    background: var(--white);
    box-shadow: 0 14px 34px rgba(10, 50, 100, 0.08);
}

.main-content > .section:not(.section--admission) .steps-grid h3 {
    color: var(--navy);
}

.main-content > .section:not(.section--admission) .steps-grid p {
    color: var(--ink-soft);
}

.admission-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.faq-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
    gap: clamp(60px, 9vw, 120px);
}

.faq-grid > div:first-child p {
    color: var(--ink-soft);
}

.accordion {
    border-top: 1px solid rgba(20, 51, 61, 0.18);
}

.accordion details {
    border-bottom: 1px solid rgba(20, 51, 61, 0.18);
}

.accordion summary {
    position: relative;
    padding: 26px 50px 26px 0;
    color: var(--navy);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    position: absolute;
    top: 22px;
    right: 0;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    content: "+";
    font-size: 1.3rem;
    transition: transform 180ms ease;
}

.accordion details[open] summary::after {
    transform: rotate(45deg);
}

.accordion details p {
    padding-right: 45px;
    color: var(--ink-soft);
}

.section--contact {
    padding-top: 0;
    background: var(--mint);
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(340px, 0.7fr);
    gap: clamp(46px, 8vw, 96px);
    padding: clamp(40px, 7vw, 80px);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
}

.contact-panel__copy p {
    color: var(--ink-soft);
}

.contact-options,
.contact-list,
.footer-nav {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.contact-options {
    display: grid;
    gap: 10px;
}

.contact-options a {
    font-weight: 750;
}

.contact-panel__form {
    align-self: stretch;
}

.form-placeholder {
    height: 100%;
    min-height: 310px;
    padding: 34px;
    border-radius: var(--radius);
    background: var(--cream);
}

.form-placeholder p {
    color: var(--ink-soft);
}

.admission-form-shell {
    height: 100%;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(10, 50, 100, 0.12);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 18px 48px rgba(10, 50, 100, 0.1);
}

.admission-form-shell > p {
    color: var(--ink-soft);
}

.admission-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

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

.form-field {
    display: grid;
    gap: 7px;
}

.form-field label,
.form-consent {
    color: var(--navy);
    font-weight: 750;
}

.admission-form input:not([type="checkbox"]),
.admission-form select,
.admission-form textarea {
    width: 100%;
    border: 1px solid rgba(10, 50, 100, 0.28);
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
}

.admission-form input:not([type="checkbox"]),
.admission-form select {
    min-height: 48px;
    padding: 10px 12px;
}

.admission-form textarea {
    min-height: 112px;
    padding: 12px;
    resize: vertical;
}

.admission-form input:focus,
.admission-form select:focus,
.admission-form textarea:focus {
    border-color: var(--teal);
    outline: 3px solid rgba(21, 149, 210, 0.2);
    outline-offset: 1px;
}

.form-consent {
    display: grid;
    width: 100%;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(10, 50, 100, 0.14);
    border-radius: 10px;
    background: var(--cream);
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-consent input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.form-consent label {
    min-width: 0;
    color: var(--navy);
    font-weight: 750;
    overflow-wrap: break-word;
}

.form-privacy {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.form-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-notice {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-left: 4px solid var(--teal);
    border-radius: 8px;
    background: var(--cream);
    color: var(--navy);
    font-weight: 700;
}

.form-notice--success {
    border-left-color: #278a56;
    background: #edf9f2;
    color: #155b37;
}

.form-notice--error {
    border-left-color: #b3261e;
    background: #fff1f0;
    color: #7b1712;
}

@media (max-width: 620px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.contact-panel input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.contact-panel select,
.contact-panel textarea,
.entry input:not([type="submit"]),
.entry select,
.entry textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--sky);
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
}

.contact-panel textarea,
.entry textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-panel input[type="submit"],
.entry input[type="submit"] {
    padding: 13px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--teal);
    color: var(--white);
    cursor: pointer;
    font-weight: 800;
}

/* Inner pages */
.content-shell {
    max-width: 900px;
}

.entry__header {
    margin-bottom: 34px;
}

.entry__header h1 {
    font-size: clamp(2.7rem, 6vw, 5rem);
}

.entry__content > * + * {
    margin-top: 1.4em;
}

.entry__content h2 {
    margin-top: 1.6em;
    font-size: clamp(2rem, 4vw, 3.1rem);
}

/* Footer */
.site-footer {
    padding-top: 76px;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.7);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 60px;
    padding-bottom: 60px;
}

.site-footer h2 {
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.86rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.86);
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.site-footer__brand span {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 800;
}

.site-footer__grid p {
    max-width: 400px;
}

.contact-list,
.footer-nav {
    display: grid;
    gap: 8px;
    margin-top: 0;
}

.site-footer__bottom {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 0.8rem;
}

@media (max-width: 1020px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        top: 128px;
        right: 0;
        bottom: 0;
        display: grid;
        width: min(88vw, 420px);
        height: calc(100vh - 128px);
        height: calc(100dvh - 128px);
        align-content: start;
        align-items: start;
        z-index: 20;
        padding: 30px;
        background: var(--paper);
        box-shadow: -24px 30px 50px rgba(20, 51, 61, 0.14);
        opacity: 0;
        visibility: hidden;
        overflow-y: auto;
        pointer-events: none;
        transform: translateX(104%);
        transition: transform 220ms ease, opacity 220ms ease, visibility 0s linear 220ms;
    }

    .site-nav[data-open="true"] {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
        transition-delay: 0s;
    }

    .site-nav__list {
        display: grid;
        gap: 0;
    }

    .site-nav__list li {
        border-bottom: 1px solid var(--line);
    }

    .site-nav__list a {
        display: block;
        padding: 16px 0;
        font-size: 1rem;
    }

    .site-nav__list a::after {
        display: none;
    }

    .site-nav > .button {
        width: 100%;
        margin-top: 22px;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__icon i:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

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

    .nav-toggle[aria-expanded="true"] .nav-toggle__icon i:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }



    .feature-grid,
    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-card:last-child,
    .steps-grid li:last-child {
        grid-column: 1 / -1;
    }

    .feature-card--accent {
        transform: none;
    }
}

@media (max-width: 780px) {
    .site-header__utility-inner {
        min-height: 32px;
    }

    .site-header__utility p,
    .utility-nav a {
        font-size: 0.64rem;
    }

    body {
        font-size: 16px;
    }

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .site-header__inner {
        min-height: 70px;
    }

    .site-nav {
        top: 102px;
        height: calc(100vh - 102px);
        height: calc(100dvh - 102px);
    }

    .nav-toggle__label {
        display: none;
    }

    .site-brand__crest {
        width: 44px;
        height: 58px;
    }

    .site-brand__image {
        width: auto;
        height: 58px;
    }

    .site-brand__text strong {
        font-size: 0.94rem;
    }

    .site-brand__text small {
        font-size: 0.56rem;
    }

    .hero {
        padding-top: 44px;
    }

    .hero__grid,
    .intro-grid,
    .section-heading,
    .levels-grid,
    .faq-grid,
    .contact-panel,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }



    .hero__proof {
        display: grid;
        gap: 8px;
    }

    .trust-strip__grid {
        grid-template-columns: 1fr;
    }

    .trust-strip__grid > div {
        min-height: 78px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .trust-strip__grid > div:last-child {
        border-bottom: 0;
    }

    .section-heading {
        gap: 12px;
    }

    .levels-grid__copy {
        position: static;
    }

    .contact-panel {
        gap: 36px;
        padding: 34px 24px;
    }

    .site-footer__grid {
        gap: 36px;
    }
}

@media (max-width: 560px) {
    h1 {
        font-size: clamp(2.7rem, 14vw, 4rem);
    }

    h2 {
        font-size: clamp(2.15rem, 11vw, 3.1rem);
    }

    .utility-nav a:last-child {
        display: none;
    }

    .site-brand__text small {
        display: none;
    }

    .hero__actions,
    .hero__actions .button,
    .admission-actions,
    .admission-actions .button {
        width: 100%;
    }



    .feature-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .feature-card:last-child,
    .steps-grid li:last-child {
        grid-column: auto;
    }

    .feature-card {
        min-height: auto;
    }

    .feature-card__number,
    .steps-grid li > span {
        margin-bottom: 34px;
    }

    .site-footer__bottom {
        padding-block: 22px;
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
/* Version 0.4.0 sections */
.section--identity {
    background: var(--white);
}

.identity-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 22px;
}

.identity-card {
    min-height: 300px;
    padding: clamp(30px, 5vw, 52px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
}

.identity-card--mission {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--navy);
}

.identity-card > span {
    display: block;
    margin-bottom: 48px;
    color: var(--coral);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.identity-card--mission > span,
.identity-card--mission h3 {
    color: var(--white);
}

.identity-card h3 {
    max-width: 520px;
    margin-bottom: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3.15rem);
}

.identity-card p {
    max-width: 700px;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 1.08rem;
}

.values-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.values-list li {
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 800;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.learning-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.learning-card--featured {
    border-color: var(--sky);
    transform: translateY(-14px);
}

.media-placeholder {
    position: relative;
    display: flex;
    aspect-ratio: 4 / 3;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 26px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 18% 22%, rgba(127, 182, 212, 0.5) 0 11%, transparent 12%),
        radial-gradient(circle at 82% 76%, rgba(47, 111, 159, 0.2) 0 17%, transparent 18%),
        linear-gradient(145deg, #f8fcfe 0%, #dceef7 100%);
    color: var(--navy);
    text-align: center;
}

.media-placeholder::after {
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(29, 91, 134, 0.38);
    border-radius: 16px;
    content: "";
}

.media-placeholder span,
.media-placeholder strong,
.media-placeholder small {
    position: relative;
    z-index: 1;
}

.media-placeholder span {
    margin-bottom: 10px;
    color: var(--teal-dark);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.media-placeholder strong {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2vw, 2rem);
}

.media-placeholder small {
    margin-top: 10px;
    color: var(--ink-soft);
    font-size: 0.72rem;
}

.learning-card__body {
    padding: 30px;
}

.learning-card__body p {
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 0.94rem;
}

.infrastructure-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.35rem);
}

.infrastructure-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    min-height: 100%;
    padding: clamp(1.2rem, 2.2vw, 1.65rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.infrastructure-card--accent {
    border-color: rgba(242, 194, 48, .8);
    box-shadow: inset 0 4px 0 #f2c230, var(--shadow-soft);
}

.infrastructure-card--upcoming {
    border-color: rgba(242, 194, 48, .56);
    background: #fffdf5;
}

.infrastructure-card__icon {
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border-radius: 1rem;
    background: #e6f5fd;
    color: var(--navy);
}

.infrastructure-card--accent .infrastructure-card__icon,
.infrastructure-card--upcoming .infrastructure-card__icon {
    background: #fff2b8;
}

.infrastructure-card__icon .aoy-icon {
    width: 1.7rem;
    height: 1.7rem;
}

.infrastructure-card h3 {
    margin: .1rem 0 .55rem;
    color: var(--navy);
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    line-height: 1.2;
}

.infrastructure-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .92rem;
    line-height: 1.65;
}

.infrastructure-card__status {
    display: inline-flex;
    margin-bottom: .35rem;
    padding: .22rem .55rem;
    border-radius: 999px;
    background: #f2c230;
    color: #062e63;
    font-size: .67rem;
    font-weight: 850;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
}

.classroom-gallery {
    display: grid;
    grid-template-columns: minmax(220px, .62fr) minmax(0, 1.38fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
    margin-top: clamp(2.25rem, 5vw, 4rem);
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(13, 79, 139, .16);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff 0%, #f1f8fd 100%);
    box-shadow: var(--shadow-soft);
}

.classroom-gallery__heading h3 {
    margin: .45rem 0 .75rem;
    color: var(--navy);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.15;
}

.classroom-gallery__heading p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.65;
}

.classroom-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(.75rem, 1.6vw, 1.1rem);
}

.classroom-gallery__item {
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(13, 79, 139, .18);
    border-radius: calc(var(--radius) * .78);
    background: var(--white);
    box-shadow: 0 12px 28px rgba(6, 46, 99, .09);
}

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

.classroom-gallery__item figcaption {
    padding: .75rem .9rem .85rem;
    color: var(--navy);
    font-size: .85rem;
    font-weight: 750;
    line-height: 1.4;
}

@media (max-width: 920px) {
    .infrastructure-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 620px) {
    .infrastructure-grid {
        grid-template-columns: 1fr;
    }

    .infrastructure-card {
        padding: 1.1rem;
    }

    .infrastructure-card__icon {
        width: 3rem;
        height: 3rem;
    }

    .classroom-gallery__grid {
        grid-template-columns: 1fr;
    }
}
.innovation-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
    gap: clamp(34px, 6vw, 80px);
    margin-top: clamp(58px, 8vw, 92px);
    padding: clamp(38px, 6vw, 72px);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--navy), #1f6792);
    color: rgba(255, 255, 255, 0.88);
}

.innovation-panel h2,
.innovation-panel h3,
.innovation-panel .eyebrow {
    color: var(--white);
}

.innovation-panel h2 {
    max-width: 700px;
}

.innovation-panel p {
    max-width: 720px;
}

.innovation-panel .button {
    margin-top: 12px;
    gap: 8px;
}

.innovation-note {
    align-self: stretch;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
}

.innovation-note > span {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 36px;
    place-items: center;
    border-radius: 16px;
    background: var(--sun);
    color: var(--navy);
    font-weight: 900;
}

.innovation-note p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.94rem;
}

.teacher-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.75fr);
    align-items: center;
    gap: clamp(46px, 8vw, 100px);
}

.teacher-feature__media {
    margin: 0;
}

.teacher-feature__photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2.65 / 1;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    background: #e8e2d6;
}

.teacher-feature__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    transform: scale(1.025);
    transform-origin: center bottom;
}

.teacher-feature__media figcaption {
    margin-top: 12px;
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.teacher-feature__copy > p {
    color: var(--ink-soft);
}

.teacher-roster {
    margin-top: 28px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.teacher-roster summary {
    padding: 19px 34px 19px 0;
    color: var(--teal-dark);
    cursor: pointer;
    font-weight: 850;
}

.teacher-roster__notice {
    padding: 14px 16px;
    border-left: 4px solid var(--coral);
    background: var(--cream);
    color: var(--ink-soft);
    font-size: 0.86rem;
}

.teacher-roster ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.teacher-roster li {
    display: grid;
    gap: 2px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.teacher-roster li strong {
    color: var(--navy);
    font-size: 0.84rem;
}

.teacher-roster li span {
    color: var(--ink-soft);
    font-size: 0.75rem;
}

.section--gallery {
    background: var(--cream);
}

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

.gallery-card {
    position: relative;
    min-height: 380px;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--navy);
}

.gallery-card--wide {
    grid-column: 1 / -1;
    min-height: clamp(360px, 48vw, 570px);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 360ms ease;
}

.gallery-card:hover img {
    transform: scale(1.02);
}

.gallery-card::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 40%;
    background: linear-gradient(transparent, rgba(16, 35, 59, 0.8));
    content: "";
}

.gallery-card figcaption {
    position: absolute;
    z-index: 1;
    right: 26px;
    bottom: 22px;
    left: 26px;
    color: var(--white);
    font-size: 0.92rem;
    font-weight: 800;
}

@media (max-width: 1020px) {
    .learning-grid {
        grid-template-columns: 1fr 1fr;
    }

    .learning-card:last-child {
        grid-column: 1 / -1;
    }

    .learning-card--featured {
        transform: none;
    }

    .innovation-panel,
    .teacher-feature {
        grid-template-columns: 1fr;
    }

    .teacher-feature__media {
        max-width: 760px;
    }
}

@media (max-width: 780px) {
    .identity-grid,
    .learning-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .learning-card:last-child,
    .gallery-card--wide {
        grid-column: auto;
    }

    .identity-card {
        min-height: auto;
    }

    .identity-card > span {
        margin-bottom: 30px;
    }

    .innovation-panel {
        padding: 34px 24px;
    }

    .teacher-roster ul {
        grid-template-columns: 1fr;
    }

    .gallery-card,
    .gallery-card--wide {
        min-height: 330px;
    }
}
/* Version 0.5.0: noticias, mapa y privacidad visual */
.gallery-card--pending {
    display: grid;
    background: linear-gradient(145deg, var(--mint), var(--cream));
    color: var(--ink);
}

.gallery-card--pending::after {
    height: 34%;
    background: linear-gradient(transparent, rgba(16, 53, 90, 0.1));
}

.gallery-placeholder {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: inherit;
    align-content: center;
    justify-items: start;
    padding: 40px 40px 86px;
}

.gallery-placeholder span,
.news-card time {
    color: var(--teal-dark);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gallery-placeholder strong {
    max-width: 430px;
    margin-top: 10px;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.7rem);
    line-height: 1.1;
}

.gallery-placeholder small {
    max-width: 450px;
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: 0.84rem;
}

.gallery-card--pending figcaption {
    color: var(--navy);
}

.section--news {
    background: var(--white);
}

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

.news-card {
    display: flex;
    min-height: 350px;
    flex-direction: column;
    padding: clamp(28px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.news-card:nth-child(2) {
    background: var(--cream);
}

.news-card h3 {
    margin-top: 24px;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.news-card p {
    margin-bottom: 30px;
    color: var(--ink-soft);
    font-size: 0.94rem;
}

.news-card > .text-link,
.news-card__links {
    margin-top: auto;
}

.news-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.news-card .text-link {
    font-size: 0.82rem;
}

.news-more {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.contact-map {
    display: grid;
    align-content: start;
    gap: 20px;
}

.contact-map iframe {
    display: block;
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: var(--radius);
    background: var(--cream);
}

.contact-map .button {
    justify-self: start;
}

.section--contact-form {
    padding-top: 0;
}

.contact-form-shell {
    max-width: 820px;
    padding: clamp(34px, 6vw, 64px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.footer-links {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

@media (max-width: 1020px) {
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .news-card:last-child {
        grid-column: 1 / -1;
        min-height: 280px;
    }
}

@media (max-width: 780px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card,
    .news-card:last-child {
        min-height: auto;
        grid-column: auto;
    }

    .contact-map iframe {
        min-height: 320px;
    }
}

@media (max-width: 560px) {
    .gallery-placeholder {
        padding: 30px 26px 78px;
    }

    .contact-map iframe {
        min-height: 280px;
    }
}
/* Version 0.6.0: diferenciadores y escudo institucional */
.hero h1 {
    max-width: 760px;
    font-size: clamp(2.75rem, 5.2vw, 4.45rem);
}

.hero__copy {
    max-width: 820px;
}

.trust-strip__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-strip__grid > div {
    padding-inline: clamp(18px, 2.4vw, 32px);
}

.section--advantages {
    background: var(--paper);
}

.advantages-heading {
    margin-bottom: clamp(40px, 6vw, 64px);
}

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

.advantage-card {
    display: flex;
    min-height: 315px;
    flex-direction: column;
    padding: clamp(28px, 3.2vw, 38px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.advantage-card--featured {
    border-color: var(--navy);
    background: linear-gradient(145deg, var(--navy), var(--teal-dark));
    color: rgba(255, 255, 255, 0.86);
}

.advantage-card__mark {
    display: inline-grid;
    width: 54px;
    height: 54px;
    margin-bottom: 34px;
    place-items: center;
    border-radius: 16px;
    background: var(--mint);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.advantage-card--featured .advantage-card__mark {
    background: var(--sun);
}

.advantage-card h3 {
    max-width: 270px;
    margin-bottom: 18px;
    font-size: clamp(1.38rem, 2vw, 1.8rem);
}

.advantage-card--featured h3 {
    color: var(--white);
}

.advantage-card p {
    margin-top: auto;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.advantage-card--featured p {
    color: rgba(255, 255, 255, 0.82);
}

.education-promise {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: clamp(32px, 6vw, 80px);
    margin-top: clamp(44px, 6vw, 70px);
    padding: clamp(38px, 6vw, 68px);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #1d5b86, #10355a);
    color: rgba(255, 255, 255, 0.86);
}

.education-promise .eyebrow,
.education-promise h3 {
    color: var(--white);
}

.education-promise h3 {
    max-width: 720px;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 3rem);
}

.education-promise p {
    max-width: 760px;
    margin-bottom: 0;
}

.education-promise .button {
    white-space: nowrap;
}

.site-footer__logo {
    width: 76px;
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
}

.site-footer__brand {
    align-items: center;
    gap: 16px;
}

.site-footer__brand span {
    max-width: 190px;
    line-height: 1.35;
}

@media (max-width: 1020px) {
    .trust-strip__grid,
    .advantages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-strip__grid > div:nth-child(2) {
        border-right: 0;
    }

    .trust-strip__grid > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .education-promise {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .education-promise .button {
        justify-self: start;
    }
}

@media (max-width: 780px) {
    .trust-strip__grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .trust-strip__grid > div,
    .trust-strip__grid > div:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .trust-strip__grid > div:last-child {
        border-bottom: 0;
    }

    .advantage-card {
        min-height: 270px;
    }
}

@media (max-width: 560px) {
    .hero h1 {
        font-size: clamp(2.25rem, 11.2vw, 3.05rem);
    }

    .hero__lead {
        font-size: 1.02rem;
    }

    .advantage-card {
        min-height: auto;
    }

    .education-promise {
        padding: 34px 24px;
    }

    .education-promise .button {
        width: 100%;
        white-space: normal;
    }

    .site-footer__logo {
        width: 68px;
    }
}
/* Version 0.7.0: jerarquía tipográfica y accesos destacados */
h1 {
    max-width: none;
    font-size: clamp(2.25rem, 3.75vw, 3.15rem);
}

h2 {
    font-size: clamp(1.7rem, 3.2vw, 3rem);
}

h3 {
    font-size: 1rem;
    line-height: 1.22;
}

.hero__copy {
    max-width: none;
}

.hero h1 {
    width: min(90%, 1040px);
    max-width: none;
    margin-bottom: 22px;
    font-size: clamp(2.3rem, 3.75vw, 3.12rem);
    line-height: 1.06;
}

.hero__lead {
    max-width: 760px;
}

.hero__actions {
    gap: 10px;
    max-width: 1080px;
}

.button--feature {
    min-height: 46px;
    padding: 10px 18px;
    border-color: var(--line);
    background: var(--white);
    box-shadow: 0 8px 20px rgba(16, 53, 90, 0.08);
    color: var(--navy);
    font-size: 0.88rem;
}

.button--feature:hover {
    border-color: var(--teal);
    background: var(--mint);
    color: var(--navy);
}

#furgon-escolar,
#salas-climatizadas,
#ingles-interactivo,
#actividad-deportiva {
    scroll-margin-top: 130px;
}

.level-list h3 {
    font-size: 1.5rem;
}

.entry__header h1 {
    font-size: clamp(2.05rem, 4.2vw, 3.75rem);
}

.entry__content h2 {
    font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.identity-card h3 {
    font-size: clamp(1.5rem, 2.6vw, 2.35rem);
}

.media-placeholder strong {
    font-size: clamp(1.12rem, 1.5vw, 1.5rem);
}

.gallery-placeholder strong {
    font-size: clamp(1.2rem, 2.25vw, 2rem);
}

.news-card h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
}

.advantage-card h3 {
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

.education-promise h3 {
    font-size: clamp(1.45rem, 2.6vw, 2.25rem);
}

@media (max-width: 780px) {
    .hero h1 {
        width: 100%;
        font-size: clamp(2rem, 8vw, 2.65rem);
    }
}

@media (max-width: 560px) {
    h1 {
        font-size: clamp(1.9rem, 8.4vw, 2.45rem);
    }

    h2 {
        font-size: clamp(1.55rem, 7.2vw, 2.1rem);
    }

    .hero h1 {
        font-size: clamp(1.85rem, 8.2vw, 2.35rem);
    }

    .hero__actions,
    .hero__actions .button {
        width: 100%;
    }
}
/* Version 0.7.1: retiro completo del texto superior solicitado */
.site-header__utility-inner {
    justify-content: flex-end;
}
/* Version 0.7.2: titular principal en dos líneas también en móvil */
@media (max-width: 560px) {
    .hero h1 {
        font-size: clamp(1.4rem, 6.8vw, 1.72rem);
        line-height: 1.08;
    }
}
/* Version 0.8.0: efemérides y actividades escolares */
.section--activities {
    background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
}

#actividades-escolares,
#tipos-de-actividades {
    scroll-margin-top: 130px;
}

.activities-heading {
    margin-bottom: clamp(42px, 6vw, 68px);
}

.activity-featured {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: clamp(36px, 6vw, 82px);
    padding: clamp(26px, 4vw, 52px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
}

.activity-poster {
    width: min(100%, 430px);
    margin: 0;
    justify-self: center;
    padding: 10px;
    border-radius: 28px;
    background: var(--navy);
    box-shadow: 0 20px 48px rgba(16, 53, 90, 0.18);
}

.activity-poster img {
    width: 100%;
    border-radius: 20px 20px 14px 14px;
}

.activity-poster figcaption {
    padding: 12px 10px 5px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

.activity-featured__content h3 {
    max-width: 700px;
    margin: 24px 0 18px;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.7vw, 2.3rem);
}

.activity-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.activity-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--mint);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
}

.activity-badge--status {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

.activity-featured__summary {
    max-width: 700px;
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.activity-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 28px 0;
}

.activity-meta p {
    min-width: 0;
    margin: 0;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--cream);
}

.activity-meta span {
    display: block;
    margin-bottom: 5px;
    color: var(--teal-dark);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.activity-meta time,
.activity-meta strong {
    display: block;
    color: var(--navy);
    font-size: 0.86rem;
    line-height: 1.35;
}

.activity-program {
    padding: 22px 24px;
    border-left: 4px solid var(--coral);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--paper);
}

.activity-program > strong {
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.12rem;
}

.activity-program ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 22px;
    margin: 14px 0 0;
    padding-left: 20px;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.activity-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 24px;
    margin-top: 30px;
}

.activity-types {
    margin-top: clamp(62px, 8vw, 96px);
}

.activity-types__heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.activity-types__heading h3 {
    margin-bottom: 0;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.6vw, 2.2rem);
}

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

.activity-type-card {
    display: flex;
    min-height: 280px;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
}

.activity-type-card__mark {
    display: inline-grid;
    width: 46px;
    height: 46px;
    margin-bottom: 30px;
    place-items: center;
    border-radius: 14px;
    background: var(--mint);
    color: var(--navy);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.activity-type-card h3 {
    margin-bottom: 12px;
    color: var(--navy);
    font-size: 1rem;
}

.activity-type-card p {
    margin-bottom: 24px;
    color: var(--ink-soft);
    font-size: 0.86rem;
}

.activity-type-card small {
    margin-top: auto;
    color: var(--teal-dark);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.activity-update-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    margin-top: 26px;
    padding: 28px 32px;
    border-radius: var(--radius);
    background: var(--mint);
}

.activity-update-note strong {
    display: block;
    margin-bottom: 4px;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.activity-update-note p {
    max-width: 780px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.activity-update-note .button {
    white-space: nowrap;
}

@media (max-width: 1020px) {
    .activity-featured {
        grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
        gap: 34px;
    }

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

    .activity-type-card {
        min-height: 240px;
    }
}

@media (max-width: 780px) {
    .activity-featured {
        grid-template-columns: 1fr;
    }

    .activity-poster {
        width: min(100%, 460px);
    }

    .activity-program ul {
        grid-template-columns: 1fr;
    }

    .activity-update-note {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .activity-update-note .button {
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .activity-featured {
        padding: 18px;
        border-radius: 24px;
    }

    .activity-featured__content {
        padding: 8px 4px 10px;
    }

    .activity-meta,
    .activity-types__grid {
        grid-template-columns: 1fr;
    }

    .activity-actions,
    .activity-actions .button,
    .activity-update-note .button {
        width: 100%;
    }

    .activity-type-card {
        min-height: auto;
    }

    .activity-update-note {
        padding: 26px 22px;
    }
}

/* Version 0.9.0: portada compacta, agenda prioritaria y navegación desplegable */
:root {
    --sun: #f2c300;
    --sun-soft: #fff7c7;
    --sun-deep: #bd9300;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.modal-open {
    overflow: hidden;
}

.priority-ribbon {
    background: var(--sun);
    color: var(--navy);
}

.priority-ribbon__inner {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    overflow: hidden;
}

.priority-ribbon__inner a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 6px 15px;
    border-right: 1px solid rgba(16, 53, 90, 0.18);
    color: var(--navy);
    font-size: 0.69rem;
    font-weight: 850;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
}

.priority-ribbon__inner a:first-child {
    border-left: 1px solid rgba(16, 53, 90, 0.18);
}

.priority-ribbon__inner a:hover {
    background: rgba(255, 255, 255, 0.36);
    color: var(--navy);
}

.priority-ribbon__primary {
    margin-right: auto;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.priority-ribbon__primary span {
    color: #b73329;
    font-size: 0.62rem;
}

.site-nav {
    gap: 18px;
}

.site-nav__list {
    gap: clamp(14px, 1.4vw, 22px);
}

.site-nav__list > li {
    position: relative;
    display: flex;
    align-items: center;
}

.submenu-toggle {
    display: inline-grid;
    width: 25px;
    height: 32px;
    margin-left: 2px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
}

.submenu-toggle > span:last-child {
    display: block;
    font-size: 1rem;
    line-height: 1;
    transition: transform 180ms ease;
}

.menu-item-has-children.submenu-open > .submenu-toggle > span:last-child,
.menu-item-has-children:focus-within > .submenu-toggle > span:last-child {
    transform: rotate(180deg);
}

.site-nav__submenu {
    position: absolute;
    z-index: 120;
    top: calc(100% + 18px);
    left: -18px;
    width: 250px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 20px 42px rgba(16, 53, 90, 0.16);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}

.site-nav__submenu::before {
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 20px;
    content: "";
}

.menu-item-has-children:hover > .site-nav__submenu,
.menu-item-has-children:focus-within > .site-nav__submenu,
.menu-item-has-children.submenu-open > .site-nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.site-nav__submenu li {
    display: block;
}

.site-nav__submenu a {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--ink);
    font-size: 0.8rem;
    line-height: 1.35;
    white-space: normal;
}

.site-nav__submenu a:hover {
    background: var(--sun-soft);
    color: var(--navy);
}

.site-nav__submenu a::after {
    display: none;
}

.hero {
    isolation: isolate;
    padding-block: clamp(58px, 7vw, 90px) clamp(62px, 8vw, 104px);
    background: var(--paper);
}

.hero::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image: url("../images/escuela/fachada-escuela-mural-2026.jpg");
    background-position: center 35%;
    background-size: cover;
    content: "";
    opacity: 0.24;
    filter: saturate(0.82) contrast(0.96);
}

.hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(248, 251, 253, 0.98) 0%, rgba(248, 251, 253, 0.91) 47%, rgba(248, 251, 253, 0.32) 78%, rgba(248, 251, 253, 0.18) 100%);
    content: "";
}

.hero__copy {
    max-width: 880px;
}

.hero__lead {
    color: #28465f;
}

.hero__actions .button:first-child {
    border-color: var(--sun);
    background: var(--sun);
    color: var(--navy);
}

.hero__actions .button:first-child:hover {
    border-color: var(--sun-deep);
    background: #ffdc3d;
    color: var(--navy);
}

.section--overview {
    padding-block: clamp(58px, 7vw, 88px);
    background: var(--white);
}

#agenda-escolar,
#identidad,
#infraestructura,
#equipo,
#vida-escolar,
#actividades-escolares,
#noticias,
#por-que-elegirnos {
    scroll-margin-top: 150px;
}

.overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.72fr);
    align-items: start;
    gap: clamp(36px, 6vw, 76px);
}

.overview-copy > p {
    max-width: 720px;
    color: var(--ink-soft);
}

.overview-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
}

.overview-links a {
    display: grid;
    gap: 3px;
    min-height: 78px;
    align-content: center;
    padding: 15px 18px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--sun);
    border-radius: 12px;
    background: var(--paper);
    color: var(--navy);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.overview-links a:hover {
    border-color: var(--sun-deep);
    background: var(--sun-soft);
    color: var(--navy);
    transform: translateY(-2px);
}

.overview-links strong {
    font-size: 0.86rem;
}

.overview-links span {
    color: var(--ink-soft);
    font-size: 0.72rem;
}

.agenda-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
}

.agenda-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: var(--navy);
    color: var(--white);
}

.agenda-card__header span {
    color: var(--sun);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.agenda-card__header strong {
    font-size: 0.86rem;
}

.agenda-card__periods {
    padding: 8px 22px 4px;
}

.agenda-card__periods > div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.agenda-card__periods > div:last-child {
    border-bottom: 0;
}

.agenda-card__periods span {
    color: var(--teal-dark);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.agenda-card__periods p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.78rem;
    line-height: 1.4;
}

.agenda-card__featured {
    margin-inline: -10px;
    padding-inline: 10px !important;
    border-radius: 10px;
    background: var(--sun-soft);
}

.agenda-card > .text-link {
    margin: 4px 22px 22px;
    font-size: 0.78rem;
}

.faith-commitment {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin-top: 34px;
    padding: 18px 24px;
    border: 1px solid #ead46e;
    border-radius: 16px;
    background: var(--sun-soft);
}

.faith-commitment > span,
.faith-commitment cite {
    color: var(--navy);
    font-size: 0.69rem;
    font-style: normal;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.faith-commitment blockquote {
    margin: 0;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.35;
    text-align: center;
}

.home-section-group {
    border: 0;
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.home-section-group + .home-section-group {
    margin-top: 0;
}

.home-section-group > summary {
    display: flex;
    width: min(calc(100% - 40px), var(--container));
    min-height: 96px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-inline: auto;
    padding: 20px 4px;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
}

.home-section-group > summary::-webkit-details-marker {
    display: none;
}

.home-section-group > summary > span:first-child {
    display: grid;
    gap: 3px;
}

.home-section-group > summary strong {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.home-section-group > summary small {
    color: var(--ink-soft);
    font-size: 0.76rem;
}

.home-section-group > summary > span:last-child {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--sun);
    color: var(--navy);
    font-size: 1.35rem;
    font-weight: 700;
    transition: transform 180ms ease;
}

.home-section-group[open] > summary {
    border-bottom: 1px solid var(--line);
}

.home-section-group[open] > summary > span:last-child {
    transform: rotate(45deg);
}

.home-section-group[open] > .section {
    animation: aoy-disclosure-in 220ms ease-out;
}

.home-section-group--faq {
    background: var(--mint);
}

@keyframes aoy-disclosure-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.activity-modal[hidden] {
    display: none;
}

.activity-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
    opacity: 0;
    transition: opacity 180ms ease;
}

.activity-modal[data-visible="true"] {
    opacity: 1;
}

.activity-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(7, 25, 43, 0.76);
    cursor: default;
}

.activity-modal__dialog {
    position: relative;
    display: grid;
    width: min(900px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    max-height: min(720px, calc(100dvh - 48px));
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 26px;
    background: var(--white);
    box-shadow: 0 28px 90px rgba(7, 25, 43, 0.36);
    transform: translateY(14px) scale(0.985);
    transition: transform 180ms ease;
}

.activity-modal[data-visible="true"] .activity-modal__dialog {
    transform: translateY(0) scale(1);
}

.activity-modal__close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--sun);
    color: var(--navy);
    cursor: pointer;
    font-size: 1.7rem;
    line-height: 1;
}

.activity-modal__media {
    min-height: 500px;
    background: var(--navy);
}

.activity-modal__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.activity-modal__content {
    align-self: center;
    padding: clamp(42px, 6vw, 72px);
}

.activity-modal__content h2 {
    margin: 20px 0 16px;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.activity-modal__content > p {
    color: var(--ink-soft);
}

.activity-modal__when {
    display: grid;
    gap: 3px;
    margin: 24px 0 0;
    padding: 16px 18px;
    border-left: 5px solid var(--sun);
    border-radius: 10px;
    background: var(--sun-soft);
}

.activity-modal__when strong,
.activity-modal__when span {
    color: var(--navy);
}

.activity-modal__when span {
    font-size: 0.82rem;
}

.activity-modal__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

.text-button {
    padding: 10px 4px;
    border: 0;
    background: transparent;
    color: var(--teal-dark);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.activity-badge--status,
.advantage-card--featured .advantage-card__mark,
.innovation-note > span,
.steps-grid li > span {
    background: var(--sun);
    color: var(--navy);
}

@media (max-width: 1020px) {
    .site-nav {
        top: 126px;
        height: calc(100vh - 126px);
        height: calc(100dvh - 126px);
    }

    .site-nav__list > li {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
    }

    .site-nav__list > li > a {
        grid-column: 1;
    }

    .submenu-toggle {
        width: 44px;
        height: 50px;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .site-nav__submenu {
        position: static;
        display: none;
        width: auto;
        grid-column: 1 / -1;
        margin: 0 0 12px 12px;
        padding: 4px 0 6px 14px;
        border: 0;
        border-left: 3px solid var(--sun);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .menu-item-has-children.submenu-open > .site-nav__submenu {
        display: block;
    }

    .site-nav__submenu li {
        border-bottom: 0;
    }

    .site-nav__submenu a {
        padding: 10px 12px;
        font-size: 0.87rem;
    }
}

@media (max-width: 780px) {
    .priority-ribbon__inner {
        display: grid;
        min-height: 60px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-inline: 0;
    }

    .priority-ribbon__inner a {
        min-height: 30px;
        justify-content: center;
        padding: 4px 7px;
        border-right: 1px solid rgba(16, 53, 90, 0.18);
        border-bottom: 1px solid rgba(16, 53, 90, 0.18);
        font-size: 0.62rem;
        text-align: center;
    }

    .priority-ribbon__inner a:nth-child(3),
    .priority-ribbon__inner a:nth-child(4) {
        border-bottom: 0;
    }

    .priority-ribbon__inner a:nth-child(5) {
        display: none;
    }

    .priority-ribbon__primary {
        margin-right: 0;
    }

    .site-nav {
        top: 130px;
        height: calc(100vh - 130px);
        height: calc(100dvh - 130px);
    }

    .hero {
        padding-top: 42px;
    }

    .hero::before {
        background-position: 60% center;
        opacity: 0.18;
    }

    .hero::after {
        background: linear-gradient(180deg, rgba(248, 251, 253, 0.96) 0%, rgba(248, 251, 253, 0.86) 70%, rgba(248, 251, 253, 0.72) 100%);
    }

    .trust-strip__grid {
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(230px, 78vw);
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline mandatory;
    }

    .trust-strip__grid > div,
    .trust-strip__grid > div:nth-child(2) {
        min-height: 82px;
        border-right: 1px solid var(--line);
        border-bottom: 0;
        scroll-snap-align: start;
    }

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

    .faith-commitment {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: left;
    }

    .faith-commitment blockquote {
        text-align: left;
    }

    .activity-modal__dialog {
        grid-template-columns: minmax(150px, 0.65fr) minmax(0, 1.35fr);
    }

    .activity-modal__media {
        min-height: 440px;
    }

    .activity-modal__content {
        padding: 42px 34px;
    }
}

@media (max-width: 560px) {
    .site-brand__text strong {
        font-size: 0.86rem;
    }

    .hero {
        padding-bottom: 52px;
    }

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

    .hero__actions .button {
        width: auto;
        min-height: 44px;
        padding: 9px 10px;
        font-size: 0.75rem;
    }

    .hero__actions .button:first-child {
        grid-column: 1 / -1;
    }

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

    .agenda-card__periods > div {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .home-section-group > summary {
        width: min(calc(100% - 28px), var(--container));
        min-height: 78px;
        padding-block: 14px;
    }

    .home-section-group > summary strong {
        font-size: 1.12rem;
    }

    .home-section-group > summary small {
        font-size: 0.68rem;
    }

    .activity-modal {
        padding: 12px;
        align-items: end;
    }

    .activity-modal__dialog {
        width: 100%;
        max-height: calc(100dvh - 24px);
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .activity-modal__media {
        min-height: 0;
        max-height: 34vh;
    }

    .activity-modal__media img {
        aspect-ratio: 16 / 8;
        object-position: center 16%;
    }

    .activity-modal__content {
        padding: 28px 22px 26px;
    }

    .activity-modal__content h2 {
        margin-top: 14px;
        font-size: 1.45rem;
    }

    .activity-modal__content > p {
        font-size: 0.86rem;
    }

    .activity-modal__when {
        margin-top: 16px;
        padding: 12px 14px;
    }

    .activity-modal__actions {
        display: grid;
        margin-top: 20px;
    }

    .activity-modal__actions .button,
    .activity-modal__actions .text-button {
        width: 100%;
    }
}

/* Version 1.0.0: portada reciente e historial mensual de actividades */
.activity-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.activity-recent-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.activity-recent-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--navy);
}

.activity-recent-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 32%;
    transition: transform 220ms ease;
}

.activity-recent-card__media:hover img,
.activity-recent-card__media:focus-visible img {
    transform: scale(1.025);
}

.activity-recent-card__body {
    padding: 24px;
}

.activity-recent-card__body h3 {
    margin: 18px 0 8px;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: clamp(1.12rem, 1.8vw, 1.42rem);
    line-height: 1.18;
}

.activity-recent-card__body time {
    display: block;
    color: var(--teal-dark);
    font-size: 0.76rem;
    font-weight: 850;
}

.activity-recent-card__body p {
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.activity-archive-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
    margin-top: 28px;
    padding: 26px 30px;
    border: 1px solid #ead46e;
    border-radius: var(--radius);
    background: var(--sun-soft);
}

.activity-archive-cta strong {
    display: block;
    margin-bottom: 4px;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.18rem;
}

.activity-archive-cta p { margin: 0; color: var(--ink-soft); font-size: 0.86rem; }

.activity-archive-hero {
    padding: clamp(50px, 6vw, 76px) 0 clamp(42px, 5vw, 62px);
    background: linear-gradient(135deg, var(--navy), #174d78);
    color: var(--white);
}

.activity-archive-hero h1 {
    max-width: 30ch;
    margin: 12px 0 18px;
    color: var(--white);
    font-size: clamp(1.75rem, 3.1vw, 2.9rem);
    line-height: 1.08;
    text-shadow: none;
}

.activity-archive-hero p { max-width: 760px; margin: 0; color: rgba(255,255,255,.84); font-size: 1.02rem; }
.activity-archive-hero .eyebrow { color: var(--sun); }
.activity-upcoming-section { padding-bottom: 74px; }
.activity-history-section { background: var(--paper); }

.activity-history-layout {
    display: grid;
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(34px, 6vw, 76px);
}

.activity-month-nav {
    position: sticky;
    top: 138px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.activity-month-nav h2 { margin: 8px 0 18px; font-size: 1.35rem; }
.activity-month-nav nav { display: grid; gap: 6px; }
.activity-month-nav nav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border-radius: 10px; color: var(--navy); font-size: .8rem; font-weight: 800; }
.activity-month-nav nav a:hover,
.activity-month-nav nav a:focus-visible { background: var(--sun-soft); }
.activity-month-nav nav small { display: grid; min-width: 25px; height: 25px; place-items: center; border-radius: 999px; background: var(--mint); font-size: .66rem; }
.activity-month-nav > p { margin: 20px 0 0; color: var(--ink-soft); font-size: .72rem; line-height: 1.55; }

.activity-history-groups { min-width: 0; }
.activity-month-group { scroll-margin-top: 136px; padding-bottom: 64px; }
.activity-month-group:last-child { padding-bottom: 0; }
.activity-month-group > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--navy); }
.activity-month-group > header span { color: var(--teal-dark); font-size: .67rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.activity-month-group > header h2 { margin: 3px 0 0; font-size: clamp(1.45rem, 2.4vw, 2rem); }
.activity-month-group > header > strong { color: var(--teal-dark); font-size: .72rem; }

.activity-history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.activity-history-card { display: flex; min-width: 0; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.activity-history-card time { color: var(--teal-dark); font-size: .69rem; font-weight: 850; text-transform: uppercase; }
.activity-history-card h3 { margin: 10px 0 9px; color: var(--navy); font-size: 1rem; line-height: 1.25; }
.activity-history-card p { display: -webkit-box; overflow: hidden; color: var(--ink-soft); font-size: .8rem; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.activity-history-card .text-link { margin-top: auto; font-size: .74rem; }
.activity-history-card--feature { grid-column: 1 / -1; }
.activity-history-card--feature > p { display: block; overflow: visible; }
.activity-history-card__sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 22px; }
.activity-history-card__sections section { padding: 18px; border: 1px solid #d6e4ee; border-radius: 14px; background: #f5f9fc; }
.activity-history-card__sections h4 { margin: 0 0 8px; color: var(--navy); font-size: .95rem; }
.activity-history-card__sections p { display: block; overflow: visible; margin: 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.6; }
.activity-history-card__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 0 0 22px; }
.activity-history-card__group { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #d6e4ee; border-radius: 14px; background: #f8fbfd; }
.activity-history-card__group > img { display: block; width: 100%; height: 190px; object-fit: contain; background: #e9f0f6; }
.activity-history-card__group > div { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
.activity-history-card__group strong { color: var(--navy); font-size: .83rem; }
.activity-history-card__group .activity-gallery-open { margin-top: auto; }
@media (max-width: 650px) {
    .activity-history-card__sections { grid-template-columns: 1fr; }
    .activity-history-card__groups { grid-template-columns: 1fr; }
    .activity-history-card__group > img { height: auto; max-height: 45dvh; }
}

@media (max-width: 900px) {
    .activity-recent-grid { grid-template-columns: 1fr; }
    .activity-recent-card { display: grid; grid-template-columns: minmax(180px, .72fr) minmax(0, 1.28fr); }
    .activity-recent-card__media { height: 100%; aspect-ratio: auto; }
    .activity-history-layout { grid-template-columns: 1fr; }
    .activity-month-nav { position: static; }
    .activity-month-nav nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .activity-recent-card { display: block; }
    .activity-recent-card__media { aspect-ratio: 4 / 3; }
    .activity-archive-cta { grid-template-columns: 1fr; padding: 24px 22px; }
    .activity-archive-cta .button { width: 100%; }
    .activity-month-nav nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .activity-history-grid { grid-template-columns: 1fr; }
    .activity-month-group > header { align-items: start; flex-direction: column; gap: 6px; }
}

/* Formulario general: identidad visual distinta del formulario de admisión. */
.section--contact-inquiries {
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 65%, #246f9e 100%);
}

.contact-inquiry-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(360px, 0.9fr);
    align-items: start;
    gap: clamp(38px, 7vw, 90px);
}

.contact-inquiry-copy {
    padding-top: 24px;
    color: var(--white);
}

.contact-inquiry-copy h2,
.contact-inquiry-copy .eyebrow {
    color: var(--white);
}

.contact-inquiry-copy > p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
}

.contact-inquiry-note {
    display: grid;
    gap: 5px;
    margin: 32px 0 24px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-left: 6px solid var(--sun);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.09);
}

.contact-inquiry-note strong,
.contact-inquiry-note span {
    color: var(--white);
}

.contact-inquiry-note span {
    overflow-wrap: anywhere;
    font-weight: 800;
}

.contact-inquiry-note small,
.contact-inquiry-safety {
    color: rgba(255, 255, 255, 0.76) !important;
}

.general-contact-form-shell {
    position: relative;
    padding: clamp(26px, 4vw, 42px);
    border-top: 7px solid var(--sun);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 28px 70px rgba(4, 25, 48, 0.28);
}

.general-contact-form-shell > p {
    color: var(--ink-soft);
}

.general-contact-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.general-contact-form .form-field label,
.general-contact-form__consent label {
    color: var(--navy);
    font-weight: 750;
}

.general-contact-form input:not([type="checkbox"]),
.general-contact-form select,
.general-contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    color: var(--ink);
}

.general-contact-form input:not([type="checkbox"]),
.general-contact-form select {
    min-height: 48px;
    padding: 10px 12px;
}

.general-contact-form textarea {
    min-height: 150px;
    padding: 12px;
    resize: vertical;
}

.general-contact-form input:focus,
.general-contact-form select:focus,
.general-contact-form textarea:focus {
    border-color: var(--teal);
    outline: 3px solid rgba(47, 111, 159, 0.18);
    outline-offset: 1px;
}

.general-contact-form__consent {
    display: grid;
    width: 100%;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    font-size: 0.9rem;
    line-height: 1.5;
}

.general-contact-form__consent input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.button--contact {
    background: var(--sun);
    color: var(--navy);
}

.button--contact:hover,
.button--contact:focus-visible {
    background: #ffd889;
    color: var(--navy);
}

@media (max-width: 860px) {
    .contact-inquiry-grid {
        grid-template-columns: 1fr;
    }

    .contact-inquiry-copy {
        padding-top: 0;
    }
}


/* Proyecto Educativo: historia, identidad y pilares. */
.project-education-hero {
    background: linear-gradient(125deg, #eaf7ff 0%, #f7fbff 60%, #fff5c7 100%);
    border-bottom: 1px solid rgba(20, 63, 104, .12);
}
.project-education-hero__inner,
.project-history-grid,
.project-documents__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, .75fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
}
.project-education-hero h1 { max-width: 19ch; }
.project-education-hero__card {
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(145deg, #103f68, #0d7590);
    border: 3px solid #f4c515;
}
.project-education-hero__card strong { display:block; color:#ffe27a; font-size:clamp(1.7rem,4vw,2.8rem); }
.project-education-hero__card span { display:block; margin-top:.45rem; line-height:1.55; }
.project-history-grid { align-items:start; }
.project-history-grid p { max-width: 72ch; }
.project-timeline { list-style:none; margin:0; padding:0; display:grid; gap:.8rem; }
.project-timeline li { display:grid; grid-template-columns:72px 1fr; gap:1rem; padding:1rem; border-radius:16px; background:#f4faff; border-left:4px solid #f4c515; }
.project-timeline strong { color:#0b6f92; font-size:1.15rem; }
.project-purpose-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.project-purpose-grid article { padding:clamp(1.25rem,3vw,2rem); border-radius:22px; background:#fff; border:1px solid rgba(20,63,104,.14); }
.project-purpose-grid article:first-child { border-top:5px solid #f4c515; }
.project-purpose-grid article:last-child { border-top:5px solid #30a9d6; }
.project-purpose-grid article > span { color:#0b6f92; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.project-purpose-grid h2 { font-size:clamp(1.45rem,2.6vw,2.05rem); }
.project-pillars { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.project-pillars article { padding:1.35rem; border-radius:20px; background:#fff; border:1px solid rgba(20,63,104,.14); box-shadow:0 12px 28px rgba(10,54,90,.07); }
.project-pillars article > strong { display:inline-grid; place-items:center; min-width:3rem; height:3rem; padding:0 .6rem; border-radius:999px; color:#123f68; background:#ffe27a; }
.project-pillars h3 { margin:.9rem 0 .35rem; }
.project-pillars p { margin:0; }
.project-learning-feature__media {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(20, 63, 104, .14);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(10, 54, 90, .12);
}
.project-learning-feature__media img {
    display: block;
    width: 100%;
    height: auto;
}
.project-learning-feature__body h2 { margin-top: .45rem; }
.project-learning-feature__body p { max-width: 66ch; }
.project-documents { color:#fff; background:#103f68; }
.project-documents h2,.project-documents p { color:#fff; }
.project-documents .eyebrow { color:#ffe27a; }
.project-documents__actions { display:flex; flex-direction:column; align-items:flex-start; gap:1rem; }
.project-documents .text-link { color:#fff; }
@media (max-width: 860px) {
    .project-education-hero__inner,.project-history-grid,.project-documents__inner,.project-purpose-grid { grid-template-columns:1fr; }
    .project-pillars { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
    .project-pillars { grid-template-columns:1fr; }
    .project-timeline li { grid-template-columns:62px 1fr; }
}


/* 1.0.5: iconografía, Nuestra Escuela y Contacto unificado */
.aoy-icon {
    display: block;
    width: 1.35em;
    height: 1.35em;
    flex: 0 0 auto;
}

.button .aoy-icon {
    width: 1.15rem;
    height: 1.15rem;
}

.hero__actions .button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.trust-strip__icon {
    display: grid !important;
    place-items: center;
    width: 2.55rem;
    min-width: 2.55rem;
    height: 2.55rem;
    border-radius: 50%;
    color: #062e63;
    background: #ffd64d;
    font-size: .88rem;
    font-weight: 800;
}

.trust-strip__icon .aoy-icon {
    width: 1.45rem;
    height: 1.45rem;
}

.advantage-card__mark .aoy-icon {
    width: 2rem;
    height: 2rem;
}

.school-story {
    padding: clamp(2rem, 5vw, 4.5rem) 0;
    background:
        radial-gradient(circle at 100% 0, rgba(84, 185, 232, .2), transparent 31rem),
        linear-gradient(180deg, #f6fbff 0, #fff 58%);
}

.school-story__grid {
    display: grid;
    grid-template-columns: minmax(17rem, .78fr) minmax(0, 1.22fr);
    gap: clamp(2rem, 5vw, 4.8rem);
    align-items: start;
}

.school-story__visual {
    position: sticky;
    top: 7.5rem;
    overflow: hidden;
    border: 1px solid #beddf1;
    border-radius: 1.35rem;
    background: #fff;
    box-shadow: 0 1.25rem 3.5rem rgba(8, 55, 101, .12);
}

.school-story__visual > img {
    display: block;
    width: 100%;
    min-height: 23rem;
    object-fit: cover;
}

.school-story__visual-note {
    display: flex;
    gap: .8rem;
    align-items: center;
    padding: 1.15rem;
    color: #fff;
    background: #073d73;
    font-weight: 700;
    line-height: 1.45;
}

.school-story__visual-note .aoy-icon {
    color: #ffd64d;
    width: 2rem;
    height: 2rem;
}

.school-story__content h1 {
    max-width: 19ch;
    margin: .55rem 0 1.4rem;
    color: #082f60;
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    line-height: 1.04;
    text-shadow: none;
}

.school-story__content > p {
    color: #28455f;
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    line-height: 1.8;
}

.school-story__closing {
    padding: 1.15rem 1.3rem;
    border-left: .3rem solid #f4bd19;
    border-radius: 0 .8rem .8rem 0;
    color: #072d59 !important;
    background: #fff7d8;
}

.school-feedback {
    margin-top: 2rem;
    padding: 1.2rem;
    border: 1px solid #c6dfef;
    border-radius: 1rem;
    background: #f4faff;
}

.school-feedback.is-loading {
    opacity: .7;
    pointer-events: none;
}

.school-feedback__views,
.school-feedback__question,
.school-feedback__actions {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.school-feedback__views {
    color: #31526f;
    font-size: .92rem;
}

.school-feedback__views > span:first-child {
    color: #1487c9;
}

.school-feedback__question {
    justify-content: space-between;
    margin-top: .85rem;
    color: #082f60;
    font-weight: 750;
}

.school-feedback__actions {
    flex-wrap: wrap;
}

.school-feedback__actions button {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    min-height: 2.7rem;
    padding: .55rem .8rem;
    border: 1px solid #8fc4e6;
    border-radius: 999px;
    color: #083968;
    background: #fff;
    font: inherit;
    font-size: .88rem;
    font-weight: 750;
    cursor: pointer;
}

.school-feedback__actions button:hover,
.school-feedback__actions button:focus-visible,
.school-feedback__actions button[aria-pressed="true"] {
    border-color: #f1bd20;
    color: #062d5c;
    background: #fff1b6;
}

.school-feedback__actions button strong {
    min-width: 1.5rem;
    padding: .1rem .35rem;
    border-radius: 999px;
    color: #fff;
    background: #0a4b82;
    text-align: center;
}

.school-feedback__note {
    margin: .75rem 0 0;
    color: #587087;
    font-size: .78rem;
}

.school-story__community-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.35rem;
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    color: #fff;
    background: #0b518b;
}

.school-story__community-cta .aoy-icon {
    width: 2.1rem;
    height: 2.1rem;
    color: #ffd64d;
}

.school-story__community-cta p {
    margin: 0;
    line-height: 1.55;
}

.school-story__community-cta a {
    color: #ffe16c;
    font-weight: 800;
    text-decoration-thickness: .12em;
    text-underline-offset: .16em;
}

.contact-unified {
    padding: clamp(2rem, 5vw, 4.3rem) 0;
    background:
        radial-gradient(circle at 8% 4%, rgba(255, 216, 77, .2), transparent 23rem),
        linear-gradient(180deg, #eef8ff 0, #fff 35%, #f5faff 100%);
}

.contact-unified__intro .content-shell {
    max-width: 66rem;
    padding-bottom: 2rem;
    text-align: center;
}

.contact-unified__intro h1 {
    margin: .45rem 0 .7rem;
    color: #073668;
    text-shadow: none;
}

.contact-unified__intro .hero__lead {
    max-width: 48rem;
    margin-inline: auto;
    color: #31526f;
}

.contact-unified__details,
.contact-unified__form-area {
    padding: 0;
}

.contact-unified .contact-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid #bcdced;
    border-radius: 1.4rem 1.4rem 0 0;
    background: #fff;
    box-shadow: 0 1.25rem 3.2rem rgba(7, 55, 101, .1);
}

.contact-unified .contact-map iframe {
    border-radius: 1rem;
}

.contact-unified .contact-inquiry-grid {
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid #bcdced;
    border-top: 0;
    border-radius: 0 0 1.4rem 1.4rem;
    background: #eaf6fd;
    box-shadow: 0 1.25rem 3.2rem rgba(7, 55, 101, .1);
}

.contact-unified .general-contact-form-shell {
    border: 1px solid #acd2e9;
    box-shadow: 0 .8rem 2.2rem rgba(7, 55, 101, .08);
}

@media (max-width: 860px) {
    .school-story__grid {
        grid-template-columns: 1fr;
    }

    .school-story__visual {
        position: relative;
        top: auto;
    }

    .school-story__visual > img {
        min-height: 16rem;
        max-height: 24rem;
    }

    .school-feedback__question {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 540px) {
    .school-story__content h1 {
        font-size: 1.85rem;
    }

    .school-feedback__actions {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .school-feedback__actions button {
        justify-content: space-between;
        width: 100%;
    }

    .school-story__community-cta {
        align-items: flex-start;
    }
}


/* 1.0.6: correcciones visuales, equipo institucional y visitas */
.project-pillars-heading {
    display: block;
    max-width: 58rem;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.project-pillars-heading > div {
    max-width: 52rem;
    margin-inline: auto;
}

.project-pillars-heading h2 {
    max-width: 27ch;
    margin: .6rem auto 0;
    text-align: center;
}

.project-pillar__icon .aoy-icon,
.advantage-card__mark .aoy-icon,
.trust-strip__icon .aoy-icon {
    width: 1.8rem;
    height: 1.8rem;
}

.contact-unified .contact-inquiry-copy,
.contact-unified .contact-inquiry-copy h2,
.contact-unified .contact-inquiry-copy .eyebrow,
.contact-unified .contact-inquiry-copy > p,
.contact-unified .contact-inquiry-safety {
    color: #103f68;
}

.contact-unified .contact-inquiry-copy .eyebrow::before {
    background: #188abb;
}

.contact-unified .contact-inquiry-note {
    color: #fff;
    background: linear-gradient(145deg, #0b4d7f, #0b7896);
}

.latest-school-life {
    padding-top: clamp(2.6rem, 5vw, 5rem);
    padding-bottom: clamp(2.8rem, 6vw, 5.5rem);
    background: #fff;
}

.latest-school-life__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.6rem;
}

.latest-school-life__heading h2 {
    max-width: 23ch;
    margin: .55rem 0 0;
    color: #0a3764;
}

.latest-school-life__grid {
    display: grid;
    grid-template-columns: minmax(16rem, .78fr) minmax(0, 1.22fr);
    grid-template-rows: repeat(2, minmax(14rem, 1fr));
    gap: 1rem;
}

.latest-story {
    position: relative;
    min-height: 17rem;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #0a3764;
    box-shadow: 0 1rem 2.4rem rgba(7, 47, 88, .14);
}

.latest-story--tall {
    grid-row: 1 / 3;
}

.latest-story img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.latest-story:hover img {
    transform: scale(1.025);
}

.latest-story::after {
    position: absolute;
    inset: 34% 0 0;
    content: '';
    background: linear-gradient(180deg, transparent, rgba(2, 29, 58, .92));
}

.latest-story > div {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    padding: clamp(1rem, 3vw, 1.6rem);
    color: #fff;
}

.latest-story > div span {
    color: #ffe16c;
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.latest-story h3 {
    max-width: 34ch;
    margin: .35rem 0 0;
    color: #fff;
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    line-height: 1.18;
    text-shadow: none;
}

.section--team {
    background: linear-gradient(180deg, #f3faff, #fff);
}

.team-intro {
    max-width: 56rem;
    margin-bottom: 2rem;
}

.team-intro h2 {
    max-width: 24ch;
    margin: .55rem 0 1rem;
    color: #0a3764;
}

.team-intro p {
    max-width: 68ch;
    color: #35546d;
    font-size: 1.05rem;
    line-height: 1.7;
}

.staff-directory {
    display: grid;
    gap: 2rem;
}

.staff-group {
    padding: clamp(1.1rem, 3vw, 1.8rem);
    border: 1px solid #bedceb;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 .9rem 2.2rem rgba(7, 55, 101, .07);
}

.staff-group__heading {
    display: grid;
    grid-template-columns: minmax(13rem, .7fr) minmax(0, 1.3fr);
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dcebf4;
}

.staff-group__heading > div {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.staff-group__number {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    color: #083764;
    background: #ffdc59;
    font-weight: 850;
}

.staff-group__heading h3,
.staff-group__heading p {
    margin: 0;
}

.staff-group__heading h3 {
    color: #083764;
    font-size: clamp(1.3rem, 2.3vw, 1.8rem);
}

.staff-group__heading p {
    color: #4b657b;
    line-height: 1.55;
}

.person-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .9rem;
}

.person-card {
    overflow: hidden;
    border: 1px solid #d1e4ef;
    border-radius: 1rem;
    background: #f8fcff;
}

.person-card__photo {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #0c4d80, #19a1c5);
}

.person-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.person-card__photo > span {
    display: grid;
    place-items: center;
    width: 4.2rem;
    height: 4.2rem;
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    font-size: 1.35rem;
    font-weight: 850;
}

.person-card__body {
    padding: .9rem;
}

.person-card__body h4 {
    margin: 0;
    color: #0a3764;
    font-size: .98rem;
    line-height: 1.25;
}

.person-card__body p {
    margin: .4rem 0 0;
    color: #4a657b;
    font-size: .83rem;
    line-height: 1.4;
}

.gallery-card__image {
    height: 100%;
    min-height: 18rem;
    overflow: hidden;
}

.gallery-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Version 1.0.10: formato panoramico sin recortar al equipo docente. */
.gallery-card--team .gallery-card__image {
    min-height: inherit;
    background: #0b2a52;
}

.gallery-card--team .gallery-card__image img {
    min-height: inherit;
    object-fit: contain;
    object-position: center;
}

.site-visitor-counter {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .2);
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
}

.site-visitor-counter .aoy-icon {
    width: 2rem;
    height: 2rem;
    color: #ffdc59;
}

.site-visitor-counter strong {
    color: #ffdc59;
    font-size: 1.2rem;
}

.site-visitor-counter small {
    display: block;
    margin-top: .15rem;
    color: rgba(255, 255, 255, .72);
    font-size: .72rem;
}

@media (max-width: 1040px) {
    .person-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
    .latest-school-life__heading { align-items: flex-start; flex-direction: column; gap: .8rem; }
    .latest-school-life__grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .latest-story, .latest-story--tall { grid-row: auto; min-height: 20rem; }
    .latest-story--tall { max-height: 34rem; }
    .staff-group__heading { grid-template-columns: 1fr; gap: .65rem; }
    .person-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .project-pillars-heading { text-align: left; }
    .project-pillars-heading > div, .project-pillars-heading h2 { margin-left: 0; text-align: left; }
    .latest-story, .latest-story--tall { min-height: 17rem; }
    .person-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .person-card__body { padding: .75rem; }
    .site-visitor-counter { align-items: flex-start; }
}


/* Selector nativo reservado para desarrollo; no se renderiza en producción. */
.priority-ribbon__inner {
    justify-content: flex-end;
}

.language-switcher {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    margin-right: auto;
    border-right: 1px solid rgba(16, 53, 90, 0.18);
    border-left: 1px solid rgba(16, 53, 90, 0.18);
}

.language-switcher > span {
    padding: 6px 11px 6px 14px;
    font-size: 0.69rem;
    font-weight: 850;
}

.priority-ribbon__inner .language-switcher__flag {
    min-width: 39px;
    padding: 5px 8px;
    justify-content: center;
    border-right: 0;
    border-left: 1px solid rgba(16, 53, 90, 0.14);
    font-size: 1.05rem;
    line-height: 1;
}

.priority-ribbon__inner > a:first-of-type {
    border-left: 1px solid rgba(16, 53, 90, 0.18);
}

.latest-school-life__heading h2 {
    max-width: 29ch;
}

.latest-school-life__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0.9rem;
    max-width: 980px;
}

.latest-story,
.latest-story--tall {
    display: grid;
    min-height: 0;
    grid-row: auto;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(10, 55, 100, 0.12);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(7, 47, 88, 0.09);
}

.latest-story img {
    width: 100%;
    height: 172px;
    object-fit: cover;
    object-position: center;
}

.latest-story:first-child img {
    object-position: center 28%;
}

.latest-story:hover img {
    transform: none;
}

.latest-story::after {
    display: none;
}

.latest-story > div {
    position: static;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 1.15rem 1.35rem;
    color: var(--ink);
}

.latest-story > div span {
    color: #08779b;
}

.latest-story h3 {
    max-width: 42ch;
    margin: 0.32rem 0 0;
    color: var(--navy);
    font-size: clamp(1.02rem, 1.8vw, 1.35rem);
    line-height: 1.2;
}

.latest-story p {
    max-width: 62ch;
    margin: 0.52rem 0 0;
    color: var(--ink-soft);
    font-size: 0.85rem;
    line-height: 1.55;
}

.admission-popup .activity-modal__backdrop {
    background: rgba(7, 25, 43, 0.74);
    backdrop-filter: blur(2px);
}

.admission-popup__dialog {
    display: block;
    width: min(470px, 100%);
    max-height: calc(100vh - 38px);
    max-height: calc(100dvh - 38px);
    grid-template-columns: none;
    overflow: auto;
    border-radius: 20px;
    background: #fff;
}

.admission-popup__poster {
    display: block;
    background: var(--navy);
}

.admission-popup__poster img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 138px);
    max-height: calc(100dvh - 138px);
    object-fit: contain;
}

.admission-popup__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 18px 16px;
    background: #fff;
}

.admission-popup__actions .button {
    min-height: 44px;
    justify-content: center;
}

.admission-popup__actions .text-button {
    white-space: nowrap;
}

@media (max-width: 680px) {
    .priority-ribbon__inner {
        display: flex;
        width: calc(100% - 16px);
        min-height: 42px;
        padding-inline: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .priority-ribbon__inner::-webkit-scrollbar {
        display: none;
    }

    .language-switcher,
    .priority-ribbon__inner > a {
        flex: 0 0 auto;
    }

    .language-switcher > span {
        padding-left: 10px;
    }

    .priority-ribbon__inner > a {
        display: inline-flex !important;
        width: auto !important;
        min-width: 0;
        padding-inline: 11px;
    }

    .latest-school-life__heading {
        margin-bottom: 1.15rem;
    }

    .latest-story,
    .latest-story--tall {
        min-height: 0;
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .latest-story img {
        height: 146px;
    }

    .latest-story > div {
        padding: 0.8rem 0.9rem;
    }

    .latest-story > div span {
        font-size: 0.64rem;
    }

    .latest-story h3 {
        font-size: 0.93rem;
    }

    .latest-story p {
        display: -webkit-box;
        margin-top: 0.35rem;
        overflow: hidden;
        font-size: 0.72rem;
        line-height: 1.4;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .admission-popup {
        padding: 10px;
        align-items: center;
    }

    .admission-popup__dialog {
        max-height: calc(100dvh - 20px);
        border-radius: 18px;
    }

    .admission-popup__poster img {
        max-height: calc(100dvh - 116px);
    }

    .admission-popup__actions {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 10px 14px 12px;
    }

    .admission-popup__actions .text-button {
        padding-block: 6px;
    }
}


/* Version 1.0.8: avisos programados, noticias ampliables y accesos del hero en una fila. */
.hero__actions {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(19, 77, 128, 0.36) transparent;
    -webkit-overflow-scrolling: touch;
}

.hero__actions .button,
.hero__actions .button:first-child {
    width: auto;
    min-width: max-content;
    min-height: 44px;
    flex: 0 0 auto;
    grid-column: auto;
    padding: 9px 11px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.hero__actions::-webkit-scrollbar { height: 5px; }
.hero__actions::-webkit-scrollbar-track { background: transparent; }
.hero__actions::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(19, 77, 128, 0.36); }

.latest-school-life__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

.latest-story,
.latest-story--tall {
    width: 100%;
    min-height: 0;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    padding: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.latest-story__media {
    display: grid;
    min-height: 172px;
    place-items: center;
    overflow: hidden;
    background: #eef5fa;
}

.latest-story .latest-story__media img,
.latest-story:first-child .latest-story__media img {
    display: block;
    width: 100%;
    height: 172px;
    object-fit: contain;
    object-position: center;
    background: #eef5fa;
}

.latest-story__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 1.15rem 1.35rem;
}

.latest-story__kicker {
    color: #08779b;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.latest-story__body strong {
    max-width: 42ch;
    margin-top: 0.32rem;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: clamp(1.02rem, 1.8vw, 1.35rem);
    line-height: 1.2;
}

.latest-story__summary {
    max-width: 62ch;
    margin-top: 0.52rem;
    color: var(--ink-soft);
    font-size: 0.85rem;
    line-height: 1.55;
}

.latest-story__open {
    margin-top: 0.6rem;
    color: #096a91;
    font-size: 0.76rem;
    font-weight: 800;
}

.latest-story:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

.story-modal__dialog {
    display: grid;
    width: min(900px, 100%);
    max-height: calc(100dvh - 38px);
    grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.78fr);
    overflow: auto;
    border-radius: 20px;
    background: #fff;
}

.story-modal__media {
    display: grid;
    min-height: 380px;
    place-items: center;
    padding: 18px;
    background: #eef5fa;
}

.story-modal__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: calc(100dvh - 76px);
    object-fit: contain;
}

.story-modal__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.4rem, 4vw, 2.6rem);
}

.story-modal__content h2 {
    margin: 0.55rem 0 0;
    color: var(--navy);
    font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.story-modal__content p { color: var(--ink-soft); line-height: 1.65; }
.story-modal__content .button { align-self: flex-start; margin-top: 0.8rem; }

.urgent-popup__dialog {
    display: block;
    width: min(920px, 100%);
    max-height: calc(100dvh - 30px);
    overflow: auto;
    border-radius: 20px;
    background: #fff;
}

.urgent-popup__posters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 18px 8px;
    background: #eaf3fa;
}

.urgent-popup__posters figure {
    display: grid;
    min-height: 0;
    margin: 0;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}

.urgent-popup__posters img {
    display: block;
    width: 100%;
    height: min(62dvh, 680px);
    object-fit: contain;
}

.urgent-popup__actions {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.urgent-popup__actions > span:not(.screen-reader-text) {
    color: var(--ink);
    font-size: 0.88rem;
    line-height: 1.45;
}

@media (max-width: 680px) {
    .hero__actions {
        display: flex;
        grid-template-columns: none;
        margin-inline: -2px;
        padding-bottom: 9px;
    }

    .hero__actions .button,
    .hero__actions .button:first-child {
        width: auto;
        min-width: max-content;
        padding: 9px 11px;
        font-size: 0.72rem;
    }

    .latest-story,
    .latest-story--tall {
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .latest-story__media { min-height: 150px; }
    .latest-story .latest-story__media img,
    .latest-story:first-child .latest-story__media img { height: 150px; }
    .latest-story__body { padding: 0.8rem 0.9rem; }
    .latest-story__kicker { font-size: 0.62rem; }
    .latest-story__body strong { font-size: 0.93rem; }
    .latest-story__summary {
        display: -webkit-box;
        margin-top: 0.35rem;
        overflow: hidden;
        font-size: 0.72rem;
        line-height: 1.4;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .latest-story__open { font-size: 0.68rem; }

    .story-modal { padding: 10px; }
    .story-modal__dialog { display: block; max-height: calc(100dvh - 20px); }
    .story-modal__media { min-height: 0; padding: 12px; }
    .story-modal__media img { height: auto; max-height: 58dvh; }
    .story-modal__content { padding: 1.15rem; }
    .story-modal__content h2 { font-size: 1.35rem; }

    .urgent-popup { padding: 10px; }
    .urgent-popup__dialog { max-height: calc(100dvh - 20px); }
    .urgent-popup__posters { grid-template-columns: 1fr; padding: 12px 12px 4px; }
    .urgent-popup__posters figure:nth-child(2) { display: none; }
    .urgent-popup__posters img { height: auto; max-height: 66dvh; }
    .urgent-popup__actions { grid-template-columns: 1fr; gap: 7px; padding: 10px 14px 12px; }
    .urgent-popup__actions > span:not(.screen-reader-text) { font-size: 0.76rem; }
}

.activity-history-card__media {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: -1.1rem -1.1rem 1rem;
    padding: 10px;
    background: #eef5fa;
}
.activity-history-card__media--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.activity-history-card__media a { display: grid; min-height: 190px; place-items: center; overflow: hidden; background: #fff; }
.activity-history-card__media img { display: block; width: 100%; height: 240px; object-fit: contain; }
.activity-history-card__source { display: block; margin: 0.2rem 0 0.65rem; color: #52708d; font-weight: 700; }
@media (max-width: 560px) {
    .activity-history-card__media--pair { grid-template-columns: 1fr; }
    .activity-history-card__media a { min-height: 0; }
    .activity-history-card__media img { height: auto; max-height: 62dvh; }
}

/* Version 1.0.11: calendario y orientacion oficial SAE 2027. */
.section--sae-official {
    background: #eef7fb;
}

.sae-official {
    display: grid;
    grid-template-columns: minmax(17rem, .8fr) minmax(0, 1.35fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: stretch;
}

.sae-official__calendar,
.sae-official__guide {
    padding: clamp(1.4rem, 3vw, 2.35rem);
    border: 1px solid #c8e1ec;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 16px 42px rgba(10, 55, 100, .08);
}

.sae-official h2 {
    margin-top: .45rem;
    color: #0a3764;
}

.sae-dates {
    display: grid;
    gap: .75rem;
    margin: 1.35rem 0 1.5rem;
}

.sae-dates > div {
    display: grid;
    grid-template-columns: 4.2rem 1fr;
    gap: .8rem;
    align-items: center;
    padding: .9rem 1rem;
    border-radius: .9rem;
    background: #eef7fb;
}

.sae-dates dt {
    color: #536c7f;
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.sae-dates dd {
    display: flex;
    flex-direction: column;
    margin: 0;
    color: #0a3764;
}

.sae-dates dd strong {
    font-size: 1.08rem;
}

.sae-dates dd span {
    color: #4a657b;
    font-size: .88rem;
}

.sae-checklist {
    display: grid;
    gap: .75rem;
    margin: 1.2rem 0;
    padding: 0;
    list-style: none;
}

.sae-checklist li {
    position: relative;
    padding-left: 1.8rem;
    color: #294f6b;
}

.sae-checklist li::before {
    position: absolute;
    left: 0;
    color: #0b80a5;
    content: "✓";
    font-weight: 900;
}

.sae-official__warning {
    padding: 1rem 1.1rem;
    border-left: 4px solid #f1bd26;
    border-radius: 0 .75rem .75rem 0;
    color: #173d5a;
    background: #fff8da;
}

.sae-official__source {
    margin-bottom: 0;
    color: #5b7080;
    font-size: .82rem;
}

.sae-official__source a {
    color: #075d8d;
    font-weight: 800;
}

@media (max-width: 820px) {
    .sae-official {
        grid-template-columns: 1fr;
    }
}
/* Version 1.0.13: escudo institucional y docentes con excelencia academica. */
.education-promise__gallery {
    grid-column: 1 / -1;
    display: grid;
    gap: 22px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.education-promise__gallery-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.education-promise__gallery h4 {
    margin: 0;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.education-promise__gallery-heading p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    text-align: right;
}

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

.excellence-portrait {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.excellence-portrait img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
}

.excellence-portrait figcaption {
    min-height: 54px;
    padding: 11px 12px;
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
}

@media (max-width: 780px) {
    .education-promise__gallery-heading {
        display: grid;
        gap: 8px;
    }

    .education-promise__gallery-heading p {
        text-align: left;
    }

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

@media (max-width: 560px) {
    .excellence-portraits {
        gap: 12px;
    }

    .excellence-portrait figcaption {
        font-size: 0.72rem;
    }
}

/* Version 1.0.15: encuadre completo del escudo institucional */
.site-brand__crest {
    display: grid;
    place-items: center;
    width: 56px;
    height: 70px;
    overflow: visible;
}

.site-brand__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: 68px;
    object-fit: contain;
}

@media (max-width: 1020px) {
    .site-brand__crest {
        width: 47px;
        height: 58px;
    }

    .site-brand__image {
        width: auto;
        max-width: 100%;
        height: 56px;
    }
}
/* Version 1.1.0: direccion visual equilibrada validada desde Figma */
:root {
    --ink: #243453;
    --ink-soft: #4a637d;
    --navy: #1a3560;
    --teal: #2b6ea8;
    --teal-dark: #1f5689;
    --coral: #9b6a00;
    --sun: #c8900f;
    --sun-soft: #fff7da;
    --sun-deep: #9b6a00;
    --cream: #eef4fa;
    --mint: #e8f1f9;
    --paper: #f8fbff;
    --line: #c8d8ed;
    --sky: #4d96cc;
    --shadow: 0 18px 45px rgba(26, 53, 96, 0.11);
    --shadow-soft: 0 8px 24px rgba(26, 53, 96, 0.08);
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --container: 1280px;
    --font-sans: "Source Sans 3", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: Fraunces, Georgia, "Times New Roman", serif;
}
body { color: var(--ink); background: var(--paper); font-family: var(--font-sans); font-size: 16.5px; line-height: 1.62; }
h1, h2, h3, h4 { color: var(--navy); font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; }
h1 { max-width: 15ch; font-size: clamp(2.65rem, 6.2vw, 4.45rem); line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; }
h3 { font-size: clamp(1.15rem, 2.3vw, 1.5rem); line-height: 1.2; }
.eyebrow { color: var(--teal-dark); font-family: var(--font-sans); font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.section { padding-block: clamp(56px, 7vw, 88px); }
.section-heading { gap: clamp(24px, 5vw, 64px); }
.section-heading h2, .section-heading p { text-align: left; }
.button { min-height: 48px; padding: 11px 21px; border-color: var(--sun); border-radius: var(--radius-sm); background: var(--sun); color: #0d2240; font-size: .92rem; font-weight: 800; box-shadow: none; }
.button:hover, .button:focus-visible { border-color: var(--sun-deep); background: var(--sun-deep); color: var(--white); box-shadow: 0 10px 22px rgba(26,53,96,.16); }
.button--dark { border-color: var(--navy); background: var(--navy); color: var(--white); }
.button--dark:hover, .button--dark:focus-visible { border-color: var(--teal-dark); background: var(--teal-dark); }
.button--outline, .button--feature { border-color: rgba(26,53,96,.34); background: rgba(255,255,255,.78); color: var(--navy); }
.button--outline:hover, .button--outline:focus-visible, .button--feature:hover, .button--feature:focus-visible { border-color: var(--navy); background: var(--navy); color: var(--white); }
.priority-ribbon { background: var(--navy); color: var(--white); }
.priority-ribbon__inner, .priority-ribbon__inner a { min-height: 36px; }
.priority-ribbon__inner a { border-color: rgba(255,255,255,.18); color: var(--white); }
.priority-ribbon__inner a:hover, .priority-ribbon__inner a:focus-visible { background: rgba(255,255,255,.1); color: #ffe39a; }
.priority-ribbon__primary span { color: #ffe39a; }
.site-header { border-bottom-color: rgba(26,53,96,.14); background: rgba(255,255,255,.97); box-shadow: 0 5px 18px rgba(26,53,96,.07); }
.site-header__inner { min-height: 84px; }
.site-brand__text strong { color: var(--navy); font-size: 1.08rem; }
.site-brand__text small { color: var(--teal-dark); }
.site-nav__list a { color: var(--navy); font-size: .84rem; }
.site-nav__list a::after { height: 2px; border-radius: 0; background: var(--sun); }
.site-nav__submenu { border-radius: var(--radius); box-shadow: var(--shadow); }
.site-nav__submenu a { border-radius: 4px; }
.site-nav__submenu a:hover, .site-nav__submenu a:focus-visible { background: var(--sun-soft); }
.hero { padding-block: clamp(62px,7vw,92px) clamp(62px,8vw,100px); background: linear-gradient(135deg,#f8fbff 0%,#eaf2fa 100%); }
.hero::before { background-position: center 39%; opacity: .14; filter: saturate(.72) contrast(.95); }
.hero::after { background: linear-gradient(90deg,rgba(248,251,255,.99) 0%,rgba(248,251,255,.95) 52%,rgba(238,244,250,.72) 76%,rgba(238,244,250,.54) 100%); }
.hero__copy { max-width: 980px; }
.hero__lead { max-width: 720px; margin-bottom: 26px; color: var(--ink-soft); font-size: clamp(1.05rem,1.8vw,1.24rem); }
.hero__actions { flex-wrap: nowrap; gap: 10px; overflow-x: auto; padding: 2px 2px 9px; scrollbar-width: none; }
.hero__actions::-webkit-scrollbar { display: none; }
.hero__actions .button { flex: 0 0 auto; }
.hero__actions .button:first-child { border-color: var(--sun); background: var(--sun); color: #0d2240; }
.hero__actions .button:first-child:hover, .hero__actions .button:first-child:focus-visible { border-color: var(--sun-deep); background: var(--sun-deep); color: var(--white); }
.hero__proof { margin-top: 24px; }
.hero__proof li::before { background: var(--sun); }
.trust-strip { border-color: var(--line); }
.trust-strip__grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.trust-strip__grid > div { min-height: 92px; gap: 12px; padding: 20px clamp(16px,2.8vw,34px); border-color: var(--line); }
.trust-strip span { color: var(--sun-deep); font-family: var(--font-display); font-size: 1.15rem; font-style: normal; }
.trust-strip strong { color: var(--navy); }
.section--overview { padding-block: clamp(52px,6vw,78px); }
.advantage-card, .agenda-card, .overview-card, .staff-group, .person-card, .latest-story, .contact-inquiry-card, .admission-form-card, .content-card, .infrastructure-card, .activity-card { border-color: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.advantage-card--featured { border-color: rgba(200,144,15,.45); background: var(--sun-soft); }
.activity-badge--status, .advantage-card--featured .advantage-card__mark, .innovation-note > span, .steps-grid li > span, .staff-group__number { background: var(--sun); color: #0d2240; }
.latest-school-life { padding-block: clamp(50px,6vw,78px); background: var(--white); }
.latest-school-life__heading { align-items: center; margin-bottom: 1.4rem; }
.latest-school-life__heading h2 { color: var(--navy); }
.latest-school-life__grid { grid-template-columns: minmax(15rem,.82fr) minmax(0,1.18fr); grid-template-rows: repeat(2,minmax(12rem,1fr)); gap: 14px; }
.latest-story { min-height: 15rem; background: var(--navy); }
.latest-story > div span { color: #ffe39a; }
.section--team { background: linear-gradient(180deg,var(--cream),var(--white)); }
.team-intro h2, .staff-group__heading h3 { color: var(--navy); }
.person-card { background: var(--white); }
.person-card__photo { background: linear-gradient(145deg,var(--navy),var(--teal)); }
input, select, textarea { border-color: #9cb9d5; border-radius: var(--radius-sm); background: var(--white); color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43,110,168,.14); outline: 0; }
.site-footer { background: var(--navy); }
.site-footer h2, .site-footer a, .site-footer__brand, .site-footer__brand span { color: var(--white); }
@media (max-width: 1020px) {
    .site-nav { background: var(--white); }
    .site-nav__submenu { border-left-color: var(--sun); border-radius: 0; box-shadow: none; }
}
@media (max-width: 780px) {
    body { font-size: 16px; }
    h1 { max-width: 16ch; font-size: clamp(2.2rem,11.5vw,3.15rem); }
    h2 { font-size: clamp(1.72rem,8vw,2.25rem); }
    .section { padding-block: 50px; }
    .priority-ribbon__inner { min-height: 58px; }
    .priority-ribbon__inner a { min-height: 29px; border-color: rgba(255,255,255,.18); }
    .site-header__inner { min-height: 76px; }
    .hero { padding-block: 42px 50px; }
    .hero::before { background-position: 62% center; opacity: .1; }
    .hero::after { background: linear-gradient(180deg,rgba(248,251,255,.98) 0%,rgba(248,251,255,.92) 70%,rgba(238,244,250,.86) 100%); }
    .hero__actions { display: flex; grid-template-columns: none; margin-inline: -4px; }
    .hero__actions .button, .hero__actions .button:first-child { width: auto; min-height: 42px; padding: 9px 13px; font-size: .76rem; }
    .trust-strip__grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
    .trust-strip__grid > div, .trust-strip__grid > div:nth-child(2) { min-height: 78px; padding: 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .trust-strip__grid > div:nth-child(even) { border-right: 0; }
    .trust-strip__grid > div:nth-last-child(-n + 2) { border-bottom: 0; }
    .latest-school-life__heading { display: grid; gap: 12px; }
    .latest-school-life__grid { grid-template-columns: 1fr; grid-template-rows: none; }
    .latest-story, .latest-story--tall { min-height: 14rem; grid-row: auto; }
    .section-heading h2, .section-heading p { text-align: left; }
}
@media (max-width: 560px) {
    .section { padding-block: 44px; }
    .hero__lead { font-size: 1rem; }
    .site-brand__text strong { font-size: .88rem; }
    .site-brand__text small { font-size: .56rem; }
}
/* Version 1.1.1: actividades a ancho completo y medios segun orientacion */
.latest-school-life > .container {
    width: min(calc(100% - 40px), var(--container));
}

.latest-school-life__grid {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    align-items: stretch;
    justify-items: stretch;
    gap: clamp(14px, 1.8vw, 22px);
}

.latest-story,
.latest-story--tall {
    width: 100%;
    min-width: 0;
    min-height: clamp(360px, 34vw, 440px);
    grid-template-columns: minmax(210px, 44%) minmax(0, 1fr);
    align-items: stretch;
}

.latest-story__media {
    width: 100%;
    height: 100%;
    min-height: 100%;
    align-self: stretch;
    background: #eef5fa;
}

.latest-story .latest-story__media img,
.latest-story:first-child .latest-story__media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
    background: #eef5fa;
}

.latest-story--landscape {
    display: grid;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
}

.latest-story--landscape .latest-story__media {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
}

.latest-story--landscape .latest-story__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-story--balanced {
    grid-template-columns: minmax(230px, 48%) minmax(0, 1fr);
}

@media (max-width: 860px) {
    .latest-school-life__grid {
        grid-template-columns: 1fr;
    }

    .latest-story,
    .latest-story--tall {
        min-height: 340px;
        grid-template-columns: minmax(210px, 38%) minmax(0, 1fr);
    }

    .latest-story--landscape {
        min-height: 0;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .latest-school-life > .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .latest-story,
    .latest-story--tall {
        min-height: 250px;
        grid-template-columns: minmax(124px, 42%) minmax(0, 1fr);
    }

    .latest-story__media {
        min-height: 250px;
    }

    .latest-story--landscape {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .latest-story--landscape .latest-story__media {
        min-height: 0;
    }
}
/* Version 1.1.2: contraste y legibilidad de Ultimas actividades */
.latest-story,
.latest-story--tall {
    overflow: hidden;
    border: 1px solid #b9d2e8;
    background: #f8fbff;
    color: #172f4d;
}

.latest-story__body {
    justify-content: center;
    padding: clamp(1.15rem, 2.3vw, 1.75rem);
    background: #f8fbff;
    color: #172f4d;
}

.latest-story__kicker,
.latest-story > div span.latest-story__kicker {
    align-self: flex-start;
    padding: 0.35rem 0.62rem;
    border-radius: 999px;
    background: #fff0b8;
    color: #5d4300;
    font-size: clamp(0.76rem, 1vw, 0.84rem);
    font-weight: 850;
    letter-spacing: 0.075em;
    line-height: 1.2;
}

.latest-story__body strong {
    max-width: 34ch;
    margin-top: 0.72rem;
    color: #092956;
    font-size: clamp(1.2rem, 1.8vw, 1.48rem);
    font-weight: 750;
    line-height: 1.18;
}

.latest-story__summary,
.latest-story > div span.latest-story__summary {
    max-width: 54ch;
    margin-top: 0.72rem;
    color: #30465e;
    font-size: clamp(0.94rem, 1.2vw, 1rem);
    font-weight: 450;
    line-height: 1.55;
}

.latest-story__open,
.latest-story > div span.latest-story__open {
    align-self: flex-start;
    margin-top: 0.9rem;
    padding-bottom: 0.12rem;
    border-bottom: 2px solid #c8900f;
    color: #07537c;
    font-size: clamp(0.88rem, 1.1vw, 0.96rem);
    font-weight: 800;
    line-height: 1.35;
}

.latest-story:hover,
.latest-story:focus-visible {
    border-color: #4f86b6;
    background: #f2f8fd;
}

.latest-story:hover .latest-story__body,
.latest-story:focus-visible .latest-story__body {
    background: #f2f8fd;
}

/* Version 1.3.7: marco uniforme y contenido para las tarjetas de actividades. */
.latest-story,
.latest-story--tall,
.latest-story--landscape,
.latest-story--balanced,
.latest-story--portrait {
    display: grid;
    min-height: clamp(280px, 26vw, 340px);
    grid-template-columns: minmax(180px, 40%) minmax(0, 1fr);
    grid-template-rows: 1fr;
}

.latest-story__media,
.latest-story--landscape .latest-story__media {
    box-sizing: border-box;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    min-height: 0;
    margin: 14px;
    padding: 10px;
    align-self: center;
    aspect-ratio: auto;
    overflow: hidden;
    border: 1px solid #c2d7e7;
    border-radius: 13px;
    background: #eaf2f8;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .78);
}

.latest-story .latest-story__media img,
.latest-story:first-child .latest-story__media img,
.latest-story--landscape .latest-story__media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    background: #fff;
}

.latest-story--portrait .latest-story__media img {
    max-width: min(100%, 230px);
    margin-inline: auto;
}

.latest-story--balanced .latest-story__media img {
    max-width: min(100%, 270px);
    margin-inline: auto;
}

@media (max-width: 860px) {
    .latest-story,
    .latest-story--tall,
    .latest-story--landscape,
    .latest-story--balanced,
    .latest-story--portrait {
        min-height: 280px;
        grid-template-columns: minmax(170px, 36%) minmax(0, 1fr);
        grid-template-rows: 1fr;
    }
}

@media (max-width: 560px) {
    .latest-story,
    .latest-story--tall,
    .latest-story--landscape,
    .latest-story--balanced,
    .latest-story--portrait {
        min-height: 235px;
        grid-template-columns: minmax(112px, 39%) minmax(0, 1fr);
        grid-template-rows: 1fr;
    }

    .latest-story__media,
    .latest-story--landscape .latest-story__media {
        width: calc(100% - 18px);
        height: calc(100% - 18px);
        margin: 9px;
        padding: 7px;
    }
}

@media (max-width: 560px) {
    .latest-story__body { padding: 1rem; }
    .latest-story__kicker,
    .latest-story > div span.latest-story__kicker { font-size: 0.72rem; }
    .latest-story__body strong { font-size: 1.08rem; }
    .latest-story__summary,
    .latest-story > div span.latest-story__summary {
        display: -webkit-box;
        margin-top: 0.55rem;
        overflow: hidden;
        font-size: 0.86rem;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }
    .latest-story__open,
    .latest-story > div span.latest-story__open {
        margin-top: 0.7rem;
        font-size: 0.82rem;
    }
}


/* Version 1.1.4: noticia histórica y compatibilidad de ventanas de actividades */
#premiacion-academica-primer-semestre-2026 {
    grid-column: 1 / -1;
}

.activity-history-gallery {
    margin: 1rem 0 1.15rem;
    border: 1px solid #b8cee3;
    border-radius: 14px;
    background: #f8fbff;
    overflow: hidden;
}

.activity-history-gallery > summary {
    padding: .9rem 1rem;
    color: #092956;
    font-weight: 800;
    cursor: pointer;
}

.activity-history-gallery[open] > summary {
    border-bottom: 1px solid #d5e2ee;
    background: #edf5fc;
}

.activity-history-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    padding: .9rem;
}

.activity-history-gallery__grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    border-radius: 10px;
    background: #eaf2f9;
    overflow: hidden;
}

.activity-history-gallery__grid img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
}

/* Version 1.2.0: carrusel accesible para secuencias fotográficas. */
.activity-photo-carousel {
    margin: 1rem 0 1.15rem;
    padding: .8rem;
    border: 1px solid #b8cee3;
    border-radius: 16px;
    background: #f4f8fc;
}

.activity-photo-carousel__stage {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    border-radius: 13px;
    background: #092956;
}

.activity-photo-carousel__track {
    display: flex;
    width: 100%;
    transition: transform .38s ease;
    touch-action: pan-y;
}

.activity-photo-carousel__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    height: clamp(360px, 60vw, 680px);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #092956;
}

.activity-photo-carousel__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.activity-photo-carousel__control {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 46px;
    height: 46px;
    border: 2px solid rgba(255,255,255,.82);
    border-radius: 50%;
    color: #092956;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
}

.activity-photo-carousel__control:hover,
.activity-photo-carousel__control:focus-visible {
    color: #fff;
    background: #156fa8;
    outline: 3px solid #f1bf2b;
    outline-offset: 2px;
}

.activity-photo-carousel__control--prev { left: 12px; }
.activity-photo-carousel__control--next { right: 12px; }

.activity-photo-carousel__counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    margin: 0;
    padding: .4rem .7rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(3,24,54,.86);
    font-weight: 800;
}

.activity-photo-carousel__thumbs {
    display: flex;
    gap: .55rem;
    margin-top: .7rem;
    padding: .15rem .1rem .35rem;
    overflow-x: auto;
    scrollbar-color: #156fa8 #dceaf5;
}

.activity-photo-carousel__thumbs button {
    flex: 0 0 74px;
    width: 74px;
    height: 58px;
    padding: 0;
    overflow: hidden;
    border: 3px solid transparent;
    border-radius: 9px;
    background: #dceaf5;
    cursor: pointer;
}

.activity-photo-carousel__thumbs button[aria-current="true"] {
    border-color: #f1bf2b;
    box-shadow: 0 0 0 2px #092956;
}

.activity-photo-carousel__thumbs img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-photo-carousel__hint {
    margin: .55rem .2rem 0;
    color: #274c70;
    font-size: .82rem;
}

@media (max-width: 600px) {
    .activity-photo-carousel { padding: .55rem; }
    .activity-photo-carousel__stage { min-height: 280px; }
    .activity-photo-carousel__slide { height: min(68vh, 520px); }
    .activity-photo-carousel__control { width: 40px; height: 40px; font-size: 1.7rem; }
    .activity-photo-carousel__control--prev { left: 7px; }
    .activity-photo-carousel__control--next { right: 7px; }
    .activity-photo-carousel__thumbs button { flex-basis: 62px; width: 62px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
    .activity-photo-carousel__track { transition: none; }
}

/* Version 1.2.1: el archivo conserva sus tarjetas; la galería se abre superpuesta. */
.activity-photo-carousel { display: none; }

.activity-gallery-open {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: .8rem 0 .35rem;
    padding: .7rem .95rem;
    border: 1px solid #7ea9cc;
    border-radius: 999px;
    color: #092956;
    background: #edf5fc;
    font-weight: 800;
    cursor: pointer;
}

.activity-gallery-open:hover,
.activity-gallery-open:focus-visible {
    border-color: #092956;
    color: #fff;
    background: #092956;
    outline: 3px solid #f1bf2b;
    outline-offset: 2px;
}

.activity-gallery-modal[hidden] { display: none; }
.activity-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: grid;
    place-items: center;
    padding: 18px;
}
.activity-gallery-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(2, 17, 40, .9);
    backdrop-filter: blur(5px);
}
.activity-gallery-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1600px, 100%);
    max-height: calc(100dvh - 36px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 18px;
    background: #071d39;
    box-shadow: 0 28px 90px rgba(0,0,0,.46);
}
.activity-gallery-modal__dialog > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    color: #fff;
    background: #0b315d;
}
.activity-gallery-modal__dialog h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1rem, 2vw, 1.35rem);
}

/* Versión 1.4.5: galerías sin rótulos y noticia gastronómica solo textual. */
.latest-story.latest-story--text-only {
    grid-template-columns: minmax(0, 1fr);
    min-height: 210px;
}
.latest-story--text-only .latest-story__body {
    padding: clamp(1.4rem, 3vw, 2.2rem);
}
.story-modal__media[hidden] { display: none; }
.story-modal__dialog.story-modal__dialog--text-only {
    width: min(720px, 100%);
    grid-template-columns: minmax(0, 1fr);
}
.activity-gallery-modal__close {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 50%;
    color: #fff;
    background: transparent;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}
.activity-gallery-modal__close:hover,
.activity-gallery-modal__close:focus-visible { color: #092956; background: #f1bf2b; outline: 2px solid #fff; }
.activity-gallery-modal__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    height: min(82dvh, 980px);
    background: #071d39;
}
.activity-gallery-modal__stage > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    touch-action: pan-y;
}
.activity-gallery-modal__control {
    position: absolute;
    top: 50%;
    width: 52px;
    height: 52px;
    border: 2px solid rgba(255,255,255,.78);
    border-radius: 50%;
    color: #092956;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 28px rgba(0,0,0,.3);
    transform: translateY(-50%);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
}
.activity-gallery-modal__control:hover,
.activity-gallery-modal__control:focus-visible { color: #fff; background: #156fa8; outline: 3px solid #f1bf2b; }
.activity-gallery-modal__control--prev { left: 14px; }
.activity-gallery-modal__control--next { right: 14px; }
.activity-gallery-modal__counter {
    position: absolute;
    right: 14px;
    bottom: 14px;
    margin: 0;
    padding: .45rem .75rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(2,17,40,.86);
    font-weight: 800;
}
@media (max-width: 600px) {
    .activity-gallery-modal { padding: 8px; }
    .activity-gallery-modal__dialog { max-height: calc(100dvh - 16px); }
    .activity-gallery-modal__stage { min-height: 320px; height: min(74dvh, 620px); }
    .activity-gallery-modal__control { width: 42px; height: 42px; font-size: 1.8rem; }
    .activity-gallery-modal__control--prev { left: 7px; }
    .activity-gallery-modal__control--next { right: 7px; }
}

@media (max-width: 780px) {
    .activity-history-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .activity-history-gallery__grid {
        grid-template-columns: 1fr;
    }
}

/* Version 1.1.7: recordatorios compactos de Fashion Solidario y Admisión. */
.community-popup .activity-modal__backdrop {
    background: rgba(3, 24, 54, 0.76);
    backdrop-filter: blur(4px);
}

.community-popup__dialog {
    width: min(920px, 100%);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    border: 1px solid rgba(18, 70, 111, 0.18);
    border-radius: 20px;
    background: #f5f9fd;
    box-shadow: 0 24px 70px rgba(3, 24, 54, 0.32);
}

.community-popup__heading {
    padding: 18px 54px 8px 20px;
}

.community-popup__heading h2 {
    margin: 3px 0 4px;
    color: #0b3561;
    font-size: clamp(1.35rem, 2.3vw, 1.9rem);
    line-height: 1.12;
}

.community-popup__heading p {
    margin: 0;
    color: #35536f;
}

.community-popup__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
    gap: 14px;
    padding: 10px 18px 14px;
}

.community-popup__grid--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
    margin-inline: auto;
}

.community-reminder-card {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d6e4f0;
    border-radius: 16px;
    background: #fff;
}

.community-reminder-card__media {
    display: grid;
    min-height: 0;
    place-items: center;
    padding: 9px;
    background: #edf5fb;
}

.community-reminder-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 280px;
    object-fit: contain;
}

.community-reminder-card--fashion .community-reminder-card__media img {
    aspect-ratio: 1724 / 912;
}

.community-reminder-card--admission .community-reminder-card__media img {
    width: auto;
    max-width: 100%;
}

.community-reminder-card__content {
    padding: 12px 14px 14px;
}

.community-reminder-card__content h3 {
    margin: 0 0 5px;
    color: #0b3561;
    font-size: 1.08rem;
}

.community-reminder-card__content p {
    margin: 0 0 10px;
    color: #35536f;
    font-size: 0.92rem;
    line-height: 1.45;
}

.community-reminder-card__content .button {
    min-height: 40px;
    padding: 8px 16px;
}

.community-popup__footer {
    display: flex;
    justify-content: flex-end;
    padding: 0 20px 16px;
}

@media (max-width: 680px) {
    .community-popup__dialog {
        max-height: calc(100dvh - 18px);
        border-radius: 16px;
    }

    .community-popup__heading {
        padding: 14px 48px 5px 14px;
    }

    .community-popup__heading p {
        font-size: 0.9rem;
    }

    .community-popup__grid {
        grid-template-columns: minmax(0, 1fr);
        padding: 8px 12px 12px;
    }

    .community-reminder-card__media img {
        max-height: 230px;
    }

    .community-reminder-card--fashion .community-reminder-card__media img {
        max-height: 190px;
    }

    .community-popup__footer {
        padding: 0 14px 12px;
    }
}

/* Version 1.1.8: el recordatorio ocupa el ancho completo del diálogo. */
.community-popup__dialog {
    display: block;
}

/* Version 1.3.0: fachada corregida visible al 80 % y carrusel de avisos vigentes. */

/* Version 1.3.2: tarjetas uniformes y traducción automática retirada. */
.hero::before {
    opacity: .80;
    filter: saturate(.82) contrast(.98);
}

.hero::after {
    background: linear-gradient(90deg, rgba(248,251,255,.95) 0%, rgba(248,251,255,.86) 48%, rgba(238,244,250,.34) 76%, rgba(238,244,250,.16) 100%);
}

@media (max-width: 760px) {
    .hero::before { opacity: .80; }
    .hero::after { background: linear-gradient(180deg, rgba(248,251,255,.90) 0%, rgba(248,251,255,.78) 58%, rgba(238,244,250,.48) 100%); }
}

.notice-carousel__dialog {
    width: min(900px, 100%);
}

.notice-carousel__viewport {
    position: relative;
    min-height: 460px;
    margin: 8px 18px 12px;
    overflow: hidden;
    border: 1px solid #d6e4f0;
    border-radius: 16px;
    background: #fff;
}

.notice-carousel__slide {
    display: none;
    min-height: 460px;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
}

.notice-carousel__slide.is-active {
    display: grid;
}

.notice-carousel__media {
    display: grid;
    min-height: 460px;
    place-items: center;
    overflow: hidden;
    background: #edf4fa;
}

.notice-carousel__media img {
    width: 100%;
    height: 100%;
    max-height: 560px;
    object-fit: contain;
}

.notice-carousel__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 48px);
}

.notice-carousel__content h3 {
    margin: 10px 0 14px;
    color: var(--navy);
    font-size: clamp(1.45rem, 2.6vw, 2.2rem);
    line-height: 1.08;
}

.notice-carousel__content > p {
    color: var(--ink-soft);
}

.notice-carousel__date {
    margin-top: 10px;
    color: var(--teal-dark) !important;
    font-weight: 850;
}

.notice-carousel__content .button {
    align-self: flex-start;
    margin-top: 14px;
}

.notice-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 18px 10px;
}

.notice-carousel__arrow {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #bfd4e6;
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.notice-carousel__dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.notice-carousel__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #a9bfd2;
    cursor: pointer;
}

.notice-carousel__dot.is-active {
    width: 28px;
    background: var(--sun-deep);
}

.notice-carousel__counter {
    min-width: 48px;
    color: var(--ink-soft);
    font-size: .78rem;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 680px) {
    .notice-carousel__viewport {
        min-height: 0;
        margin: 6px 12px 10px;
    }

    .notice-carousel__slide,
    .notice-carousel__slide.is-active {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .notice-carousel__media {
        min-height: 0;
        max-height: 42vh;
    }

    .notice-carousel__media img {
        max-height: 42vh;
    }

    .notice-carousel__content {
        padding: 20px 18px 22px;
    }

    .notice-carousel__content h3 {
        font-size: 1.35rem;
    }

    .notice-carousel__content > p {
        margin-bottom: 8px;
        font-size: .86rem;
    }
}

/* Version 1.3.3: franja unica de fortalezas navegables */
.trust-strip__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.trust-strip__item {
    display: flex;
    min-width: 0;
    min-height: 110px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 18px 12px;
    border-right: 1px solid var(--line);
    color: var(--navy);
    text-align: left;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.trust-strip__item:last-child {
    border-right: 0;
}

.trust-strip__item .trust-strip__icon {
    flex: 0 0 auto;
    color: var(--sun-deep);
}

.trust-strip__item strong {
    color: inherit;
    font-size: .82rem;
    line-height: 1.28;
}

.trust-strip__item:hover,
.trust-strip__item:focus-visible {
    background: var(--navy);
    color: var(--white);
    box-shadow: inset 0 -4px 0 var(--sun);
}

.trust-strip__item:hover .trust-strip__icon,
.trust-strip__item:focus-visible .trust-strip__icon {
    color: var(--sun);
}

.trust-strip__item:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid var(--sun);
    outline-offset: -3px;
}

#furgon-escolar,
#salas-climatizadas,
#ingles-interactivo,
#actividad-deportiva,
#equipo,
#hasta-24-estudiantes {
    scroll-margin-top: 126px;
}

@media (max-width: 1120px) {
    .trust-strip__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .trust-strip__item {
        min-height: 96px;
        border-bottom: 1px solid var(--line);
    }

    .trust-strip__item:nth-child(3n) {
        border-right: 0;
    }

    .trust-strip__item:nth-last-child(-n + 3) {
        border-bottom: 0;
    }
}

@media (max-width: 680px) {
    .trust-strip__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-strip__item,
    .trust-strip__item:nth-child(3n) {
        min-height: 88px;
        justify-content: flex-start;
        padding: 14px 12px;
        border-right: 1px solid var(--line);
    }

    .trust-strip__item:nth-child(even) {
        border-right: 0;
    }

    .trust-strip__item:nth-last-child(-n + 3) {
        border-bottom: 1px solid var(--line);
    }

    .trust-strip__item:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .trust-strip__item strong {
        font-size: .76rem;
    }
}

/* Version 1.4.2: perfiles profesionales y avisos destacados. */
.person-card {
    position: relative;
}

.person-card__trigger {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    border: 0;
    border-radius: inherit;
    background: transparent;
    cursor: pointer;
}

.person-card:has(.person-card__trigger):hover,
.person-card:has(.person-card__trigger):focus-within {
    transform: translateY(-3px);
    border-color: #8cb8d7;
    box-shadow: 0 18px 34px rgba(11, 50, 89, .15);
}

.staff-profile-modal[hidden] { display: none; }
.staff-profile-modal {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.staff-profile-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(5, 25, 49, .74);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.staff-profile-modal__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(940px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
    overflow: auto;
    border: 1px solid #c7dceb;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(4, 30, 58, .34);
}

.staff-profile-modal__close {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 14px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #bfd4e6;
    border-radius: 50%;
    background: #fff;
    color: var(--navy);
    font-size: 1.65rem;
    cursor: pointer;
}

.staff-profile-modal__media {
    min-height: 520px;
    overflow: hidden;
    background: linear-gradient(145deg, #fff 0%, #eef2f5 100%);
}

.staff-profile-modal__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.staff-profile-modal__content { padding: clamp(34px, 5vw, 58px); }
.staff-profile-modal__group {
    color: var(--teal-dark);
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.staff-profile-modal__content h3 {
    margin: 12px 48px 8px 0;
    color: var(--navy);
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.08;
}

.staff-profile-modal__role { color: var(--blue); font-weight: 800; }
.staff-profile-modal__summary { margin: 22px 0; color: var(--ink-soft); line-height: 1.65; }
.staff-profile-modal__details { margin: 0; }
.staff-profile-modal__details > div { padding: 12px 0; border-top: 1px solid #d9e7f1; }
.staff-profile-modal__details dt { color: var(--navy); font-size: .78rem; font-weight: 850; }
.staff-profile-modal__details dd { margin: 4px 0 0; color: var(--ink-soft); }

.staff-profile-modal__navigation {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-top: 1px solid #d6e4f0;
    background: #f5f9fc;
}

.staff-profile-modal__navigation button {
    border: 1px solid #bfd4e6;
    border-radius: 999px;
    padding: 10px 15px;
    background: #fff;
    color: var(--navy);
    font-weight: 800;
    cursor: pointer;
}

.notice-carousel__slide--prominent { grid-template-columns: minmax(360px, 1.12fr) minmax(0, .88fr); }
.notice-carousel__slide--prominent .notice-carousel__media { background: #eaf4fb; }
.notice-carousel__patria {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 460px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 38px;
    background: linear-gradient(145deg, #06366f 0 48%, #fff 48% 68%, #d72638 68% 100%);
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .36);
}

.notice-carousel__patria span { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 900; }
.notice-carousel__patria strong { margin-top: 10px; font-size: clamp(1rem, 1.8vw, 1.3rem); }

@media (max-width: 680px) {
    .staff-profile-modal { padding: 12px; }
    .staff-profile-modal__dialog { grid-template-columns: 1fr; max-height: calc(100vh - 24px); }
    .staff-profile-modal__media { min-height: 0; height: min(44vh, 390px); }
    .staff-profile-modal__content { padding: 26px 20px; }
    .staff-profile-modal__navigation { position: sticky; bottom: 0; }
    .notice-carousel__slide--prominent { grid-template-columns: 1fr; }
    .notice-carousel__patria { min-height: 36vh; }
}

/* El afiche de Teletón conserva su archivo original. Esta capa reversible
   oculta únicamente el contador fijo, que deja de ser vigente con el tiempo. */
.teleton-poster {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #fff;
}

.notice-carousel__media .teleton-poster { width: min(100%, 373px); }
.activity-recent-card__media--teleton {
    display: grid;
    height: auto;
    aspect-ratio: auto;
    place-items: center;
    background: #fff;
}
.activity-recent-card__media--teleton .teleton-poster { max-width: 360px; }
.activity-history-card__media--teleton a { min-height: 0; }
.activity-history-card__media--teleton .teleton-poster { width: min(100%, 320px); }
.notice-carousel__media .teleton-poster img,
.activity-recent-card__media--teleton .teleton-poster img,
.activity-history-card__media--teleton .teleton-poster img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
}
.teleton-poster__countdown-cover {
    position: absolute;
    top: 8%;
    right: 1.8%;
    width: 15%;
    height: 34.6%;
    border-radius: 0 0 11% 11%;
    background: linear-gradient(180deg, #ed1742, #ee1240);
    pointer-events: none;
}

@media (max-width: 680px) {
    .notice-carousel__media .teleton-poster { width: min(100%, 28vh); }
}
