@charset "utf-8";
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #ece5dd;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#login {
  padding: 15px;
  border-bottom: 1px solid #ddd;
  flex-shrink: 0; /* encabezado y formulario no se colapsan */
}

#mensaje {
  flex: 1; /* ocupa el resto del espacio */
  overflow-y: auto; /* scroll interno */
  padding: 10px;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
}

#login h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

#loginForm input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

#loginForm button {
  width: 100%;
  padding: 10px;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

#loginForm button:hover {
  background: #1da851;
}

.mensaje {
  margin-top: 10px;
  font-size: 14px;
  color: red;
  text-align: center;
}

.chat-flotante {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 360px;
  max-width: 95vw;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  z-index: 2000;
  display: flex;
  flex-direction: column;
}

.chat_header {
  background: #25d366;
  color: white;
  padding: 10px;
  cursor: move;
  font-weight: bold;
  text-align: center;
}

.input-area {
  display: flex;
  align-items: center;
  padding: 10px;
  background: #f0f0f0;
}

.input-area input {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 20px;
  outline: none;
  margin-right: 8px;
}

.input-area button {
  background: #25d366;
  border: none;
  color: #fff;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 5px;
}

.input-area button:hover {
  background: #20b858;
}

 .submit {
    background-color: #4CAF50; /* Verde elegante */
    color: white;              /* Texto en blanco */
    padding: 12px 24px;        /* Espaciado interno */
    border: none;              /* Sin borde */
    border-radius: 6px;        /* Bordes redondeados */
    font-size: 16px;           /* Tamaño de fuente */
    cursor: pointer;           /* Manita al pasar */
    transition: background-color 0.3s ease; /* Animación suave */
  }

  #submit:hover {
    background-color: #45a049; /* Verde más oscuro al pasar */
  }

  #submit:active {
    transform: scale(0.95); /* Efecto de clic */
  }

.message {
  margin: 5px 0;
  padding: 8px 12px;
  background: #dcf8c6;
  border-radius: 8px;
  max-width: 70%;
}

@media (max-width: 600px) {
  .chat-flotante {
    width: 95%;
    right: 2.5%;
    top: 10px;
  }
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid #ccc;
  box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  padding: 20px;
  overflow-y: auto;
  z-index: 1;
  transition: transform 0.3s ease;
}

.sidebar h3 {
  margin-top: 0;
  color: #25d366;
  text-align: center;
}
.gridjs-container {
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
}

.gridjs-tr:hover {
  background-color: #f0f8ff;
}

.gridjs-td input,
.gridjs-td select,
.gridjs-td textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
  background-color: #f9f9f9;
  border: none;              /* ðŸ”¹ sin borde por defecto */
  outline: none;             /* ðŸ”¹ quitar borde de enfoque estÃ¡ndar */
  padding: 4px 6px;          /* opcional: espacio interno */
}

/* ðŸ”¹ Estilo al seleccionar (focus) */
.gridjs-td input:focus,
.gridjs-td select:focus,
.gridjs-td textarea:focus {
  border: 1px solid #4da3ff; /* borde azul tenue */
  box-shadow: 0 0 4px rgba(77, 163, 255, 0.5); /* efecto suave */
  background-color: #ffffff; /* opcional: aclarar fondo al enfocar */
}  
.input-grid {
  width: 100%;
  box-sizing: border-box;
  border: none;        /* ðŸ”¹ elimina el borde */
  outline: none;       /* ðŸ”¹ elimina el borde de enfoque */
  background: transparent; /* ðŸ”¹ fondo transparente */
  padding: 0;          /* ðŸ”¹ sin espacio interno */
  font: inherit;       /* ðŸ”¹ usa la misma tipografÃ­a que el contenedor */
  color: inherit;      /* ðŸ”¹ hereda el color del texto */
}

/* opcional: al enfocar tampoco mostrar nada */
.input-grid:focus {
  border: none;
  box-shadow: none;
  background: transparent;
}




.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr; /* dos columnas */
  gap: 15px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.input-form, .form-group textarea, .form-group select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
/* ============================================
   TEXTAREA .input-form (Expansión solo hacia abajo)
   ============================================ */
textarea.input-form {
    /* Quita el resize manual de la esquina inferior derecha */
    resize: none !important;
    
    /* La altura se adapta automáticamente al contenido escrito */
    field-sizing: content !important;
    
    /* Altura mínima para que no se vea de una línea chiquita */
    min-height: 38px !important;
    
    /* Altura máxima: si pasa de aquí, hace scroll hacia abajo */
    max-height: 150px !important;
    
    /* El scroll solo aparece hacia abajo si rebasa el máximo */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    
    /* Evita que empuje los elementos de abajo hacia abajo */
    display: block !important;
    box-sizing: border-box !important;
    
    /* Se vea ordenado */
    padding: 6px 8px !important;
    line-height: 1.4 !important;
}

.cerrar {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #999;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    line-height: 1;
}

.cerrar:hover {
    background: rgba(255, 80, 80, 0.15);
    border-color: rgba(255, 80, 80, 0.4);
    color: #ff5050;
    transform: scale(1.05);
}

.cerrar:active {
    transform: scale(0.92);
}


.inputArea.minimizado {
    width: 50px;
}

.inputArea.minimizado .chat_header,
.inputArea.minimizado .chat-container,
.inputArea.minimizado .messages,
.inputArea.minimizado .editionArea {
    opacity: 0;
    pointer-events: none;
}
.loginBox.minimizado .chat_header,
.loginBox.minimizado .chat-container,
.loginBox.minimizado .messages,
.loginBox.minimizado .editionArea {
    opacity: 0;
    pointer-events: none;
}

.chat_header,
.chat-container,
.messages,
.editionArea {
    opacity: 1;
    transition: opacity 0.15s ease 0.05s;
}

.inputArea.minimizado .chat_header,
.inputArea.minimizado .chat-container,
.inputArea.minimizado .messages,
.inputArea.minimizado .editionArea {
    transition: opacity 0.05s ease;
}
.loginBox.minimizado .chat_header,
.loginBox.minimizado .chat-container,
.loginBox.minimizado .messages,
.loginBox.minimizado .editionArea {
    transition: opacity 0.05s ease;
}


/* ============================================
   BOTÓN MINIMIZAR / MAXIMIZAR
============================================ */
.btn-minimizar {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
}

.btn-minimizar:hover {
    background: #f0f0f0;
    color: #333;
    border-color: #aaa;
}

.btn-minimizar:active {
    transform: scale(0.9);
}

.inputArea.minimizado .btn-minimizar {
    right: 50%;
    transform: translateX(50%);
    top: 50%;
    margin-top: -15px;
}

.inputArea.minimizado .btn-minimizar {
    right: 50%;
    transform: translateX(50%);
    top: 50%;
    margin-top: -15px;
}

.loginBox.minimizado .btn-minimizar:hover {
    transform: translateX(50%) scale(1.05);
}

#iconoMinimizar {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.inputArea.minimizado #iconoMinimizar {
    transform: rotate(180deg);
}

.loginBox.minimizado #iconoMinimizar {
    transform: rotate(180deg);
}


/* ============================================
   CABECERA
============================================ */
.chat_header {
    padding: 4px 6px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 1px solid #e5e5e5;
    background: #fafafa;
    white-space: nowrap;
    overflow: hidden;
}


/* ============================================
   CONTENEDOR DE CONVERSACIÓN
============================================ */
.chat-container {
    padding: 2px;
    border-bottom: 1px solid #e5e5e5;
    background: #fafafa;
    overflow: hidden;
}


/* ============================================
   CAMPO DE TEXTO
============================================ */
.cajasTexto {
    width: 100%;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cajasTexto:focus {
    border-color: #e07a3a;
}

.cajasTexto::placeholder {
    color: #aaa;
}


/* ============================================
   BOTONES DEL CHAT
============================================ */
.chat-buttons {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.chat-buttons button {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    color: #777;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-buttons button:hover {
    background: #f5f5f5;
    color: #1a1a1a;
    border-color: #e07a3a;
}

.chat-buttons button:active {
    transform: scale(0.9);
}


/* ============================================
   ÁREA DE MENSAJES
============================================ */
.messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
	width:430px;
}


/* ============================================
   ÁREA DE EDICIÓN
============================================ */
.editionArea {
    padding: 0 12px 12px;
}

.editionArea textarea {
    width: 100%;
    height: 350px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
}

.editionArea textarea:focus {
    border-color: #e07a3a;
}



.login-flotante.minimizado {
    width: 20px; /* tamaño minimizado */
}
.login-flotante.minimizado #login,
.login-flotante.minimizado #mensaje {
    opacity: 0;
    pointer-events: none;
}

.login-flotante.minimizado {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}
.login-flotante.minimizado #cerrarinputArea {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#descargas {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
}

.ventana-header {
  background: #0078d7;
  color: #fff;
  padding: 10px;
  cursor: move;
  border-radius: 6px 6px 0 0;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #ff4d4d;
}

#limitImg {
  padding: 15px;
}

#upload-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#upload-form input[type="text"],
#upload-form input[type="file"],
#upload-form input[type="submit"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #aaa;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
}

#upload-form input[type="submit"] {
  background: #0078d7;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

#upload-form input[type="submit"]:hover {
  background: #005a9e;
}

.progress {
  width: 100%;
  height: 18px;
  border-radius: 5px;
  overflow: hidden;
  appearance: none;
}

.progress::-webkit-progress-bar {
  background-color: #eee;
}

.progress::-webkit-progress-value {
  background-color: #0078d7;
}

.progress::-moz-progress-bar {
  background-color: #0078d7;
}
#editor {
      border: 1px solid #ccc;
      min-height: 200px;
      padding: 10px;
      overflow: visible; /* importante para que se vean los handles */
    }
    #editor img {
      max-width: 300px;
      height: auto;
      margin: 5px;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 15px;
    }
    table, th, td {
      border: 1px solid #666;
    }
    th, td {
      padding: 8px;
      text-align: center;
    }
    th {
      background-color: #ddd;
    }



.editionArea:focus-within {
  border-color: #0078d7;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,120,215,0.2);
}

#textoIaCopiado {
	margin-top:15px;
  width: 95%;
  height: 100%;
  font-size: 16px;
  font-family: 'Segoe UI', sans-serif;
  padding: 10px;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  color: #333;
}

#loginBox {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  width: 320px;
  z-index: 1000;
  overflow: visible; /* permite que el mensaje se muestre fuera */
}

/* Contenedor principal del menú */
ul.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f0f0f0; /* Color de fondo de tu barra */
    display: flex; /* Menú horizontal */
    flex-wrap: wrap;
    z-index: 1000;
    position: relative;
}

/* Items del menú */
ul.menu li.deli {
    position: relative; /* Clave para que el submenú se posicione relativo a este */
    padding: 0;
    margin: 0;
}

/* Estilos básicos de botones (ya los tienes, pero por si acaso) */
.myButtonMenu {
  background: #ffffff;              /* Fondo blanco */
  border: 2px solid #ccc;           /* Borde gris claro */
  border-radius: 25px;              /* Bordes redondeados */
  padding: 8px 16px;                /* Espaciado interno */
  cursor: pointer;
  display: inline-flex;             /* Flex para alinear contenido */
  align-items: center;
  justify-content: center;
  font-size: 14px;                  /* Tamaño de texto */
  font-weight: 500;                 /* Texto semi-negrita */
  color: #333;                      /* Color del texto */
  transition: all 0.3s ease;        /* Animación suave */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Sombra ligera */
}

.myButtonMenu:hover {
  background: #f5f5f5;              /* Fondo más suave al pasar el mouse */
  border-color: #999;               /* Borde más oscuro */
  box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* Sombra más marcada */
}

.myButtonMenu:active {
  background: #e0e0e0;              /* Fondo más oscuro al hacer clic */
  transform: scale(0.97);           /* Pequeño efecto de presión */
}


/* --- SUBMENÚS --- */

/* Ocultamos el submenú por defecto */
ul.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none; /* Oculto por defecto */
    position: absolute; /* Flota sobre el contenido */
    left: 0;
    top: 100%; /* Aparece justo debajo del padre */
    min-width: 200px;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

/* Items dentro del submenú */
ul.submenu li {
    width: 100%;
    display: block;
}

/* Submenús anidados (Sub-submenús) */
ul.submenu ul.submenu {
    top: 0;
    left: 100%; /* Aparecen a la derecha */
}

/* --- LÓGICA DE APERTURA (PC) --- */
/* Al pasar el ratón sobre un item con submenú, mostramos el UL hijo */
ul.menu li.has-submenu:hover > ul.submenu {
    display: block;
}

/* Indicador visual de que tiene submenú (flecha) */
.has-submenu > button::after {
    content: " ?"; /* Flecha hacia abajo */
    font-size: 10px;
    margin-left: 5px;
    color: #666;
}

/* Submenus internos con flecha lateral */
ul.submenu .has-submenu > button::after {
    content: " ?"; /* Flecha hacia la derecha */
}

/* --- LÓGICA MÓVIL (Toque) --- */
/* En móviles, el hover no existe, usamos una clase activa */
@media (max-width: 768px) {
    ul.menu {
        flex-direction: column; /* Menú vertical en móvil */
    }
    
    ul.submenu {
        position: static; /* Se despliega dentro del flujo */
        box-shadow: none;
        border: none;
        background-color: #e0e0e0; /* Un poco más oscuro para diferenciar */
        width: 100%;
    }
    
    /* Ocultar hasta que se toque */
    ul.submenu {
        display: none;
    }
    
    /* Clase que activará el JS */
    ul.submenu.show-submenu {
        display: block;
    }
}
/* ========================================== */
/* PESTAÑA TOGGLE PARA GRID.JS               */
/* ========================================== */
.grid-header-toggle {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-bottom: none;
    padding: 5px 12px; /* Delgada */
    margin-bottom: 0;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    color: #495057;
    border-radius: 4px 4px 0 0; /* Bordes redondeados solo arriba */
    display: flex;
    align-items: center;
    user-select: none; /* Evita que se seleccione el texto al hacer click rápido */
    transition: background-color 0.2s;
}

.grid-header-toggle:hover {
    background-color: #dee2e6; /* Efecto hover suave */
}

.toggle-flecha {
    margin-right: 8px;
    font-size: 11px;
    transition: transform 0.2s;
}

/* Para que el grid se vea pegado a la pestaña cuando se abre */
.seccion-tabla {
    border: 1px solid #ced4da;
    border-top: none;
    padding: 10px;
    border-radius: 0 0 4px 4px;
    background-color: white;
}/* ==========================================
   PANELES FLOTANTES (Login y Chat)
   ========================================== */
/* Base para que el Login y el Chat se vean del mismo tamaño y en el mismo lugar */
.login-flotante, .inputArea {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    width: 220px;
    height: 320px; /* Tamaño óptimo */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* CRÍTICO: Evita que el contenido rompa el tamaño */
}

.inputArea{
	width:330px;
	height:400px;
	}
/* El login debe estar debajo del chat si se cruzan */
.login-flotante { z-index: 1000; }
.inputArea { z-index: 1001; background: #f9f9f9; }

/* ==========================================
   PIN DE ACCESO
   ========================================== */
#escribePin {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 15px;
}
#escribePin h3 { margin: 0 0 10px 0; color: #333; }
#escribePin .cajasTexto { width: 80%; }

/* ==========================================
   INPUTS Y BOTONES GENERALES
   ========================================== */
.cajasTexto {
    width: 100%;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.cajasTexto:focus { border-color: #e07a3a; }

.submit {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.submit:hover { background-color: #45a049; }

/* ==========================================
   ESTRUCTURA INTERNA DEL CHAT (Flexbox)
   ========================================== */
.chat_header {
    padding: 12px;
    background: #fff;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0; /* Evita que el header se encoja */
}

#conversacionPIN {
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #eee;
    flex-shrink: 0; /* Evita que el input se encoja */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-buttons {
    display: flex;
    gap: 6px;
}
.chat-buttons button {
    width: 38px; /* Tamaño fijo para que no se amontonen */
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    color: #777;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.chat-buttons button:hover {
    background: #f5f5f5;
    color: #1a1a1a;
    border-color: #e07a3a;
}

/* ✅ LA MAGIA: ÁREAS QUE CRECEN */
.messages {
    flex: 1; /* ¡Ocupa todo el espacio sobrante! */
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
}

.editionArea {
    flex: 1; /* ¡Ocupa todo el espacio sobrante cuando se muestra! */
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

#textoIaCopiado {
    flex: 1;
    width: 100%;
    font-size: 15px;
    font-family: 'Segoe UI', sans-serif;
    padding: 15px;
    border: none;
    outline: none;
    resize: none;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}

/* ==========================================
   MENSAJES DE IA (El que arreglamos antes)
   ========================================== */
.message {
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
}
/* ==========================================
   BOTONES DE LA CABECERA (Minimizar/Cerrar)
   ========================================== */
.chat_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-botones {
    display: flex;
    gap: 5px;
}

.chat-header-botones button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-header-botones button:hover {
    background: #f0f0f0;
    color: #333;
}

/* ==========================================
   ESTADO MINIMIZADO (Burbuja)
   ========================================== */
.login-flotante.minimizado, 
.inputArea.minimizado {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    bottom: 20px !important;   /* Se va hasta abajo */
    right: 20px !important;    /* Se va a la derecha */
    top: auto !important;
    left: auto !important;
    transform: none !important;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    background: #4CAF50 !important; /* Color de fondo de la burbuja */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ocultar todo lo de adentro cuando está minimizado */
.login-flotante.minimizado > *, 
.inputArea.minimizado > * {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s;
}

/* Mostrar el icono de la burbuja */
.login-flotante.minimizado::after, 
.inputArea.minimizado::after {
    content: '💬';
    font-size: 28px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
}
