@charset "utf-8";
/* =========================================
   DIRECTORIO INSTITUCIONAL
   MENÚ DE UNIDADES ORGÁNICAS
========================================= */

.ac-section-dir__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    margin-bottom: 12px;
}

/* Botón de navegación */

.ac-section-dir__btn {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 43px;
    padding: 9px 12px;

    color: #173b68;
    background-color: #f5f9fd;
    border: 1px solid #e3edf7;
    border-radius: 10px 10px 0 0;

    font: inherit;
    text-align: center;
    line-height: 1.3;

    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Icono */

.ac-section-dir__btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #174d86;
    font-size: 16px;
}

/* Texto */

.ac-section-dir__btn-text {
    display: inline-block;
    font-size:0.85rem;
}

/* Hover */

.ac-section-dir__btn:hover {
    color: #0756a5;
    background-color: #e7f2ff;
    border-color: #b7d5f4;
}

/* Botón seleccionado */

.ac-section-dir__btn--activo,
.ac-section-dir__btn--activo:hover {
    color: #fff;
    background-color: #0868bd;
    border-color: #0868bd;
    box-shadow: 0 2px 5px rgba(8, 70, 130, 0.15);
}

.ac-section-dir__btn--activo .ac-section-dir__btn-icon {
    color: #fff;
}

/* Estado de la consulta AJAX */

.ac-section-dir__estado {
    display: none;
    margin-bottom: 10px;
    padding: 8px 12px;
    color: #174d86;
    background-color: #edf6ff;
    border-radius: 5px;
}

.ac-section-dir__estado--visible {
    display: block;
}

.ac-section-dir__estado--error {
    color: #842029;
    background-color: #f8d7da;
}

/* =========================================
   TABLETS
========================================= */

@media (max-width: 991.98px) {
    .ac-section-dir__nav {
        gap: 7px;
    }

    .ac-section-dir__btn {
        flex: 1 1 calc(33.333% - 7px);
        min-width: 0;
        padding: 10px 8px;
    }
}

/* =========================================
   MÓVILES
========================================= */

@media (max-width: 575.98px) {
    .ac-section-dir__nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .ac-section-dir__btn {
        width: 100%;
        min-height: 44px;
        padding: 9px 6px;
        gap: 6px;
        font-size: 0.9em;
    }

    .ac-section-dir__btn-icon {
        font-size: 15px;
    }
}