.swal-wide{
    width:1300px !important;
}

.swal-screenfit{
    height: 99.5% !important; 
	width: 99.5% !important;
}

.swal2-close {
 color: #000000;
    width: 0.8em;
    height: 0.8em;
    margin-top: 10;
    margin-right: 10;
	font-size: 2em;
	background: none;
	border: none;
	z-index: 999;
}
.swal2-html-container {
margin: 0.5em 0.5em 0.5em;
    padding: 0;
    font-size: 1em;
}

.swal2-title {
    position: relative;
    max-width: 100%;
    margin: 0;
    padding: 0.8em 1em 0;
    color: inherit;
    font-size: 1.5em;
    font-weight: 600;
    text-align: center;
    text-transform: none;
    word-wrap: break-word;
}

.swal2-popup {
    border-radius: 25px;
}

.pdfobject-container {
  position: absolute; 
  left: 20; 
  right: 20; 
  top: 40; 
  bottom: 20;
  z-index: 999;
  margin-left: auto; 
  margin-right: auto; 
}



        .contenedor { font-family: sans-serif; max-width: 500px; margin: 20px auto; }
        .cuadro-texto { border: 1px solid #ccc; padding: 15px; background: #f9f9f9; margin-bottom: 10px; }
        .resaltado { color: #d9534f; font-weight: bold; text-decoration: underline; }
        .campo { display: block; width: 100%; margin: 10px 0; padding: 8px; }

/* Contenedor principal */
.fab-container {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  touch-action: none;
  /* Transición suave para el desplazamiento a la esquina en el clic */
  transition: top 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
              left 0.6s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* -------------------------------------------------------------
   ANIMACIÓN REBOTANTE (BOUNCE) ENTRADA DESDE LA ESQUINA
------------------------------------------------------------- */
.fab-container.animacion-bounce-inicial {
  animation: reboteEntrada 2.5s 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6) forwards;
}

@keyframes reboteEntrada {
  0% {
    top: 25px;
    left: 25px;
    transform: translate(0, 0) scale(0.2);
    opacity: 0;
  }
  40% {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.3); /* Primer impacto grande */
    opacity: 1;
  }
  60% {
    transform: translate(-50%, -50%) scale(0.85); /* Rebote de encogimiento */
  }
  80% {
    transform: translate(-50%, -50%) scale(1.1);  /* Segundo rebote suave */
  }
  100% {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);    /* Posición final en reposo */
  }
}

/* Posiciones clave */
.fab-container.en-centro {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.fab-container.en-esquina {
  top: 25px;
  left: 25px;
  transform: translate(0, 0);
}

.fab-container.arrastrando {
  transition: none !important;
  animation: none !important;
}

/* Botón principal */
.fab-btn {
  position: relative;
  width: 60px;
  height: 60px;
  background-color: #6200ee;
  border: none;
  border-radius: 50%;
  cursor: grab;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  user-select: none;
}

.fab-btn:active {
  cursor: grabbing;
}

/* Rayas del icono */
.fab-btn .linea {
  width: 22px;
  height: 2.5px;
  background-color: #ffffff;
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
  transition: all 0.3s ease;
}

/* Animación de 3 rayas a "X" */
.fab-btn.activo .linea:nth-child(2) { transform: translateY(7.5px) rotate(45deg); }
.fab-btn.activo .linea:nth-child(3) { opacity: 0; }
.fab-btn.activo .linea:nth-child(4) { transform: translateY(-7.5px) rotate(-45deg); }

/* LLAMA Y PULSO */
.flame-effect {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fab-btn.con-llama .flame-effect {
  opacity: 1;
  background: radial-gradient(circle, transparent 40%, #ff4500 65%, #ff8c00 80%, #ffd700 100%);
  box-shadow: 0 0 15px #ff4500, 0 0 25px #ff8c00, 0 0 40px #ffd700;
  animation: fuego-pulse 1.2s infinite alternate ease-in-out;
}

@keyframes fuego-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 12px #ff4500, 0 0 22px #ff8c00, 0 0 32px #ffd700;
    filter: blur(1px);
  }
  100% {
    transform: scale(1.25);
    box-shadow: 0 0 22px #ff4500, 0 0 42px #ff8c00, 0 0 62px #ffd700, 0 0 80px #ff0000;
    filter: blur(2.5px);
  }
}

/* Menú de Opciones */
.fab-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.8);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.fab-options.activo {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.fab-item {
  background-color: #ffffff;
  color: #333333;
  border: none;
  padding: 10px 22px;
  border-radius: 25px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.fab-item:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}


body {
      background-image: url('https://venapp.sytes.net/logo.png');
      background-position: center bottom;
      background-repeat: no-repeat;
      background-attachment: fixed;
      background-size: 50%;
    }

    /* Estilos para el contenedor #result */
#result12 {
      background-color: #000000; /* Fondo negro totalmente opaco */
}

#buscador {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  height: auto;
}




       .chat-viewport {
            width: 100%;
            height: 100vh;
            background-color: #0b141a;
            background-image: radial-gradient(#1f2c34 1px, transparent 0);
            background-size: 16px 16px;
            display: flex;
            flex-direction: column;
        }

        /* Área de mensajes scrolleable horizontalmente ancha */
        .chat-messages {
            flex: 1;
            padding: 15px 20px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .msg-row {
            display: flex;
            width: 100%;
        }

        .msg-row.msg-in {
            justify-content: flex-start;
        }

        .msg-row.msg-out {
            justify-content: flex-end;
        }

        /* Burbuja ajustada a un estilo horizontal panorámico (hasta 96% del ancho) */
        .msg-bubble {
            width: 100%;
            max-width: 96%; 
            padding: 10px 14px;
            border-radius: 8px;
            position: relative;
            font-size: 15.5px;
            line-height: 1.45;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
        }

        /* Estilos IN (Recibido - Gris) */
        .msg-in .msg-bubble {
            background-color: #202c33;
            color: #e9edef;
            border-top-left-radius: 0;
        }

        .msg-in .msg-header {
            color: #53bdeb;
        }

        /* Estilos OUT (Enviado - Verde) */
        .msg-out .msg-bubble {
            background-color: #005c4b;
            color: #e9edef;
            border-top-right-radius: 0;
        }

        .msg-out .msg-header {
            color: #25d366;
        }

        .msg-header {
            font-size: 15.5px;
            font-weight: bold;
            margin-bottom: 6px;
            word-break: break-word;
            border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
            padding-bottom: 4px;
        }

        .msg-body {
            word-wrap: break-word;
            white-space: pre-wrap;
        }

        .msg-footer {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 6px;
            margin-top: 4px;
	    font-weight: bold;
            font-size: 15.5px;
            color: #8696a0;
        }

        .msg-out .msg-footer {
            color: #9eb5a8;
        }

        .checks {
            color: #53bdeb;
            font-weight: bold;
            font-size: 11px;
        }

        /* Scrollbar personalizado oscuro */
        .chat-messages::-webkit-scrollbar {
            width: 6px;
        }
        .chat-messages::-webkit-scrollbar-thumb {
            background: #374248;
            border-radius: 3px;
        }






.winbox-body-custom {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto; /* Permite el scroll solo en esta área */
  position: relative;
  background-color: #131314; /* Fondo del chat */
}

/* Área de mensajes con scroll automático */
.gemini-content-area {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

/* --- CONTENEDOR PRINCIPAL FIXEADO AL BOTTOM --- */
.gemini-input-container {
  position: sticky;
  bottom: 16px;
  margin: 0 auto 16px auto; /* Centrado dentro de WinBox */
  width: calc(100% - 32px);
  max-width: 900px;
  background-color: #1e1f20;
  border-radius: 28px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  box-sizing: border-box;
}

/* Area de texto de 4 lineas de alto */
.message-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #e3e2e6;
  font-size: 16px;
  resize: none;
  line-height: 1.4;
  padding: 0;
}

.message-input::placeholder {
  color: #8e918f;
}

.bottom-actions {
  display: flex;
  align-items: center; /* Centra los botones verticalmente */
  justify-content: flex-end; /* Alinea todo el contenido a la derecha */
  gap: 8px; /* Espaciado uniforme entre elementos */
  width: 100%;
}

/* Selector desplegable de Agente LLM */
.dropdown-wrapper {
  position: relative;
}

.selector-btn {
  background-color: #2d2f31;
  color: #e3e2e6;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.selector-btn:hover {
  background-color: #37393b;
}

/* Menu flotante del selector */
.custom-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 280px;
  background-color: #1e1f20;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border: 1px solid #2d2f31;
  z-index: 1001;
}

.custom-dropdown.show {
  display: block;
}

.dropdown-option {
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.dropdown-option:hover {
  background-color: #2d2f31;
}

.option-title {
  color: #e3e2e6;
  font-size: 14px;
  font-weight: 500;
  display: block;
}

.option-subtitle {
  color: #8e918f;
  font-size: 12px;
  margin-top: 2px;
  display: block;
}

/* Boton enviar */
.action-btn {
  background: none;
  border: none;
  color: #c4c7c5;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.action-btn:hover {
  background-color: #2d2f31;
  color: #e3e2e6;
}

/* --- VENTANA MODAL DE CONFIRMACION --- */
.modal-overlay {
  display: none;
  position: absolute; /* Cambiado a absolute para cubrir solo la ventana de WinBox */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background-color: #1e1f20;
  border: 1px solid #2d2f31;
  border-radius: 20px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  color: #e3e2e6;
}

.modal-box h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #e3e2e6;
}

.modal-box p {
  font-size: 14px;
  color: #8e918f;
  margin-bottom: 14px;
}

.confirm-input {
  width: 100%;
  background-color: #131314;
  border: 1px solid #2d2f31;
  border-radius: 10px;
  padding: 10px;
  color: #e3e2e6;
  font-size: 14px;
  outline: none;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.confirm-input:focus {
  border-color: #a8c7fa;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-btn {
  padding: 8px 16px;
  border-radius: 18px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.btn-cancel {
  background-color: transparent;
  color: #c4c7c5;
}

.btn-cancel:hover {
  background-color: #2d2f31;
}

.btn-confirm {
  background-color: #a8c7fa;
  color: #040e15;
}

.btn-confirm:hover {
  background-color: #7cacf8;
}








/* Menú flotante del selector */
.custom-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 280px;
  background-color: #1e1f20;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border: 1px solid #2d2f31;
  z-index: 1001;

  /* --- FUERZA EL SCROLL EXACTO A 6 ITEMS --- */
  max-height: 310px !important;  /* Limita la altura del contenedor */
  overflow-y: auto !important;   /* Obliga a mostrar la barra de scroll */
  box-sizing: border-box !important;
}

/* Asegurar que las opciones mantengan una altura consistente */
.custom-dropdown .dropdown-option {
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s;
  flex-shrink: 0; /* Impide que los items se aplasten si hay un flex padre */
}

/* Estilo de la barra de scroll */
.custom-dropdown::-webkit-scrollbar {
  width: 6px;
}

.custom-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.custom-dropdown::-webkit-scrollbar-thumb {
  background: #37393b;
  border-radius: 4px;
}

.custom-dropdown::-webkit-scrollbar-thumb:hover {
  background: #505356;
}


/* Bloquea la interacción de todo el contenido del documento */
body.winbox-lock {
    overflow: hidden !important; /* Evita el scroll del fondo */
}

/* El fondo del modal bloquea todos los clics */
.winbox-modal {
    pointer-events: auto !important;
    background: rgba(0, 0, 0, 0.6); /* Oscurece el fondo */
}

/* Asegura que el resto del body no reciba eventos mientras esté bloqueado */
body.winbox-lock > *:not(.winbox):not(.winbox-modal) {
    pointer-events: none !important;
    user-select: none !important;
}