/* assets/css/footer.css */

.custom-footer {
    background-color: #1a1a1a; /* Fondo gris oscuro */
    color: var(--color-blanco); /* Texto en blanco */
}

.custom-footer h2 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: var(--color-blanco);
    font-size: var(--titulo-sm);
    letter-spacing: 0.3px;
    margin-bottom: 0;
}

.redes-sociales a {
    margin: 0 2px;
    padding: 6px;
    display: inline-flex;
    border-radius: 8px;
}

.redes-sociales .social-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.redes-sociales .social-logo:hover {
    transform: scale(1.1);
}

/* Estilos para el botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-verde); /* Verde característico de WhatsApp */
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: whatsapp-bounce 1.5s infinite;
}

/* Animación de rebote del botón de WhatsApp.
   El bloque prefers-reduced-motion de styles.css la neutraliza para quien
   tenga configurado reducir animaciones. */
@keyframes whatsapp-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.whatsapp-float:hover {
    background-color: var(--color-verde-oscuro);
    transform: scale(1.08);
    animation: none; /* el rebote se detiene al pasar el mouse */
}

.whatsapp-icon {
    width: 40px; /* Tamaño uniforme del icono */
    height: 40px;
    object-fit: contain;
}

/* Media Queries para pantallas más pequeñas */

/* Tablets y dispositivos medianos */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}

/* Teléfonos móviles y dispositivos pequeños */
@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-icon {
        width: 25px;
        height: 25px;
    }

    .custom-footer h2 {
        font-size: large;
    }
}
