@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.btn-wp-flotante {
    position: fixed;
    bottom: 120px;
    right: 18px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 999999;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), background-color 0.3s ease, box-shadow 0.3s ease;
}
.btn-wp-flotante::after {
    content: "";
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background-color: red;
    border-radius: 50%;
    border: 2px solid #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-wp-flotante.show-notification::after {
    opacity: 1;
}

.btn-wp-flotante:hover {
    box-shadow: 0 7px 20px rgba(0,0,0,0.25);
}

.btn-wp-flotante.rotated {
    transform: rotate(180deg);
    background-color: #f44336;
}

.btn-wp-ventana {
    position: fixed;
    bottom: 200px;
    right: 18px;
    width: 340px;
    background-color: #ece5dd;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
    font-family: 'Poppins', Arial, sans-serif;
    overflow: hidden;
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(25px) scale(0.97);
    transform-origin: bottom right;
    transition: transform 0.3s ease,
                opacity 0.25s ease,
                visibility 0.3s ease;
}

.btn-wp-ventana.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.btn-wp-header {
    height: 83px;
    background: #08432D;
    color: white;
    padding: 0 18px;
    display: flex;
    align-items: center;
}

.btn-wp-header-flex {
    display: flex;
    align-items: center;
    gap: 13px;
}

.btn-wp-logo {
    width: 50px;
    height: auto;
    display: block;
}

.btn-wp-titulo {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #fff;
}

.btn-wp-subtitulo {
    font-size: 12px;
    margin: 3px 0 0;
    font-weight: 400;
    opacity: 0.95;
    color: #fff;
}

.btn-wp-body {
    padding: 27px 0 0;
    background-color: #ece5dd;
    overflow: hidden;
}

.btn-wp-mensaje {
    position: relative;
    width: calc(100% + 1px);
    height: 150px; /* ajusta según el alto real de la imagen */
    min-height: 129px;
    margin-left: -1px;
    margin-bottom: 19px;
    padding: 15px 18px; 
    box-sizing: border-box;
    background-image: url('../../assets/img/Chat_wsp_tarpuy.webp');
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.btn-wp-nombre {
    font-weight: 600;
    font-size: 13px;
    margin: 0 0 6px 30px;
    color: #075e54;
    text-align: left;
    line-height: 1.4;
}

.btn-wp-texto {
    margin: 0 14px 0 30px;
    font-size: 13.5px;
    line-height: 1.45;
    text-align: left;
    color: #222;
}

#wp-hora {
    position: absolute;
    right: 18px;
    bottom: 10px;
    font-size: 14px; /* más grande que antes (10px) */
    font-weight: 600;/* más grueso para destacar */
    color: #333;     /* color más visible */
    margin: 0;
}
.btn-wp-asesores {
    background-color: #f1f1f1;
    padding: 15px 20px;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid #ddd;
    border-radius: 0 0 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-wp-asesor-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 57px;
    margin: 0;
    padding: 0 15px;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 9px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: background-color 0.2s ease,
                transform 0.2s ease,
                box-shadow 0.2s ease;
}

.btn-wp-asesor-item:hover {
    background-color: #f1f1f1;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.btn-wp-asesor-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-wp-avatar {
    width: 32px;
    height: 32px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.btn-wp-nombre-puesto {
    font-size: 13px;
    font-weight: 500;
    color: #111;
    white-space: nowrap;
}

.btn-wp-icon-sub {
    color: #25d366;
    font-size: 17px;
}

#wp-icono-cambiante {
    transition: transform 0.3s ease,
                opacity 0.15s ease;
}

.typing-bubble {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 20px;
    min-height: 80px;
}

.typing-bubble img {
    width: 60px;
    height: auto;
    display: block;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

@media (max-width: 600px) {

    .btn-wp-flotante {
        right: 15px;
        bottom: 15px;
    }

    .btn-wp-ventana {
        right: 15px;
        bottom: 87px;
        width: calc(100vw - 30px);
        max-width: 340px;
    }
}

@media (max-width: 380px) {

    .btn-wp-flotante {
        right: 12px;
        bottom: 12px;
    }

    .btn-wp-ventana {
        right: 10px;
        bottom: 82px;
        width: calc(100vw - 20px);
    }

    .btn-wp-texto {
        font-size: 13px;
    }
}