.ame-page-heading {
    margin-top: 32px;
    margin-bottom: 18px;
    text-align: center;
}

.ame-page-heading h1 {
    margin: 0;
    color: #004a98;
    font-family: OpenSans-ExtraBold, Arial, sans-serif;
    font-size: 42px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .ame-page-heading {
        margin-top: 24px;
        margin-bottom: 14px;
    }

    .ame-page-heading h1 {
        font-size: 32px;
    }
}

.directorio-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 0;
    margin-top: -4px;
    margin-bottom: 28px;
    color: #004a98;
    font-family: OpenSans-SemiBold, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.4;
    text-align: center;
}

.directorio-nav a {
    color: #004a98;
    text-decoration: none;
    padding: 2px 10px;
}

.directorio-nav a:not(:last-child) {
    border-right: 1px solid #00b2e3;
}

.directorio-nav a:hover,
.directorio-nav a:focus {
    color: #00b2e3;
    text-decoration: underline;
}

.directorio-nav a.is-active {
    color: #004a98;
    text-decoration: underline;
    text-decoration-color: #00b2e3;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

@media (max-width: 768px) {
    .directorio-nav {
        font-size: 16px;
        margin-bottom: 22px;
    }

    .directorio-nav a {
        padding: 2px 8px;
    }
}

.carreras-menu-wrapper {
    margin-top: 10px;
    margin-bottom: 28px;
    font-family: Arial, sans-serif;
}

.carreras-menu-icon {
    display: none;
    background: #004a98;
    color: white;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
}

.carreras-menu-icon .txt-close {
    display: none;
}

#carreras-menu-toggle:checked + .carreras-menu-icon .txt-open {
    display: none;
}

#carreras-menu-toggle:checked + .carreras-menu-icon .txt-close {
    display: inline;
}

.carreras-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.carreras-tabs .carreras-tab {
    padding: 6px 12px;
    background: #eaeaea;
    color: #004a98;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.carreras-tabs .carreras-tab.is-active {
    background: #004a98;
    color: #fff;
}

.carreras-tabs .carreras-tab:hover,
.carreras-tabs .carreras-tab:focus {
    background-color: #00b2e3;
    color: white;
    text-decoration: none;
}

.carreras-tabs .carreras-tab:visited {
    color: inherit;
}

@media (max-width: 768px) {
    .carreras-menu-wrapper {
        margin-bottom: 22px;
    }

    .carreras-menu-icon {
        display: block;
        margin-bottom: 10px;
    }

    .carreras-tabs {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    #carreras-menu-toggle:checked ~ .carreras-tabs {
        display: flex;
    }

    .carreras-tabs .carreras-tab {
        width: 100%;
        text-align: center;
    }
}

