﻿/* Reset básico */
body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9; /* <- Ya lo defines aquí */
  color: #333;
}

/* Título principal */
h1 {
  text-align: center;
  margin-top: 20px;
  color: #222;
}

/* Contenedor general */
.main {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Sección de información */
.info-section {
  margin-bottom: 30px;
}

.info-section h2 {
  margin-bottom: 10px;
  color: #444;
}

.info-section p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.info-section button {
  background-color: #4a90e2;
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.info-section button:hover {
  background-color: #357abd;
}

/* Chat Section */
.chat-section h2 {
  margin-bottom: 10px;
  color: #444;
}

/* Caja de mensajes */
.chat-box {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  background-color: #fafafa;
}

/* Preguntas del usuario */
.message.user-question {
  background-color: #e1f0ff;
  border-left: 4px solid #4a90e2;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-weight: bold;
}

/* Respuestas del sistema */
.chat-response {
  background-color: #e9ffe1;
  border-left: 4px solid #7ed957;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* Input + botón */
.input-section {
  display: flex;
  margin-top: 20px;
  gap: 10px;
}

.input-section input[type="text"] {
  flex: 1;
  padding: 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.input-section button {
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
}

.input-section button:hover {
  background-color: #357abd;
}

/* Responsive design */
@media (max-width: 600px) {
  .main {
    margin: 10px;
    padding: 16px;
  }

  .input-section {
    flex-direction: column;
  }

  .input-section button {
    width: 100%;
  }
}

/* Modal base */
.modal {
  display: none; /* 🔹 Esto oculta el modal inicialmente */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.4); /* fondo semi-transparente */
}

/* Contenido del modal */
.modal-content {
  background-color: #fff;
  margin: 20% auto;
  padding: 20px;
  border-radius: 12px;
  width: 60%;
  text-align: center;
  font-size: 1.2em;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.chat-box table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-family: inherit;
  font-size: 0.95em;
  background-color: #ffffff;
  color: #333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.chat-box th, .chat-box td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
}

.chat-box th {
  background-color: #0077cc;
  color: white;
  font-weight: bold;
}

.chat-box tr:nth-child(even) {
  background-color: #f9f9f9;
}

.chat-box tr:hover {
  background-color: #eef;
}



