/* Estilos CSS del footer */

/* Contenedor central */

.new-footer {
    padding-top: 20px;
    width: 100%;
    background-color: var(--azul-general);
    color: white;
    position: relative;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contacto */

.footer-contact {
    animation: fadeInUp 1.5s ease;
}

.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-contact p {
    margin: 5px 0;
}

.footer-contact a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #0ce4e4; /* Efecto hover en enlaces */
}

/* Información legal */

.footer-legal {
    animation: fadeInUp 1.5s ease;
}

.footer-legal h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-legal p {
    margin: 5px 0;
}

.footer-legal a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #0ce4e4; /* Efecto hover en enlaces */
}

/* Enlaces adicionales */

.footer-links {
    animation: fadeInUp 2s ease;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0px;
    margin: 0px;
}

.footer-links li {
    margin-bottom: 5px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0ce4e4; /* Efecto hover */
}

/* Redes sociales */

.footer-social {
    animation: fadeInUp 2.5s ease;
}

.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Iconos de redes sociales */

.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-icons a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icons i {
    font-size: 30px;
    color: white;
    transition: color 0.3s ease;
}

.social-icons i:hover {
    color: #0ce4e4; /* Efecto hover en enlaces */
}

/* Reajuste del margen */

.new-footer h3 {
    margin-top: 0px;
}

/* Sección de Copyright */

.footer-bottom {
    background-color: rgb(6, 6, 71); /* Color más oscuro para la parte inferior */
    padding: 15px 0;
    margin-top: 10px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Whatsapp flotante de la esquina inferior derecha */

.social-flotante {
    width: 50px;
    height: 50px;
    position: fixed; /* Fijo en la pantalla */
    right: 20px;     /* Distancia desde la izquierda */
    bottom: 20px;   /* Distancia desde abajo */
    z-index: 1000;  /* Para que esté por encima de otros elementos */
    color: white;
    border: none;
    border-radius: 100px;
}

.social-flotante i {
    color: #1a9c4a;
    font-size: 50px;
    transition: color 0.3s ease;
}

.social-flotante i:hover {
    color: #1fb255;
}

/* Diseño responsivo */

@media (max-width: 1024px) {
    .footer-content {
        align-items: center; /* Centrar elementos en footer */
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .new-footer {
        padding-top: 0px;
    }

    .footer-contact {
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .footer-legal {
        margin-bottom: 20px;
    }

    .footer-links {
        margin: 0px;
        margin-bottom: 20px;
    }
    
    .footer-social {
        margin-bottom: 10px;
    }

    .social-icons {
        gap: 10px;
    }

    .social-icons img {
        width: 60px;
        height: 60px;
    }
}

/* Arreglo del error del contenedor de los botones en el header */
@media (max-width: 576px) {
    .header-buttons {
        margin: 0;
    }
}