/* Estilos base del footer */

footer {
    background: #333;
    color: #fff;
    padding: 40px 0;
    width: 100%;
    position: relative;
    margin-top: 20px;
    /* Asegura que el footer abarque todo el ancho */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* Añade padding para evitar que el contenido toque los bordes */
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 20px;
    text-align: center;
}

.footer-section h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.footer-section p,
.footer-section ul {
    margin-bottom: 20px;
}

.footer-section p {
    text-align: justify;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
    display: block;
}

.footer-section ul li a:hover {
    color: #fb911f;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-section .socials {
    margin-top: 20px;
}

.footer-section .socials a {
    display: inline-block;
    margin-right: 10px;
    color: #fff;
    font-size: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
}

.footer-section .socials a:hover {
    background: linear-gradient(to right, #feb47b, #ff7e5f);
}

.footer-bottom {
    margin-top: 20px;
    border-top: 1px solid #555;
    padding: 10px 20px;
    color: #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #fb911f;
}


/* Media queries para hacer el footer responsive */

@media screen and (max-width: 1024px) {
    .footer-section {
        flex: 1 0 48%;
        /* Ajusta el ancho en pantallas grandes de tabletas y laptops pequeñas */
    }
    .footer-section h2 {
        font-size: 1.8rem;
    }
    .footer-section ul li a {
        padding: 8px 12px;
    }
    .footer-bottom {
        padding: 10px;
    }
}

@media screen and (max-width: 768px) {
    .footer-section {
        flex: 1 0 100%;
        /* Ocupa todo el ancho en dispositivos pequeños */
    }
    .footer-section h2 {
        font-size: 1.6rem;
    }
    .footer-section ul li a {
        padding: 8px 10px;
    }
    .footer-bottom {
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .footer-section {
        margin: 10px 0;
        /* Reducir el margen entre secciones */
        width: 100%;
    }
    .footer-section h2 {
        font-size: 1.4rem;
    }
    .footer-section ul li a {
        font-size: 0.9rem;
    }
    .footer-section .socials a {
        font-size: 18px;
        width: 35px;
        height: 35px;
        padding: 8px;
    }
}