/* ===== HEADER ===== */
.consulta-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.consulta-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  flex-wrap: nowrap; /* ✅ evita que el botón se apile */
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1e1e1e;
  font-size: 1.1rem;
}

.logo-img {
  width: 40px;
  height: 40px;
}

.nav-btn a {
  text-decoration: none;
}

.btn-obtener {
  background-color: #2c1dff;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.btn-obtener:hover {
  background-color: #4338ff;
}

/* ✅ Responsive: mantener logo y botón en la misma línea */
@media (max-width: 600px) {
  .consulta-navbar {
    padding: 10px 14px;
  }

  .logo {
    font-size: 1rem;
    gap: 6px;
  }

  .logo-img {
    width: 32px;
    height: 32px;
  }

  .btn-obtener {
    padding: 8px 14px;
    font-size: 0.9rem;
  }
}

/* ===== CONTENIDO PRINCIPAL ===== */
.consulta-main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 120px);
  background: #f8fafc;
  padding: 0px 20px;
}

.consulta-section {
  width: 100%;
  max-width: 550px;
}

.consulta-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  padding: 35px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.consulta-card h2 {
  color: #1e1e1e;
  margin-bottom: 10px;
}

.consulta-card p {
  color: #555;
  margin-bottom: 25px;
}

.consulta-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.consulta-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.consulta-form input:focus {
  border-color: #2c1dff;
}

.btn-primary {
  background-color: #2c1dff;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary:hover {
  background-color: #4338ff;
}

.resultado {
  margin-top: 30px;
  background: #f1f5f9;
  padding: 15px;
  border-radius: 12px;
}

.btn-group {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-view,
.btn-download {
  text-decoration: none;
  background: #2c1dff;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-view:hover {
  background: #4437ff;
}

.btn-download {
  background: #10b981;
}

.btn-download:hover {
  background: #059669;
}

.not-found {
  margin-top: 20px;
  color: #e11d48;
  font-weight: 500;
}

.footer {
  text-align: center;
  padding: 15px;
  background: #f1f1f1;
  color: #333;
  font-size: 0.9rem;
  border-top: 1px solid #e2e2e2;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
