:root {
    --negro         : #000000;
    --blanco        : #ffffff;
    --azulFuerte    : #0B509E;
    --banner1       : #8BAF30;
    --banner2       : #399991;
    --banner3       : #0E90C7;
}

/* Seccion footer */
footer {
    position: relative;
    background: linear-gradient(var(--banner1), var(--banner2), var(--banner3));
}

.wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 120px;
    background: url(../img/wave_long.png);
    background-size: 1000px 100px;
}

.wave:nth-of-type(1) {
    z-index: 1000;
    opacity: 1;
    bottom: 0;
    animation: anim 4s linear infinite;
}

.wave:nth-of-type(2) {
    z-index: 999;
    opacity: 0.5;
    bottom: 10px;
    animation: anim2 4s linear infinite !important;
}

@keyframes anim {
    0% {
        background-position-x: 1000px;
    }
    100% {
        background-position-x: 0px;
    }
}

@keyframes anim2 {
    0% {
        background-position-x: -1000px;
    }
    100% {
        background-position-x: 0px;
    }
}

.contenedor-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0rem 1.5rem;
}

.contenedor-columna-footer {
    padding: 3rem 0rem;
    z-index: 0;
}

.contenedor-columna-footer .logo-footer {
    margin-bottom: 1rem;
}

.contenedor-footer p {
    color: var(--blanco);
    text-align: left;
}

/* Segunda columna */
.segunda-columna-footer {
    display: flex;
    justify-content: center;
}

.segunda-columna-footer .links-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.segunda-columna-footer .links-footer li {
    list-style: none;
}

.links-footer li a {
    text-decoration: none;
    color: var(--blanco);
    font-size: 1rem;
    font-weight: 500;
}

.links-footer li a:hover {
    color: var(--negro);
    border-bottom: 3px solid var(--negro);
}

/* Tercera columna */
.tercera-columna-footer .redes-sociales-footer {
    text-align: center;
    padding: 0rem 1rem 2rem 1rem;
    display: flex;
    justify-content: space-evenly;
}

/* Efecto en botones */
.redes-sociales-footer a {
    text-decoration: none;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    inline-size: 3rem;
    aspect-ratio: 1;
    font-size: 2rem;
    color: var(--azulFuerte);
    background-color: var(--blanco);
    border-radius: 50%;
    transition: color 0.6s ease-in-out;
}

@property --fill {
    syntax: '<percentage>';
    inherits: true;
    initial-value: 0%;
}

.redes-sociales-footer a::before,
.redes-sociales-footer a::after {
    position: absolute;
    z-index: -1;
    content: '';
    inset: -5px;
    border-radius: inherit;
    background: conic-gradient(currentColor var(--fill), transparent var(--fill));
    transition: --fill 0.5s 0.3s ease-in-out;
}

.redes-sociales-footer a:hover,
.redes-sociales-footer a:focus-visible,
.redes-sociales-footer a:focus-within {
    color: var(--negro);
    outline: 1px solid transparent;
}

.redes-sociales-footer a:hover,
.redes-sociales-footer a:hover::before,
.redes-sociales-footer a:hover::after {
    transition-delay: 0s;
}

/* Efecto a cada red social */
.redes-sociales-footer a:nth-child(1):hover,
.redes-sociales-footer a:nth-child(1):focus-visible,
.redes-sociales-footer a:nth-child(1):focus-within {
    --fill: 50%;
}

.redes-sociales-footer a:nth-child(1)::after {
    transform: rotate(180deg);
}

.redes-sociales-footer a:nth-child(2):hover,
.redes-sociales-footer a:nth-child(2):focus-visible,
.redes-sociales-footer a:nth-child(2):focus-within {
    --fill: 50%;
}

.redes-sociales-footer a:nth-child(2)::after {
    transform: rotate(180deg);
}

.redes-sociales-footer a:nth-child(3):hover,
.redes-sociales-footer a:nth-child(3):focus-visible,
.redes-sociales-footer a:nth-child(3):focus-within {
    --fill: 50%;
}

.redes-sociales-footer a:nth-child(3)::after {
    transform: rotate(180deg);
}

.redes-sociales-footer a:nth-child(4):hover,
.redes-sociales-footer a:nth-child(4):focus-visible,
.redes-sociales-footer a:nth-child(4):focus-within {
    --fill: 50%;
}

.redes-sociales-footer a:nth-child(4)::after {
    transform: rotate(180deg);
}

.redes-sociales-footer a:nth-child(5):hover,
.redes-sociales-footer a:nth-child(5):focus-visible,
.redes-sociales-footer a:nth-child(5):focus-within {
    --fill: 50%;
}

.redes-sociales-footer a:nth-child(5)::after {
    transform: rotate(180deg);
}

/* Estilo a Google Maps */
.tercera-columna-footer .google-maps-footer {
    display: flex;
    gap: 1rem;
}

.google-maps {
    border-radius: 1rem;
}

@media screen and (max-width: 1350px) {
    .tercera-columna-footer .google-maps-footer {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 1149px) {
    .contenedor-footer {
        grid-template-columns: repeat(1, 1fr);
        gap: 0rem;
        padding: 0rem 5rem;
    }

    .primer-columna-footer {
        padding: 2rem 1rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .primer-columna-footer .logo-footer {
        margin-bottom: 0rem;
        margin: auto;
        margin-left: 0;
    }

    .segunda-columna-footer {
        padding: 1rem;
    }

    .tercera-columna-footer .redes-sociales-footer {
        display: flex;
        justify-content: center;
    }

    .tercera-columna-footer .redes-sociales-footer a {
        margin: 0 0.5rem;
    }

    .contenedor-footer p {
        text-align: center;
    }
}

@media screen and (max-width: 880px) {
    .primer-columna-footer {
        grid-template-columns: repeat(1, 1fr);
    }

    .primer-columna-footer .logo-footer {
        margin: auto;
    }

    .contenedor-footer {
        padding: 0 1rem;
    }
}

@media screen and (max-width: 580px) {
    .contenedor-footer{
        padding: 0rem;
    }

    .logo-footer img {
        width: 15rem;
    }

    .google-maps {
        width: 250px;
        height: 150px;
    }
}

@media screen and (max-width: 380px) {
    .tercera-columna-footer .redes-sociales-footer {
        display: block;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .tercera-columna-footer .redes-sociales-footer a {
        padding: 0.5rem 0;
    }
}

footer .derechos-reservados {
    background-color: var(--azulFuerte);
    text-align: center;
    color: var(--blanco);
    font-size: 0.8rem;
}

footer .derechos-reservados p {
    margin-bottom: 0;
}

@media (max-width: 300px) {
    .logo-footer img {
        width: 10rem;
    }

    .google-maps {
        width: 220px;
        height: 200px;
    }
}
