body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #d8c6c6;
}

#chatbot-bubble {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #F57E23;
    color: white;
    text-align: center;
    line-height: 60px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
}

#chatbot-bubble:hover {
    transform: scale(1.1);
}

#chatbot-bubble:active {
    transform: scale(0.9);
}

#chatbot-bubble {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

#chatbot-container {
    position: fixed;
    bottom: 145px;
    left: 20px;
    width: 320px;
    height: 450px;
    border: 1px solid #333;
    background: repeating-linear-gradient(45deg, #2b2b2be0 0%, #2b2b2bb5 10%, #222222e6 0%, #222222e6 50%) 0 / 15px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    z-index: 1000;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s ease 0.5s;
}

#chatbot-container.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#chatbot-header {
    background-color: #F57E23;
    color: white;
    padding: 15px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #444;
    font-size: 18px;
    letter-spacing: 0.5px;
}

#chatbot-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 12px;
}

#chatbot-input-container {
    display: flex;
    border-top: 1px solid #444;
    background-color: #333;
}

#chatbot-input {
    flex-grow: 1;
    padding: 12px;
    border: none;
    outline: none;
    background-color: #444;
    color: white;
    border-radius: 25px;
}

#chatbot-send {
    padding: 12px;
    background-color: #F57E23;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    margin: 4px 2px;
    border-radius: 50%;
}

.message {
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 80%;
    word-wrap: break-word;
    color: white;
}


.user-message {
    background-color: #F57E23;
    margin-left: auto;
    text-align: right;
    border-radius: 18px 18px 0 18px;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.2);
}

.bot-message {
    background-color: #555;
    border-radius: 18px 18px 18px 0;
    padding: 10px 15px;
    margin: 8px 0;
    color: white;
    max-width: 80%;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.2);
    animation: fadeIn 0.5s;
}

#status-message {
    color: #d9534f;
    background-color: #f7d7d7;
    border: 1px solid #f1c6c6;
    padding: 6px;
    text-align: center;
    display: none;
}

#voice-input-button {
    background-color: #F57E23;
    border: none;
    color: white;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

/* Nuevos estilos para la animación del botón de voz */
#voice-input-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

#voice-input-button:active::before {
    width: 120%;
    height: 120%;
}

#voice-input-button.listening {
    background-color: #424442; /* Verde cuando está escuchando */
    animation: pulse 1.5s infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}








