:root {
  --navy: #18395a;
  --purple: #583578;
  --turquoise: #087683;
}
body { background: #f3f5f7; color: #172534; --accent: var(--turquoise); }
.usuarios { --accent: var(--navy); }
.profesionales { --accent: var(--purple); }
.ambiental { --accent: #286638; }
.emergencias { --accent: #9c2d35; }
.otros { --accent: #24292c; }
header { height: 74px; background: var(--accent); display: flex; padding: 8px max(16px, calc((100% - 1120px)/2)); align-items: center; }
header img { width: 110px; height: 58px; object-fit: contain; filter: brightness(0) invert(1); }
main { width: min(1120px, calc(100% - 28px)); margin: clamp(18px, 5vw, 58px) auto; }
.card { background: white; border: 1px solid #d6e0e5; border-radius: 14px; padding: clamp(16px, 4vw, 32px); }
.card:has(> form):not(:has(details)) { max-width: 580px; margin-inline: auto; }
h1 { margin: 0 0 18px; color: var(--accent); }
a { color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; }
form, fieldset { display: grid; gap: 12px; }
label { display: grid; gap: 5px; font-weight: 700; }
input, select { font: inherit; max-width: 100%; padding: 9px; border: 1px solid #7d8a94; border-radius: 6px; min-width: 0; }
.action, .tile { font: inherit; font-weight: 700; padding: 10px 16px; border: 1px solid var(--accent); border-radius: 10px; color: var(--accent); background: color-mix(in srgb, var(--accent) 30%, white); }
.action { justify-self: start; cursor: pointer; }
.action:disabled { opacity: .6; cursor: default; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.tile { display: grid; place-items: center; text-align: center; min-height: 82px; text-decoration: none; }
.tile:is(a):hover, .action:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 34%, white); }
.account { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.notice, [data-result] { background: #edf5f5; padding: 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 10px; border-bottom: 1px solid #d6e0e5; }
.preview { width: 140px; height: 64px; object-fit: contain; }
.preview.white { background: var(--navy); }
details { margin-top: 24px; }
summary { cursor: pointer; color: #8d2932; }
.small { font-size: .9rem; }
