* { box-sizing: border-box; margin: 0; padding: 0; }

:root { color-scheme: light; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f4f6f8;
  color: #1a1a1a;
  line-height: 1.5;
}

.topbar {
  background: #0f172a;
  color: #fff;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar .volver { color: #cbd5e1; font-size: 0.85rem; text-decoration: none; }
.topbar .volver:hover { color: #fff; }
.brand-mark {
  font-weight: 700;
  letter-spacing: 0.08em;
  background: #1e40af;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.6rem;
}
.brand-sub { color: #cbd5e1; font-size: 0.9rem; }

main {
  max-width: 44rem;
  margin: 1.25rem auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.card h1 { font-size: 1.15rem; margin-bottom: 0.75rem; }

.nota { color: #666; font-size: 0.9rem; margin-bottom: 0.75rem; }
.vacio { color: #888; }

/* --- Avisos --- */
.avisos { display: flex; flex-direction: column; gap: 0.75rem; }
.aviso {
  border: 1px solid #e5e7eb;
  border-left: 4px solid #64748b;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}
.aviso-mantenimiento { border-left-color: #d97706; }
.aviso-evento { border-left-color: #2563eb; }
.aviso-noticia { border-left-color: #059669; }
.aviso-tipo {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #475569;
  background: #f1f5f9;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
}
.aviso h3 { font-size: 1rem; margin: 0.4rem 0 0.2rem; }
.aviso-veredas { color: #64748b; font-size: 0.82rem; margin-top: 0.3rem; }

/* --- Formularios --- */
.form { display: flex; flex-direction: column; gap: 0.7rem; }
.form label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.88rem; }
.form .fila { display: flex; gap: 0.7rem; }
.form .fila .crece { flex: 1; }
.form input, .form select, .form textarea {
  padding: 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
}
.form button {
  align-self: flex-start;
  padding: 0.55rem 1.1rem;
  background: #1e40af;
  color: #fff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

.msg { font-size: 0.88rem; margin-top: 0.2rem; }
.msg-ok { color: #047857; }
.msg-err { color: #b91c1c; }

.bienvenida { margin-bottom: 0.9rem; }
.link { background: none; border: 0; color: #1e40af; text-decoration: underline; cursor: pointer; margin-left: 0.5rem; }

/* --- Tabs --- */
.tabs { display: flex; gap: 0.4rem; border-bottom: 1px solid #e5e7eb; margin-bottom: 1rem; }
.tab {
  background: none;
  border: 0;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  color: #64748b;
  border-bottom: 2px solid transparent;
}
.tab.is-active { color: #1e40af; border-bottom-color: #1e40af; font-weight: 600; }
.tabpanel { display: none; }
.tabpanel.is-active { display: block; }

/* --- Lista PQRS --- */
.lista { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.pqrs-item { border: 1px solid #e5e7eb; border-radius: 8px; padding: 0.7rem 0.9rem; }
.pqrs-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.pqrs-tipo { font-size: 0.66rem; letter-spacing: 0.06em; background: #eef2ff; color: #3730a3; padding: 0.1rem 0.45rem; border-radius: 999px; }
.pqrs-estado { margin-left: auto; font-size: 0.72rem; padding: 0.12rem 0.5rem; border-radius: 999px; background: #f1f5f9; color: #475569; }
.estado-resuelta { background: #dcfce7; color: #166534; }
.estado-en_tramite { background: #fef3c7; color: #92400e; }
.estado-rechazada { background: #fee2e2; color: #991b1b; }
.pqrs-respuesta { margin-top: 0.4rem; background: #f8fafc; border-radius: 6px; padding: 0.5rem; font-size: 0.9rem; }
.pqrs-fecha { color: #94a3b8; font-size: 0.78rem; }

footer { text-align: center; color: #94a3b8; font-size: 0.82rem; padding: 0.5rem 0 1.5rem; }
