/* Estilos para el contenedor flotante */
.wa-flotante-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* Estilos para el botón de WhatsApp flotante */
.wa-flotante-button {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.wa-flotante-button:hover {
    transform: scale(1.1);
}

.wa-flotante-button img {
    width: 35px;
    height: 35px;
}

/* Estilos para el popup de asesores */
.wa-flotante-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.wa-flotante-popup.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wa-flotante-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.wa-asesores-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Estilos para cada tarjeta de asesor */
.wa-asesor-card {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 8px;
    gap: 10px;
}

.wa-asesor-foto {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0; /* Evita que la foto se encoja */
}

.wa-asesor-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wa-asesor-info {
    flex-grow: 1;
}

.wa-asesor-info h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.wa-asesor-area {
    margin: 0;
    font-size: 14px;
    color: #777;
}

.wa-asesor-action {
    flex-shrink: 0;
}

.wa-whatsapp-button {
    background-color: #25d366;
    color: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
}

.wa-whatsapp-button:hover {
    background-color: #128c7e;
}

.wa-whatsapp-button img {
    width: 16px;
    height: 16px;
}

/* Responsive: Ajustes para pantallas más pequeñas */
@media (max-width: 768px) {
    .wa-flotante-container {
        bottom: 10px;
        right: 10px;
    }
    .wa-flotante-button {
        width: 50px;
        height: 50px;
    }
    .wa-flotante-button img {
        width: 30px;
        height: 30px;
    }
    .wa-flotante-popup {
        bottom: 70px;
        width: calc(100vw - 40px);
        max-width: 320px;
    }
}