:root {
  --bg: #ffffff;
  --text: #2f3136;
  --muted: #707070;
  --orange: #e09900;
  --green: #93cb52;
  --cream: #f8f5f3;
  --shadow: 0 24px 48px rgba(24, 24, 24, 0.12);
  --nav-height: 100px;
  --shell-width: min(1200px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-shell {
  width: var(--shell-width);
  min-height: var(--nav-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.page-content {
  min-height: calc(100vh - var(--nav-height) - 260px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-mobile {
  display: none;
}

.brand-centered {
  flex: 0 0 auto;
  justify-content: center;
  text-align: center;
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  clip-path: inset(0 25% 0 0);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.brand-kicker {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.brand strong {
  font-family: "Oswald", sans-serif;
  font-size: 2.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.main-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-side {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-side-left {
  justify-content: flex-end;
}

.nav-side-right {
  justify-content: flex-start;
}

.nav-item {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: -18px;
}

.nav-parent-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-parent-link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 180ms ease;
}

.main-nav a {
  position: relative;
  color: #5a5a5a;
  font-size: 0.96rem;
  font-weight: 500;
}

.main-nav a::before {
  content: "";
  position: absolute;
  top: -39px;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: background-color 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active {
  color: var(--green);
}

.main-nav a:hover::before,
.main-nav a:focus-visible::before,
.main-nav a.is-active::before {
  background: var(--green);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 238px;
  padding: 8px 0;
  background: #ffffff;
  border-top: 3px solid var(--orange);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 16px 32px rgba(24, 24, 24, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.dropdown-menu a {
  display: block;
  padding: 11px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666666;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}

.dropdown-menu a + a {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.dropdown-menu a::before {
  display: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible,
.dropdown-menu a.is-active {
  background: #f8f8f8;
  color: var(--green);
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 14px;
}

.nav-item:hover .dropdown-menu,
.nav-item.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item:hover .nav-parent-link::after,
.nav-item.is-open .nav-parent-link::after {
  transform: translateY(1px) rotate(225deg);
}

.menu-toggle {
  display: none;
  position: absolute;
  left: 0;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px 0;
  background: #2f3136;
}

.page-panel-title-only {
  width: var(--shell-width);
  margin: 0 auto;
  padding: 96px 0 120px;
  text-align: center;
}

.page-panel-title-only h1 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  color: #4d4d4d;
  line-height: 0.95;
}

.page-panel-embed {
  padding: 0 0 56px;
}

.page-panel-embed .page-panel-title-only {
  padding: 0 0 8px;
}

.page-panel-title-framed {
  padding: 28px 0 18px;
}

.panel-title-accent {
  display: block;
  width: min(260px, 42%);
  height: 6px;
  margin: 10px auto 0;
  background: url("./assets/accent.png") center / cover no-repeat;
  border-radius: 999px;
}

.page-panel-payments {
  padding: 0 0 56px;
}

.page-panel-sig {
  padding: 0 0 56px;
}

.page-panel-direct {
  padding: 0 0 56px;
}

.page-panel-municipal,
.page-panel-municipal-detail,
.page-panel-ambiental {
  padding: 0 0 56px;
}

.ambiental-shell {
  display: grid;
  gap: 26px;
}

.ambiental-intro {
  text-align: center;
}

.ambiental-group {
  display: grid;
  gap: 16px;
}

.ambiental-group h2,
.ambiental-viewer-header h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 400;
  color: #484848;
  text-align: center;
}

.ambiental-grid {
  display: grid;
  gap: 18px;
}

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

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

.ambiental-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 20px 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #faf6f2 100%);
  box-shadow: 0 18px 36px rgba(24, 24, 24, 0.08);
  cursor: pointer;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ambiental-card:hover,
.ambiental-card:focus-visible,
.ambiental-card.is-active {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px rgba(24, 24, 24, 0.12);
  border-color: rgba(224, 153, 0, 0.36);
}

.ambiental-card-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8f978e;
}

.ambiental-card strong {
  font-family: "Oswald", sans-serif;
  font-size: 1.38rem;
  font-weight: 400;
  line-height: 1.05;
  color: #414141;
}

.ambiental-card span:last-child {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #686868;
}

.ambiental-card-form strong {
  color: #1d9a39;
}

.ambiental-card-doc strong {
  color: #1e76bf;
}

.ambiental-viewer-shell {
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f5f1 100%);
  box-shadow: 0 22px 44px rgba(24, 24, 24, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.ambiental-viewer-header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.ambiental-viewer-header p {
  margin: 0;
  text-align: center;
  color: #676767;
  line-height: 1.6;
}

.ambiental-viewer-frame {
  min-height: 960px;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.ambiental-viewer {
  width: 100%;
  min-height: 960px;
  border: 0;
  background: #ffffff;
}

.page-panel-documents {
  padding: 0 0 56px;
}

.documents-shell {
  display: grid;
  gap: 24px;
}

.documents-intro {
  text-align: center;
}

.documents-toolbar {
  display: grid;
  gap: 18px;
}

.documents-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.documents-filter {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  border-radius: 999px;
  padding: 12px 20px;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  color: #555555;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(24, 24, 24, 0.06);
}

.documents-filter.is-active {
  color: #1d9a39;
  border-color: rgba(29, 154, 57, 0.3);
}

.documents-search {
  display: grid;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
  color: #5b5b5b;
}

.documents-search span {
  text-align: center;
  font-size: 0.92rem;
}

.documents-search input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
}

.documents-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.45fr);
  gap: 24px;
  align-items: start;
}

.documents-list-shell {
  min-height: 0;
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f5f1 100%);
  box-shadow: 0 22px 44px rgba(24, 24, 24, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.documents-list-header {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.documents-list-header h2 {
  margin: 0;
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: #484848;
}

.documents-list-header p {
  margin: 0;
  text-align: center;
  color: #737373;
  font-size: 0.92rem;
}

.documents-list {
  display: grid;
  gap: 8px;
  max-height: 980px;
  overflow-y: auto;
  padding-right: 4px;
}

.document-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
  row-gap: 3px;
  min-height: 0;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #faf6f2 100%);
  box-shadow: 0 12px 24px rgba(24, 24, 24, 0.07);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.document-card:hover,
.document-card:focus-visible,
.document-card.is-active {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px rgba(24, 24, 24, 0.12);
  border-color: rgba(224, 153, 0, 0.36);
}

.document-card[hidden] {
  display: none;
}

.document-card-kicker {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f978e;
}

.document-card strong {
  grid-column: 1 / -1;
  grid-row: 2;
  font-family: "Oswald", sans-serif;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.08;
  color: #414141;
}

.document-card span:last-child {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  text-align: right;
  font-size: 0.74rem;
  line-height: 1.2;
  color: #686868;
  white-space: nowrap;
}

.documents-viewer-shell {
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f5f1 100%);
  box-shadow: 0 22px 44px rgba(24, 24, 24, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.documents-viewer-header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.documents-viewer-header h2 {
  margin: 0;
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 400;
  color: #484848;
}

.documents-viewer-header p {
  margin: 0;
  text-align: center;
  color: #676767;
  line-height: 1.6;
}

.documents-viewer-frame {
  min-height: 960px;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.documents-viewer {
  width: 100%;
  min-height: 960px;
  border: 0;
  background: #ffffff;
}

.page-panel-news-index {
  padding: 0 0 56px;
}

.news-index-shell {
  display: grid;
  gap: 24px;
}

.news-index-intro {
  text-align: center;
}

.news-search {
  width: min(420px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 8px;
}

.news-search span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777777;
  text-align: center;
}

.news-search input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.95rem;
  color: #444444;
  box-shadow: 0 10px 22px rgba(24, 24, 24, 0.05);
}

.news-search input:focus {
  outline: none;
  border-color: rgba(224, 153, 0, 0.46);
  box-shadow: 0 0 0 4px rgba(224, 153, 0, 0.12);
}

.news-index-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.5fr);
  gap: 24px;
  align-items: start;
}

.news-index-list-shell,
.news-detail-shell {
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f5f1 100%);
  box-shadow: 0 22px 44px rgba(24, 24, 24, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.news-index-list-shell {
  padding: 20px;
}

.news-index-list-header {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.news-index-list-header h2 {
  margin: 0;
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: #484848;
}

.news-index-list-header p {
  margin: 0;
  text-align: center;
  color: #737373;
  font-size: 0.92rem;
}

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

.news-list-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(24, 24, 24, 0.06);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.news-list-item:hover,
.news-list-item:focus-visible,
.news-list-item.is-active {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(24, 24, 24, 0.1);
  border-color: rgba(224, 153, 0, 0.34);
}

.news-list-date {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8f96;
}

.news-list-item strong {
  font-family: "Oswald", sans-serif;
  font-size: 1.02rem;
  font-weight: 400;
  color: #414141;
  line-height: 1.05;
}

.news-list-summary {
  font-size: 0.84rem;
  color: #666666;
  line-height: 1.35;
}

.news-detail-shell {
  overflow: hidden;
}

.news-detail-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-detail-copy {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.news-detail-date {
  margin: 0;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-detail-copy h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 0.98;
  color: #3e4044;
}

.news-detail-copy p:last-of-type {
  margin: 0;
  color: #555555;
  line-height: 1.75;
}

.news-detail-link {
  display: inline-flex;
  width: fit-content;
  padding: 12px 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  color: #444444;
  box-shadow: 0 10px 22px rgba(24, 24, 24, 0.06);
}

.page-panel-transparencia {
  padding-bottom: 40px;
}

.page-panel-sitemap {
  padding-bottom: 48px;
}

.sitemap-shell {
  display: grid;
  gap: 26px;
}

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

.sitemap-card {
  padding: 24px 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #faf6f2 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 20px 40px rgba(24, 24, 24, 0.08);
  display: grid;
  gap: 16px;
}

.sitemap-card h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: #464646;
  text-align: center;
}

.sitemap-links {
  display: grid;
  gap: 10px;
}

.sitemap-links a {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 24px rgba(24, 24, 24, 0.05);
  color: #4a4a4a;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease;
}

.sitemap-links a:hover,
.sitemap-links a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(24, 24, 24, 0.09);
  border-color: rgba(224, 153, 0, 0.3);
  color: #2f3136;
}

.transparencia-shell {
  display: grid;
  gap: 28px;
}

.transparencia-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.transparencia-tab {
  min-height: 76px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 30px rgba(24, 24, 24, 0.08);
  font-family: "Oswald", sans-serif;
  font-size: 1.06rem;
  color: #444444;
  padding: 14px 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, border-color 180ms ease;
}

.transparencia-tab:hover,
.transparencia-tab:focus-visible,
.transparencia-tab.is-active {
  transform: translateY(-2px);
  box-shadow: 0 24px 36px rgba(24, 24, 24, 0.12);
  border-color: rgba(224, 153, 0, 0.34);
  color: #2f2f2f;
}

.transparencia-tab-blue {
  color: #0c71c3;
}

.transparencia-tab-red {
  color: #e02b20;
}

.transparencia-tab-green {
  color: #63c507;
}

.transparencia-pane {
  display: block;
}

.transparencia-card,
.transparencia-live-card {
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f5f1 100%);
  box-shadow: 0 22px 44px rgba(24, 24, 24, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.transparencia-card {
  padding: 34px;
  display: grid;
  gap: 14px;
}

.transparencia-card h2 {
  margin: 0;
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: #3f4348;
}

.transparencia-card p {
  margin: 0;
  text-align: center;
  color: #5c5f65;
  line-height: 1.7;
}

.transparencia-documents {
  gap: 18px;
}

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

.transparencia-doc-link {
  min-height: 120px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(24, 24, 24, 0.06);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-size: 1.45rem;
  color: #2f2f2f;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.transparencia-doc-link:hover,
.transparencia-doc-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(24, 24, 24, 0.1);
  color: #e09900;
}

.transparencia-live {
  display: grid;
  gap: 18px;
}

.transparencia-heading {
  padding-top: 0;
}

.transparencia-heading img {
  width: min(320px, 40%);
  height: 5px;
  margin-top: -8px;
}

.transparencia-live-card {
  padding: 18px;
}

.transparencia-live-card iframe {
  width: 100%;
  min-height: 520px;
  border: 0;
  border-radius: 18px;
  background: #101010;
}

.page-panel-directorio {
  padding: 0 0 56px;
}

.directorio-shell {
  display: grid;
  gap: 28px;
}

.directorio-intro-card,
.directorio-categories-panel,
.directorio-sidebar,
.directorio-detail-shell {
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f5f1 100%);
  box-shadow: 0 22px 44px rgba(24, 24, 24, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.directorio-intro-card {
  padding: 28px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.7fr);
  gap: 24px;
  align-items: center;
}

.directorio-kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.directorio-intro-copy h2,
.directorio-panel-head h2,
.directorio-sidebar-block h2,
.directorio-detail-copy h2,
.directorio-detail-note h3 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  color: #434343;
}

.directorio-intro-copy h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 0.98;
}

.directorio-intro-copy p:last-child,
.directorio-panel-head p,
.directorio-detail-copy p,
.directorio-detail-note p {
  margin: 0;
  color: #585858;
  line-height: 1.75;
}

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

.directorio-stat {
  min-height: 140px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(24, 24, 24, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
  text-align: center;
}

.directorio-stat strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  color: #e09900;
  line-height: 1;
}

.directorio-stat span {
  color: #707070;
  font-size: 0.95rem;
  font-weight: 600;
}

.directorio-categories-panel {
  padding: 26px;
  display: grid;
  gap: 20px;
}

.directorio-panel-head {
  text-align: center;
}

.directorio-panel-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.directorio-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.directorio-category-card {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(24, 24, 24, 0.1);
  cursor: pointer;
  min-height: 220px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.directorio-category-card:hover,
.directorio-category-card:focus-visible,
.directorio-category-card.is-active {
  transform: translateY(-4px);
  box-shadow: 0 28px 44px rgba(24, 24, 24, 0.16);
}

.directorio-category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.directorio-category-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 16px 16px;
  display: grid;
  gap: 4px;
  background: linear-gradient(180deg, rgba(22, 22, 22, 0) 0%, rgba(22, 22, 22, 0.84) 100%);
  color: #ffffff;
  text-align: left;
}

.directorio-category-overlay strong {
  font-family: "Oswald", sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.02;
}

.directorio-category-overlay small {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}

.directorio-business-list {
  display: grid;
  gap: 10px;
  max-height: min(60vh, 560px);
  overflow: auto;
  padding-right: 4px;
}

.directorio-business-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  box-shadow: 0 12px 22px rgba(24, 24, 24, 0.05);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.directorio-business-item:hover,
.directorio-business-item:focus-visible,
.directorio-business-item.is-active {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(24, 24, 24, 0.1);
  border-color: rgba(224, 153, 0, 0.34);
}

.directorio-business-name {
  font-family: "Oswald", sans-serif;
  font-size: 1.02rem;
  font-weight: 400;
  color: #434343;
  line-height: 1.04;
}

.directorio-business-meta {
  color: #7c7c7c;
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.directorio-empty {
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px dashed rgba(0, 0, 0, 0.16);
  color: #7a7a7a;
  text-align: center;
}

.directorio-detail-kicker {
  margin: 0;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.directorio-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 28px;
}

.directorio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 18, 20, 0.6);
  backdrop-filter: blur(5px);
}

.directorio-modal-dialog {
  position: relative;
  width: min(1180px, calc(100vw - 48px));
  height: min(820px, calc(100vh - 48px));
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f5f1 100%);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
}

.directorio-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: #3f4348;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.directorio-modal-head {
  padding: 28px 28px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.directorio-modal-head h2 {
  margin: 6px 0 6px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  color: #434343;
  line-height: 0.98;
}

.directorio-modal-head p:last-child {
  margin: 0;
  color: #737373;
  font-size: 0.92rem;
}

.directorio-modal-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.3fr);
  min-height: 0;
}

.directorio-modal-sidebar {
  padding: 22px;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.62);
  min-height: 0;
}

.directorio-modal-viewer {
  display: grid;
  grid-template-rows: minmax(280px, 1fr) auto;
  min-height: 0;
}

.directorio-modal-viewer img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.directorio-modal-copy {
  padding: 18px 24px 22px;
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.directorio-modal-copy h3 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 400;
  color: #434343;
  line-height: 1;
}

.directorio-modal-copy p {
  margin: 0;
  color: #5f5f5f;
  line-height: 1.55;
  font-size: 0.94rem;
}

.municipal-shell {
  width: var(--shell-width);
  margin: 0 auto;
}

.municipal-accent {
  background-image: url("./assets/municipalidad/muniheader.png");
  width: min(320px, 46%);
}

.municipal-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.municipal-shortcut {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 18px 20px;
  border: 2px solid #d2c7bb;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdfb 0%, #f5efe9 100%);
  box-shadow: 0 16px 34px rgba(24, 24, 24, 0.08);
  color: #474747;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.municipal-shortcut:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px rgba(24, 24, 24, 0.12);
}

.municipal-shortcut-green {
  color: #1d9a39;
  border-color: rgba(29, 154, 57, 0.34);
}

.municipal-shortcut-blue {
  color: #1e76bf;
  border-color: rgba(30, 118, 191, 0.34);
}

.municipal-intro,
.municipal-block,
.department-card {
  background: linear-gradient(180deg, #ffffff 0%, #faf6f2 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  box-shadow: 0 20px 44px rgba(24, 24, 24, 0.08);
}

.municipal-intro {
  padding: 24px 26px;
}

.municipal-intro p,
.municipal-pane p {
  margin: 0;
  line-height: 1.8;
  color: #474747;
}

.municipal-block {
  margin-top: 26px;
  padding: 26px;
}

.municipal-block h2,
.municipal-block h3,
.department-card h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  color: #464646;
}

.municipal-block h2 {
  font-size: clamp(2rem, 3vw, 2.55rem);
  text-align: center;
}

.municipal-divider {
  display: block;
  width: min(260px, 44%);
  height: 6px;
  margin: 10px auto 24px;
  background: url("./assets/municipalidad/muniheader.png") center / cover no-repeat;
  border-radius: 999px;
}

.municipal-block h3 {
  margin-top: 22px;
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.municipal-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

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

.municipal-toggle {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(24, 24, 24, 0.07);
  overflow: hidden;
}

.municipal-toggle summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-family: "Oswald", sans-serif;
  font-size: 1.2rem;
  color: #2f3136;
  text-align: center;
}

.municipal-toggle summary::-webkit-details-marker {
  display: none;
}

.municipal-toggle[open] summary {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.municipal-toggle p {
  margin: 0;
  padding: 0 20px 14px;
  line-height: 1.65;
  color: #4a4a4a;
  text-align: center;
}

.municipal-toggle p:last-child {
  padding-bottom: 20px;
}

.municipal-toggle p a {
  color: #7f8a96;
  font-size: 0.92rem;
  font-weight: 500;
  word-break: break-word;
}

.municipal-profiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.municipal-profiles-single {
  grid-template-columns: minmax(320px, 460px);
  justify-content: center;
}

.municipal-profile {
  display: grid;
  gap: 16px;
}

.municipal-profile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 999px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.municipal-profile-toggle summary {
  text-align: center;
}

.municipal-profile .municipal-toggle p {
  font-size: 0.92rem;
  line-height: 1.5;
}

.municipal-profile .municipal-toggle p a {
  font-size: 0.86rem;
}

.municipal-profile .municipal-toggle p strong {
  display: inline-block;
  color: #3f4348;
}

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

.municipal-history p {
  margin: 0 0 14px;
  line-height: 1.8;
  color: #474747;
  text-align: justify;
}

.municipal-pane-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.municipal-pane-tab {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 18px;
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  color: #555;
  cursor: pointer;
}

.municipal-pane-tab.is-active {
  color: #1d9a39;
  border-color: rgba(29, 154, 57, 0.32);
}

.municipal-pane {
  padding: 22px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.municipal-departments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.department-card {
  padding: 20px 18px;
  min-height: 200px;
}

.department-card h2 {
  font-size: 1.35rem;
  line-height: 1.1;
  margin-bottom: 12px;
}

.department-card p {
  margin: 0 0 8px;
  color: #4d4d4d;
  line-height: 1.55;
}

.sig-layout {
  width: var(--shell-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 36px;
  align-items: center;
}

.sig-copy h2 {
  margin: 0 0 18px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
}

.sig-copy p,
.sig-list {
  color: #454545;
  line-height: 1.8;
  text-align: justify;
}

.sig-list {
  margin: 18px 0 0;
  padding-left: 22px;
}

.sig-list li + li {
  margin-top: 8px;
}

.sig-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(224, 153, 0, 0.22);
}

.sig-action {
  width: var(--shell-width);
  margin: 28px auto 0;
  display: flex;
  justify-content: center;
}

.direct-layout {
  width: var(--shell-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 30px;
  align-items: start;
}

.direct-main,
.direct-info-card,
.direct-faq-item {
  background: linear-gradient(180deg, #ffffff 0%, #fbf7f4 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(24, 24, 24, 0.08);
}

.direct-main {
  overflow: hidden;
}

.direct-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #f3eee9;
}

.direct-tab {
  flex: 1 1 0;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: #676767;
  font-family: "Montserrat", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.direct-tab.is-active {
  background: #ffffff;
  color: var(--green);
}

.direct-tab-panel {
  padding: 24px;
}

.direct-form {
  display: grid;
  gap: 18px;
}

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

.direct-form label {
  display: grid;
  gap: 8px;
}

.direct-form span {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #616161;
}

.direct-form input,
.direct-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: #2f3136;
  font: inherit;
  padding: 14px 16px;
}

.direct-form textarea {
  resize: vertical;
  min-height: 180px;
}

.direct-form input:focus,
.direct-form textarea:focus,
.direct-tab:focus-visible,
.direct-socials a:focus-visible {
  outline: 2px solid rgba(147, 203, 82, 0.35);
  outline-offset: 2px;
}

.direct-form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.direct-feedback {
  margin: 0;
  color: #2f7a1d;
  font-weight: 600;
}

.direct-feedback-error {
  color: #b2382b;
}

.direct-sidebar {
  display: grid;
  gap: 18px;
}

.direct-info-card {
  padding: 22px 24px;
}

.direct-info-card h2,
.direct-faq-item h2 {
  margin: 0 0 12px;
  font-family: "Oswald", sans-serif;
  font-size: 1.55rem;
  font-weight: 400;
  color: #4b4b4b;
  line-height: 1.08;
}

.direct-info-card p,
.direct-faq-item p {
  margin: 0;
  color: #4d4d4d;
  line-height: 1.8;
}

.direct-socials {
  margin: 0;
  padding-left: 18px;
  color: #4d4d4d;
}

.direct-socials li + li {
  margin-top: 8px;
}

.direct-socials a:hover {
  color: var(--green);
}

.direct-faq {
  width: var(--shell-width);
  margin: 28px auto 0;
  display: grid;
  gap: 18px;
}

.direct-faq-item {
  padding: 24px 26px;
}

.payments-frame-shell {
  width: var(--shell-width);
  margin: 0 auto 20px;
}

.consulta-widget {
  padding: 30px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.consulta-widget-copy {
  text-align: center;
}

.consulta-widget-copy h2 {
  margin: 0 0 10px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 400;
}

.consulta-widget-copy p {
  width: min(760px, 100%);
  margin: 0 auto;
  color: #4a4a4a;
  line-height: 1.7;
}

.consulta-form {
  width: min(760px, 100%);
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
}

.consulta-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.consulta-field span {
  font-weight: 700;
  color: #4b4b4b;
}

.consulta-field input {
  height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  font: inherit;
}

.consulta-result {
  width: min(760px, 100%);
  margin: 24px auto 0;
  padding: 24px;
  border-radius: 18px;
  background: #f8f5f3;
}

.consulta-result h3 {
  margin: 0 0 18px;
  font-family: "Oswald", sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
}

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

.consulta-result-grid span {
  display: block;
  margin-bottom: 6px;
  color: #6b6b6b;
  font-size: 0.9rem;
}

.consulta-result-grid strong {
  font-size: 1.08rem;
}

.payments-actions {
  width: var(--shell-width);
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.payments-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 16px 24px;
  border: 1px solid #000000;
  border-radius: 20px;
  background: #ffffff;
  color: #000000;
  font-family: "Oswald", sans-serif;
  font-size: 1.5rem;
  box-shadow: 3px 8px 3px #9e9e9e;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.payments-button:hover,
.payments-button:focus-visible {
  transform: scale(1.03);
  color: #f49b1e;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.payments-button-outline {
  color: #0c71c3;
  border-color: #0c71c3;
}

.payments-button-outline:hover,
.payments-button-outline:focus-visible {
  color: #0c71c3;
}

.embed-shell {
  width: var(--shell-width);
  margin: 0 auto;
}

.forms-embed {
  display: block;
  width: 100%;
  height: 1400px;
  min-height: 1400px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: -18px;
}

.shortcut-card {
  position: relative;
  overflow: hidden;
  min-height: 620px;
}

.shortcut-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.38) 100%);
}

.shortcut-card img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  transition: transform 300ms ease;
}

.shortcut-card:hover img {
  transform: scale(1.03);
}

.shortcut-copy {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 165px;
  z-index: 1;
}

.shortcut-copy h2 {
  margin: 0;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 1.7rem;
  line-height: 1.12;
  font-weight: 400;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
}

.shortcut-accent {
  display: block;
  width: 76%;
  height: 8px;
  margin-top: 16px;
  background: url("./assets/accent.png") center / cover no-repeat;
  border-radius: 999px;
}

.home-links-band {
  width: calc(100% - 20px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  padding: 26px 10px 34px;
  background:
    radial-gradient(circle at top, rgba(224, 153, 0, 0.06), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #fbf8f4 100%);
}

.home-link-pill {
  position: relative;
  min-height: 150px;
  padding: 18px 16px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 243, 237, 0.96) 100%);
  box-shadow: 0 14px 26px rgba(24, 24, 24, 0.09);
  border: 1px solid rgba(177, 162, 145, 0.18);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.home-link-pill::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(224, 153, 0, 0.95), rgba(147, 203, 82, 0.95));
}

.home-link-pill:hover,
.home-link-pill:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 36px rgba(24, 24, 24, 0.14);
  border-color: rgba(224, 153, 0, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #f6efe6 100%);
}

.home-link-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #151515;
  background: linear-gradient(180deg, #fffdfb 0%, #ebe4db 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 18px rgba(24, 24, 24, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-link-icon svg {
  width: 33px;
  height: 33px;
  display: block;
}

.home-link-icon-green {
  color: #0c71c3;
}

.home-link-icon-red {
  color: #e02b20;
}

.home-link-icon-gold {
  color: #d59a05;
}

.home-link-icon-lime {
  color: #6db21b;
}

.home-link-pill span:last-child {
  position: relative;
  z-index: 1;
  font-family: "Oswald", sans-serif;
  font-size: 1.24rem;
  line-height: 1.08;
  color: #404040;
  max-width: 11ch;
}

.home-link-pill[href="#municipalidad"]::before {
  background: linear-gradient(90deg, #181818, #7d7d7d);
}

.home-link-pill[href="#gestion-ambiental"]::before {
  background: linear-gradient(90deg, #0c71c3, #67b8f2);
}

.home-link-pill[href="#transparencia-municipal"]::before,
.home-link-pill[href="#noticias"]::before {
  background: linear-gradient(90deg, #e02b20, #ff8a6f);
}

.home-link-pill[href="#directorio-comercial"]::before {
  background: linear-gradient(90deg, #d59a05, #f4c849);
}

.home-link-pill[href*="sicop.go.cr"]::before {
  background: linear-gradient(90deg, #7cda24, #b3ee73);
}

.home-link-pill:hover .home-link-icon,
.home-link-pill:focus-visible .home-link-icon {
  transform: translateY(-1px);
}

.home-link-pill:focus-visible {
  outline: 2px solid rgba(224, 153, 0, 0.22);
  outline-offset: 2px;
}

.hero-video {
  width: calc(100% - 20px);
  margin: 0 auto;
  background: #000;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 22px 44px rgba(24, 24, 24, 0.1);
}

.hero-video video {
  width: 100%;
  height: min(812px, 88vh);
  object-fit: cover;
}

.news-section {
  padding: 0 0 24px;
  margin-top: -13px;
}

.section-heading {
  padding-top: 18px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.6rem, 6vw, 3.1rem);
  line-height: 1;
  font-weight: 400;
  color: #fe7a0d;
}

.section-heading img {
  width: min(200px, 17%);
  height: 6px;
  margin: 8px auto 0;
  object-fit: cover;
}

.news-slider {
  width: var(--shell-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.news-viewport {
  position: relative;
  min-height: 430px;
}

.news-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(290px, 40%) 1fr;
  gap: 26px;
  padding: 22px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.news-card.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.news-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 10px;
}

.news-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.news-date {
  margin: 0;
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-card-copy h3 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.05;
}

.news-card-copy p {
  margin: 0;
  color: #494949;
  line-height: 1.7;
}

.news-card-copy a {
  width: fit-content;
  color: #fff;
  background: var(--green);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.slider-arrow {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--orange);
  box-shadow: var(--shadow);
  font-size: 1.5rem;
  cursor: pointer;
}

.site-footer {
  width: var(--shell-width);
  margin: 0 auto;
  padding: 56px 0 78px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.footer-column h2 {
  margin: 0 0 18px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1;
}

.app-link img {
  width: min(240px, 100%);
}

.footer-contact {
  text-align: center;
}

.footer-accent {
  width: min(190px, 80%);
  height: 6px;
  margin: -10px auto 22px;
  object-fit: cover;
}

.footer-contact a {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--green);
  font-weight: 700;
}

.footer-contact p {
  margin: 8px 0;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 46px;
}

.footer-button {
  min-width: 220px;
  padding: 14px 26px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 16px;
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-size: 1.15rem;
  box-shadow: 0 16px 28px rgba(24, 24, 24, 0.08);
}

@media (max-width: 1100px) {
  .header-shell {
    position: relative;
    justify-content: center;
  }

  .menu-toggle {
    display: block;
    z-index: 40;
  }

  .brand-mobile {
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    box-shadow: var(--shadow);
    z-index: 30;
    align-items: stretch;
  }

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

  .main-nav > .brand-centered {
    display: none;
  }

  .nav-side {
    width: 100%;
    justify-content: flex-start;
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .main-nav a,
  .nav-parent-link {
    display: block;
    width: 100%;
    text-align: left;
  }

  .nav-item {
    text-align: left;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 12px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    background: #ffffff;
    display: none;
    border-top-width: 2px;
    border-radius: 8px;
  }

  .nav-item:hover .dropdown-menu,
  .nav-item:focus-within .dropdown-menu {
    display: none;
  }

  .nav-item.is-open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    text-align: left;
  }

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

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

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-viewport {
    min-height: 760px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 0 56px;
    gap: 28px;
  }

  .footer-column {
    display: grid;
    justify-items: center;
    gap: 10px;
  }

  .footer-column h2 {
    margin-bottom: 8px;
  }

  .footer-actions {
    padding-top: 0;
  }

  .forms-embed {
    height: 1600px;
    min-height: 1600px;
  }

  .payments-actions {
    grid-template-columns: 1fr;
  }

  .consulta-form,
  .consulta-result-grid {
    grid-template-columns: 1fr;
  }

  .direct-layout {
    grid-template-columns: 1fr;
  }

  .municipal-grid-3,
  .municipal-profiles,
  .municipal-history,
  .municipal-departments,
  .ambiental-grid-4,
  .documents-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ambiental-grid-2 {
    grid-template-columns: 1fr;
  }

  .documents-layout {
    grid-template-columns: 1fr;
  }

  .news-index-layout {
    grid-template-columns: 1fr;
  }

  .directorio-intro-card {
    grid-template-columns: 1fr;
  }

  .directorio-category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .directorio-modal-body {
    grid-template-columns: 1fr;
  }

  .directorio-modal-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .sitemap-grid {
    grid-template-columns: 1fr;
  }

  .transparencia-nav,
  .transparencia-doc-grid {
    grid-template-columns: 1fr 1fr;
  }

  .documents-list {
    max-height: none;
  }

  .ambiental-viewer-frame,
  .ambiental-viewer {
    min-height: 860px;
  }

  .sig-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-height: 88px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 56px;
    height: 56px;
  }

  .brand-kicker {
    font-size: 0.68rem;
  }

  .brand strong {
    font-size: 1.8rem;
  }

  .brand-mobile {
    gap: 10px;
  }

  .shortcut-grid {
    grid-template-columns: 1fr;
  }

  .home-links-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(94%, 680px);
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .home-link-pill {
    min-height: 142px;
    padding: 20px 14px;
    border-radius: 22px;
  }

  .home-link-icon {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }

  .home-link-pill span:last-child {
    font-size: 1.15rem;
  }

  .news-slider {
    grid-template-columns: 1fr;
  }

  .news-viewport {
    min-height: 900px;
  }

  .slider-arrow {
    display: none;
  }

  .site-footer {
    padding-top: 34px;
    padding-bottom: 48px;
    gap: 24px;
  }

  .footer-column h2 {
    font-size: 1.8rem;
    line-height: 1.08;
  }

  .app-link img {
    width: min(220px, 82vw);
  }

  .footer-accent {
    margin: 6px auto 16px;
  }

  .footer-contact a {
    margin-bottom: 10px;
  }

  .footer-actions {
    gap: 14px;
  }

  .footer-button {
    min-width: 0;
    width: min(280px, 100%);
  }

  .direct-tabs {
    flex-direction: column;
  }

  .direct-tab-panel,
  .direct-info-card,
  .direct-faq-item {
    padding-left: 18px;
    padding-right: 18px;
  }

  .direct-form-grid {
    grid-template-columns: 1fr;
  }

  .municipal-shortcuts,
  .municipal-grid-3,
  .municipal-profiles,
  .municipal-history,
  .municipal-departments,
  .ambiental-grid-4,
  .documents-grid,
  .directorio-category-grid,
  .transparencia-nav,
  .transparencia-doc-grid {
    grid-template-columns: 1fr;
  }

  .transparencia-card {
    padding: 24px 18px;
  }

  .sitemap-card {
    padding: 20px 18px;
  }

  .transparencia-live-card iframe {
    min-height: 320px;
  }

  .municipal-pane-tabs {
    flex-direction: column;
  }

  .ambiental-viewer-shell {
    padding: 18px;
  }

  .ambiental-viewer-frame,
  .ambiental-viewer {
    min-height: 760px;
  }

  .documents-viewer-shell {
    padding: 18px;
  }

  .documents-viewer-frame,
  .documents-viewer {
    min-height: 760px;
  }

  .news-detail-copy {
    padding: 18px;
  }

  .directorio-categories-panel,
  .directorio-sidebar,
  .directorio-detail-shell,
  .directorio-intro-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .directorio-stats {
    grid-template-columns: 1fr;
  }

  .directorio-modal {
    padding: 14px;
  }

  .directorio-modal-dialog {
    width: min(100vw - 20px, 1180px);
    max-height: calc(100vh - 20px);
  }

  .directorio-modal-head {
    padding-left: 18px;
    padding-right: 18px;
  }

  .directorio-modal-sidebar,
  .directorio-modal-copy {
    padding-left: 18px;
    padding-right: 18px;
  }
}
