.card-header{
    background-color: white;
    color: #d0875c;
}
.card-header img{
    width: 50px;
    height: 50px;
}


@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.chat-wrapper {
    position: fixed;
    bottom: 95px;
    right: 20px;
    width: 350px;
    height: 470px;
    display: none;
    border-radius: 15px;
    overflow: hidden;
    animation: fadeIn 0.4s ease-in-out;
}

.chat-wrapper.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px);}
    to { opacity: 1; transform: translateY(0);}
}

.chat-body {
    height: 340px;
    overflow-y: auto;
    background: #111;
    padding: 10px;
}

.bot-msg {
    background: #222;
    color: #ffc107;
    padding: 10px;
    border-radius: 15px 15px 15px 5px;
    margin-bottom: 10px;
    animation: slideLeft 0.3s ease;
}

.user-msg {
    background: #f7f7f7;
    color: #060606;
    padding: 10px;
    border-radius: 15px 15px 5px 15px;
    margin-bottom: 10px;
    text-align: right;
    animation: slideRight 0.3s ease;
}


/* ================= BOTÓN CON IMAGEN ================= */

.chat-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Imagen */
.chat-toggle img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 2;
    position: relative;
}

/* Ondas */
.wave {
    position: absolute;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    animation: ripple 2s infinite;
    z-index: 1;
}

.wave2 {
    animation-delay: 1s;
}

/* Animación */
@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(2);
        opacity: 0;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.chat-toggle:hover img {
    box-shadow: 0 0 30px rgba(255,255,255,0.6);
}
@keyframes slideLeft {
    from { transform: translateX(-20px); opacity:0;}
    to { transform: translateX(0); opacity:1;}
}

@keyframes slideRight {
    from { transform: translateX(20px); opacity:0;}
    to { transform: translateX(0); opacity:1;}
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

@media screen and (max-width: 480px) {
    .chat-wrapper {
        
        height: 430px;
        z-index: 999;
       
    }
    .chat-body{
        height: 310px;
    }
}

