@import url(/css/root.css);

.footer {
    overflow: hidden;
    background: var(--color-principal);
    color: #fff;
    padding: 80px 60px 0;
    font-size: 0.9em;
    line-height: 1.6;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.footer-column h3 {
    font-family: var(--fuente-secundaria);
    color: var(--color-secundario-claro);
    font-size: 1.1em;
    margin: 0 0 20px;
    padding: 0 0 5px;
    position: relative;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--color-secundario-claro);
    bottom: 0;
    left: 0;
}

.footer-links,
.footer-info-list {
    list-style: none;
    padding-left: 0;
}

.footer-links li,
.footer-info-list li {
    margin-bottom: 13px;
}


.footer-links a {
    color: #f1f1f1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-secundario-claro);
}

.footer-text {
    color: #f1f1f1;
    text-decoration: none;
}

.footer-text .minedu {
    width: 200px;
}

.footer-text .dicapi {
    width: 200px;
}

.footer-brand .footer-logo {
    display: flex;
}

.footer-brand .footer-logo img {
    width: 150px !important;
}

.footer-socials {
    display: flex;
    gap: 20px;

}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #1f2937;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.footer-socials:hover .social-icon {
    opacity: 0.5;
}

.footer-socials:hover .social-icon:hover {
    background-color: var(--color-secundario-claro);
    color: var(--color-principal);
    transform: translateY(-1.5px);
    opacity: 1;
}

.footer-bottom {
    width: 100%;
    margin: 45px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid #99836367;
    text-align: center;
    color: #f1f1f1;
    font-size: 0.85em;
}

@media (max-width: 1035px) {
    .footer {
        padding: 40px 60px 0;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0 50px;
    }

    .footer-brand {
        grid-column: span 2;
        border-bottom: 1px solid #99836367;
    }

    .footer-brand .footer-logo {
        justify-content: center;
    }

    .footer-brand {
        padding: 0 0 40px;
        margin: 0 0 25px;
    }

    .footer-socials {
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .footer {
        padding: 40px 0 5px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-brand .footer-logo img {
        width: 200px !important;
    }

    .footer-socials {
        display: flex;
        justify-content: center;
    }

    .footer-column {
        padding-bottom: 20px;
        border-bottom: 1px solid #9983631c;
        text-align: center;
    }

    .footer-column h3 {
        padding: 0 0 10px;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--color-secundario-claro);
    }

    .footer-column:last-child {
        border-bottom: none;
        margin: 0 0 0;
    }

    .footer-bottom {
        margin: 0;
    }
}

.whattsapp {
    text-decoration: none;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    position: fixed;
    display: grid;
    place-items: center;
    bottom: 15px;
    right: 15px;
    z-index: 1;
    transition: all 0.25s ease !important;
}

.whattsapp .fa-whatsapp {
    font-size: 2.4em;
}

.whattsapp:hover {
    background-color: #fff;
    color: #25d366;
}