:root {
    --navy:#142e48;
    --gold:#b68a42;
    --gold-light:#e2c48b;
    --ink:#20374d;
    --muted:#617080;
    --paper:#faf9f6;
    --line:#e5e5df;
    --serif:Georgia,'Times New Roman',serif;
}

* {
    box-sizing:border-box;
}

html {
    scroll-behavior:smooth;
    scroll-padding-top:24px;
}

body {
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:'Segoe UI',Arial,sans-serif;
    -webkit-font-smoothing:antialiased;
}

button,a {
    -webkit-tap-highlight-color:transparent;
}

button {
    font:inherit;
    cursor:pointer;
}

a {
    color:inherit;
}

button:focus-visible,a:focus-visible,select:focus-visible,[tabindex]:focus-visible {
    outline:3px solid var(--focus);
    outline-offset:5px;
}

.skip-link {
    position:absolute;
    top:-100px;
    left:16px;
    z-index:20;
    padding:14px;
    background:white;
}

.skip-link:focus {
    top:16px;
}

.site-header {
    height:100px;
    padding:0 max(6%,calc((100vw - 1200px)/2));
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#fff;
}

.brand {
    display:flex;
    gap:14px;
    align-items:center;
    text-decoration:none;
    font-family:var(--serif);
    font-size:21px;
    letter-spacing:2px;
}

.brand small {
    display:block;
    font-family:'Segoe UI',Arial,sans-serif;
    font-size:8px;
    font-weight:600;
    letter-spacing:2px;
    margin-top:7px;
}

.crest {
    width:43px;
    height:52px;
    border:1px solid var(--gold);
    border-radius:3px 3px 20px 20px;
    display:grid;
    place-content:center;
    text-align:center;
    color:var(--gold);
    font-size:28px;
    line-height:25px;
}

.crest span {
    font-size:10px;
    line-height:12px;
}

.header-link {
    font-size:12px;
    text-decoration:none;
}

.header-link span {
    margin-left:15px;
    color:var(--link-accent);
}

.hero {
    position:relative;
    overflow:hidden;
    text-align:center;
    background:radial-gradient(ellipse at 50% 0%,var(--hero-top) 0%,var(--navy) 65%);
    color:white;
    padding:57px 20px 80px;
}

.hero:before,.hero:after {
    content:'';
    position:absolute;
    width:470px;
    height:470px;
    top:-110px;
    border:1px solid #ffffff0c;
    border-radius:50%;
    pointer-events:none;
}

.hero:before {
    left:-240px;
    box-shadow:0 0 0 40px #ffffff03,0 0 0 90px #ffffff02;
}

.hero:after {
    right:-240px;
    box-shadow:0 0 0 40px #ffffff03,0 0 0 90px #ffffff02;
}

.hero-decoration {
    font-size:24px;
    color:var(--gold-light);
    margin-bottom:18px;
}

.eyebrow {
    font-size:10px;
    font-weight:700;
    letter-spacing:2.6px;
    color:var(--eyebrow);
    margin:0 0 16px;
}

.hero .eyebrow {
    color:var(--gold-light);
}

h1 {
    font-family:var(--serif);
    font-weight:400;
    font-size:clamp(28px,3.2vw,47px);
    letter-spacing:2px;
    line-height:1.25;
    margin:0;
}

h1 span {
    color:var(--gold-light);
}

.hero-subtitle {
    font-size:16px;
    font-weight:300;
    color:var(--subtitle-on-dark);
    margin:17px 0 24px;
}

.gold-divider {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    color:var(--gold-light);
    font-size:11px;
}

.gold-divider:before,.gold-divider:after {
    content:'';
    height:1px;
    width:65px;
    background:var(--rule-accent);
}

blockquote {
    max-width:540px;
    margin:20px auto 0;
    font:italic 16px/1.8 var(--serif);
    color:var(--quote-on-dark);
}

cite {
    display:block;
    font:600 9px/1.5 'Segoe UI',Arial,sans-serif;
    letter-spacing:2px;
    color:var(--gold-light);
    margin-top:12px;
}

.section-wrap {
    max-width:1130px;
    margin:auto;
    padding:0 35px;
}

.filters {
    position:relative;
    margin:-32px auto 0;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(160px,.65fr) minmax(0,1.2fr);
    justify-content:center;
    align-items:center;
    gap:20px;
    background:#fff;
    border:1px solid var(--line);
    box-shadow:0 8px 24px #19314906;
    border-radius:12px;
    padding:22px 28px;
    max-width:1060px;
}

#course-filter {
    width:100%;
    min-height:44px;
    padding:10px 8px;
    border:1px solid var(--control-border);
    border-radius:6px;
    background:var(--paper);
    color:var(--navy);
    font:inherit;
    font-size:12px;
    cursor:pointer;
}

.empty-state {
    margin:25px 0 30px;
    padding:60px 24px;
    border:1px solid var(--soft-border);
    border-radius:13px;
    background:var(--soft-surface);
    color:var(--empty-ink);
    text-align:center;
    font:20px/1.7 var(--serif);
}

fieldset {
    border:0;
    padding:0;
    margin:0;
    min-width:0;
}

legend {
    font-size:9px;
    letter-spacing:1.7px;
    color:var(--muted);
    font-weight:700;
    margin-bottom:11px;
}

.button-group {
    display:flex;
    gap:5px;
}

.button-group button {
    border:1px solid transparent;
    border-radius:6px;
    padding:11px 17px;
    background:transparent;
    font-size:12px;
    color:var(--muted);
    min-height:44px;
}

.button-group button:hover {
    background:var(--hover-surface);
    color:var(--navy);
}

.button-group button[aria-pressed=true] {
    background:var(--navy);
    color:#fff;
}

.trimester-group button[aria-pressed=true] {
    color:var(--selected-ink);
    background:var(--selected-surface);
    border-color:var(--selected-border);
}

.filter-divider {
    align-self:stretch;
    width:1px;
    background:var(--line);
}

.section-heading {
    text-align:center;
    padding:51px 0 28px;
}

.section-heading h2 {
    font:400 clamp(27px,3vw,36px)/1.3 var(--serif);
    margin:0 0 12px;
}

.section-heading h2 em {
    font-weight:400;
    color:var(--heading-accent);
}

.section-heading>p:last-child {
    font-size:13px;
    color:var(--muted);
    line-height:1.7;
    margin:0;
}

.results-meta {
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:11px;
    color:var(--muted);
    margin:8px 28px 2px;
}

.demo-label {
    font-size:10px;
    border:1px solid #dddcd6;
    border-radius:20px;
    padding:5px 10px;
}

.director-message {
    margin:40px auto 0;
    max-width:760px;
    padding:28px 34px;
    background:var(--soft-surface);
    border:1px solid var(--soft-border);
    border-radius:13px;
    text-align:center;
}

.director-message-title {
    font:400 22px var(--serif);
    color:var(--heading-accent);
    margin:0 0 14px;
}

.director-message-text {
    font-size:14px;
    line-height:1.8;
    color:var(--ink);
    margin:0;
    white-space:pre-line;
}

.director-message-text + .director-message-felicitacion {
    margin-top:14px;
    padding-top:14px;
    border-top:1px solid var(--rule-muted);
}

.director-message-felicitacion {
    font:italic 14px/1.8 var(--serif);
    color:var(--inspiration-ink);
    margin:0;
    white-space:pre-line;
}

.director-message-firma {
    font-size:11px;
    letter-spacing:1.5px;
    text-transform:uppercase;
    color:var(--muted);
    margin:16px 0 0;
}

.carousel {
    position:relative;
}

.carousel-window {
    overflow:hidden;
    padding:25px 0 30px;
    touch-action:pan-y;
    transition:opacity .2s ease;
}

.carousel.is-refreshing .carousel-window {
    opacity:0;
    transition:none;
}

.carousel-track {
    position:relative;
    display:flex;
    gap:26px;
    align-items:center;
    transition:transform .6s cubic-bezier(.65,0,.35,1);
    will-change:transform;
}

.student-card {
    flex:0 0 330px;
    min-width:0;
    border-radius:13px;
    background:white;
    border:1px solid var(--card-border);
    overflow:hidden;
    transform:scale(.9);
    opacity:.78;
    transition:transform .6s cubic-bezier(.65,0,.35,1),opacity .6s ease,box-shadow .6s ease;
    text-align:center;
}

.student-card.is-active {
    transform:scale(1);
    opacity:1;
    border-color:var(--card-accent);
    box-shadow:0 12px 28px #142e4810;
}

.portrait {
    height:192px;
    position:relative;
    background:radial-gradient(circle at 50% 40%,#f8f4e9,#e6e4d9);
    overflow:hidden;
}

.portrait-photo {
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center 15%;
}

.portrait--sage {
    background:radial-gradient(circle at 50% 40%,#eef3ee,#dce5dd);
}

.portrait--blue {
    background:radial-gradient(circle at 50% 40%,#edf1f7,#dce4ee);
}

.portrait-label {
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    padding:5px 4px 23px;
    font-size:8px;
    letter-spacing:1px;
    color:var(--navy);
    background:var(--portrait-label-surface);
}

.card-content {
    position:relative;
    padding:31px 22px 24px;
}

.medal {
    position:absolute;
    top:-22px;
    left:calc(50% - 22px);
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    border-radius:50%;
    border:4px solid white;
    background:var(--medal-surface);
    color:var(--selected-ink);
    box-shadow:0 0 0 1px var(--medal-border);
    font-size:23px;
}

.card-category {
    color:var(--selected-ink);
    font-size:10px;
    font-weight:700;
    letter-spacing:1px;
    line-height:1.5;
    background:var(--soft-surface);
    border-radius:4px;
    box-shadow:inset 0 -1px 0 var(--soft-border);
    text-transform:uppercase;
    margin:0 0 13px;
}

.student-card h3 {
    font:400 25px/1.2 var(--serif);
    margin:0 0 8px;
}

.course {
    font-size:13px;
    color:var(--course-ink);
    font-weight:500;
    margin:0;
}

.secondary {
    display:inline-block;
    margin:14px 0 0;
    padding:4px 9px;
    background:var(--secondary-surface);
    border-radius:4px;
    font-size:11px;
    color:var(--secondary-ink);
}

.inspiration {
    font:italic 15px/1.7 var(--serif);
    color:var(--inspiration-ink);
    margin:17px 0 0;
    padding-top:15px;
    border-top:1px solid var(--rule-muted);
    min-height:64px;
}

.arrow {
    position:absolute;
    z-index:2;
    top:46%;
    width:46px;
    height:46px;
    border-radius:50%;
    border:1px solid #dedfdc;
    background:#fff;
    color:var(--navy);
    box-shadow:0 3px 9px #142e480a;
    font-size:22px;
}

.arrow:hover {
    background:var(--navy);
    color:#fff;
}

.arrow-prev {
    left:-14px;
}

.arrow-next {
    right:-14px;
}

.carousel-bottom {
    text-align:center;
}

.dots {
    display:flex;
    justify-content:center;
    gap:0;
}

.dot {
    border:0;
    background:transparent;
    width:32px;
    height:44px;
    display:grid;
    place-items:center;
    padding:0;
}

.dot:after {
    content:'';
    width:6px;
    height:6px;
    background:#c4c9ca;
    border-radius:10px;
    transition:width .2s;
}

.dot[aria-current=true]:after {
    background:var(--dot-active);
    width:23px;
}

.carousel-hint {
    font:italic 13px var(--serif);
    color:var(--inspiration-ink);
    margin:7px 0 0;
}

.download-card {
    margin-top:22px;
    padding:12px 22px;
    min-height:46px;
    border:1px solid var(--navy);
    border-radius:7px;
    background:var(--navy);
    color:#fff;
    font:600 13px 'Segoe UI',Arial,sans-serif;
}
.download-card:hover { filter:brightness(1.12); }
.download-card:disabled { opacity:.6;cursor:wait; }
.download-status { margin:10px auto 0;max-width:520px;font-size:12px;line-height:1.6;color:var(--muted); }
.download-status:empty { display:none; }

.values {
    margin-top:45px;
    border-top:1px solid var(--line);
    padding-bottom:51px;
}

.values .section-heading {
    padding-top:42px;
}

.values-grid {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.value {
    text-align:center;
    padding:23px 17px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:8px;
}

.value-icon {
    display:grid;
    place-items:center;
    margin:0 auto 13px;
    width:42px;
    height:42px;
    border-radius:50%;
    background:var(--value-surface);
    color:var(--value-accent);
    font-size:25px;
}

.value h3 {
    font:400 20px var(--serif);
    margin:0 0 10px;
}

.value p {
    font-size:12px;
    line-height:1.8;
    color:var(--muted);
    margin:0;
}

.closing {
    background:var(--navy);
    text-align:center;
    color:var(--closing-ink);
    padding:35px 20px;
}

.closing>span:first-child {
    color:var(--gold-light);
    font-size:19px;
}

.closing p {
    font:400 23px/1.5 var(--serif);
    margin:15px 0;
}

.closing-motto {
    font:italic 17px var(--serif);
    color:var(--gold-light);
}

footer {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:26px 6%;
    background:white;
    color:var(--muted);
    font-size:10px;
}

footer>span {
    letter-spacing:2px;
    color:var(--navy);
    font-family:var(--serif);
}

footer p {
    margin:0;
}

footer small {
    font-size:9px;
}

.sr-only {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

.no-script {
    text-align:center;
    padding:24px;
}

.carousel.is-instant .carousel-track {
    transition:none;
}

@media(min-width:761px) and (max-width:1100px) {
    .filters {
        grid-template-columns:minmax(0,1fr) minmax(160px,.7fr);
    }
    .filters fieldset:last-child {
        grid-column:1 / -1;
    }
    .filters .button-group {
        display:grid;
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

@media(max-width:900px) {
    .filters {
        gap:18px;
        padding:20px;
    }
    .button-group button {
        padding:10px 11px;
    }
    .section-wrap {
        padding-left:25px;
        padding-right:25px;
    }
    .values-grid {
        grid-template-columns:repeat(2,1fr);
    }
    .student-card {
        flex-basis:310px;
    }
    .hero {
        padding-top:40px;
    }
    .brand {
        font-size:18px;
    }
}

@media(max-width:760px) {
    .director-message {
        padding:22px 20px;
    }
    .filters {
        display:block;
    }
    .filters fieldset + fieldset {
        margin-top:15px;
    }
    .filter-divider {
        height:1px;
        width:100%;
        margin:15px 0;
    }
    .button-group {
        display:grid;
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:650px) {
    .site-header {
        height:82px;
        padding:0 20px;
    }
    .brand {
        font-size:15px;
        gap:10px;
        letter-spacing:1.5px;
    }
    .brand small {
        font-size:6px;
        letter-spacing:1.2px;
    }
    .crest {
        width:35px;
        height:44px;
        font-size:24px;
    }
    .header-link {
        font-size:10px;
    }
    .header-link span {
        margin-left:3px;
    }
    .hero {
        padding:34px 23px 62px;
    }
    h1 {
        font-size:30px;
        letter-spacing:1px;
    }
    h1 span {
        display:block;
        margin-top:5px;
    }
    .hero .eyebrow {
        font-size:8px;
        letter-spacing:1.7px;
    }
    .hero-subtitle {
        font-size:14px;
        line-height:1.6;
        max-width:280px;
        margin:14px auto 20px;
    }
    blockquote {
        font-size:14px;
        max-width:340px;
    }
    .section-wrap {
        padding-left:18px;
        padding-right:18px;
    }
    .director-message {
        padding:18px 16px;
    }
    .director-message-title {
        font-size:19px;
    }
    .director-message-text,
    .director-message-felicitacion {
        font-size:13px;
    }
    .filters {
        margin-top:-26px;
        display:block;
        padding:17px 14px;
    }
    .filter-divider {
        height:1px;
        width:100%;
        margin:15px 0;
    }
    .button-group {
        display:grid;
        grid-template-columns:repeat(3,1fr);
    }
    .button-group button {
        font-size:11px;
        padding:9px 5px;
    }
    legend {
        font-size:8px;
        margin-bottom:7px;
    }
    .section-heading {
        padding:35px 5px 21px;
    }
    .section-heading h2 {
        font-size:28px;
    }
    .section-heading h2 em {
        display:block;
    }
    .section-heading>p:last-child {
        font-size:12px;
    }
    .results-meta {
        margin:6px 0 0;
        font-size:10px;
        gap:8px;
        flex-wrap:wrap;
        line-height:1.6;
    }
    .demo-label {
        font-size:8px;
        padding:5px 7px;
    }
    .student-card {
        flex-basis:calc(100vw - 92px);
        max-width:330px;
    }
    .carousel-track {
        gap:13px;
    }
    .portrait {
        height:178px;
    }
    .arrow {
        width:44px;
        height:44px;
    }
    .arrow-prev {
        left:-8px;
    }
    .arrow-next {
        right:-8px;
    }
    .card-content {
        padding-left:15px;
        padding-right:15px;
    }
    .student-card h3 {
        font-size:23px;
    }
    .values {
        margin-top:30px;
        padding-bottom:32px;
    }
    .values-grid {
        gap:10px;
    }
    .value {
        padding:20px 12px;
    }
    .value p {
        font-size:11px;
    }
    .closing p {
        font-size:21px;
    }
    .desktop-break {
        display:none;
    }
    footer {
        flex-direction:column;
        gap:10px;
        text-align:center;
        padding:24px 15px;
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior:auto;
    }
    *,*:before,*:after {
        transition:none!important;
        animation:none!important;
    }
}
