.asesores-whatsapp,
.asesores-whatsapp * {
    font-family: inherit;
    box-sizing: border-box;
}

button.boton-wsp,
.boton-wsp,
#toggle-whatsapp.boton-wsp {
    position: fixed !important;
    bottom: 30px;
    right: 30px;
    background: #25d366 !important;
    background-color: #25d366 !important;
    width: 60px;
    height: 60px;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
    border: none !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    color: transparent !important;
    overflow: visible !important;
}

button.boton-wsp:hover,
.boton-wsp:hover,
#toggle-whatsapp.boton-wsp:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5) !important;
    background: #25d366 !important;
    background-color: #25d366 !important;
}

button.boton-wsp:focus,
.boton-wsp:focus,
#toggle-whatsapp.boton-wsp:focus {
    outline: none !important;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5) !important;
}

button.boton-wsp svg,
.boton-wsp svg,
#toggle-whatsapp.boton-wsp svg {
    width: 28px !important;
    height: 28px !important;
    fill: white !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}

button.boton-wsp .icon-close,
.boton-wsp .icon-close,
#toggle-whatsapp.boton-wsp .icon-close {
    position: absolute !important;
    opacity: 0 !important;
    transform: rotate(90deg) scale(0.8) !important;
}

button.boton-wsp.open .icon-whatsapp,
.boton-wsp.open .icon-whatsapp,
#toggle-whatsapp.boton-wsp.open .icon-whatsapp {
    opacity: 0 !important;
    transform: rotate(-90deg) scale(0.8) !important;
}

button.boton-wsp.open .icon-close,
.boton-wsp.open .icon-close,
#toggle-whatsapp.boton-wsp.open .icon-close {
    opacity: 1 !important;
    transform: rotate(0deg) scale(1) !important;
}

.asesores-whatsapp {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 0;
    max-width: 320px;
    width: calc(100vw - 40px);
    max-height: 70vh;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9998;
    overflow: hidden;
}

.asesores-whatsapp.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.asesores-whatsapp .asesores-whatsapp-header {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    color: white !important;
    padding: 16px 12px !important;
    text-align: center !important;
    position: relative !important;
}

.asesores-whatsapp .asesores-whatsapp-header h3 {
    margin: 0 !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    color: white !important;
}

.asesores-whatsapp .asesores-whatsapp-header p {
    margin: 4px 0 0 !important;
    font-size: 13px !important;
    opacity: 0.9 !important;
    line-height: 1.3 !important;
    color: white !important;
}

.contenedor-asesores-wasap {
    padding: 10px 8px;
    max-height: 300px;
    overflow-y: auto;
}

.asesor {
    display: flex;
    align-items: center;
    padding: 8px;
    margin-bottom: 6px;
    background: #f0f0f1;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.asesor:last-child {
    margin-bottom: 0;
}

.asesor:hover {
    background: #e8f5e8;
    border-color: #25d366;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.15);
}

.asesor img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid #25d366;
    flex-shrink: 0;
}

.asesor-avatar-fallback {
    width: 48px;
    height: 48px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
    border: 2px solid #25d366;
}

.asesor-info {
    flex: 1;
    min-width: 0;
}

.asesor-nombre {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    margin-bottom: 1px;
    color: #333;
}

.asesor-cargo {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
    margin-bottom: 2px;
}

.asesor-estado {
    height: 13px;
    font-size: 11px;
    color: #25d366;
    display: flex;
    align-items: center;
}

.asesor-estado::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #25d366;
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 2s infinite;
}

button.boton-wsp::before,
button.boton-wsp::after,
.boton-wsp::before,
.boton-wsp::after,
#toggle-whatsapp.boton-wsp::before,
#toggle-whatsapp.boton-wsp::after {
    content: '' !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    background-color: rgba(37, 211, 102, 0.3) !important;
    animation: ripple 2s infinite ease-out !important;
    z-index: -1 !important;
}

button.boton-wsp::after,
.boton-wsp::after,
#toggle-whatsapp.boton-wsp::after {
    animation-delay: 1s !important;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.whatsapp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .asesores-whatsapp {
        right: 10px;
        bottom: 80px;
    }

    button.boton-wsp#toggle-whatsapp,
    #toggle-whatsapp.boton-wsp {
        bottom: 20px !important;
        right: 12px !important;
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }

    button.boton-wsp#toggle-whatsapp svg,
    #toggle-whatsapp.boton-wsp svg {
        width: 24px !important;
        height: 24px !important;
    }
}
