/* Modal - Debe estar al inicio del archivo */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 10000; /* Aumentamos el z-index */
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-content h2 {
  margin-top: 0;
  color: #112849;
}

.modal-content input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  margin: 1rem 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modal-content button {
  background-color: #112849;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f7fa;
  color: #004277;
}

/* Encabezado */
.top-bar {
  display: flex;
  align-items: center;
  gap: 1em;
  background: #004277;
  padding: 1em;
  color: white;
  border-bottom: 4px solid #ffcc00;
}

.azu-logo {
  width: 60px;
  height: 80px;
  border-radius: 12px;
  background-color: white;
  padding: 4px;
}

.title h1 {
  margin: 0;
  font-size: 1.8em;
}

.title p {
  margin: 0;
  font-size: 0.9em;
  font-weight: 300;
  color: #ffcc00;
}

.container {
  max-width: 800px;
  margin: auto;
  padding: 1em;
}

/* Chat */
.chat-box {
  background-color: white;
  border-radius: 12px;
  padding: 1em;
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

.msg {
  margin: 1em 0;
  padding: 0.8em 1em;
  border-radius: 12px;
  line-height: 1.5;
  animation: fadeIn 0.3s ease-in-out forwards;
}

.msg.azu {
  background-color: #e6f2fb;
  border-left: 4px solid #004277;
}

.msg.user {
  background-color: #fff8e1;
  border-left: 4px solid #ffcc00;
}

/* Formulario */
.chat-form {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-top: 1.5em;
}

.chat-form input {
  padding: 0.9em;
  border: 2px solid #004277;
  border-radius: 30px;
  font-size: 1em;
  outline: none;
}

.chat-form button[type="submit"] {
  background-color: #004277;
  color: white;
  border: none;
  padding: 0.9em 1.5em;
  border-radius: 30px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.chat-form button[type="submit"]:hover {
  background-color: #00315a;
}

/* Botón de preguntas y tooltip */
.preguntas-btn {
  background-color: #ffcc00;
  color: #004277;
  border: none;
  padding: 0.6em 1em;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.95em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.preguntas-btn:hover {
  background-color: #e6b800;
}

.tooltip-container {
  position: relative;
}

.tooltip {
  position: absolute;
  top: 110%;
  left: 0;
  display: flex;
  flex-direction: column;
  background-color: white;
  border: 1px solid #ccc;
  padding: 0.8em;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  gap: 0.5em;
  z-index: 999;
  width: 100%;
}

.tooltip.hidden {
  display: none;
}

.tooltip button {
  background-color: #ffcc00;
  color: #004277;
  border: none;
  padding: 0.5em;
  border-radius: 12px;
  font-size: 0.9em;
  font-weight: bold;
  cursor: pointer;
}

.tooltip button:hover {
  background-color: #e6b800;
}

/* Animación */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
  .chat-form button[type="submit"],
  .preguntas-btn {
    width: 100%;
  }

  .tooltip {
    width: 100%;
    left: 0;
  }

  .top-bar {
    flex-direction: column;
    text-align: center;
  }

  .azu-logo {
    margin-bottom: 0.5em;
  }
}
/* Footer */
