.site-header {
    position: sticky;

    z-index: 1000;

    top: 0;

    background:
        rgba(
            255,
            255,
            255,
            .98
        );
}


.site-header.scrolled {
    box-shadow:
        0 10px 28px
        rgba(
            9,
            34,
            87,
            .08
        );

    backdrop-filter: blur(15px);
}


/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
    height: 34px;

    display: flex;
    align-items: center;

    color:
        rgba(
            255,
            255,
            255,
            .72
        );

    background: var(--navy-dark);

    font-size: 10px;
}


.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;

    gap: 22px;
}


.topbar-left a {
    display: flex;
    align-items: center;

    gap: 7px;
}


.topbar a {
    transition:
        color .2s ease;
}


.topbar a:hover {
    color: var(--aqua);
}


/* =========================================================
   MAIN HEADER
   ========================================================= */

.main-header {
    position: relative;

    height: 76px;

    border-bottom:
        1px solid
        rgba(
            9,
            34,
            87,
            .07
        );
}


.main-header-inner {
    height: 100%;

    display: flex;
    align-items: center;
}


.site-logo {
    width: 175px;

    flex: 0 0 175px;

    margin-right: 45px;
}


.site-logo img {
    width: 100%;

    max-height: 53px;

    object-fit: contain;
    object-position: left center;
}


/* =========================================================
   NAV
   ========================================================= */

.main-nav {
    height: 100%;

    display: flex;
    align-items: center;

    gap: 28px;

    margin-right: auto;
}


.nav-dropdown {
    position: static;

    height: 100%;
}


.nav-link {
    position: relative;

    height: 100%;

    display: flex;
    align-items: center;

    gap: 7px;

    color: var(--navy);

    font-size: 12px;
    font-weight: 600;
}


.nav-link > i {
    font-size: 8px;

    transition:
        transform .25s ease;
}


.nav-dropdown:hover
.dropdown-trigger > i {
    transform: rotate(180deg);
}


.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 3px;

    background: var(--aqua);

    transform: scaleX(0);

    transform-origin: center;

    transition:
        transform .25s ease;
}


.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.header-actions {
    display: flex;
    align-items: center;

    gap: 12px;
}


.header-button {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 0 18px;

    color: var(--navy);
    background: var(--aqua);

    font-size: 11px;
    font-weight: 800;

    transition:
        background .2s ease,
        transform .2s ease;
}


.header-button:hover {
    background: var(--aqua-dark);

    transform:
        translateY(-1px);
}


.mobile-menu-button {
    width: 43px;
    height: 43px;

    display: none;
    align-items: center;
    justify-content: center;

    color: var(--white);
    background: var(--navy);

    cursor: pointer;
}


/* =========================================================
   MEGA MENU GENERAL
   ========================================================= */

.mega-menu {
    position: absolute;

    top: 100%;
    left: 0;

    width: 100%;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateY(-8px);

    background: var(--white);

    border-top:
        1px solid
        var(--border);

    box-shadow:
        0 25px 48px
        rgba(
            9,
            34,
            87,
            .12
        );

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;
}


.nav-dropdown:not(:hover)
.mega-menu {
    transition-delay: .45s;
}


.nav-dropdown:hover
.mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateY(0);

    transition-delay: 0s;
}


/* =========================================================
   NOSOTROS MEGA MENU
   ========================================================= */

.mega-menu-inner {
    width: min(
        1180px,
        calc(100% - 40px)
    );

    margin-inline: auto;

    display: grid;

    grid-template-columns:
        285px
        1fr;

    gap: 44px;

    padding: 34px 0;
}


.mega-intro {
    padding-right: 30px;

    border-right:
        1px solid
        var(--border);
}


.mega-intro > span {
    display: block;

    margin-bottom: 7px;

    color: var(--aqua-dark);

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
}


.mega-intro h3 {
    margin-bottom: 10px;

    color: var(--navy);

    font-size: 21px;
    line-height: 1.16;
}


.mega-intro p {
    color: var(--muted);

    font-size: 10px;
    line-height: 1.7;
}


.mega-all-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: 18px;

    color: var(--navy);

    font-size: 10px;
    font-weight: 700;
}


.mega-links {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            1fr
        );

    gap: 10px;
}


.mega-links a {
    min-height: 78px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 14px;

    border:
        1px solid
        transparent;

    transition:
        background .2s ease,
        border-color .2s ease;
}


.mega-links a:hover {
    background:
        var(--background-light);

    border-color:
        var(--border);
}


.mega-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--navy);
    background: var(--aqua-soft);
}


.mega-links strong {
    display: block;

    color: var(--navy);

    font-size: 11px;
}


.mega-links small {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 8px;
}


/* =========================================================
   NUEVO MEGA MENÚ DE EXÁMENES
   ========================================================= */

.mega-menu-exams {
    max-height:
        calc(
            100vh - 110px
        );

    overflow-y: auto;
}


.exam-mega-wrapper {
    width: min(
        1240px,
        calc(100% - 40px)
    );

    margin-inline: auto;

    padding:
        25px
        0
        30px;
}


/* HEADER */

.exam-mega-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    padding-bottom: 19px;

    border-bottom:
        1px solid
        var(--border);
}


.exam-mega-header span {
    display: block;

    margin-bottom: 4px;

    color: var(--aqua-dark);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .1em;

    text-transform: uppercase;
}


.exam-mega-header h3 {
    color: var(--navy);

    font-size: 21px;
    line-height: 1.15;
}


.exam-mega-header > a {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: var(--navy);

    font-size: 10px;
    font-weight: 700;

    transition:
        color .2s ease;
}


.exam-mega-header > a:hover {
    color: var(--aqua-dark);
}


/* GRID */

.exam-mega-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap:
        31px
        27px;

    padding:
        24px
        0
        4px;
}


.exam-mega-group {
    min-width: 0;
}


/* GROUP HEADER */

.exam-mega-group-title {
    min-height: 47px;

    display: flex;
    align-items: flex-start;

    gap: 9px;

    margin-bottom: 8px;
}


.group-icon {
    width: 31px;
    height: 31px;

    flex: 0 0 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--navy);

    background: var(--aqua-soft);

    font-size: 10px;
}


.exam-mega-group-title small {
    display: block;

    color: #8a959e;

    font-size: 7px;
    font-weight: 600;

    line-height: 1.2;

    letter-spacing: .04em;

    text-transform: uppercase;
}


.exam-mega-group-title strong {
    display: block;

    margin-top: 2px;

    color: var(--navy);

    font-size: 10px;
    font-weight: 800;

    line-height: 1.25;
}


/* LINKS */

.exam-mega-group > a {
    position: relative;

    display: block;

    padding:
        4px
        0
        4px
        11px;

    color: var(--muted);

    font-size: 9px;
    font-weight: 500;

    line-height: 1.45;

    transition:
        color .2s ease,
        transform .2s ease;
}


.exam-mega-group > a::before {
    content: "";

    position: absolute;

    left: 0;
    top: 10px;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: var(--aqua);
}


.exam-mega-group > a:hover,
.exam-mega-group > a.current-exam {
    color: var(--navy);

    font-weight: 700;

    transform:
        translateX(2px);
}


/* SCROLLBAR */

.mega-menu-exams::-webkit-scrollbar {
    width: 6px;
}


.mega-menu-exams::-webkit-scrollbar-track {
    background: #f5f7f7;
}


.mega-menu-exams::-webkit-scrollbar-thumb {
    background: #cdd8d9;

    border-radius: 10px;
}


/* =========================================================
   HOME INTRO
   ========================================================= */

.home-intro {
    padding:
        72px
        0
        38px;

    background: var(--white);
}


.home-intro-grid {
    display: grid;

    grid-template-columns:
        1.25fr
        .75fr;

    gap: 100px;

    align-items: end;
}


.home-intro-title h1 {
    max-width: 780px;

    color: var(--navy);

    font-size:
        clamp(
            44px,
            5vw,
            70px
        );

    line-height: .98;

    letter-spacing: -.055em;
}


.home-intro-title h1 span {
    color: var(--aqua-dark);
}


.home-intro-copy {
    padding-bottom: 7px;
}


.home-intro-copy p {
    max-width: 390px;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.8;
}


/* =========================================================
   ACCORDION HERO
   ========================================================= */


.header-container{width:min(1260px,calc(100% - 40px));margin-inline:auto}.exam-title-prefix{display:block;font-size:16px;line-height:1.5;letter-spacing:0;margin-bottom:12px}.header-search{display:inline-flex;padding:10px;color:var(--navy)}.nav-dropdown:focus-within .mega-menu{opacity:1;visibility:visible;pointer-events:auto;transform:none}.current-exam{font-weight:800!important;color:var(--aqua-dark)!important}:focus-visible{outline:3px solid var(--aqua-dark);outline-offset:3px}
@media(max-width:1180px){.exam-mega-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:29px 40px}}
@media(max-width:1000px){.site-logo{margin-right:30px}.main-nav{gap:20px}.header-button{padding:0 14px}}
@media(max-width:900px){    /* HEADER */

    .topbar {
        display: none;
    }


    .main-header {
        height: 70px;
    }


    .site-logo {
        width: 145px;

        flex: initial;

        margin-right: auto;
    }


    .header-button {
        display: none;
    }


    .mobile-menu-button {
        display: flex;
    }


    .main-nav {
        position: fixed;

        z-index: 1200;

        top: 70px;
        left: 0;

        width: 100%;
        height:
            calc(
                100dvh - 70px
            );

        display: block;

        padding:
            14px
            20px
            40px;

        overflow-y: auto;

        background: var(--white);

        transform:
            translateX(100%);

        transition:
            transform .35s ease;
    }


    .main-nav.mobile-open {
        transform:
            translateX(0);
    }


    .nav-link {
        width: 100%;

        min-height: 56px;
        height: auto;

        justify-content: space-between;

        border-bottom:
            1px solid
            var(--border);

        font-size: 13px;
    }


    .nav-link::after {
        display: none;
    }


    .nav-dropdown {
        height: auto;
    }


    .mega-menu {
        position: static;

        display: none;

        width: 100%;
        max-height: none;

        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: none;

        border: 0;

        box-shadow: none;

        transition: none;
    }


    .nav-dropdown.mobile-active
    .mega-menu {
        display: block;
    }


    .nav-dropdown.mobile-active
    .dropdown-trigger > i {
        transform: rotate(180deg);
    }


    /* NOSOTROS MOBILE */

    .mega-menu-inner {
        width: 100%;

        display: block;

        padding:
            10px
            0
            22px;
    }


    .mega-intro {
        display: none;
    }


    .mega-links {
        grid-template-columns: 1fr;
    }


    /* EXAM MENU MOBILE */

    .mega-menu-exams {
        max-height: none;
        overflow: visible;
    }


    .exam-mega-wrapper {
        width: 100%;

        padding:
            10px
            0
            25px;
    }


    .exam-mega-header {
        display: none;
    }


    .exam-mega-grid {
        grid-template-columns: 1fr;

        gap: 0;

        padding: 0;
    }


    .exam-mega-group {
        padding:
            15px
            4px;

        border-bottom:
            1px solid
            var(--border);
    }


    .exam-mega-group:last-child {
        border-bottom: 0;
    }


    .exam-mega-group-title {
        min-height: 0;

        margin-bottom: 7px;
    }


    .exam-mega-group > a {
        padding:
            6px
            0
            6px
            40px;

        font-size: 10px;
    }


    .exam-mega-group > a::before {
        left: 29px;
        top: 12px;
    }



.nav-dropdown:focus-within .mega-menu{display:none}.nav-dropdown.mobile-active .mega-menu{display:block}}
@media(max-width:600px){.header-container{width:calc(100% - 30px)}.site-logo{width:135px}}