header {
    padding-block: 2.5rem;
}

header img {
    width: min(60vw, 30rem);
    display: block;
    margin-left: calc(-0.06 * min(60vw, 30rem));
}


/* DEPARTAMENTOS */
/* Mobile first */

.departamentos {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 1.5rem;
}

.departamentos-sec {
    padding: 2.5rem 0;
}

@media (min-width: 700px) {
    .departamentos {
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2.5rem;
    }

    .departamentos-sec {
        padding: 3.5rem 0;
    }
}

@media (min-width: 1000px) {
    .departamentos {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 5rem 4rem;
    }

    .departamentos-sec {
        padding: 4rem 0;
    }
}

.departamento {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: 1.15rem;
    position: relative;
    text-align: left;
    width: 100%;
    padding-block: 0.15rem;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    transform: none;
    color: var(--azul);
    text-decoration: none;
    isolation: isolate;
}

.dep-icono {
    display: block;
    width: 2.2rem;
    height: auto;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.dep-texto {
    min-width: 0;
}

.departamento h2 {
    text-transform: uppercase;
    font-size: 1em;
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.departamento p {
    font-size: 0.8em;
    margin-top: 0;
    margin-bottom: 0;
}

@media (min-width: 700px) {
    .departamento {
        display: block;
        padding-block: 0;
    }

    .dep-icono {
        width: auto;
        height: 2.5rem;
        margin: 0 0 0.85rem 0;
    }

    .departamento h2 {
        font-size: 1.2rem;
    }

    .departamento p {
        font-size: 0.9rem;
    }
}

@media (min-width: 1200px) {
    .dep-icono {
        height: 2.8rem;
    }

    .departamento h2 {
        font-size: 1.5rem;
    }

    .departamento p {
        font-size: 1rem;
    }
}


.departamento::before {
    content: "";
    position: absolute;
    top: -1.3rem;
    bottom: -1.3rem;
    left: -1.6rem;
    right: -1.6rem;
    background: white;
    box-shadow: 0 0.2rem 1.8rem var(--azul-40);
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: -1;
    pointer-events: none;
}

.departamentos a:hover .departamento::before,
.departamentos a:focus-visible .departamento::before {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 699px) {
    .departamento::before {
        top: -0.95rem;
        bottom: -0.95rem;
        left: -1.05rem;
        right: -1.05rem;
    }
}
