@charset "utf-8";
/* CSS Document */
.ac-dir {
    --ac-dir-blue: #073b78;
    --ac-dir-blue-dark: #062d5d;
    --ac-dir-blue-mid: #087dbb;
    --ac-dir-light: #eaf3fb;
    --ac-dir-line: #d6e1eb;
    --ac-dir-text: #263e56;
    --ac-dir-muted: #718195;
    width: 100%;
    color: var(--ac-dir-text);
}

.ac-dir__listado {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ac-dir__item {
    overflow: hidden;
    border: 1px solid #cbdbea;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(6, 45, 93, .045);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ac-dir__item:hover {
    border-color: #9fc4df;
    box-shadow: 0 7px 18px rgba(6, 45, 93, .08);
}

/* Banda de unidad orgánica */
.ac-dir__unit {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 54px;
    overflow: hidden;
    padding: 9px 19px;
    color: #fff;
    background: linear-gradient(105deg, #062d5d 0%, #07549a 58%, #78c5ed 58.1%, #b9e3f8 100%);
}

.ac-dir__unit::after {
    position: absolute;
    top: -25px;
    right: 38%;
    width: 48px;
    height: 110px;
    content: "";
    transform: skewX(-35deg);
    background: rgba(255,255,255,.14);
}

.ac-dir__unit-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #073b78;
    border-radius: 7px;
    background: #fff;
    font-size: 18px;
}

.ac-dir__unit h3 {
    position: relative;
    z-index: 1;
    max-width: 85%;
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .2px;
    text-transform: uppercase;
}

/* Datos del responsable */
.ac-dir__person {
    display: grid;
    grid-template-columns: 48px minmax(230px, 1.5fr) minmax(190px, 1fr) minmax(145px, .65fr);
    align-items: center;
    min-height: 76px;
    background: #fff;
}

.ac-dir__item:nth-child(even) .ac-dir__person {
    background: #f4f6f8;
}

.ac-dir__number {
    display: flex;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    color: #062d5d;
    border-right: 1px solid var(--ac-dir-line);
    background: rgba(234,243,251,.7);
    font-size: 15px;
    font-weight: 800;
}

.ac-dir__identity {
    min-width: 0;
    padding: 12px 17px;
}

.ac-dir__name {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #062d5d;
    font-size: 14px;
    line-height: 1.35;
}

.ac-dir__name i {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #087dbb;
    font-size: 17px;
}

.ac-dir__name strong {
    font-weight: 800;
}

.ac-dir__profession {
    display: block;
    padding-left: 25px;
    margin-top: 4px;
    color: #718195;
    font-size: 12px;
    line-height: 1.35;
}

.ac-dir__role {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 10px 18px;
    border-left: 1px solid var(--ac-dir-line);
    color: #263e56;
    font-size: 12px;
    line-height: 1.4;
}

.ac-dir__label {
    color: #718195;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
}

.ac-dir__phone {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 9px;
    padding: 9px 13px;
    margin: 8px 12px;
    color: #062d5d;
    border: 1px solid #d1e7f5;
    border-radius: 7px;
    background: #eaf5fc;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.ac-dir__phone i {
    color: #087dbb;
    font-size: 15px;
}

.ac-dir__phone:hover {
    color: #fff;
    border-color: #073b78;
    background: #073b78;
}

.ac-dir__phone:hover i {
    color: #fff;
}

/* Tablet */
@media (max-width: 991.98px) {
    .ac-dir__person {
        grid-template-columns: 42px minmax(190px, 1.3fr) minmax(160px, 1fr) 130px;
    }

    .ac-dir__identity {
        padding-right: 10px;
        padding-left: 13px;
    }

    .ac-dir__role {
        padding-right: 11px;
        padding-left: 12px;
    }

    .ac-dir__phone {
        gap: 7px;
        padding: 8px 9px;
        margin-right: 7px;
        margin-left: 5px;
        font-size: 12px;
    }
}

/* Móvil */
@media (max-width: 767.98px) {
    .ac-dir__listado {
        gap: 12px;
    }

    .ac-dir__unit {
        min-height: 49px;
        padding: 8px 12px;
        background: linear-gradient(105deg, #062d5d 0%, #07549a 78%, #78c5ed 100%);
    }

    .ac-dir__unit::after {
        right: 12%;
    }

    .ac-dir__unit h3 {
        max-width: none;
        font-size: 12px;
    }

    .ac-dir__person {
        grid-template-columns: 38px minmax(0, 1fr);
        min-height: auto;
    }

    .ac-dir__number {
        grid-row: 1 / span 3;
        padding: 0 5px;
        font-size: 13px;
    }

    .ac-dir__identity {
        padding: 12px 13px 5px;
    }

    .ac-dir__role {
        grid-column: 2;
        padding: 4px 13px 7px;
        border-left: 0;
    }

    .ac-dir__phone {
        grid-column: 2;
        justify-self: start;
        margin: 3px 13px 12px;
    }
}

@media (max-width: 420px) {
    .ac-dir__unit h3 {
        font-size: 11px;
    }

    .ac-dir__name {
        font-size: 13px;
    }

    .ac-dir__profession,
    .ac-dir__role {
        font-size: 11px;
    }
}
