.floating-action-menu {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-cards {
    position: absolute;
    bottom: 80px; /* Sobre la barra de navegación */
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alinear a la derecha sobre el botón */
    gap: 15px; /* Más espacio para fotos grandes */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2000;
}

.floating-title {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-align: center;
    width: 100%;
    opacity: 0.9;
}

.floating-cards.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-card {
    background: linear-gradient(135deg, #25d366, #128C7E); /* Degradado Verde WhatsApp */
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 8px 15px 8px 30px; /* Padding izquierdo para dar espacio a la foto sobresaliente */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 180px; /* Tamaño estandarizado para todos */
    height: 40px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease, filter 0.2s ease;
    position: relative;
    margin-left: 25px; /* Margen para que la foto que sale no se corte */
}

.contact-card:hover {
    transform: translateX(-5px);
    filter: brightness(1.1); /* Ligero brillo al hacer hover */
}

.card-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white; /* Borde de foto regresado a blanco */
    position: absolute;
    left: -20px; /* Sobresale hacia la izquierda de la tarjeta */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.card-name {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 5px;
}

.card-flag {
    width: 20px;
    border-radius: 2px;
    margin-left: auto; /* Empuja la bandera a la derecha */
}

.main-button.active i {
    color: #25d366;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}
