body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    /* Elimina color global */
}

/* Botón flotante del chatbot */
/* Botón flotante del chatbot */
.chatbot-button {
    position: fixed;
    /* siempre fijo */
    bottom: 20px;
    /* distancia desde abajo */
    right: 20px;
    /* distancia desde la derecha */
    background: linear-gradient(135deg, #00f0ff, #007bff);
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 999999;
    /* súper arriba de todo */
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.8),
        0 0 20px rgba(0, 123, 255, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* efecto hover */
.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 1),
        0 0 25px rgba(0, 123, 255, 0.9);
}


.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 1), 0 0 20px rgba(0, 123, 255, 0.9);
}

/* Contenedor del chatbot */
.chatbot-container {
    position: fixed;
    bottom: 70px;
    right: 15px;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    width: 320px;
    max-height: 450px;
    overflow-y: auto;
    border-radius: 10px;
    display: none;
    z-index: 9999;
    backdrop-filter: blur(8px);
    color: #e0e0e0;
    /* 👈 color solo dentro del chatbot */
}

/* Encabezado futurista */
.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #00f0ff, #007bff);
    color: #fff;
    padding: 12px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    /* Sombra más suave */
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.5),
        0 0 8px rgba(255, 255, 255, 0.3);
}

/* Mensajes del bot */
.message-bot,
.bot-response {
    background: rgba(0, 240, 255, 0.1);
    color: #e0e0e0;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;
    max-width: 80%;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 6px rgba(0, 240, 255, 0.15);
    transition: transform 0.2s ease;
    /* Efecto de luz más definido */
    text-shadow: 0 0 3px rgba(0, 240, 255, 0.5),
        0 0 6px rgba(0, 240, 255, 0.3);
}

/* Opciones */
.option {
    cursor: pointer;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: #00f0ff;
    transition: background-color 0.3s ease, transform 0.2s ease;
    /* Brillo reducido */
    text-shadow: 0 0 2px rgba(0, 240, 255, 0.6),
        0 0 5px rgba(0, 240, 255, 0.3);
}


.option:hover {
    background: rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
}

/* Avatar */
.avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f0ff, #007bff);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.7);
    overflow: hidden;
}

/* Botón cerrar */
.close-button {
    background: linear-gradient(135deg, #ff4e50, #f44336);
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s ease;
    text-shadow: 0 0 5px rgba(255, 200, 200, 0.8),
        0 0 10px rgba(255, 100, 100, 0.6);
}

.close-button:hover {
    background: linear-gradient(135deg, #ff6e7f, #d32f2f);
    transform: scale(1.05);
}

/* Contenedor de mensajes */
#chat-container {
    max-width: 400px;
    margin: 0 auto;
    overflow-y: auto;
    max-height: 300px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 8px;
    padding: 10px;
    background: rgba(10, 10, 20, 0.7);
    box-shadow: inset 0 0 8px rgba(0, 240, 255, 0.2);
}

/* Input */
#user-input {
    width: calc(100% - 20px);
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 6px;
    background: rgba(15, 15, 25, 0.9);
    color: #fff;
    outline: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.8),
        0 0 10px rgba(0, 240, 255, 0.6);
}

#user-input:focus {
    border: 1px solid #00f0ff;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
}

/* Header secundario */
#chat-header {
    text-align: center;
    padding: 12px 60px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
    background: rgba(0, 240, 255, 0.1);
    color: #00f0ff;
    text-shadow: 0 0 6px rgba(0, 240, 255, 0.9),
        0 0 12px rgba(0, 240, 255, 0.6),
        0 0 20px rgba(0, 240, 255, 0.4);
    font-weight: bold;
}