#dc_chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

#dc_chat-window {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 400px;
    height: 400px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

#dc_chat-header {
    background-color: #007bff;
    color: white;
    margin: 5px;
    padding: 5px;
    text-align: center;
    font-weight: bold;
    position: relative; /* Para posicionamiento del botón de cierre */
}

#dc_chat-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    line-height: 20px;
}

#dc_chat-close:hover {
    color: #ddd;
}

#dc_chat-body {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.dc_chat-message {
    color: black;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 8px;
    max-width: 80%;
}

.dc_chat-user {
    align-self: flex-end;
    background-color: #007bff;
    color: white;
}

.dc_chat-bot {
    align-self: flex-start;
    background-color: #eee;
}

#dc_chat-input {
    padding: 10px;
    display: flex;
    border-top: 1px solid #ccc;
}

#dc_chat-input input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#dc_chat-input button {
    margin-left: 10px;
    padding: 8px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#dc_chat-login {
    padding: 20px;
    text-align: center;
}

#dc_chat-login input {
    display: block;
    width: 80%;
    margin: 10px auto;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#dc_chat-login button {
    padding: 8px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Estilo para los puntitos danzantes */
.dc_chat-typing {
    padding: 8px 16px;
}

.dc_chat-typing .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 3px;
    background-color: #888;
    border-radius: 50%;
    animation: dot-bounce 1.4s infinite ease-in-out both;
}

.dc_chat-typing .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dc_chat-typing .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dot-bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 
    40% { 
        transform: scale(1);
    }
}


/* Media query para dispositivos móviles */
@media (max-width: 768px) {
    #dc_chat-window {
        width: 94%; /* 90% del ancho de la pantalla, dejando un pequeño margen */
        right: 3%; /* Centrar horizontalmente */
        left: 3%;
        bottom: 70px; /* Un poco más arriba del botón */
        height: 70%; /* Altura proporcional a la pantalla */
    }
    
    #dc_chat-button {
        right: 25px;
        bottom: 15px;
    }
}
