/* === Header / Navbar — estructura snaicc + paleta IGCC === */
.site-header__logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap: 1.25rem;
}
.site-header__brand,
.site-header__plataforma {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.site-header__brand img {
    width: 130px;
    height: auto;
}
.site-header__plataforma img {
    max-width: 229px;
    height: auto;
}

.site-nav {
    padding-top: 0;
    padding-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 61, 56, 0.08);
}
/* `.site-nav .site-nav__inner` (0,2,0) gana sobre Bootstrap `.navbar > .container`
   para que la fila interna se estire a toda la altura y el CTA la ocupe completa */
.site-nav .site-nav__inner {
    min-height: 52px;
    align-items: stretch;
}
.site-nav .navbar-collapse {
    align-items: stretch;
}

.navbar .menu.navbar-nav {
    gap: 0;
    align-items: stretch;
}
.navbar .menu.navbar-nav > .nav-item {
    display: flex;
    align-items: stretch;
}

/* Menú: ítems con la apariencia snaicc, sin uppercase, paleta teal IGCC */
.navbar .menu__item {
    display: inline-flex;
    align-items: center;
    padding: 14px 18px;
    color: #ffffff !important;
    text-decoration: none;
    position: relative;
    transition: background-color 0.15s ease, color 0.15s ease;
    border-bottom: 0 !important;
}
.navbar .menu__item:hover,
.navbar .menu__item:focus {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.12);
    border-bottom: 0 !important;
    padding-bottom: 14px !important;
}
.navbar .menu__item:focus-visible {
    outline: 2px solid #ffd166;
    outline-offset: -2px;
}
.navbar .menu__item.is-active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.08);
}
.navbar .menu__item.is-active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 3px;
    background: #ffffff;
    border-radius: 2px 2px 0 0;
}
.navbar .menu__link {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    text-transform: none;
}

/* Botón "Iniciar Sesión": CTA naranjo que ocupa toda la altura del navbar — igual a producción */
.navbar .btn-primary {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    white-space: nowrap;
}

/* ====================================================================
   MENÚ MÓVIL — drawer off-canvas (réplica de snaicc, paleta IGCC)
   ==================================================================== */
.mobile-menu {
    display: flex;
    align-items: center;
}

/* Botón hamburguesa: 3 líneas blancas que se animan a "X" al abrir */
.mobile-menu-toggle {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    padding: 7px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    z-index: 1001;
    transition: opacity 0.2s ease;
}
.mobile-menu-toggle:hover { opacity: 0.75; }
.hamburger-line {
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Overlay + backdrop */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 61, 56, 0);
    visibility: hidden;
    transition: background-color 0.25s ease, visibility 0s linear 0.25s;
}
.mobile-nav.is-open {
    background: rgba(0, 61, 56, 0.55);
    visibility: visible;
    transition: background-color 0.25s ease, visibility 0s linear 0s;
}

/* Drawer deslizante desde la derecha */
.mobile-nav__drawer {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(320px, 88vw);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.mobile-nav.is-open .mobile-nav__drawer {
    transform: translateX(0);
}

.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    flex: none;
}
.mobile-nav__title {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6c757d;
}
.mobile-nav__close {
    background: none;
    border: 0;
    padding: 4px 8px;
    cursor: pointer;
    color: #333;
    font-size: 1.35rem;
    line-height: 1;
    display: flex;
}
.mobile-nav__close:hover { color: #00adc7; }

.mobile-nav__list { padding: 8px 0; }
.mobile-nav__list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-nav__link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.mobile-nav__link:hover,
.mobile-nav__link:focus-visible {
    background: rgba(0, 173, 199, 0.08);
    color: #00838f;
}
.mobile-nav__link.is-active {
    border-left-color: #00adc7;
    color: #00838f;
    background: rgba(0, 173, 199, 0.06);
}

/* Footer del drawer: CTA naranjo "Iniciar Sesión" a todo el ancho */
.mobile-nav__footer {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding: 16px 20px;
}
.mobile-nav__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: #f06548;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease;
}
.mobile-nav__cta:hover,
.mobile-nav__cta:focus-visible {
    background: #d9543a;
    color: #ffffff;
}

@media (max-width: 1199.98px) {
    .navbar .menu__link { font-size: 0.88rem; }
    .navbar .menu__item { padding: 14px 12px; }
    .navbar .menu__item.is-active::after { left: 10px; right: 10px; }
}
@media (max-width: 767.98px) {
    /* Logos en fila (no apilados): se reduce el logo de plataforma para que ambos quepan */
    .site-header__logos {
        gap: 0.75rem;
        padding: 0;
    }
    .site-header__brand { flex: 0 0 auto; }
    .site-header__brand img { width: 88px; }
    .site-header__plataforma { min-width: 0; }
    .site-header__plataforma img { max-width: min(190px, 48vw); }
}
