/* =========================================================
DIRECTORIO DE FUNCIONARIOS
Contraloría Distrital de Medellín
CSS completo, profesional y responsive
========================================================= */

.dir-page {
    --dir-green-950: #001f18;
    --dir-green-900: #002d22;
    --dir-green-850: #00372a;
    --dir-green-800: #003f2f;
    --dir-green-700: #075d46;
    --dir-green-500: #0b7a35;

    --dir-lime: #8bd936;
    --dir-lime-bright: #a8f247;
    --dir-lime-soft: #eaf7dc;

    --dir-white: #ffffff;
    --dir-soft: #f4f7f3;
    --dir-paper: #f6f3eb;
    --dir-text: #173d32;
    --dir-muted: #66756f;

    --dir-border: rgba(0, 63, 47, 0.12);
    --dir-shadow: 0 18px 46px rgba(0, 63, 47, 0.10);
    --dir-shadow-lg: 0 30px 78px rgba(0, 45, 34, 0.16);

    --dir-radius-sm: 16px;
    --dir-radius-md: 24px;
    --dir-radius-lg: 32px;
 
    overflow-x: clip;
    background: var(--dir-white);
    color: var(--dir-text);
}

.dir-page *,
.dir-page *::before,
.dir-page *::after {
    box-sizing: border-box;
}

.dir-page h1,
.dir-page h2,
.dir-page h3,
.dir-page p {
    margin-top: 0;
}

.dir-page a {
    text-decoration: none;
}

.dir-page button,
.dir-page input,
.dir-page select {
    font: inherit;
}


.dir-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--dir-green-500);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dir-kicker::before {
    content: "";
    width: 30px;
    height: 3px;
    border-radius: 999px;
    background: var(--dir-lime);
}


/* =========================================================
HERO
========================================================= */

.dir-hero {
    position: relative;
    min-height: 840px;
    padding: 96px 0 0;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 75% 24%,
            rgba(139, 217, 54, 0.15),
            transparent 27%
        ),
        linear-gradient(
            135deg,
            var(--dir-green-950) 0%,
            var(--dir-green-900) 52%,
            #004535 100%
        );
}

.dir-hero::after {
    content: "";
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: -110px;
    height: 180px;
    border-radius:
        50% 50% 0 0 /
        42% 42% 0 0;
    background: var(--dir-white);
}

.dir-hero__grid {
    position: absolute;
    inset: 0;
    opacity: 0.14;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.06) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.06) 1px,
            transparent 1px
        );

    background-size: 54px 54px;
}

.dir-hero__glow {
    position: absolute;
    border: 1px solid rgba(139, 217, 54, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.dir-hero__glow--one {
    width: 500px;
    height: 500px;
    right: -190px;
    top: 45px;

    box-shadow:
        0 0 0 70px rgba(139, 217, 54, 0.014),
        0 0 0 140px rgba(139, 217, 54, 0.008);
}

.dir-hero__glow--two {
    width: 220px;
    height: 220px;

    left: -90px;
    bottom: 150px;

    border-color: rgba(255, 255, 255, 0.07);
}

.dir-hero__layout {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        0.94fr
        1.06fr;

    gap: 58px;

    align-items: center;
}

.dir-hero__copy {
    padding-bottom: 160px;
}

.dir-hero__eyebrow {
    display: inline-block;

    margin-bottom: 25px;

    color: var(--dir-lime);

    font-size: 0.73rem;
    font-weight: 850;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.dir-hero__copy h1 {
    max-width: 760px;

    margin-bottom: 26px;

    color: var(--dir-white);

    font-size:
        clamp(
            4rem,
            6.5vw,
            6.9rem
        );

    font-weight: 820;
    line-height: 0.88;
    letter-spacing: -0.055em;
}

.dir-hero__copy h1 span {
    display: block;

    color: var(--dir-lime);

    font-weight: 380;
    font-style: italic;
}

.dir-hero__copy > p {
    max-width: 650px;

    margin-bottom: 0;

    color: rgba(255, 255, 255, 0.70);

    font-size: 1.03rem;
    line-height: 1.75;
}

.dir-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 32px;
}

.dir-btn {
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 0 22px;

    border-radius: 12px;

    font-size: 0.84rem;
    font-weight: 850;

    transition:
        transform 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.dir-btn:hover {
    transform: translateY(-3px);
}

.dir-btn--lime {
    color: var(--dir-green-950);

    background: var(--dir-lime);

    box-shadow:
        0 18px 40px rgba(139, 217, 54, 0.16);
}

.dir-btn--lime:hover {
    color: var(--dir-green-950);

    background: var(--dir-lime-bright);
}

.dir-btn--glass {
    border: 1px solid rgba(255, 255, 255, 0.23);

    color: var(--dir-white);

    background: rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(14px);
}

.dir-btn--glass:hover {
    color: var(--dir-white);

    background: rgba(255, 255, 255, 0.10);
}

.dir-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 40px;
}

.dir-hero__chips span {
    padding: 8px 11px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;

    color: rgba(255, 255, 255, 0.50);

    background: rgba(255, 255, 255, 0.035);

    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.dir-hero__visual {
    position: relative;

    min-height: 580px;

    padding-bottom: 140px;

    perspective: 1100px;
}

.dir-hero__image-frame {
    position: absolute;

    inset:
        24px
        0
        148px
        0;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 32px;

    background: rgba(255, 255, 255, 0.05);

    box-shadow:
        0 38px 95px rgba(0, 0, 0, 0.28);

    transform:
        rotateY(var(--dir-hero-ry, 0deg))
        rotateX(var(--dir-hero-rx, 0deg));

    transition:
        transform 160ms ease-out;
}

.dir-hero__image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transform: scale(1.02);
}

.dir-hero__image-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 31, 24, 0.35) 0%,
            rgba(0, 31, 24, 0.06) 50%,
            rgba(0, 31, 24, 0.10) 100%
        ),
        linear-gradient(
            0deg,
            rgba(0, 31, 24, 0.50) 0%,
            transparent 48%
        );
}

.dir-hero__image-tag {
    position: absolute;

    left: 22px;
    top: 22px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 12px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;

    color: var(--dir-white);

    background: rgba(0, 31, 24, 0.56);

    backdrop-filter: blur(10px);

    font-size: 0.66rem;
    font-weight: 800;
}

.dir-hero__image-tag span {
    color: var(--dir-lime);

    font-weight: 900;
}

.dir-hero__image-stat {
    position: absolute;

    left: 24px;
    right: 24px;
    bottom: 22px;

    padding: 16px 18px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;

    background: rgba(0, 31, 24, 0.68);

    backdrop-filter: blur(12px);
}

.dir-hero__image-stat small,
.dir-hero__image-stat strong {
    display: block;
}

.dir-hero__image-stat small {
    color: var(--dir-lime);

    font-size: 0.59rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.dir-hero__image-stat strong {
    margin-top: 4px;

    color: var(--dir-white);

    font-size: 0.89rem;
}


/* =========================================================
BARRA HERO
========================================================= */

.dir-hero__command {
    position: relative;
    z-index: 5;

    min-height: 104px;

    display: grid;

    grid-template-columns:
        auto
        1fr
        auto;

    gap: 18px;

    align-items: center;

    margin-top: -112px;

    padding: 20px 24px;

    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.95);

    box-shadow:
        0 28px 75px rgba(0, 45, 34, 0.18);

    backdrop-filter: blur(18px);
}

.dir-command__icon {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    color: var(--dir-lime);

    background: var(--dir-green-950);

    font-size: 1.35rem;
}

.dir-command__copy small,
.dir-command__copy strong {
    display: block;
}

.dir-command__copy small {
    color: #839089;

    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.dir-command__copy strong {
    margin-top: 4px;

    color: var(--dir-green-950);

    font-size: 0.93rem;
}

.dir-command__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--dir-green-700);

    font-size: 0.72rem;
    font-weight: 900;
}

.dir-command__link:hover {
    color: var(--dir-green-500);
}


/* =========================================================
INTRO
========================================================= */

.dir-intro {
    padding: 105px 0 72px;
}

.dir-intro__grid {
    display: grid;

    grid-template-columns:
        0.92fr
        1.08fr;

    gap: 72px;

    align-items: center;
}

.dir-intro h2,
.dir-section-heading h2 {
    margin-bottom: 16px;

    color: var(--dir-green-950);

    font-size:
        clamp(
            2.4rem,
            4vw,
            4.4rem
        );

    line-height: 1;
    letter-spacing: -0.04em;
}

.dir-intro h2 span,
.dir-section-heading h2 span {
    display: block;

    color: var(--dir-green-500);

    font-weight: 360;
    font-style: italic;
}

.dir-intro__copy {
    padding: 30px 31px;

    border-left: 4px solid var(--dir-lime);
    border-radius:
        0
        22px
        22px
        0;

    background: var(--dir-soft);
}

.dir-intro__copy p {
    color: var(--dir-muted);
}

.dir-intro__copy p:last-child {
    margin-bottom: 0;
}


/* =========================================================
CONSULTA Y FILTROS
========================================================= */

.dir-consulta {
    padding: 64px 0 44px;

    background: var(--dir-paper);
}

.dir-section-heading {
    max-width: 820px;

    margin: 0 auto 42px;

    text-align: center;
}

.dir-filter-panel {
    margin-bottom: 0;

    padding: 26px;

    border: 1px solid var(--dir-border);
    border-radius: var(--dir-radius-md);

    background: var(--dir-white);

    box-shadow: var(--dir-shadow);
}

.dir-filter-panel__top {
    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(250px, 0.9fr)
        auto;

    gap: 18px;

    align-items: end;
}

.dir-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dir-field label {
    color: var(--dir-green-900);

    font-size: 0.78rem;
    font-weight: 850;
}

.buscador {
    min-height: 50px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 0 16px;

    border: 1px solid var(--dir-border);
    border-radius: 14px;

    background: var(--dir-white);

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.buscador:focus-within {
    border-color: var(--dir-lime);

    box-shadow:
        0 0 0 4px rgba(139, 217, 54, 0.16);
}

.search-icon {
    color: var(--dir-green-500);
}

.input-filtro {
    width: 100%;

    padding: 0;

    border: 0;
    outline: none;

    color: var(--dir-green-950);

    background: transparent;
}

.select-filtro {
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--dir-border);
    border-radius: 14px;
    color: var(--dir-green-950);
    background: var(--dir-white);
    outline: none;
    width: 100%;
}

.select-filtro:focus {
    border-color: var(--dir-lime);

    box-shadow:
        0 0 0 4px rgba(139, 217, 54, 0.16);
}

.dir-clear-btn {
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 0 18px;

    border: 0;
    border-radius: 14px;

    color: var(--dir-white);

    background: var(--dir-green-950);

    font-weight: 850;

    cursor: pointer;

    transition:
        transform 180ms ease,
        background 180ms ease;
}

.dir-clear-btn:hover {
    transform: translateY(-2px);

    background: var(--dir-green-700);
}

.dir-alpha-block {
    margin-top: 24px;
    padding-top: 22px;

    border-top: 1px solid var(--dir-border);
}

.dir-alpha-block__title {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 14px;
}

.dir-alpha-block__title span {
    color: var(--dir-green-950);

    font-size: 0.8rem;
    font-weight: 850;
}

.dir-alpha-block__title small {
    color: var(--dir-muted);
}

.abecedario-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.btn-letra,
.btn-todos {
    min-width: 38px;
    min-height: 38px;

    padding: 0 11px;

    border: 0;
    border-radius: 10px;

    cursor: pointer;

    font-size: 0.78rem;
    font-weight: 850;

    transition:
        transform 160ms ease,
        background 160ms ease,
        color 160ms ease;
}

.btn-letra {
    color: var(--dir-white);

    background: var(--dir-green-950);
}

.btn-letra:hover,
.btn-letra.is-active {
    color: var(--dir-green-950);

    background: var(--dir-lime);

    transform: translateY(-2px);
}

.btn-todos {
    color: var(--dir-green-950);

    background: var(--dir-lime);
}

.btn-todos:hover {
    background: var(--dir-lime-bright);

    transform: translateY(-2px);
}


/* =========================================================
RESUMEN DE RESULTADOS
========================================================= */

.dir-results-summary {
    padding: 40px 0 0;

    background: var(--dir-paper);
}

.directorio-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    margin-bottom: 32px;

    padding: 20px 24px;

    border: 1px solid var(--dir-border);
    border-radius: 20px;

    background: var(--dir-white);

    box-shadow:
        0 12px 30px rgba(0, 63, 47, 0.07);
}

.directorio-total {
    display: flex;
    align-items: center;
    gap: 18px;
}

.directorio-icono {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 16px;

    color: var(--dir-white);

    background:
        linear-gradient(
            145deg,
            var(--dir-green-700),
            var(--dir-green-950)
        );

    font-size: 1.1rem;
}

.directorio-total h3 {
    margin-bottom: 0;

    color: var(--dir-green-950);

    font-size: 1.05rem;
    font-weight: 850;
}

.directorio-total p {
    margin: 5px 0 0;

    color: var(--dir-muted);

    font-size: 0.86rem;
}

.dir-results-summary__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 12px;

    border: 1px solid var(--dir-border);
    border-radius: 999px;

    color: var(--dir-green-900);

    background: var(--dir-soft);

    font-size: 0.72rem;
    font-weight: 800;
}

.dir-status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--dir-lime);

    box-shadow:
        0 0 0 5px rgba(139, 217, 54, 0.11);
}


/* =========================================================
LISTADO
========================================================= */

.dir-directory {
    padding: 0 0 110px;

    background: var(--dir-paper);
}

.busqueda-header {
    margin-bottom: 0;
}

.lista-card {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 24px;
}

.persona-item {
    min-width: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--dir-border);
    border-radius: 22px;

    background: var(--dir-white);

    box-shadow:
        0 10px 28px rgba(0, 63, 47, 0.07);

    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease;
}

.persona-item:hover {
    transform: translateY(-7px);

    border-color: rgba(139, 217, 54, 0.60);

    box-shadow: var(--dir-shadow-lg);
}

.container-avatar {
    position: relative;

    min-height: 150px;

    display: grid;
    place-items: center;

    padding: 26px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(139, 217, 54, 0.20),
            transparent 45%
        ),
        linear-gradient(
            145deg,
            #eef8e9,
            #f7fbf4
        );
}

.container-avatar::before {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    right: -50px;
    top: -65px;

    border-radius: 50%;

    border: 1px solid rgba(0, 63, 47, 0.08);

    box-shadow:
        0 0 0 30px rgba(0, 63, 47, 0.018),
        0 0 0 60px rgba(0, 63, 47, 0.010);
}

.avatar {
    position: relative;
    z-index: 2;

    width: 82px;
    height: 82px;

    display: grid;
    place-items: center;

    border-radius: 24px;

    color: var(--dir-lime);

    background:
        linear-gradient(
            145deg,
            var(--dir-green-800),
            var(--dir-green-950)
        );

    box-shadow:
        0 18px 35px rgba(0, 45, 34, 0.18);

    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.info-persona {
    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;

    padding: 24px 22px 18px;

    text-align: center;
}

.nombre-persona {
    color: var(--dir-green-950);

    font-size: 1.12rem;
    font-weight: 850;
    line-height: 1.25;

    text-transform: none;
}

.cargo {
    margin-top: 10px;

    color: var(--dir-green-500);

    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.35;
}

.dep-persona {
    margin-top: 7px;

    color: var(--dir-muted);

    font-size: 0.79rem;
    line-height: 1.4;
}

.info-footer {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 7px;

    padding: 0 22px 20px;
}

.linea {
    width: 100%;
    height: 1px;

    margin-bottom: 7px;

    background: var(--dir-border);
}

.tel-persona {
    min-width: 0;

    overflow: hidden;

    color: var(--dir-green-800);

    font-size: 0.77rem;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.tel-persona:hover {
    color: var(--dir-green-500);
}

.info-boton {
    width: 100%;
}

.info-boton .boton {
    width: 100%;
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 0 22px;

    border: 0;

    color: var(--dir-white);

    background: var(--dir-green-950);

    font-size: 0.81rem;
    font-weight: 850;

    cursor: pointer;

    transition:
        background 180ms ease,
        padding 180ms ease;
}

.info-boton .boton:hover {
    padding-left: 26px;
    padding-right: 18px;

    background: var(--dir-green-700);
}

.dir-empty-state,
.dir-loading-placeholder {
    grid-column: 1 / -1;

    padding: 46px 24px;

    border: 1px dashed var(--dir-border);
    border-radius: 20px;

    color: var(--dir-muted);

    background: rgba(255, 255, 255, 0.65);

    text-align: center;
}

.error-msg {
    grid-column: 1 / -1;

    padding: 28px;

    border: 1px solid rgba(202, 58, 58, 0.25);
    border-radius: 18px;

    color: #9c2f2f;

    background: #fff8f8;

    text-align: center;
}


/* =========================================================
PAGINACIÓN
========================================================= */

.ac-paginador {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 34px;
}

.ac-pag-btn {
    min-width: 40px;
    height: 40px;

    display: inline-grid;
    place-items: center;

    padding: 0 10px;

    border: 1px solid var(--dir-border);
    border-radius: 10px;

    color: var(--dir-green-950);

    background: var(--dir-white);

    font-weight: 800;

    cursor: pointer;

    transition:
        background 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.ac-pag-btn:hover:not(:disabled),
.ac-pag-btn.active {
    color: var(--dir-green-950);

    background: var(--dir-lime);

    transform: translateY(-2px);
}

.ac-pag-btn:disabled {
    opacity: 0.4;

    cursor: not-allowed;
}

.ac-pag-dots {
    color: var(--dir-muted);
}


/* =========================================================
MODAL
========================================================= */

.modal-funcionario {
    overflow: hidden;

    border: 0;
    border-radius: 22px;

    background: var(--dir-white);

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.24);
}

.modal-funcionario .modal-header {
    padding: 25px 30px;

    border-bottom: 0;

    color: var(--dir-white);

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(139, 217, 54, 0.16),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            var(--dir-green-950),
            var(--dir-green-700)
        );
}

.modal-header-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.modal-avatar {
    width: 76px;
    height: 76px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border: 3px solid rgba(255, 255, 255, 0.75);
    border-radius: 22px;

    color: var(--dir-lime);

    background: rgba(255, 255, 255, 0.09);

    font-size: 1.65rem;
    font-weight: 900;
    text-transform: uppercase;
}

#modalNombre {
    margin: 0;

    color: var(--dir-white);

    font-size: 1.45rem;
    font-weight: 850;
}

#modalCargo {
    margin: 5px 0 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 0.9rem;
}

.modal-funcionario .btn-close {
    opacity: 0.95;

    filter: brightness(0) invert(1);
}

.modal-funcionario .modal-body {
    padding: 32px;

    background: #f7faf7;
}

.dato-modal {
    min-height: 116px;

    margin-bottom: 18px;

    padding: 18px 20px;

    border-left: 4px solid var(--dir-lime);
    border-radius: 14px;

    background: var(--dir-white);

    box-shadow:
        0 6px 18px rgba(0, 63, 47, 0.06);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.dato-modal:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 24px rgba(0, 63, 47, 0.09);
}

.dato-modal label {
    display: block;

    margin-bottom: 8px;

    color: var(--dir-green-900);

    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dato-modal span,
.dato-modal a {
    color: #2d3733;

    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
}

.dato-modal a {
    color: #0056a6;
}

.dato-modal a:hover {
    color: #003b71;

    text-decoration: underline;
}


/* =========================================================
LOADING
========================================================= */

.pai-loading {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: grid;
    place-items: center;

    padding: 20px;

    background: rgba(0, 31, 24, 0.80);

    backdrop-filter: blur(8px);

    transition:
        opacity 220ms ease,
        visibility 220ms ease;
}

.pai-loading.is-hidden {
    opacity: 0;
    visibility: hidden;

    pointer-events: none;
}

.pai-loading__content {
    min-width: 260px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    padding: 28px 30px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;

    color: var(--dir-white);

    background: rgba(0, 45, 34, 0.92);

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.30);

    text-align: center;
}

.pai-loading__content small {
    color: rgba(255, 255, 255, 0.62);
}

.pai-loader {
    width: 42px;
    height: 42px;

    border: 4px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--dir-lime);
    border-radius: 50%;

    animation:
        dirSpin 0.85s linear infinite;
}

@keyframes dirSpin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
BACK TO TOP
========================================================= */

.dir-back-top {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 100;

    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 50%;

    color: var(--dir-white);

    background: var(--dir-green-950);

    box-shadow: var(--dir-shadow);

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition:
        opacity 180ms ease,
        visibility 180ms ease,
        transform 180ms ease;
}

.dir-back-top.is-visible {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* =========================================================
RESPONSIVE
========================================================= */

@media (max-width: 1120px) {

    .dir-hero {
        min-height: auto;
    }

    .dir-hero__layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .dir-hero__copy {
        padding-bottom: 18px;
    }

    .dir-hero__visual {
        min-height: 520px;
    }

    .dir-hero__command {
        margin-top: -70px;
    }

    .dir-intro__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .dir-filter-panel__top {
        grid-template-columns:
            1fr
            1fr;
    }

    .dir-clear-btn {
        grid-column: 1 / -1;
    }

    .lista-card {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}

@media (max-width: 767px) {

    .dir-hero {
        padding-top: 68px;
    }

    .dir-hero__copy h1 {
        font-size: 3.45rem;
        letter-spacing: -0.045em;
    }

    .dir-hero__copy > p {
        font-size: 0.94rem;
    }

    .dir-hero__visual {
        min-height: 430px;
    }

    .dir-hero__image-frame {
        inset:
            12px
            0
            110px
            0;
    }

    .dir-hero__command {
        grid-template-columns:
            auto
            1fr;

        margin-top: -50px;

        padding: 18px;
    }

    .dir-command__link {
        grid-column: 1 / -1;
    }

    .dir-intro {
        padding: 80px 0 52px;
    }

    .dir-intro h2,
    .dir-section-heading h2 {
        font-size: 2.65rem;
    }

    .dir-consulta {
        padding-top: 54px;
    }

    .dir-filter-panel {
        padding: 20px;
    }

    .dir-filter-panel__top {
        grid-template-columns: 1fr;
    }

    .dir-clear-btn {
        grid-column: auto;
    }

    .dir-alpha-block__title {
        flex-direction: column;
        gap: 3px;
    }

    .directorio-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .directorio-total {
        align-items: flex-start;
    }

    .dir-results-summary__status {
        align-self: stretch;
        justify-content: center;
    }

    .lista-card {
        grid-template-columns: 1fr;
    }

    .modal-funcionario .modal-header {
        padding: 20px;
    }

    .modal-header-info {
        gap: 12px;
    }

    .modal-avatar {
        width: 60px;
        height: 60px;

        border-radius: 18px;

        font-size: 1.25rem;
    }

    #modalNombre {
        font-size: 1.12rem;
    }

    .modal-funcionario .modal-body {
        padding: 20px;
    }

}

@media (max-width: 460px) {

    .dir-hero__copy h1 {
        font-size: 3rem;
    }

    .dir-intro h2,
    .dir-section-heading h2 {
        font-size: 2.25rem;
    }

    .dir-hero__actions {
        display: grid;
    }

    .dir-btn {
        width: 100%;
    }

    .directorio-total {
        flex-direction: column;
    }

    .btn-letra,
    .btn-todos {
        min-width: 36px;
        min-height: 36px;
    }

}


/* =========================================================
REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .dir-page *,
    .dir-page *::before,
    .dir-page *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

}
