/* ================= ICONO DEL CHAT ================= */
.iconoChat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.iconoChat:hover {
    transform: scale(1.1);
}

.iconoChat i{
    font-size: 30px;
    color: #2e7e81;
    padding: 5px 15px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.oculto{
  display: none !important;
}
/* ================= CAJA DEL CHAT ================= */
.chatbotCaja {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
    width: 380px;
    height: 550px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.chatbot {
    width: 100%;
    height: 100%;
}

/* ================= ENCABEZADO ================= */
.encabezadoChat {
    background-color: #2e7e81;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    height: 60px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.contEncabezado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.btn-minimizar, .btn-menu {
    width: 35px;
    height: 35px;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.btn-minimizar:hover, .btn-menu:hover {
    background: rgba(255,255,255,0.4);
}
.nombreGeneral {
    display: flex;
    align-items: center;
    gap: 10px;
}
.redonda, .redonda2 {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

/* ================= CUERPO DEL CHAT ================= */
.cuerpoChat {
    background-color: #fefefe;
    flex: 1;
    height: 380px; /* altura máxima del chat */
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px; /* espacio entre mensajes */
    scroll-behavior: smooth; /* scroll suave */
}
/* Separación de mensajes ya estaba definida */
.contenedor-mensaje {
    display: flex;
    gap: 10px; 
    align-items: flex-start;
}
/* Mensaje de bienvenida */
.Mensaje_bienvenida {
    width: 90%;
    margin: 0 auto 20px auto;
    padding: 12px 15px;
    font-size: 0.9rem;
    color: #333;
    background-color: #e9f1f2;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: left;
}

/* Imagen de bienvenida */
.imgBienvenida img {
    width: 60%;
    border-radius: 10px;
    margin: 0 auto;
    display: block;
}

/* MENSAJES*/
.contenedor-mensaje {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.me {
    background-color: #ffffff;
    color: #333;
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    max-width: 75%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-size: 0.9rem;
        margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 20%;
}

.teschi-bot {
    background-color: #d2aead;
    color: #fff;
    padding: 12px 15px;
    border-radius: 15px 15px 15px 0;
    max-width: 75%;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
}
.teschi-bot::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 15px;
    width: 15px;
    height: 15px;
    background-color: #d2aead;
    transform: rotate(45deg);
}

/* ================= INPUT DE TEXTO REDUCIDO ================= */
.chat{
  display: flex;
  align-items: center;
  height: 110px;
}
.chat input[type="text"] {
    flex: 1;
    padding: 10px 12px; /* un poco más compacto */
    height: 110px; /* reducir altura */
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    outline: none;
    transition: border 0.3s ease;
}

.chat input[type="text"]:focus {
    border-color: #2e7e81;
}

/* Botón de envío más pequeño */
.chat input[type="image"] {
    border: none;
    color: #fff;
    width: 40px; /* tamaño reducido */
    height: 40px; /* tamaño reducido */
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    padding: 0; /* eliminar padding extra */
}
.chat input[type="image"]:hover {
    background-color: #27666a;
    transform: scale(1.1);
}


/* ================= SELECT ================= */
.sel_sucursal {
    width: 100%;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    background-color: #fff;
}
.sel_sucursal::after {
    color: #2e7e81;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 799px) {
    .chatbotCaja {
        width: 95%;
        right: 2.5%;
        bottom: 100px;
    }
    .chat {
        flex-direction: column;
    }
}
