/* Estilos para el botón flotante */
/* ---------- BOTÓN FLOTANTE ---------- */
.float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: background 0.3s;
}
.float-btn:hover {
    background: #45a049;
}

/* ---------- CONTENEDOR DEL CHAT ---------- */
#chat-container {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
}

/* ---------- ESTRUCTURA GENERAL ---------- */
body {
    font: 12px Arial, sans-serif;
    color: #222;
    text-align: center;
    padding: 35px;
}
form, p, span {
    margin: 0;
    padding: 0;
}
input {
    font: 12px Arial, sans-serif;
}
a {
    color: #0000FF;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ---------- WRAPPER ---------- */
#wrapper {
    width: 450px;
    background: #fff;
    border: 1px solid #ACD8F0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

#usuario {
    display: none; /* Ocultamos el input si no se necesita */
}

/* ---------- CAJA DE MENSAJES ---------- */
#chatbox {
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #f9f9f9;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    display: flex;
    flex-direction: column;
}

/* ---------- MENSAJES ---------- */
.msg {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    margin: 10px;
    padding: 10px;
    border-radius: 10px;
    word-wrap: break-word;
}

.user-msg {
    align-self: flex-end;
    background-color: #DCF8C6;
    text-align: right;
}

.operator-msg {
    align-self: flex-start;
    background-color: #F1F0F0;
    text-align: left;
}

.time {
    font-size: 0.8em;
    color: #888;
    margin-top: 5px;
}

/* ---------- FORMULARIO DE MENSAJE ---------- */
form#messageForm {
    display: flex;
    gap: 10px;
    padding: 10px;
}
form#messageForm input[type="text"] {
    flex: 1;
    padding: 8px;
}
form#messageForm input[type="submit"] {
    padding: 8px 16px;
}

/* ---------- PREGUNTAS FRECUENTES ---------- */
.faq-container {
    padding: 10px;
}
.faq-title {
    font-weight: bold;
    margin-bottom: 10px;
}
.faq-btn {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 10px;
    background-color: #eee;
    border: none;
    cursor: pointer;
    text-align: left;
    border-radius: 5px;
}
.faq-btn.special {
    background-color: #007bff;
    color: white;
}

.float-help-btn {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 1000;
}
