:root {
    --gobmx-wine: #691c32;
    --gobmx-wine-alt: #9f2241;
    --gobmx-gold: #bc955c;
    --tecnm-blue: #1b396a;
    --tecnm-blue-dark: #102849;
    --tecnm-gray: #807e82;
    --tecnm-text: #1f2937;
    --tecnm-light: #f4f6f9;
}

html {
    font-size: 16px;
}

body.public-site {
    margin: 0;
    color: var(--tecnm-text);
    background-color: #ffffff;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#google_translate_element {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.high-contrast {
    background: #000000 !important;
    color: #ffffff !important;
}

.high-contrast a,
.high-contrast .card,
.high-contrast .table,
.high-contrast .list-group-item {
    color: #ffffff !important;
    background: #111111 !important;
    border-color: #ffffff !important;
}

.gov-topbar {
    background-color: var(--gobmx-wine);
    color: #ffffff;
    border-bottom: 1px solid rgba(188, 149, 92, 0.8);
}

.gov-topbar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap !important;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    min-height: 54px;
}

.gov-topbar-brand {
    display: inline-flex;
    align-items: center;
    margin-left: 5cm;
    flex: 0 0 auto;
}

.gov-topbar-access {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.3rem;
    flex: 0 0 auto;
}

.gov-topbar-brand img {
    width: auto;
    height: 44px;
}

.gov-topbar-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.gov-topbar-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    white-space: nowrap;
}

.gov-topbar-search i {
    font-size: 1rem;
}

.gov-topbar-links a:hover,
.gov-topbar-links a:focus,
.gov-topbar-access:hover,
.gov-topbar-access:focus {
    color: var(--gobmx-gold);
    text-decoration: underline;
}

.institutional-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.institutional-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.institutional-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    display: block;
    height: auto;
    max-width: 100%;
}

.header-logo-sep {
    width: 240px;
}

.header-logo-tecnm {
    width: 200px;
}

.institutional-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.utility-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--tecnm-blue);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.05rem;
    border: 1px solid var(--tecnm-blue);
}

.utility-circle:hover,
.utility-circle:focus {
    color: #ffffff;
    background-color: var(--tecnm-blue-dark);
}

.utility-icon {
    background-color: transparent;
    border: 0;
    padding: 0;
}

.utility-icon:hover,
.utility-icon:focus {
    background-color: transparent;
}

.utility-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.lang-pill {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    text-decoration: none;
}

.lang-pill img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

.lang-pill:hover,
.lang-pill:focus {
    background-color: #eff6ff;
}

.font-tool {
    color: var(--tecnm-blue);
    text-decoration: none;
    font-size: 1.85rem;
    line-height: 1;
    margin-left: 0.2rem;
}

.font-tool:hover,
.font-tool:focus {
    color: var(--tecnm-blue-dark);
}

.navbar-tecnm {
    background-color: var(--tecnm-blue);
}

.navbar-tecnm .navbar-brand,
.navbar-tecnm .nav-link {
    color: #f9fafb;
    font-weight: 500;
}

.navbar-tecnm .nav-link:hover,
.navbar-tecnm .nav-link:focus,
.navbar-tecnm .navbar-brand:hover,
.navbar-tecnm .navbar-brand:focus {
    color: #ffffff;
}

.navbar-tecnm .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}

.navbar-tecnm .navbar-toggler-icon {
    filter: invert(1);
}

.navbar-tecnm .dropdown-menu {
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

.navbar-tecnm .dropdown-item:active {
    background-color: var(--tecnm-blue);
}

@media (min-width: 992px) {
    .navbar-tecnm .navbar-nav {
        column-gap: 0.2rem;
        row-gap: 0.1rem;
    }

    .navbar-tecnm .nav-link {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
        padding-left: 0.42rem;
        padding-right: 0.42rem;
        font-size: 0.98rem;
        white-space: nowrap;
    }

    .navbar-login-btn {
        padding: 0.3rem 0.65rem;
        font-size: 0.8rem;
        margin-left: 0.5rem;
    }
}

.public-main {
    min-height: 55vh;
}

.site-footer {
    color: #ffffff;
    font-size: 0.95rem;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--gobmx-gold);
    text-decoration: underline;
}

.site-footer-top {
    background-color: var(--tecnm-blue);
}

.site-footer-gob {
    background-color: var(--gobmx-wine);
}

.footer-title {
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.85rem;
    font-weight: 700;
}

.footer-links li {
    margin-bottom: 0.45rem;
}

.footer-map {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    overflow: hidden;
}

.footer-gob-logo {
    max-width: 240px;
    width: 100%;
    height: auto;
}

.footer-gob-title {
    margin-bottom: 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.1;
}

.footer-gob-links li {
    margin-bottom: 0.4rem;
    font-size: 1.15rem;
    line-height: 1.3;
}

.footer-gob-intro {
    font-size: 1.15rem;
    line-height: 1.35;
}

.footer-gob-complaint {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: underline;
}

.gob-social-icons .list-inline-item {
    margin-right: 0.85rem;
}

.gob-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.footer-gob-help-symbol {
    font-size: 2rem;
    line-height: 1;
}

.footer-gob-help-number {
    font-size: 3rem;
    line-height: 1;
    font-weight: 700;
}

.footer-gob-help-text {
    max-width: 220px;
    font-size: 1.15rem;
    line-height: 1.2;
}

.gob-social-icons a:hover,
.gob-social-icons a:focus {
    color: #ffffff;
    opacity: 0.85;
}

@media (max-width: 991.98px) {
    .gov-topbar-inner {
        flex-wrap: nowrap;
    }

    .gov-topbar-brand img {
        height: 38px;
    }

    .gov-topbar-brand {
        margin-left: 1.25rem;
    }

    .gov-topbar-links {
        margin-left: auto;
        gap: 0.8rem;
    }

    .gov-topbar-links a {
        font-size: 1rem;
    }

    .header-logo-sep {
        width: 210px;
    }

    .header-logo-tecnm {
        width: 165px;
    }

    .institutional-tools {
        width: 100%;
        justify-content: flex-start !important;
    }

    .navbar-tecnm .navbar-collapse {
        padding-top: 0.75rem;
    }

    .navbar-tecnm .btn {
        margin-top: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .gov-topbar-inner {
        gap: 0.55rem;
        padding-left: 3rem;
    }

    .gov-topbar-access {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .gov-topbar-brand img {
        height: 32px;
    }

    .gov-topbar-brand {
        margin-left: 0;
    }

    .gov-topbar-links {
        display: none;
    }

    .gov-topbar-links a {
        font-size: 0.82rem;
    }

    .institutional-header-inner {
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }

    .header-logo-sep {
        width: 160px;
    }

    .header-logo-tecnm {
        width: 125px;
    }

    .utility-circle,
    .lang-pill {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .utility-icon img {
        width: 40px;
        height: 40px;
    }

    .font-tool {
        font-size: 1.5rem;
    }

    .navbar-tecnm .nav-link {
        font-size: 0.9rem;
    }

    .footer-gob-title {
        font-size: 1.5rem;
    }

    .footer-gob-links li,
    .footer-gob-intro {
        font-size: 1rem;
    }

    .footer-gob-complaint {
        font-size: 1.4rem;
    }

    .gob-social-icons a {
        font-size: 1.6rem;
    }

    .footer-gob-help-number {
        font-size: 2.2rem;
    }

    .footer-gob-help-text {
        font-size: 1rem;
    }
}
