:root {
  --blue: #2e75b8;
  --blue-dark: #123d67;
  --green: #84bd1a;
  --pink: #d93397;
  --ink: #202833;
  --muted: #667085;
  --line: #e5ebf0;
  --surface: #ffffff;
  --soft: #f3f7fb;
  --shadow: 0 18px 50px rgba(31, 48, 73, .16);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(217, 51, 151, .45);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(229, 235, 240, .8);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  width: 96px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  margin: 2px 0;
  background: #fff;
}

.main-nav {
  position: absolute;
  top: 68px;
  right: 12px;
  left: 12px;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.main-nav.open {
  display: flex;
}

.main-nav a {
  padding: 13px 12px;
  border-radius: 6px;
  color: var(--blue-dark);
  font-weight: 750;
}

.main-nav a:active,
.main-nav a:hover {
  background: var(--soft);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #0f2740;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 28, 47, .2) 0%, rgba(10, 28, 47, .55) 42%, rgba(10, 28, 47, .92) 100%),
    url("assets/optimized/slider1.jpg") center / cover;
}

.hero-content {
  position: relative;
  width: min(100%, 720px);
  padding: 0 18px 28px;
  color: #fff;
}

.kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2.9rem, 17vw, 5.5rem);
  line-height: .92;
  letter-spacing: 0;
}

.hero p:not(.kicker) {
  max-width: 34rem;
  margin: 16px 0 22px;
  color: rgba(255, 255, 255, .88);
  font-size: 1.05rem;
  line-height: 1.5;
}

svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: #fff;
}

.quick-actions a {
  display: grid;
  min-height: 116px;
  align-content: space-between;
  padding: 14px;
  color: var(--blue-dark);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.quick-actions svg {
  color: var(--blue);
}

.notice-band {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px;
  padding: 16px;
  color: #fff;
  background: var(--blue-dark);
  border-radius: 8px;
}

.notice-band div {
  display: grid;
  gap: 2px;
}

.notice-band span {
  color: rgba(255, 255, 255, .76);
}

.notice-band a {
  width: max-content;
  padding: 10px 12px;
  color: var(--blue-dark);
  background: #fff;
  border-radius: 8px;
  font-weight: 800;
}

.useful-phones {
  padding: 26px 14px 32px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.phone-list {
  display: grid;
  gap: 10px;
}

.phone-list a {
  display: grid;
  gap: 5px;
  padding: 15px;
  color: var(--blue-dark);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.phone-list strong {
  line-height: 1.2;
}

.phone-list span {
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 900;
}

.service-banner {
  display: grid;
  gap: 14px;
  margin: 14px;
  padding: 18px;
  color: #fff;
  background: var(--blue-dark);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(31, 48, 73, .14);
}

.service-banner h2,
.service-banner p {
  margin: 0;
}

.service-banner h2 {
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.05;
}

.service-banner p:not(.kicker) {
  margin-top: 8px;
  color: rgba(255, 255, 255, .86);
  line-height: 1.45;
}

.service-banner .button {
  width: 100%;
  color: var(--blue-dark);
  background: #fff;
}

.botanical-section {
  display: grid;
  gap: 0;
  overflow: hidden;
  margin: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(31, 48, 73, .12);
}

.botanical-section > img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.botanical-content {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.botanical-info {
  display: grid;
  gap: 10px;
}

.botanical-info article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.botanical-info svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
}

.botanical-info span {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-dark);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.botanical-info strong {
  display: block;
  color: var(--blue-dark);
  font-size: 1.28rem;
  line-height: 1.1;
}

.botanical-info p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.botanical-section .button {
  width: 100%;
  background: var(--green);
}

.botanical-actions {
  display: grid;
  gap: 10px;
}

.botanical-actions .outline-button {
  width: 100%;
}

.botanical-actions .whatsapp-button {
  color: #fff;
  background: #25d366;
  border-color: #25d366;
}

.funeral-service {
  display: grid;
  gap: 18px;
  padding: 32px 14px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.funeral-layout,
.funeral-content {
  display: grid;
  gap: 16px;
}

.funeral-content > p {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.funeral-card-grid,
.funeral-info-grid {
  display: grid;
  gap: 10px;
}

.funeral-card-grid article,
.funeral-info-grid article,
.funeral-extra {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.funeral-card-grid span {
  color: var(--blue-dark);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.funeral-card-grid strong {
  color: var(--blue);
  font-size: 1.8rem;
  line-height: 1;
}

.funeral-card-grid p,
.funeral-info-grid li,
.funeral-extra span {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.funeral-info-grid h2,
.funeral-info-grid h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.05rem;
  line-height: 1.2;
}

.funeral-info-grid ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.funeral-extra strong {
  color: var(--blue-dark);
}

.contact-cta,
.funeral-location,
.payment-steps {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-cta h2,
.funeral-location h2,
.payment-steps h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.2rem;
  line-height: 1.2;
}

.map-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-frame iframe {
  display: block;
  width: 100%;
  min-height: 320px;
}

.payment-steps ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.payment-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.payment-steps li {
  color: var(--muted);
  line-height: 1.45;
}

.payment-steps strong {
  color: var(--blue-dark);
}

.funeral-service .button {
  width: 100%;
}

.funeral-actions {
  display: grid;
  gap: 10px;
}

.funeral-actions .pay-button {
  gap: 8px;
  background: var(--green);
}

.funeral-actions .whatsapp-button {
  gap: 8px;
  background: #25d366;
}

.funeral-actions .whatsapp-button svg,
.funeral-actions .pay-button svg {
  width: 21px;
  height: 21px;
}

.funeral-actions .outline-button {
  width: 100%;
  justify-content: center;
}

.payment-landing {
  display: grid;
  gap: 16px;
  padding: 32px 14px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.payment-landing > p {
  max-width: 44rem;
  margin: -4px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.payment-landing .button {
  width: 100%;
}

.payment-grid {
  display: grid;
  gap: 10px;
}

.payment-grid a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  min-height: 78px;
  align-items: center;
  padding: 14px;
  color: var(--blue-dark);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
  line-height: 1.18;
}

.payment-grid svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
}

.section,
.services,
.bulletin {
  padding: 32px 14px;
}

.section-heading {
  margin-bottom: 16px;
}

.page-hero {
  padding: 38px 14px 28px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 61, 103, .96), rgba(46, 117, 184, .88)),
    url("assets/optimized/fme-10.jpg") center / cover;
}

.page-hero h1 {
  margin: 0;
  max-width: 8ch;
  font-size: clamp(3rem, 16vw, 5.2rem);
  line-height: .92;
  letter-spacing: 0;
}

.page-hero p:not(.kicker) {
  max-width: 42rem;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: 1.06rem;
  line-height: 1.5;
}

.government-hero {
  background:
    linear-gradient(135deg, rgba(18, 61, 103, .94), rgba(132, 189, 26, .76)),
    url("assets/optimized/fme-01.jpg") center / cover;
}

.procurement-hero {
  background:
    linear-gradient(135deg, rgba(18, 61, 103, .96), rgba(32, 40, 51, .8)),
    url("assets/optimized/fme-10.jpg") center / cover;
}

.procurement-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.35rem, 12vw, 5rem);
}

.rentas-hero {
  background:
    linear-gradient(135deg, rgba(18, 61, 103, .95), rgba(46, 117, 184, .72)),
    url("assets/optimized/fme-10.jpg") center / cover;
}

h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(2rem, 10vw, 3rem);
  line-height: .98;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(31, 48, 73, .08);
}

.news-card img {
  width: 100%;
  height: 188px;
  object-fit: cover;
}

.news-card div {
  padding: 16px;
}

.news-card p {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.news-card h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.2;
}

.news-card a {
  color: var(--blue);
  font-weight: 850;
}

.service-grid {
  display: grid;
  gap: 10px;
}

.service-grid a {
  padding: 18px 16px;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.open-government {
  padding: 32px 14px;
  color: #fff;
  background: var(--blue-dark);
}

.open-government h2 {
  color: #fff;
}

.open-government-grid {
  display: grid;
  gap: 12px;
}

.open-government-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  color: var(--blue-dark);
  background: #fff;
  border-radius: 8px;
}

.open-government-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.open-government-card h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.45rem;
  line-height: 1.05;
}

.open-government-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.open-government-card .button {
  width: 100%;
}

.open-dashboard {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  color: var(--blue-dark);
  background: #fff;
  border-radius: 8px;
}

.open-dashboard span {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.open-dashboard h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.55rem;
  line-height: 1.05;
}

.open-dashboard p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-frame {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.bulletin {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.latest-bulletin h2 {
  max-width: 9ch;
}

.bulletin-panel {
  display: grid;
  gap: 14px;
}

.bulletin-intro {
  display: grid;
  gap: 14px;
  padding: 16px;
  color: #fff;
  background: var(--blue-dark);
  border-radius: 8px;
}

.document-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--blue-dark);
  background: #fff;
  border-radius: 8px;
}

.bulletin-intro span,
.bulletin-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bulletin-intro strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.bulletin-intro p,
.bulletin-item p {
  margin: 8px 0 0;
  line-height: 1.45;
}

.bulletin-intro p {
  color: rgba(255, 255, 255, .78);
}

.bulletin-intro .button {
  width: 100%;
  color: var(--blue-dark);
  background: #fff;
}

.latest-actions {
  display: grid;
  gap: 8px;
}

.ghost-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 8px;
  font-weight: 850;
}

.bulletin-search {
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bulletin-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: .78rem;
  font-weight: 850;
}

.bulletin-search div {
  display: grid;
  gap: 8px;
}

.bulletin-search input,
.bulletin-search button {
  min-height: 48px;
  border-radius: 8px;
  font: inherit;
}

.bulletin-search input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

.bulletin-search button {
  border: 0;
  color: #fff;
  background: var(--blue);
  font-weight: 850;
}

.bulletin-filters {
  display: flex;
  gap: 8px;
  padding-bottom: 2px;
  overflow-x: auto;
}

.bulletin-filters button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid var(--line);
  padding: 0 13px;
  color: var(--blue-dark);
  background: #fff;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
}

.bulletin-filters .active {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.bulletin-list {
  display: grid;
  gap: 10px;
}

.bulletin-item {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(31, 48, 73, .06);
}

.bulletin-item h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.2rem;
  line-height: 1.15;
}

.bulletin-item p {
  color: var(--muted);
}

.bulletin-actions {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 8px;
}

.bulletin-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 850;
}

.bulletin-actions a:first-child {
  color: #fff;
  background: var(--blue);
}

.bulletin-actions a:last-child {
  color: var(--blue);
  background: var(--soft);
  border: 1px solid var(--line);
}

.bulletin-page {
  padding-top: 24px;
}

.year-tabs {
  position: sticky;
  top: 68px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 0;
  margin: -24px -14px 24px;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.year-tabs a {
  display: grid;
  min-height: 58px;
  place-items: center;
  color: var(--blue-dark);
  border-bottom: 3px solid transparent;
  font-size: 1.05rem;
  font-weight: 850;
}

.year-tabs a.active {
  color: #fff;
  background: var(--blue);
  border-bottom-color: var(--blue);
}

.year-block {
  scroll-margin-top: 140px;
  padding: 8px 0 32px;
}

.year-block h2 {
  margin-bottom: 14px;
  font-size: 1.65rem;
}

.bulletin-grid {
  display: grid;
  gap: 12px;
}

.bulletin-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 210px;
  align-content: center;
  padding: 22px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(31, 48, 73, .06);
  text-align: center;
}

.bulletin-card span {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.1;
}

.bulletin-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.05;
}

.bulletin-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.bulletin-card a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 850;
}

.procurement-page {
  padding: 24px 14px 38px;
  background: #fff;
}

.procurement-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.procurement-overview article {
  min-width: 0;
  padding: 12px 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.procurement-overview span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.procurement-overview strong {
  display: block;
  margin-top: 5px;
  color: var(--blue-dark);
  font-size: clamp(1rem, 5vw, 1.45rem);
  line-height: 1;
}

.status-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  overflow-x: auto;
}

.status-pills span,
.status {
  display: inline-flex;
  width: max-content;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.status-pills span {
  flex: 0 0 auto;
  color: var(--blue-dark);
  background: var(--soft);
  border: 1px solid var(--line);
}

.status-pills .open,
.status.open {
  color: #fff;
  background: var(--green);
}

.status.evaluating {
  color: var(--blue-dark);
  background: #dcecff;
}

.status.closed {
  color: #53606f;
  background: #edf0f4;
}

.procurement-year h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 9vw, 3.6rem);
}

.procurement-list {
  display: grid;
  gap: 14px;
}

.procurement-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(31, 48, 73, .08);
}

.procurement-card.closed {
  background: #fbfcfd;
}

.procurement-card-head {
  display: grid;
  gap: 12px;
}

.procurement-card-head p {
  margin: 10px 0 4px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.procurement-card-head h3,
.procurement-card h4 {
  margin: 0;
  color: var(--blue-dark);
}

.procurement-card-head h3 {
  font-size: 1.45rem;
  line-height: 1.05;
}

.procurement-card-head strong {
  width: max-content;
  max-width: 100%;
  padding: 10px 12px;
  color: var(--blue-dark);
  background: var(--soft);
  border-radius: 8px;
  font-size: 1rem;
}

.procurement-card h4 {
  font-size: 1.12rem;
  line-height: 1.28;
}

.contract-data {
  display: grid;
  gap: 8px;
  margin: 0;
}

.contract-data div {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.contract-data dt {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.contract-data dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.procurement-actions {
  display: grid;
  gap: 8px;
}

.outline-light {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--blue);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
}

.rentas-actions,
.tax-calendar,
.legislation-section {
  padding: 32px 14px;
}

.rentas-actions {
  display: grid;
  gap: 10px;
  background: #fff;
}

.rentas-actions a {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 14px;
  color: var(--blue-dark);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rentas-actions svg {
  grid-row: span 2;
  color: var(--blue);
}

.rentas-actions strong {
  font-size: 1.05rem;
}

.rentas-actions span {
  color: var(--muted);
  line-height: 1.35;
}

.tax-calendar {
  background: var(--soft);
}

.tax-grid {
  display: grid;
  gap: 14px;
}

.tax-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(31, 48, 73, .06);
}

.tax-card-head span,
.legislation-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tax-card h3,
.legislation-card h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.24rem;
  line-height: 1.15;
}

.tax-card p,
.legislation-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.due-list {
  display: grid;
  gap: 8px;
}

.due-list div,
.month-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.due-list strong,
.month-grid strong {
  color: var(--ink);
}

.due-list span,
.month-grid span {
  color: var(--blue-dark);
  font-weight: 850;
  text-align: right;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.month-grid div {
  flex-direction: column;
  align-items: flex-start;
}

.month-grid span {
  text-align: left;
}

.compact-tax {
  align-content: start;
}

.legislation-section {
  background: #fff;
}

.legislation-grid {
  display: grid;
  gap: 12px;
}

.legislation-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(31, 48, 73, .06);
}

.featured-law {
  color: #fff;
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.featured-law h3,
.featured-law p {
  color: #fff;
}

.legislation-card a {
  display: inline-flex;
  width: max-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 850;
}

.featured-law a {
  color: var(--blue-dark);
  background: #fff;
}

.news-detail {
  background: #fff;
}

.news-detail-hero {
  display: grid;
  gap: 14px;
  padding: 28px 14px 22px;
}

.back-link {
  width: max-content;
  max-width: 100%;
  color: var(--blue);
  font-weight: 850;
}

.news-detail-hero h1 {
  margin: 0;
  max-width: 12ch;
  color: var(--blue-dark);
  font-size: clamp(2.65rem, 14vw, 5.6rem);
  line-height: .94;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-meta span {
  width: max-content;
  max-width: 100%;
  padding: 8px 10px;
  color: var(--blue-dark);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
}

.news-cover {
  margin: 0;
}

.news-cover img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.news-cover figcaption {
  padding: 10px 14px 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.4;
}

.news-body {
  display: grid;
  gap: 18px;
  max-width: 760px;
  padding: 26px 14px 38px;
}

.news-body p {
  margin: 0;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.72;
}

.news-body ul {
  margin: 0;
  padding-left: 22px;
}

.news-body li {
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.72;
}

.news-body .lead {
  color: var(--blue-dark);
  font-size: 1.28rem;
  font-weight: 750;
  line-height: 1.45;
}

.news-body h2,
.news-body h3 {
  color: var(--blue-dark);
  line-height: 1.15;
}

.news-body h2 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 7vw, 2.5rem);
}

.news-body h3 {
  margin: 4px 0 -6px;
  font-size: 1.45rem;
}

.news-body blockquote {
  margin: 0;
  padding: 14px 16px;
  color: var(--blue-dark);
  background: var(--soft);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.55;
}

.news-callout {
  display: grid;
  gap: 8px;
  padding: 16px;
  color: #fff;
  background: var(--blue-dark);
  border-radius: 8px;
}

.news-callout strong {
  font-size: 1.2rem;
}

.news-callout span {
  color: rgba(255, 255, 255, .78);
  line-height: 1.5;
}

.related-news {
  padding: 32px 14px;
}

.admin-body {
  background: #eef3f7;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: var(--blue-dark);
}

.admin-header .brand {
  width: 118px;
  padding: 7px;
  background: #fff;
  border-radius: 8px;
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-shell {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.admin-sidebar,
.admin-editor,
.admin-preview {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(31, 48, 73, .06);
}

.admin-sidebar h1,
.admin-editor h2,
.admin-preview h2 {
  margin: 0;
  color: var(--blue-dark);
  line-height: 1;
}

.admin-sidebar h1 {
  font-size: 2.25rem;
}

.admin-news-list {
  display: grid;
  gap: 8px;
}

.admin-news-item {
  display: grid;
  gap: 8px;
  padding: 13px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-news-item.active {
  border-color: var(--blue);
  box-shadow: inset 4px 0 0 var(--blue);
}

.admin-news-item h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.05rem;
  line-height: 1.2;
}

.admin-news-item p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
}

.admin-toolbar,
.admin-actions {
  display: grid;
  gap: 10px;
}

.admin-actions .outline-light {
  color: var(--blue);
  border-color: var(--line);
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form label,
.form-field {
  display: grid;
  gap: 7px;
  color: var(--blue-dark);
  font-size: .82rem;
  font-weight: 850;
}

.form-field > span {
  color: var(--blue-dark);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 500;
}

.admin-form textarea {
  resize: vertical;
}

.rich-editor {
  display: grid;
  gap: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.editor-toolbar button {
  min-height: 34px;
  border: 1px solid var(--line);
  padding: 0 10px;
  color: var(--blue-dark);
  background: #fff;
  border-radius: 7px;
  font: inherit;
  font-size: .78rem;
  font-weight: 850;
}

.editor-toolbar button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.editor-toolbar button.active {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.media-insert {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.media-insert label {
  display: grid;
  gap: 6px;
  color: var(--blue-dark);
  font-size: .78rem;
  font-weight: 850;
}

.media-insert textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 500;
  resize: vertical;
}

.media-insert div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.media-insert button {
  min-height: 38px;
  border: 1px solid var(--line);
  color: var(--blue-dark);
  background: var(--soft);
  border-radius: 8px;
  font: inherit;
  font-size: .8rem;
  font-weight: 850;
}

.media-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.media-library button {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  min-height: 60px;
  align-items: center;
  padding: 6px;
  text-align: left;
  cursor: grab;
}

.media-library button:active {
  cursor: grabbing;
}

.media-library img {
  width: 56px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
}

.media-library span {
  color: var(--blue-dark);
  font-size: .76rem;
  font-weight: 850;
  line-height: 1.15;
}

.editor-hint {
  margin: 0;
  padding: 9px 12px;
  color: var(--muted);
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.35;
}

.editor-context-menu {
  position: fixed;
  z-index: 200;
  display: grid;
  min-width: 240px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(31, 48, 73, .2);
}

.editor-context-menu[hidden] {
  display: none;
}

.context-menu-group {
  display: grid;
  padding: 6px;
  border-bottom: 1px solid var(--line);
}

.context-menu-group:last-child {
  border-bottom: 0;
}

.context-menu-group span {
  padding: 6px 7px 4px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.editor-context-menu button {
  min-height: 36px;
  border: 0;
  padding: 0 9px;
  color: var(--blue-dark);
  background: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 850;
  text-align: left;
  border-radius: 6px;
}

.editor-context-menu button:hover {
  color: #fff;
  background: var(--blue);
}

.editor-context-menu button:disabled {
  color: #98a2b3;
  background: #fff;
  cursor: not-allowed;
}

.editor-context-menu button.danger:not(:disabled) {
  color: #b42318;
}

.editor-context-menu button.danger:not(:disabled):hover {
  color: #fff;
  background: #b42318;
}

.editor-surface {
  min-height: 320px;
  padding: 16px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.62;
  outline: 0;
}

.editor-surface:focus {
  box-shadow: inset 0 0 0 2px rgba(46, 117, 184, .28);
}

.editor-surface.drag-over {
  box-shadow: inset 0 0 0 3px rgba(132, 189, 26, .55);
}

.editor-surface p,
.editor-surface h2,
.editor-surface h3,
.editor-surface blockquote,
.editor-surface ul,
.editor-surface .body-image,
.editor-surface .news-carousel {
  margin: 0 0 14px;
}

.editor-surface h2 {
  color: var(--blue-dark);
  font-size: 1.7rem;
  line-height: 1.08;
}

.editor-surface h3 {
  color: var(--blue-dark);
  font-size: 1.25rem;
  line-height: 1.18;
}

.editor-surface blockquote {
  padding: 12px 14px;
  color: var(--blue-dark);
  background: var(--soft);
  border-left: 4px solid var(--green);
  border-radius: 8px;
}

.editor-surface .body-video,
.editor-surface .news-carousel,
.body-image {
  position: relative;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.media-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  color: #fff;
  background: rgba(180, 35, 24, .92);
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transition: opacity .18s ease;
}

.editor-surface .body-image:hover .media-remove,
.editor-surface .body-video:hover .media-remove,
.editor-surface .news-carousel:hover .media-remove,
.media-remove:focus {
  opacity: 1;
}

.body-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  cursor: zoom-in;
}

.body-image figcaption,
.body-video figcaption,
.news-carousel figcaption {
  padding: 9px 11px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.35;
}

.body-video iframe,
.body-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.news-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 86%);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.news-carousel figure {
  overflow: hidden;
  margin: 0;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  scroll-snap-align: start;
}

.news-carousel img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(12, 22, 34, .88);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  color: var(--blue-dark);
  background: #fff;
  border-radius: 8px;
  font-size: 1.45rem;
  font-weight: 850;
}

.image-lightbox img {
  max-width: min(100%, 1120px);
  max-height: 84vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

.admin-form-grid {
  display: grid;
  gap: 12px;
}

.preview-frame {
  width: 100%;
  min-height: 720px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(31, 48, 73, .06);
}

.publish-checklist {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.publish-checklist strong {
  color: var(--blue-dark);
}

.publish-checklist label {
  display: flex;
  gap: 8px;
  color: var(--muted);
  line-height: 1.35;
}

.admin-form input[type="file"] {
  padding: 10px;
}

.login-body {
  min-height: 100vh;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 18px;
}

.login-panel {
  display: grid;
  gap: 16px;
  width: min(100%, 440px);
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(31, 48, 73, .12);
}

.login-panel .brand {
  width: 128px;
}

.login-panel h1 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 2rem;
  line-height: 1;
}

.login-error {
  margin: 0;
  padding: 10px 12px;
  color: #b42318;
  background: #fff4f2;
  border: 1px solid #fecdca;
  border-radius: 8px;
  font-weight: 750;
}

.login-error[hidden] {
  display: none;
}

.login-help {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.login-help strong {
  color: var(--blue-dark);
}

.login-help span {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.35;
}

.org-admin-list {
  display: grid;
  gap: 8px;
}

.org-admin-person {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.org-admin-person.featured {
  border-color: var(--blue);
  box-shadow: inset 4px 0 0 var(--blue);
}

.org-admin-person div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.org-admin-person strong {
  color: var(--ink);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.org-admin-person span,
.org-admin-person a {
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.org-admin-person a {
  color: var(--blue);
}

.org-admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.org-admin-row-actions .outline-light {
  min-height: 34px;
  padding: 0 10px;
  color: var(--blue);
  border-color: var(--line);
}

.org-admin-add {
  width: max-content;
}

.org-admin-person-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.org-admin-person-form h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1rem;
  line-height: 1.2;
}

.contract-doc-list {
  display: grid;
  gap: 8px;
}

.contract-doc-list article {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contract-doc-list strong {
  color: var(--ink);
  line-height: 1.25;
}

.contract-doc-list span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 750;
}

.contract-doc-list small {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 650;
  line-height: 1.35;
}

.contract-doc-list .outline-light,
.contract-doc-form .button {
  width: max-content;
}

.contract-doc-list .outline-light {
  min-height: 34px;
  padding: 0 10px;
  color: var(--blue);
  border-color: var(--line);
}

.contract-doc-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.permission-grid,
.role-preset-grid {
  display: grid;
  gap: 10px;
}

.permission-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: start;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.permission-card.enabled {
  border-color: var(--blue);
  box-shadow: inset 4px 0 0 var(--blue);
}

.permission-card input {
  grid-row: span 2;
  margin-top: 3px;
}

.permission-card strong,
.role-preset-grid strong {
  color: var(--blue-dark);
  line-height: 1.2;
}

.permission-card span,
.role-preset-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.35;
}

.role-preset-grid article {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cabinet-feature {
  display: grid;
  overflow: hidden;
  margin: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(31, 48, 73, .08);
}

.cabinet-feature img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  object-position: 50% 16%;
}

.cabinet-feature div {
  padding: 22px 18px;
}

.cabinet-feature strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--ink);
  font-size: 1.2rem;
}

.cabinet-feature p:not(.kicker) {
  color: var(--muted);
  line-height: 1.6;
}

.cabinet-section {
  padding: 32px 14px;
}

.cabinet-grid {
  display: grid;
  gap: 12px;
}

.cabinet-card {
  display: grid;
  overflow: hidden;
  gap: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(31, 48, 73, .06);
}

.cabinet-card div {
  padding: 14px;
}

.cabinet-photo {
  width: 100%;
  height: 310px;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  background: var(--soft);
}

.avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 900;
}

.cabinet-card span {
  color: var(--green);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cabinet-card h3 {
  margin: 5px 0 7px;
  color: var(--blue-dark);
  font-size: 1.24rem;
  line-height: 1.15;
}

.cabinet-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.org-chart-section {
  padding: 32px 14px 42px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.org-chart-section > p {
  max-width: 48rem;
  margin: -6px 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.org-chart {
  display: grid;
  gap: 12px;
}

.org-group {
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.org-group summary {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  color: var(--blue-dark);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.org-group summary::-webkit-details-marker {
  display: none;
}

.org-group summary span {
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.org-people {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.org-people-featured {
  padding-bottom: 0;
}

.org-people.org-people-featured article {
  color: #fff;
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.org-people.org-people-featured strong,
.org-people.org-people-featured span {
  color: #fff;
}

.org-person-with-photo {
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 12px;
}

.org-person-with-photo img {
  width: 92px;
  height: 108px;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .24);
}

.org-person-with-photo div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.org-people article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.org-people strong {
  color: var(--ink);
  font-size: .98rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.org-people span {
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.org-people-featured strong,
.org-people-featured span {
  color: #fff;
}

.org-email {
  width: 100%;
  max-width: 100%;
  margin-top: 4px;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid rgba(31, 48, 73, .18);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: .88rem;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.org-people-featured .org-email {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .34);
}

.outline-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 8px;
  font-weight: 850;
}

.mayor {
  display: grid;
  gap: 0;
  margin: 12px 14px 38px;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
}

.mayor img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: 50% 18%;
}

.mayor div {
  padding: 22px 18px;
}

.mayor p:not(.kicker) {
  color: var(--muted);
  line-height: 1.6;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 850;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 16px 34px;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer img {
  width: 132px;
}

.site-footer p {
  margin: 0;
  color: var(--blue-dark);
  font-weight: 850;
}

.site-footer a {
  color: var(--blue);
  font-weight: 800;
}

@media (min-width: 720px) {
  .site-header {
    min-height: 78px;
    padding: 12px 32px;
  }

  .brand {
    width: 132px;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .hero {
    min-height: 690px;
  }

  .hero-content {
    padding: 0 48px 48px;
  }

  .page-hero {
    padding: 74px 32px 64px;
  }

  .quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 18px 32px;
  }

  .notice-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 24px 32px;
    padding: 18px 22px;
  }

  .useful-phones {
    padding: 42px 32px;
  }

  .phone-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-banner {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin: 24px 32px;
    padding: 22px;
  }

  .service-banner .button {
    width: max-content;
  }

  .botanical-section {
    grid-template-columns: .94fr 1.06fr;
    align-items: stretch;
    margin: 24px 32px;
  }

  .botanical-section > img {
    height: 100%;
    min-height: 390px;
  }

  .botanical-content {
    align-content: center;
    padding: 28px;
  }

  .botanical-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .botanical-actions {
    grid-template-columns: max-content max-content max-content;
  }

  .botanical-section .button,
  .botanical-actions .outline-button {
    width: max-content;
  }

  .funeral-service {
    padding: 56px 32px;
  }

  .funeral-card-grid,
  .funeral-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funeral-service .button,
  .funeral-actions .outline-button {
    width: max-content;
  }

  .section,
  .services,
  .bulletin {
    padding: 56px 32px;
  }

  .payment-landing {
    padding: 56px 32px;
  }

  .payment-landing .button {
    width: max-content;
  }

  .payment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .news-detail-hero,
  .news-body,
  .related-news {
    padding-right: 32px;
    padding-left: 32px;
  }

  .news-detail-hero {
    padding-top: 58px;
  }

  .news-cover figcaption {
    padding-right: 32px;
    padding-left: 32px;
  }

  .compact-news-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    align-items: start;
    padding: 22px;
  }

  .admin-sidebar {
    grid-column: 1 / -1;
    grid-template-columns: auto auto 1fr;
    align-items: center;
  }

  .admin-sidebar .button {
    width: max-content;
  }

  .admin-news-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-editor {
    grid-column: 1;
  }

  .admin-preview {
    grid-column: 2;
  }

  .admin-toolbar,
  .admin-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .admin-actions {
    display: flex;
    justify-content: flex-end;
  }

  .admin-actions .outline-light {
    color: var(--blue);
    border-color: var(--line);
  }

  .news-list {
    grid-template-columns: 1.15fr .85fr;
  }

  .news-card.featured {
    grid-row: span 2;
  }

  .news-card.featured img {
    height: 410px;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .open-government {
    padding: 56px 32px;
  }

  .open-government-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .open-government-card {
    align-items: start;
    padding: 22px;
  }

  .open-government-card .button {
    width: max-content;
  }

  .open-dashboard {
    margin-top: 22px;
    padding: 22px;
  }

  .dashboard-frame {
    min-height: 560px;
  }

  .bulletin-panel {
    grid-template-columns: .9fr 1.1fr;
    align-items: start;
  }

  .latest-bulletin .bulletin-intro {
    grid-template-columns: 56px 1fr auto;
    align-items: center;
  }

  .latest-bulletin h2 {
    max-width: none;
  }

  .bulletin-intro {
    align-content: start;
    min-height: 100%;
    padding: 22px;
  }

  .bulletin-search,
  .bulletin-filters,
  .bulletin-list {
    grid-column: 2;
  }

  .latest-actions {
    grid-template-columns: 160px 118px;
  }

  .bulletin-search div {
    grid-template-columns: 1fr 132px;
  }

  .bulletin-filters {
    flex-wrap: wrap;
    overflow: visible;
  }

  .bulletin-item {
    grid-template-columns: 1fr 164px;
    align-items: center;
  }

  .bulletin-page {
    padding-top: 34px;
  }

  .year-tabs {
    top: 78px;
    margin: -34px -32px 34px;
    padding: 0 32px;
  }

  .year-tabs a {
    min-height: 64px;
    font-size: 1.15rem;
  }

  .year-block {
    padding-bottom: 48px;
  }

  .year-block h2 {
    display: none;
  }

  .bulletin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .bulletin-card {
    min-height: 196px;
  }

  .procurement-page {
    padding: 34px 32px 56px;
  }

  .procurement-overview {
    max-width: 960px;
    gap: 14px;
    margin-bottom: 18px;
  }

  .status-pills {
    flex-wrap: wrap;
    overflow: visible;
  }

  .procurement-list {
    gap: 18px;
  }

  .procurement-card {
    padding: 22px;
  }

  .procurement-card-head {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .contract-data div {
    grid-template-columns: 190px 1fr;
    gap: 20px;
  }

  .procurement-actions {
    grid-template-columns: 170px 130px;
  }

  .rentas-actions,
  .tax-calendar,
  .legislation-section {
    padding: 56px 32px;
  }

  .rentas-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tax-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .tax-card {
    padding: 20px;
  }

  .month-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .compact-tax {
    min-height: 210px;
  }

  .legislation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .featured-law {
    grid-column: span 2;
  }

  .cabinet-feature {
    grid-template-columns: .86fr 1.14fr;
    align-items: center;
    margin: 32px;
  }

  .cabinet-feature img {
    height: 560px;
    max-height: none;
  }

  .cabinet-feature div {
    padding: 44px;
  }

  .cabinet-section {
    padding: 56px 32px;
  }

  .cabinet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .cabinet-photo {
    height: 360px;
  }

  .org-person-with-photo {
    grid-template-columns: 120px 1fr;
  }

  .org-person-with-photo img {
    width: 120px;
    height: 140px;
  }

  .org-chart-section {
    padding: 56px 32px 64px;
  }

  .org-chart {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }

  .org-people {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .mayor {
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    margin: 18px 32px 56px;
  }

  .mayor img {
    height: 520px;
    max-height: none;
  }

  .mayor div {
    padding: 44px;
  }
}

@media (min-width: 1100px) {
  .admin-shell {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
    gap: 18px;
  }

  .admin-preview {
    position: sticky;
    top: 102px;
    grid-column: 2;
    max-height: calc(100vh - 124px);
    overflow: auto;
  }
}

.mesa-page {
  background: #fff;
}

.mesa-shell {
  padding: 14px 14px 104px;
  background: linear-gradient(180deg, #fff 0, var(--soft) 360px, #fff 100%);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: .9rem;
}

.breadcrumb a {
  color: var(--blue);
  font-weight: 800;
}

.mesa-hero {
  display: grid;
  gap: 16px;
  padding: 24px 0 14px;
}

.mesa-hero h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(3rem, 15vw, 5.5rem);
  line-height: .92;
  letter-spacing: 0;
}

.mesa-hero p:not(.kicker),
.confirmation > p,
.lookup-card p,
.sent-docs p {
  color: var(--muted);
  line-height: 1.5;
}

.mega-search,
.lookup-card,
.wizard-card,
.sent-docs,
.citizen-panel,
.profile-grid article,
.chart-card,
.operator-table,
.detail-drawer {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(31, 48, 73, .06);
}

.mega-search {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.guided-entry {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.suggestion-list {
  display: grid;
  gap: 8px;
}

.suggestion-list > strong {
  color: var(--blue-dark);
  font-size: .9rem;
}

.suggestion-list > div {
  display: grid;
  gap: 8px;
}

.suggestion-list button {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  color: var(--blue-dark);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.suggestion-list button small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.guided-links {
  display: grid;
  gap: 8px;
}

.mega-search label,
.field span {
  color: var(--blue-dark);
  font-size: .82rem;
  font-weight: 850;
}

.mega-search div {
  display: grid;
  gap: 8px;
}

.mega-search input,
.field input,
.field textarea,
.field select,
.operator-top input {
  width: 100%;
  min-height: 50px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.field textarea {
  min-height: 150px;
  padding-top: 12px;
  resize: vertical;
}

.button,
.outline-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.button {
  color: #fff;
  background: var(--blue);
  border: 0;
}

.outline-button {
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
}

.outline-button:disabled {
  color: #98a2b3;
  cursor: not-allowed;
}

.citizen-panel {
  display: grid;
  gap: 8px;
  color: var(--blue-dark);
  background:
    linear-gradient(135deg, rgba(46, 117, 184, .1), rgba(132, 189, 26, .14)),
    #fff;
}

.citizen-panel strong {
  font-size: 1.7rem;
  line-height: 1;
}

.citizen-panel p {
  margin: 0;
}

.mesa-actions {
  display: grid;
  gap: 10px;
  margin: 12px 0 24px;
}

.mesa-actions button {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 4px 12px;
  min-height: 112px;
  align-items: center;
  padding: 14px;
  color: var(--blue-dark);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(31, 48, 73, .06);
  cursor: pointer;
}

.mesa-actions button > span,
.tramite-icon,
.timeline-item > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
}

.tramite-icon.compact {
  width: 42px;
  height: 42px;
}

.mesa-actions strong {
  align-self: end;
  font-size: 1.05rem;
}

.mesa-actions small {
  grid-column: 2;
  color: var(--muted);
  line-height: 1.35;
}

.mesa-section,
.operator-dashboard {
  padding: 24px 0 76px;
}

.catalog-tools,
.dynamic-fields,
.upload-layout,
.profile-grid,
.dashboard-workspace,
.identity-layout {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.chips {
  display: flex;
  gap: 8px;
  padding-bottom: 2px;
  overflow-x: auto;
}

.chips button,
.tabs button,
.mini-rail button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 13px;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.chips .active,
.tabs .active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.mini-rail {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mini-rail strong {
  color: var(--blue-dark);
}

.mini-rail div {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.tramite-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.tramite-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(31, 48, 73, .06);
}

.tramite-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--pink);
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.tramite-card h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.25rem;
  line-height: 1.15;
}

.tramite-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.tramite-meta {
  display: grid;
  gap: 8px;
}

.status-badge {
  display: inline-flex;
  width: max-content;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 850;
}

.status-badge.success {
  color: #244f09;
  background: rgba(132, 189, 26, .22);
}

.status-badge.info {
  color: var(--blue-dark);
  background: #dcecff;
}

.favorite-button {
  min-height: 44px;
  color: var(--pink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

.wizard-head {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.back-link.inline {
  width: max-content;
  padding: 0;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-weight: 850;
  cursor: pointer;
}

.progress {
  overflow: hidden;
  height: 10px;
  background: #dce6ef;
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
  transition: width .25s ease;
}

.wizard-card h3 {
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-size: 1.35rem;
}

.identity-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(31, 48, 73, .06);
}

.identity-card h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.35rem;
  line-height: 1.15;
}

.role-options {
  display: grid;
  gap: 8px;
}

.role-options button {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 14px;
  color: var(--blue-dark);
  text-align: left;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.role-options button.active {
  color: #fff;
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.role-options span {
  color: inherit;
  opacity: .78;
  line-height: 1.35;
}

.institution-mode-summary {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  padding: 14px;
  color: var(--blue-dark);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.institution-mode-summary > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
}

.institution-mode-summary p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.institution-identity-intro {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px;
  color: var(--blue-dark);
  background: #dcecff;
  border-radius: 8px;
}

.institution-identity-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.catamarca-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--blue);
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.catamarca-button svg {
  color: var(--blue);
}

.person-fieldset {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.person-fieldset legend {
  padding: 0 6px;
  color: var(--blue-dark);
  font-size: 1.05rem;
  font-weight: 900;
}

.person-fieldset p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.identity-fields {
  display: grid;
  gap: 10px;
}

.operator-notice {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 14px;
  color: var(--blue-dark);
  background: #dcecff;
  border-radius: 8px;
}

.operator-only {
  background: #fbfcfd;
  border-style: dashed;
}

.wizard-actions,
.confirmation-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.choice-field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.choice-field legend {
  color: var(--blue-dark);
  font-weight: 850;
}

.choice-field label,
.check-field {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 42px;
  color: var(--ink);
}

.multi-choice label {
  min-height: 46px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.field-help {
  color: var(--muted);
  line-height: 1.35;
}

.structured-address,
.arca-activity-field,
.institution-field {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.structured-address legend {
  padding: 0 6px;
  color: var(--blue-dark);
  font-size: 1.05rem;
  font-weight: 900;
}

.address-grid {
  display: grid;
  gap: 10px;
}

.source-note {
  display: grid;
  gap: 6px;
  padding: 12px;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.arca-results,
.institution-results {
  display: grid;
  gap: 8px;
}

.arca-results > span,
.institution-results > span,
.selected-activity > span,
.selected-institution > span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.arca-results > div,
.institution-results > div {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.arca-results article,
.institution-results article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.arca-results button,
.institution-results button {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 70px;
  padding: 12px;
  color: var(--blue-dark);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.arca-results small,
.institution-results small {
  color: var(--muted);
  line-height: 1.35;
}

.selected-activity,
.selected-institution {
  display: grid;
  gap: 8px;
  padding: 12px;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--green);
  border-radius: 8px;
}

.selected-activity .outline-button,
.selected-institution .outline-button {
  width: max-content;
}

.institution-manual-grid {
  display: grid;
  gap: 10px;
}

.source-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.source-note a {
  width: max-content;
  color: var(--blue);
  font-weight: 850;
}

.upload-box {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 168px;
  align-content: center;
  padding: 18px;
  color: var(--blue-dark);
  text-align: center;
  background: var(--soft);
  border: 2px dashed #b9cad9;
  border-radius: 8px;
  cursor: pointer;
}

.upload-box input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.upload-box small {
  color: var(--muted);
}

.map-placeholder {
  display: grid;
  gap: 6px;
  min-height: 92px;
  align-content: center;
  padding: 14px;
  color: var(--blue-dark);
  background:
    linear-gradient(90deg, rgba(46, 117, 184, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(46, 117, 184, .08) 1px, transparent 1px),
    #fff;
  background-size: 24px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-placeholder.large {
  min-height: 190px;
}

.location-picker {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.location-head {
  display: grid;
  gap: 10px;
}

.location-head strong {
  display: block;
  color: var(--blue-dark);
  font-size: 1.05rem;
}

.location-head p,
.location-status,
.map-help {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.map-help {
  margin-top: -4px;
  font-size: .88rem;
}

.real-map {
  z-index: 0;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #dce6ef;
  border: 1px solid #b9cad9;
  border-radius: 8px;
}

.location-fields {
  display: grid;
  gap: 10px;
}

.leaflet-container {
  overflow: hidden;
  font: inherit;
}

.leaflet-container *,
.leaflet-container *::before,
.leaflet-container *::after {
  box-sizing: content-box;
}

.leaflet-container img,
.leaflet-container .leaflet-tile {
  display: block;
  max-width: none !important;
  max-height: none !important;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-control-attribution {
  font-size: .68rem;
}

.leaflet-control-geocoder {
  overflow: hidden;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(31, 48, 73, .14) !important;
}

.leaflet-control-geocoder-icon {
  width: 42px !important;
  height: 42px !important;
}

.leaflet-control-geocoder-form input {
  min-width: min(320px, calc(100vw - 96px));
  min-height: 42px;
  color: var(--ink);
  font: inherit;
}

.leaflet-control-geocoder-alternatives {
  font: inherit;
}

.leaflet-control-geocoder-alternatives li {
  min-height: 40px;
  padding: 9px 12px;
}

.leaflet-control-zoom a {
  width: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
  color: var(--blue-dark) !important;
  font-size: 1.3rem !important;
  font-weight: 900;
}

.confirmation {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 2.3rem;
  font-weight: 900;
}

.tracking-number {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  padding: 0 16px;
  color: var(--blue-dark);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: clamp(1.35rem, 8vw, 2rem);
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline-item > span {
  background: var(--state-color, var(--blue));
}

.timeline-item strong {
  display: block;
  color: var(--blue-dark);
}

.timeline-item time {
  display: block;
  margin-top: 3px;
  color: var(--pink);
  font-size: .8rem;
  font-weight: 850;
}

.timeline-item p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.sent-docs h3,
.profile-grid h3,
.chart-card h3,
.operator-table h3,
.detail-drawer h3 {
  margin: 0 0 10px;
  color: var(--blue-dark);
}

.internal-assistance-form {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.internal-assistance-form h4 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1rem;
}

.internal-assistance-form .choice-field {
  padding: 10px;
  background: #fff;
}

.internal-assistance-form .multi-choice label {
  min-height: 40px;
}

.internal-assistance-form .button {
  width: 100%;
}

.internal-assistance-form .field textarea {
  min-height: 96px;
}

.internal-check {
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.internal-assistance-form textarea[readonly] {
  background: #fbfcfd;
}

.derivation-preview {
  display: grid;
  gap: 6px;
  padding: 12px;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.derivation-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  white-space: pre-line;
}

.sent-docs ul,
.profile-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-card {
  align-content: start;
}

.profile-card-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.profile-card-head h3 {
  margin: 0;
}

.profile-form {
  display: grid;
  gap: 10px;
}

.profile-request-list {
  display: grid;
  gap: 10px;
}

.profile-request {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-request strong {
  display: block;
  margin-top: 8px;
  color: var(--blue-dark);
  font-size: 1.1rem;
}

.profile-request p {
  margin: 4px 0;
  color: var(--ink);
}

.profile-request small {
  color: var(--muted);
}

.profile-actions,
.profile-shortcuts {
  display: grid;
  gap: 8px;
}

.profile-shortcuts button {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 10px;
  color: var(--blue-dark);
  text-align: left;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.sent-docs li,
.profile-grid li {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: var(--soft);
  border-radius: 8px;
}

.profile-grid li .outline-button {
  width: max-content;
}

.sent-docs li span {
  color: var(--muted);
  font-size: .85rem;
}

.accordion {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.accordion details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.accordion summary {
  min-height: 54px;
  padding: 16px;
  color: var(--blue-dark);
  font-weight: 850;
  cursor: pointer;
}

.accordion p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
  line-height: 1.5;
}

.profile-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 62px;
  height: 62px;
  color: #fff;
  background: var(--blue-dark);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 900;
}

.operator-dashboard {
  gap: 14px;
}

.operator-main {
  min-width: 0;
}

.operator-sidebar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px;
  background: var(--blue-dark);
  border-radius: 8px;
}

.operator-sidebar strong {
  display: none;
}

.operator-sidebar button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 13px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  font-weight: 850;
}

.operator-sidebar .active {
  color: var(--blue-dark);
  background: #fff;
}

.operator-main,
.operator-top {
  display: grid;
  gap: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-grid article {
  padding: 14px;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  height: 190px;
  padding-top: 12px;
}

.bar-chart span {
  min-height: 18px;
  background: linear-gradient(180deg, var(--blue), var(--green));
  border-radius: 8px 8px 2px 2px;
}

.operator-table > div {
  display: grid;
  gap: 8px;
}

.operator-table article {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.operator-table article:first-child {
  border-color: rgba(46, 117, 184, .42);
  box-shadow: inset 4px 0 0 var(--blue);
}

.operator-table strong {
  color: var(--blue-dark);
}

.operator-table span,
.operator-table p {
  margin: 0;
  color: var(--muted);
}

.operator-table em {
  color: var(--pink);
  font-style: normal;
  font-weight: 850;
}

.timeline.compact .timeline-item {
  grid-template-columns: 34px 1fr;
  padding: 10px 0;
  background: transparent;
  border: 0;
}

.timeline.compact .timeline-item > span {
  width: 34px;
  height: 34px;
}

.detail-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.detail-head h3 {
  margin-bottom: 0;
}

.detail-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.operator-action-panel {
  border-bottom: 1px solid var(--line);
}

.operator-action-panel summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--blue-dark);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.operator-action-panel summary::-webkit-details-marker {
  display: none;
}

.operator-action-panel summary::after {
  content: "+";
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--blue);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1.1rem;
}

.operator-action-panel[open] summary::after {
  content: "-";
}

.operator-action-panel .internal-assistance-form {
  margin-top: 0;
}

.toast {
  position: fixed;
  right: 14px;
  bottom: 74px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 28px));
  padding: 14px 16px;
  color: #fff;
  background: var(--blue-dark);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.mesa-bottom-nav {
  position: fixed;
  right: 12px;
  bottom: 10px;
  left: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.mesa-bottom-nav button {
  min-height: 42px;
  color: var(--blue-dark);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 850;
}

.empty-state {
  margin: 0;
  padding: 20px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.empty-state.compact {
  padding: 12px;
}

@media (hover: hover) {
  .mesa-actions button,
  .tramite-card,
  .button,
  .outline-button,
  .chips button,
  .mini-rail button,
  .accordion details {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  }

  .mesa-actions button:hover,
  .tramite-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(31, 48, 73, .12);
  }

  .button:hover {
    background: var(--blue-dark);
  }
}

@media (min-width: 720px) {
  .mesa-shell {
    padding: 22px 32px 116px;
  }

  .mesa-hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    padding-top: 42px;
  }

  .mesa-hero-copy {
    max-width: 820px;
  }

  .mega-search div,
  .guided-links,
  .wizard-actions,
  .confirmation-actions {
    grid-template-columns: 1fr auto;
  }

  .mesa-actions,
  .tramite-grid,
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-data-card,
  .profile-requests-card {
    grid-column: 1 / -1;
  }

  .profile-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-form .wide,
  .profile-form .button {
    grid-column: 1 / -1;
  }

  .profile-request {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .tramite-card {
    grid-template-columns: 54px 1fr;
  }

  .tramite-meta {
    grid-column: 2;
    grid-template-columns: 1fr auto 46px;
    align-items: center;
  }

  .catalog-tools,
  .upload-layout,
  .operator-top,
  .identity-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
    align-items: end;
  }

  .identity-layout {
    grid-template-columns: .82fr 1.18fr;
    align-items: start;
  }

  .identity-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .address-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .identity-fields .wide,
  .location-fields .wide,
  .arca-activity-field .wide {
    grid-column: 1 / -1;
  }

  .location-head,
  .location-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .location-head > div {
    min-width: 0;
  }

  .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1020px) {
  .mesa-shell {
    padding-right: 40px;
    padding-bottom: 118px;
    padding-left: 40px;
  }

  .mesa-hero,
  .mesa-actions,
  .mesa-section,
  .operator-dashboard,
  .breadcrumb {
    width: min(100%, 1180px);
    margin-right: auto;
    margin-left: auto;
  }

  .mesa-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tramite-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .operator-dashboard {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: start;
    width: min(100%, 1360px);
  }

  .operator-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    overflow: visible;
  }

  .operator-sidebar strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 1.2rem;
  }

  .dashboard-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 420px);
    grid-template-areas:
      "table detail"
      "chart detail";
    align-items: start;
  }

  .operator-table {
    grid-area: table;
  }

  .chart-card {
    grid-area: chart;
  }

  .detail-drawer {
    position: sticky;
    top: 92px;
    grid-area: detail;
    max-height: calc(100vh - 116px);
    overflow: auto;
    padding: 18px;
  }

  .operator-table > div {
    max-height: 520px;
    overflow: auto;
    padding-right: 4px;
  }

  .operator-table article {
    grid-template-columns: 132px minmax(130px, .8fr) minmax(180px, 1fr) 112px;
    gap: 12px;
    align-items: center;
  }

  .operator-table p {
    color: var(--ink);
  }

  .operator-table em {
    justify-self: end;
    padding: 6px 10px;
    color: var(--blue-dark);
    background: #dcecff;
    border-radius: 999px;
    font-size: .78rem;
  }

  .status-update-form .field:has(select),
  .status-update-form .field:has(input[type="tel"]),
  .derivation-form .field:has(select),
  .derivation-form .field:has(input[type="tel"]) {
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: center;
  }

  .status-update-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .status-update-form .field:has(select),
  .status-update-form .field:has(input[type="tel"]) {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .status-update-form .field textarea {
    min-height: 74px;
  }

  .status-update-form .internal-check,
  .status-update-form .derivation-preview,
  .status-update-form .button {
    grid-column: 1 / -1;
  }

  .status-update-form .derivation-preview {
    max-height: 116px;
    overflow: auto;
  }

  .mesa-bottom-nav {
    right: 32px;
    left: auto;
    width: 430px;
  }
}

@media (min-width: 1280px) {
  .operator-dashboard {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .dashboard-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 460px);
  }
}

@media (min-width: 1440px) {
  .dashboard-workspace {
    grid-template-columns: minmax(560px, 1fr) minmax(430px, 500px);
  }
}
