/* ===================================== */
/* Estilos Chat Flotante (Botón y Form)
/* ===================================== */

/* El botón de la burbuja */
.telegram-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #0088cc;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer; /* Cambiado a cursor */
}

.telegram-float:hover {
    background-color: #0077b3;
    transform: scale(1.1);
}

/* El cuadro de chat (popup) */
.chat-popup {
    display: none; /* Oculto por defecto */
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 300px;
    z-index: 1001;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: white;
    border: 1px solid #ddd;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* El contenedor del formulario */
.chat-form-container {
    padding: 20px;
}

/* Encabezado del chat */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.chat-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}
.chat-header .btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}
.chat-header .btn-close:hover {
    color: #333;
}

/* Inputs y Textarea */
.chat-form-container p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.chat-form-container label {
    font-weight: bold;
    font-size: 0.9rem;
    color: #444;
}

.chat-form-container input[type=text], 
.chat-form-container textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Importante */
    font-family: inherit;
    font-size: 0.9rem;
}

.chat-form-container textarea {
    height: 100px;
    resize: none;
}

/* Botón de envío */
.chat-form-container .btn {
    background-color: #0088cc;
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    font-weight: bold;
}

.chat-form-container .btn:hover {
    background-color: #0077b3;
}