/**
 * tramites-public.css — vista pública /tramites.html
 * ÚLTIMA ACTUALIZACIÓN: 2026-03-25 14:00
 */

.tramites-body {
  background: #f8fafc;
  min-height: 100vh;
}

.tramites-hero h1 {
  margin: 0 0 8px 0;
  font-size: 1.75rem;
  color: #0f172a;
}

.tramites-lead {
  margin: 0 0 16px 0;
  color: #475569;
  max-width: 42rem;
  line-height: 1.5;
}

.tramites-toolbar input {
  width: 100%;
  max-width: 420px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
}

.tramites-status {
  min-height: 1.25rem;
  color: #64748b;
  font-size: 0.9rem;
}

.tramites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.tramite-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.tramite-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #0f172a;
}

.tramite-card .entidad {
  font-size: 0.85rem;
  color: #0369a1;
  font-weight: 600;
}

.tramite-card .desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.45;
  flex: 1;
}

.tramite-card .meta {
  font-size: 0.8rem;
  color: #94a3b8;
}

.tramite-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.card-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

.card-panel h2 {
  margin: 0 0 8px 0;
  font-size: 1.15rem;
}

.tramites-modal[hidden] {
  display: none !important;
}

.tramites-modal:not([hidden]) {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.tramites-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.tramites-modal__box {
  position: relative;
  background: #fff;
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.tramites-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.tramites-modal__head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.tramites-modal__close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.tramites-modal__body {
  padding: 18px;
  line-height: 1.55;
  color: #334155;
}

.tramites-modal__body pre {
  white-space: pre-wrap;
  font-family: inherit;
  background: #f1f5f9;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.tramites-form {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tramites-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: #334155;
}

.tramites-form input,
.tramites-form textarea {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
}

.tramites-form__hint {
  margin: 0;
  font-size: 0.9rem;
  color: #0f766e;
  font-weight: 600;
}

.tramites-form__error {
  color: #b91c1c;
  font-size: 0.9rem;
  margin: 0;
}

.tramites-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.tramites-success {
  padding: 20px;
}

.tramites-success p {
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.tramites-success .btn {
  display: inline-block;
  margin-bottom: 12px;
}
