﻿:root {
  --blue: #178bca;
  --blue-dark: #174f8d;
  --blue-soft: #eaf6fc;
  --orange: #e79d19;
  --ink: #3d3d3d;
  --muted: #727272;
  --line: #e3e3e3;
  --footer: #050505;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  font-family: Roboto, Arial, Helvetica, sans-serif;
}

/* Home redesign based on the supplied municipal mockup */
.home-page {
  --home-navy: #062757;
  --home-blue: #075fd0;
  --home-blue-2: #004db8;
  --home-text: #0b2a5b;
  --home-muted: #61708a;
  --home-line: #e6edf6;
  --home-soft: #f5f8fc;
  --home-shadow: 0 12px 30px rgba(19, 55, 108, 0.12);
  --home-align-width: min(1210px, calc(100% - 140px));
  --home-wide-width: min(1260px, calc(100% - 32px));
  background: #ffffff;
  color: var(--home-text);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

html:has(.home-page) {
  overflow-x: hidden;
}

.home-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 3000;
  background: #ffffff;
  box-shadow: 0 2px 18px rgba(12, 38, 78, 0.08);
}

.topbar {
  background: #052652;
  color: #ffffff;
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: var(--home-align-width);
  min-height: 46px;
  margin: 0 auto;
}

.routes-page {
  background: #f5fbf7;
  color: #082d67;
}

.routes-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.routes-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 41, 45, 0.96), rgba(0, 104, 91, 0.64) 58%, rgba(5, 47, 76, 0.28));
}

.routes-hero-media,
.routes-hero-photo,
.routes-hero-video {
  position: absolute;
  inset: 0;
}

.routes-hero-media {
  z-index: -2;
  background: #0b3f42;
}

.routes-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: routesHeroFade 54s infinite;
}

.routes-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.routes-hero-photo:nth-child(2) {
  animation-delay: 6s;
}

.routes-hero-photo:nth-child(3) {
  animation-delay: 12s;
}

.routes-hero-photo:nth-child(4) {
  animation-delay: 18s;
}

.routes-hero-photo:nth-child(5) {
  animation-delay: 24s;
}

.routes-hero-photo:nth-child(6) {
  animation-delay: 30s;
}

.routes-hero-photo:nth-child(7) {
  animation-delay: 36s;
}

.routes-hero-photo:nth-child(8) {
  animation-delay: 42s;
}

.routes-hero-photo:nth-child(9) {
  animation-delay: 48s;
}

@keyframes routesHeroFade {
  0%,
  12% {
    opacity: 1;
  }

  17%,
  95% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .routes-hero-photo {
    animation: none;
  }

  .routes-hero-photo:first-child {
    opacity: 1;
  }
}

.routes-hero-content,
.routes-summary,
.routes-section {
  width: min(1180px, calc(100% - 48px));
  max-width: min(1180px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.routes-hero-content {
  padding: 84px 0 74px;
  color: #ffffff;
}

.routes-hero .breadcrumb {
  margin-bottom: 24px;
}

.routes-hero .breadcrumb a,
.routes-hero .breadcrumb span {
  color: #ffffff;
}

.routes-kicker,
.routes-summary span,
.routes-title span,
.route-card span,
.routes-detail-panel > div:first-child span {
  color: #0a8f57;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.routes-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: #baf5cf;
  letter-spacing: 0;
}

.routes-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

.routes-hero p {
  max-width: 780px;
  margin: 22px 0 0;
  color: #effff5;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}

.routes-actions,
.routes-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.routes-actions a,
.routes-outline-link,
.routes-link-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 7px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.routes-actions a:first-child {
  border-color: #0a8f57;
  background: #0a8f57;
}

.routes-summary {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: -44px;
  overflow: hidden;
  border: 1px solid #d7eadb;
  border-radius: 10px;
  background: #d7eadb;
  box-shadow: 0 18px 42px rgba(17, 84, 49, 0.14);
}

.routes-summary article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 146px;
  padding: 28px;
  background: #ffffff;
}

.routes-summary strong {
  color: #082d67;
  font-size: 23px;
  line-height: 1.15;
}

.routes-summary p {
  margin: 0;
  color: #53627b;
  line-height: 1.5;
  font-weight: 650;
}

.routes-section {
  padding: 64px 0 0;
}

.routes-title {
  display: grid;
  gap: 8px;
}

.routes-title h2,
.routes-detail-panel h2 {
  margin: 0;
  color: #082d67;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

.routes-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-top: 26px;
}

.routes-copy,
.routes-info-card,
.route-card,
.routes-side-nav,
.routes-detail-panel {
  border: 1px solid #d7eadb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 84, 49, 0.08);
}

.routes-copy {
  display: grid;
  gap: 18px;
  padding: 34px;
}

.routes-copy p,
.routes-info-card p,
.route-card p,
.routes-detail-panel p {
  margin: 0;
  color: #314668;
  font-size: 16px;
  line-height: 1.62;
  font-weight: 650;
}

.routes-copy p {
  font-size: 17px;
  line-height: 1.68;
}

.routes-info-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 30px;
}

.routes-info-card h3,
.routes-side-nav h2 {
  margin: 0 0 6px;
  color: #082d67;
  font-size: 24px;
  line-height: 1.15;
}

.routes-info-card a,
.routes-side-nav a {
  color: #0a8f57;
  font-weight: 900;
}

.routes-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.routes-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.routes-outline-link,
.routes-link-row a {
  border-color: #a6d9b7;
  color: #0a8f57;
}

.route-homologation-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: center;
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid #d7eadb;
  border-radius: 8px;
  background: #f7fcf8;
}

.route-homologation-panel h3 {
  margin: 10px 0;
  color: #082d67;
  font-size: 28px;
  line-height: 1.1;
}

.route-homologation-panel p {
  margin: 0;
  color: #405271;
  font-weight: 700;
  line-height: 1.55;
}

.federation-brand-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.federation-brand-card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.federation-brand-card a {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 7px;
  background: #0a8f57;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.route-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eaf8ee;
  color: #0a8f57;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.trail-symbols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trail-symbols article {
  display: grid;
  gap: 8px;
  justify-items: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d7eadb;
  border-radius: 8px;
  background: #ffffff;
}

.trail-symbols strong {
  color: #082d67;
  font-size: 14px;
  line-height: 1.2;
}

.trail-symbols small {
  color: #53627b;
  font-weight: 700;
  line-height: 1.35;
}

.trail-symbol-icon {
  display: block;
  width: 88px;
  height: 64px;
  margin: 0 0 4px;
}

.trail-symbol-image {
  display: block;
  width: 96px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 4px;
}

.trail-white {
  fill: #ffffff;
  stroke: #8b929a;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.trail-yellow {
  fill: #d6a800;
  stroke: rgba(0, 0, 0, 0.24);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trail-cross-a {
  transform: rotate(45deg);
  transform-box: fill-box;
  transform-origin: center;
}

.trail-cross-b {
  transform: rotate(-45deg);
  transform-box: fill-box;
  transform-origin: center;
}

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

.route-card {
  display: grid;
  gap: 14px;
  min-height: 260px;
  padding: 24px;
  border-left: 5px solid #0a8f57;
}

.route-card-feature {
  grid-column: span 3;
  min-height: 220px;
}

.route-card h3 {
  margin: 0;
  color: #082d67;
  font-size: 24px;
  line-height: 1.1;
}

.route-card span small {
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eaf8ee;
  color: #0a8f57;
  font-size: 10px;
  font-weight: 900;
  vertical-align: middle;
}

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

.route-card dl div {
  padding: 12px;
  border-radius: 7px;
  background: #f2fbf5;
}

.route-card dt {
  color: #667792;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.route-card dd {
  margin: 4px 0 0;
  color: #082d67;
  font-weight: 900;
}

.route-card a {
  width: fit-content;
  margin-top: 4px;
  padding: 10px 13px;
  border-radius: 6px;
  background: #0a8f57;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.routes-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding-bottom: 72px;
}

.routes-side-nav {
  position: sticky;
  top: 168px;
  display: grid;
  gap: 10px;
  padding: 24px;
}

.routes-side-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid #d7eadb;
  border-radius: 7px;
  background: #f7fcf8;
  font-size: 13px;
  text-transform: uppercase;
}

.routes-detail-stack {
  display: grid;
  gap: 18px;
}

.routes-detail-panel {
  display: grid;
  gap: 20px;
  padding: 30px;
  scroll-margin-top: 150px;
}

.routes-detail-panel > div:first-child {
  display: grid;
  gap: 10px;
}

.routes-highlight {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid #d7eadb;
  border-radius: 8px;
  background: #f7fcf8;
}

.routes-highlight strong {
  color: #082d67;
  font-size: 18px;
}

.green-route-grid,
.routes-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.green-route-grid article,
.routes-tools-grid a,
.station-list article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid #d7eadb;
  border-radius: 8px;
  background: #f7fcf8;
}

.green-route-grid strong,
.routes-tools-grid strong,
.station-list strong {
  color: #082d67;
  font-size: 17px;
}

.green-route-grid small,
.routes-tools-grid small,
.station-list span {
  color: #53627b;
  line-height: 1.45;
  font-weight: 650;
}

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

.routes-tools-grid a {
  color: inherit;
}

.routes-map {
  width: 100%;
  min-height: 440px;
  border: 0;
  border-radius: 8px;
}

@media (max-width: 1100px) {
  .routes-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-card-feature {
    grid-column: span 2;
  }
}

@media (max-width: 980px) {
  .routes-summary,
  .routes-intro-grid,
  .route-homologation-panel,
  .routes-layout,
  .green-route-grid,
  .routes-tools-grid {
    grid-template-columns: 1fr;
  }

  .routes-side-nav {
    position: static;
  }
}

@media (max-width: 760px) {
  .routes-hero-content,
  .routes-summary,
  .routes-section {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
  }

  .routes-hero {
    min-height: 500px;
  }

  .routes-hero-content {
    padding: 58px 0 56px;
  }

  .routes-hero h1 {
    font-size: 44px;
  }

  .routes-hero p {
    font-size: 17px;
  }

  .routes-actions a,
  .routes-outline-link {
    width: 100%;
  }

  .routes-heading-row {
    display: grid;
  }

  .routes-card-grid,
  .trail-symbols,
  .station-list {
    grid-template-columns: 1fr;
  }

  .federation-brand-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .federation-brand-card img {
    width: 72px;
    height: 72px;
  }

  .route-card-feature {
    grid-column: auto;
  }

  .routes-summary article,
  .routes-copy,
  .routes-info-card,
  .route-card,
  .routes-side-nav,
  .routes-detail-panel {
    padding: 22px;
  }
}

.procedures-page {
  background: #f6f9fd;
}

.procedures-hero {
  min-height: 260px;
  align-items: end;
  padding-bottom: 46px;
  background:
    linear-gradient(90deg, rgba(4, 32, 76, 0.92), rgba(7, 83, 170, 0.62)),
    url("assets/original-site/07-CabeceraIndex.jpg") center / cover;
}

.procedures-hero h1 {
  font-size: clamp(48px, 5vw, 74px);
}

.procedure-search-panel,
.procedure-summary,
.procedure-directory {
  width: min(1260px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.procedure-search-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.4fr);
  gap: 28px;
  align-items: center;
  margin-top: -34px;
  padding: 24px 28px;
  border: 1px solid #dfe8f5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(19, 55, 108, 0.12);
}

.procedure-search-panel strong,
.procedure-search-panel small {
  display: block;
}

.procedure-search-panel strong {
  color: #082d67;
  font-size: 22px;
  font-weight: 900;
}

.procedure-search-panel small {
  margin-top: 5px;
  color: #61708a;
  font-size: 14px;
  font-weight: 700;
}

.procedure-search-panel .search-live-help {
  max-width: 470px;
  margin-top: 10px;
  color: #075fd0;
  font-size: 13px;
  line-height: 1.4;
}

.procedure-search-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.procedure-search-panel input {
  min-height: 48px;
  min-width: 0;
  padding: 0 16px;
  border: 1px solid #cfdbee;
  border-radius: 7px;
  color: #112d5d;
  font: inherit;
}

.procedure-search-panel button {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 7px;
  background: #075fd0;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.procedure-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  margin-bottom: 26px;
}

.procedure-summary a {
  display: grid;
  gap: 7px;
  min-height: 92px;
  padding: 18px;
  border: 1px solid #dfe8f5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(19, 55, 108, 0.07);
}

.procedure-summary strong {
  color: #082d67;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
  text-transform: uppercase;
}

.procedure-summary span {
  color: #075fd0;
  font-size: 13px;
  font-weight: 900;
}

.procedure-directory {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 58px;
}

.procedure-sidebar {
  position: sticky;
  top: 170px;
  display: grid;
  overflow: hidden;
  border: 1px solid #dfe8f5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(19, 55, 108, 0.08);
}

.procedure-sidebar h2 {
  margin: 0;
  padding: 20px 20px 12px;
  color: #075fd0;
  font-size: 15px;
  text-transform: uppercase;
}

.procedure-sidebar a {
  padding: 14px 20px;
  border-top: 1px solid #edf2f9;
  color: #0b2a5b;
  font-size: 14px;
  font-weight: 800;
}

.procedure-sidebar a:hover,
.procedure-sidebar a:focus-visible {
  background: #f5f9ff;
  color: #075fd0;
}

.procedure-listing {
  display: grid;
  gap: 26px;
}

.procedure-group {
  scroll-margin-top: 160px;
  overflow: hidden;
  border: 1px solid #dfe8f5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(19, 55, 108, 0.06);
}

.procedure-group-heading {
  padding: 26px 30px;
  border-bottom: 1px solid #dfe8f5;
  background: linear-gradient(90deg, #f8fbff, #ffffff);
}

.procedure-group-heading span {
  display: inline-block;
  margin-bottom: 8px;
  color: #075fd0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.procedure-group-heading h2 {
  margin: 0;
  color: #082d67;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.15;
}

.procedure-category {
  scroll-margin-top: 160px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 26px;
  padding: 26px 30px;
  border-bottom: 1px solid #edf2f9;
}

.procedure-category:last-child {
  border-bottom: 0;
}

.procedure-category h3 {
  margin: 0;
  color: #082d67;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 900;
}

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

.procedure-links a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 42px 11px 15px;
  border: 1px solid #e3ebf6;
  border-radius: 7px;
  background: #ffffff;
  color: #16376b;
  font-size: 13.5px;
  line-height: 1.28;
  font-weight: 750;
}

.procedure-links a::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #075fd0;
  border-right: 2px solid #075fd0;
  transform: translateY(-50%) rotate(45deg);
}

.procedure-links a:hover,
.procedure-links a:focus-visible {
  border-color: #b9d0f4;
  background: #f8fbff;
  color: #075fd0;
}

@media (max-width: 1100px) {
  .procedure-search-panel,
  .procedure-directory,
  .procedure-category {
    grid-template-columns: 1fr;
  }

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

  .procedure-sidebar {
    position: static;
  }

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

@media (max-width: 720px) {
  .procedure-search-panel form,
  .procedure-summary,
  .procedure-links {
    grid-template-columns: 1fr;
  }

  .areas-directory-intro {
    display: grid;
  }

  .areas-directory-grid {
    grid-template-columns: 1fr;
  }

  .procedure-search-panel,
  .procedure-category,
  .procedure-group-heading {
    padding: 20px;
  }
}

.topbar a {
  color: #ffffff;
  font-weight: 700;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.topbar-contact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 22px;
  padding: 0 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  white-space: nowrap;
}

.topbar-contact:first-child {
  padding-left: 0;
}

.topbar-contact svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-contact:first-child svg {
  fill: currentColor;
  stroke: none;
}

.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 22px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.topbar-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

.topbar-social a[aria-label="Instagram"] svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.topbar-social a[aria-label="YouTube"] svg path:first-child {
  fill: currentColor;
}

.topbar-social a[aria-label="YouTube"] svg path:last-child {
  fill: #052652;
}

.language-link {
  gap: 6px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.language-link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.mainbar {
  display: grid;
  grid-template-columns: auto 1fr auto 36px;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  width: var(--home-align-width);
  min-height: 104px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 255px;
}

.brand img {
  width: 56px;
  height: 70px;
  object-fit: contain;
}

.brand small,
.brand strong {
  display: block;
}

.brand small {
  color: #0a2c62;
  font-size: 13px;
  font-weight: 800;
}

.brand strong {
  color: #09275a;
  font-size: 23px;
  line-height: 1.02;
  font-weight: 900;
}

.home-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2vw, 34px);
  color: #08275a;
  font-size: 14px;
  font-weight: 900;
}

.home-nav a {
  white-space: nowrap;
}

.home-nav a:hover {
  color: var(--home-blue);
}

.pay-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 236px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 7px;
  background: linear-gradient(135deg, #0876ea, #0055c4);
  color: #ffffff;
  font-size: 12px;
  line-height: 1.18;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0, 84, 196, 0.24);
}

.pay-cta svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pay-cta span {
  display: block;
}

.search-icon {
  position: relative;
  width: 34px;
  height: 34px;
}

.search-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 17px;
  height: 17px;
  border: 3px solid #06275a;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 24px;
  width: 13px;
  height: 3px;
  border-radius: 3px;
  background: #06275a;
  transform: rotate(45deg);
}

.home-page .mobile-menu {
  display: none;
}

.home-hero {
  position: relative;
  min-height: 560px;
  overflow: visible;
  background: #062757;
  color: #ffffff;
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.home-hero::before {
  background: url("assets/original-site/07-CabeceraIndex.jpg") center / cover;
  transform: scaleX(-1);
}

.home-hero::after {
  background: linear-gradient(90deg, rgba(3, 31, 72, 0.94) 0%, rgba(3, 38, 83, 0.64) 38%, rgba(3, 38, 83, 0.04) 72%);
}

.hero-content {
  position: relative;
  z-index: 20;
  width: var(--home-align-width);
  margin: 0 auto;
  padding: 48px 0 132px;
}

.hero-content h1 {
  max-width: 650px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(58px, 6.3vw, 86px);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-content p {
  margin: 16px 0 22px;
  color: #92d7ff;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(22px, 2.1vw, 31px);
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr 48px;
  width: min(520px, 100%);
  height: 56px;
  overflow: hidden;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.hero-search input {
  min-width: 0;
  border: 0;
  padding: 0 20px;
  color: #253b62;
  font: inherit;
  outline: 0;
}

.hero-search button {
  position: relative;
  border: 0;
  background: #075fd0;
  cursor: pointer;
}

.hero-search button::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 13px;
  width: 15px;
  height: 15px;
  border: 3px solid #ffffff;
  border-radius: 50%;
}

.hero-search button::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 30px;
  width: 11px;
  height: 3px;
  border-radius: 3px;
  background: #ffffff;
  transform: rotate(45deg);
}

.popular-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.popular-links a::before {
  content: ">";
  margin-right: 8px;
  color: #9ed8ff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 184px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.primary-button {
  background: #075fd0;
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(3, 31, 72, 0.32);
}

.primary-button::after,
.ghost-button::after,
.section-row > a::after,
.tax-banner-new > a::after,
.home-news-grid span::after,
.info-strip > a::after {
  content: "";
  width: 13px;
  height: 13px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.quick-access {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: var(--home-align-width);
  margin: -60px auto 24px;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--home-shadow);
}

.quick-access a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 16px;
  min-height: 136px;
  padding: 18px 12px;
  border-right: 1px solid var(--home-line);
  color: #082d67;
  text-align: center;
}

.quick-access a:last-child {
  border-right: 0;
}

.quick-access strong {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
  text-transform: uppercase;
}

.line-icon {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 34px;
  color: #0867dc;
}

.line-icon::before,
.line-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.document-icon::before {
  left: 3px;
  top: 8px;
  width: 28px;
  height: 18px;
  border: 3px solid currentColor;
  border-radius: 4px;
}

.document-icon::after {
  left: 9px;
  top: 13px;
  width: 16px;
  height: 8px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  box-shadow: -4px -3px 0 -1px currentColor;
}

.megaphone-icon::before {
  left: 4px;
  top: 11px;
  width: 24px;
  height: 14px;
  border: 3px solid currentColor;
  border-left-width: 7px;
  border-radius: 4px 12px 12px 4px;
  transform: skewY(-15deg);
}

.megaphone-icon::after {
  left: 12px;
  top: 23px;
  width: 9px;
  height: 10px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-18deg);
}

.screen-icon::before {
  left: 5px;
  top: 6px;
  width: 24px;
  height: 18px;
  border: 3px solid currentColor;
  border-radius: 3px;
}

.screen-icon::after {
  left: 11px;
  top: 26px;
  width: 14px;
  height: 6px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
}

.shield-icon::before {
  left: 5px;
  top: 2px;
  width: 24px;
  height: 29px;
  border: 3px solid currentColor;
  border-radius: 6px 6px 14px 14px;
}

.shield-icon::after {
  left: 13px;
  top: 11px;
  width: 10px;
  height: 7px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-45deg);
}

.leaf-icon::before {
  left: 7px;
  top: 6px;
  width: 22px;
  height: 22px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.leaf-icon::after {
  left: 8px;
  top: 15px;
  width: 23px;
  height: 3px;
  background: currentColor;
  transform: rotate(-34deg);
}

.card-icon::before {
  left: 2px;
  top: 8px;
  width: 30px;
  height: 20px;
  border: 3px solid currentColor;
  border-radius: 3px;
}

.card-icon::after {
  left: 7px;
  top: 15px;
  width: 20px;
  height: 7px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
}

.calendar-icon::before {
  inset: 4px 4px 3px;
  border: 3px solid currentColor;
  border-radius: 4px;
}

.calendar-icon::after {
  left: 9px;
  right: 9px;
  top: 13px;
  height: 3px;
  background: currentColor;
}

.people-icon::before {
  left: 4px;
  top: 5px;
  width: 10px;
  height: 10px;
  border: 3px solid currentColor;
  border-radius: 50%;
  box-shadow: 14px 0 0 -1px #ffffff, 14px 0 0 2px currentColor;
}

.people-icon::after {
  left: 2px;
  top: 19px;
  width: 29px;
  height: 12px;
  border: 3px solid currentColor;
  border-radius: 14px 14px 3px 3px;
}

.gavel-icon::before,
.building-icon::before,
.briefcase-icon::before,
.phone-icon::before,
.medal-icon::before,
.tax-icon::before,
.map-icon::before,
.user-icon::before {
  inset: 5px;
  border: 3px solid currentColor;
  border-radius: 6px;
}

.globe-icon::before {
  inset: 4px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.globe-icon::after {
  left: 8px;
  right: 8px;
  top: 15px;
  height: 8px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
}

.red {
  color: #ee5d64;
}

.info-strip {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr 1.2fr auto;
  align-items: center;
  width: var(--home-align-width);
  margin: 0 auto 32px;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(19, 55, 108, 0.06);
}

.info-strip article {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 12px 20px;
  border-right: 1px solid var(--home-line);
}

.info-strip article > span {
  grid-row: span 3;
}

.info-strip p,
.info-strip strong,
.info-strip small {
  margin: 0;
}

.info-strip p {
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 800;
}

.info-strip strong {
  color: #0a2c62;
  font-size: 17px;
  line-height: 1.15;
}

.info-strip article:first-child strong {
  font-size: 28px;
  line-height: 1;
}

.info-strip small {
  color: #24395f;
  font-size: 12px;
  font-weight: 700;
}

.info-strip > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  color: var(--home-blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sun-mark {
  position: relative;
  width: 39px;
  height: 39px;
  border: 3px solid #ffad1f;
  border-radius: 50%;
}

.sun-mark::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 3px dotted #ffad1f;
  border-radius: 50%;
}

.alert-mark {
  position: relative;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 32px solid #1ca861;
}

.alert-mark::after {
  content: "";
  position: absolute;
  left: -11px;
  top: 7px;
  width: 22px;
  height: 18px;
  background: #ffffff;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.home-news-preview {
  width: var(--home-align-width);
  margin: 0 auto 34px;
}

.home-news-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.news-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-filter-tabs a,
.news-sort-control {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--home-line);
  border-radius: 6px;
  background: #ffffff;
  color: #52627c;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 6px 18px rgba(19, 55, 108, 0.04);
}

.news-filter-tabs a {
  padding: 0 16px;
}

.news-filter-tabs a.is-active {
  border-color: var(--home-blue);
  background: var(--home-blue);
  color: #ffffff;
}

.news-sort-control {
  gap: 6px;
  padding: 0 12px;
  white-space: nowrap;
}

.news-sort-control span {
  color: #6a7890;
}

.news-sort-control select {
  border: 0;
  background: transparent;
  color: #082d67;
  font: inherit;
  font-weight: 900;
  outline: 0;
}

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

.home-news-carousel {
  position: relative;
}

.home-news-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid #bfd4f6;
  border-radius: 999px;
  background: #ffffff;
  color: var(--home-blue);
  box-shadow: 0 12px 28px rgba(19, 55, 108, 0.16);
  transform: translateY(-50%);
  cursor: pointer;
}

.home-news-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 11px;
  height: 11px;
  margin: auto;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.home-news-arrow-prev {
  left: -22px;
}

.home-news-arrow-prev::before {
  transform: rotate(-135deg);
}

.home-news-arrow-next {
  right: -22px;
}

.home-news-arrow-next::before {
  transform: rotate(45deg);
}

.home-news-arrow:hover {
  border-color: var(--home-blue);
  background: var(--home-blue);
  color: #ffffff;
}

.home-news-arrow[hidden] {
  display: none;
}

.compact-news-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #ffffff;
  color: #082d67;
  box-shadow: 0 8px 22px rgba(19, 55, 108, 0.07);
}

.compact-news-card img {
  width: 100%;
  aspect-ratio: 1.78 / 1;
  object-fit: cover;
}

.news-badge {
  position: absolute;
  left: 14px;
  top: 84px;
  z-index: 1;
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--home-blue);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-badge-activity {
  background: #7567e8;
}

.news-badge-agenda {
  background: #1ca861;
}

.news-badge-alert {
  background: #075fd0;
}

.compact-news-card small,
.compact-news-card strong,
.compact-news-card p,
.compact-news-card em {
  display: block;
  padding: 0 16px;
}

.compact-news-card small {
  margin-top: 13px;
  color: #61708a;
  font-size: 11px;
  font-weight: 800;
}

.compact-news-card strong {
  min-height: 42px;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}

.compact-news-card p {
  min-height: 38px;
  margin: 8px 0 0;
  color: #53627b;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 650;
}

.compact-news-card em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 18px;
  color: var(--home-blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.compact-news-card em::after,
.home-news-more::after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.home-news-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 250px;
  min-height: 44px;
  margin: 22px auto 0;
  padding: 0 20px;
  border: 1px solid #9bbcf8;
  border-radius: 6px;
  background: #ffffff;
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 900;
}

.news-page-body {
  background: #ffffff;
}

.news-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.news-page-heading {
  margin-bottom: 28px;
}

.news-page-heading .breadcrumb {
  margin: 0 0 12px;
  color: #60708c;
  font-size: 13px;
  font-weight: 750;
}

.news-page-heading .breadcrumb a,
.news-page-heading .breadcrumb span,
.news-page-heading .breadcrumb strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
}

.news-page-heading .breadcrumb a::after,
.news-page-heading .breadcrumb span::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.news-page-heading h1 {
  margin: 0;
  color: #082d67;
  font-size: clamp(34px, 4.1vw, 54px);
  line-height: .98;
  letter-spacing: 0;
  font-weight: 950;
}

.news-page-heading p {
  margin: 10px 0 0;
  color: #53627b;
  font-size: 16px;
  font-weight: 700;
}

.news-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 28px;
}

.news-feature-card,
.news-side-list,
.news-side-item,
.news-listing {
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(19, 55, 108, 0.06);
}

.news-feature-card {
  position: relative;
  overflow: hidden;
}

.news-feature-card a {
  display: grid;
  min-height: 100%;
  color: #082d67;
}

.news-feature-card img {
  width: 100%;
  aspect-ratio: 2.55 / 1;
  object-fit: cover;
}

.news-feature-badge {
  top: 18px;
}

.news-feature-content {
  padding: 22px 24px 24px;
}

.news-feature-content time,
.news-page-card time {
  color: #65748c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-feature-content h2 {
  margin: 9px 0 10px;
  color: #082d67;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.08;
  font-weight: 950;
}

.news-feature-content p {
  max-width: 620px;
  margin: 0;
  color: #53627b;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 650;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 950;
}

.news-read-more::after,
.news-side-item::after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.news-side-list {
  display: grid;
  overflow: hidden;
  box-shadow: none;
}

.news-side-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 18px;
  gap: 16px;
  align-items: center;
  min-height: 110px;
  padding: 17px 20px;
  border-width: 0 0 1px;
  border-radius: 0;
  color: #082d67;
  box-shadow: none;
}

.news-side-item:last-child {
  border-bottom: 0;
}

.news-side-item time {
  display: grid;
  place-items: center;
  width: 52px;
  min-height: 58px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #f8fbff;
  color: #667792;
  font-weight: 950;
  text-transform: uppercase;
}

.news-side-item time strong {
  color: #082d67;
  font-size: 24px;
  line-height: 1;
}

.news-side-item time span {
  font-size: 11px;
}

.news-side-item h3 {
  margin: 6px 0 5px;
  color: #082d67;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 950;
}

.news-side-item p {
  margin: 0;
  color: #64738b;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 650;
}

.mini-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f1ff;
  color: var(--home-blue);
  font-size: 9px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
}

.mini-badge-agenda {
  background: #e7f7ee;
  color: #168350;
}

.mini-badge-activity {
  background: #f0edff;
  color: #6557d9;
}

.mini-badge-help {
  background: #fff2da;
  color: #bd7300;
}

.mini-badge-alert {
  background: #e8f1ff;
  color: var(--home-blue);
}

.news-listing {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.news-page-toolbar {
  margin-bottom: 20px;
}

.news-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.news-page-more {
  display: flex;
}

.news-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 34px;
  border: 1px dashed #b8cae6;
  border-radius: 8px;
  background: #f8fbff;
  color: #53627b;
  font-weight: 800;
  text-align: center;
}

.admin-news-page {
  background: #f3f7fc;
}

.admin-news-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.admin-news-heading,
.admin-news-form,
.admin-news-help,
.admin-news-current,
.admin-login-card {
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(19, 55, 108, 0.07);
}

.admin-login-card {
  width: min(520px, 100%);
  margin: 26px auto;
  padding: 34px;
}

.admin-login-card span {
  display: block;
  color: var(--home-blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-login-card h1 {
  margin: 8px 0 10px;
  color: #082d67;
  font-size: 42px;
  line-height: 1;
  font-weight: 950;
}

.admin-login-card p {
  margin: 0 0 20px;
  color: #53627b;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.admin-login-card form {
  display: grid;
  gap: 10px;
}

.admin-login-card label {
  color: #082d67;
  font-size: 13px;
  font-weight: 900;
}

.admin-login-card input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #cfe0f5;
  border-radius: 6px;
  color: #1c3154;
  font: inherit;
  font-weight: 700;
}

.admin-login-card button {
  min-height: 46px;
  margin-top: 8px;
  border: 0;
  border-radius: 6px;
  background: var(--home-blue);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}

.admin-login-error {
  min-height: 20px;
  margin: 0;
  color: #c62828;
  font-size: 13px;
  font-weight: 850;
}

.admin-news-heading {
  margin-bottom: 22px;
  padding: 28px;
}

.admin-news-heading span {
  display: block;
  color: var(--home-blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-news-heading h1 {
  margin: 8px 0;
  color: #082d67;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  font-weight: 950;
}

.admin-news-heading p {
  max-width: 780px;
  margin: 0;
  color: #53627b;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}

.admin-news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.admin-news-actions a,
.admin-news-actions button,
.admin-news-actions label,
.admin-form-actions button,
.admin-news-item button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #9bbcf8;
  border-radius: 6px;
  background: #ffffff;
  color: var(--home-blue);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.admin-news-actions a:first-child,
.admin-form-actions button:first-child {
  border-color: var(--home-blue);
  background: var(--home-blue);
  color: #ffffff;
}

.admin-news-actions input[type="file"] {
  display: none;
}

.admin-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.admin-news-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.admin-field {
  display: grid;
  gap: 7px;
}

.admin-field-wide,
.admin-switches,
.admin-news-preview-grid,
.admin-form-actions {
  grid-column: 1 / -1;
}

.admin-field label,
.admin-switches label {
  color: #082d67;
  font-size: 13px;
  font-weight: 900;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  border: 1px solid #cfe0f5;
  border-radius: 6px;
  background: #ffffff;
  color: #1c3154;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

.admin-field input,
.admin-field select {
  min-height: 44px;
  padding: 0 12px;
}

.admin-field textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.admin-field-note {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #60728d;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.admin-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-switches label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.admin-news-preview-grid > div {
  display: grid;
  gap: 9px;
}

.admin-news-preview-grid strong {
  color: #082d67;
  font-size: 13px;
  font-weight: 900;
}

.admin-news-preview {
  min-height: 132px;
  border: 1px dashed #b9d2ef;
  border-radius: 8px;
  background: #f6faff;
}

.admin-news-preview img {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-news-feedback {
  grid-column: 1 / -1;
  position: fixed;
  right: 28px;
  top: 96px;
  z-index: 1000;
  max-width: min(420px, calc(100vw - 40px));
  padding: 13px 16px;
  border: 1px solid #9ed5b2;
  border-radius: 8px;
  background: #eaf9ef;
  color: #0e6f32;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 16px 38px rgba(19, 55, 108, 0.18);
}

.admin-news-feedback.is-error {
  border-color: #f0b8b8;
  background: #fff0f0;
  color: #a32727;
}

.admin-news-help {
  padding: 24px;
}

.admin-news-help h2,
.admin-news-current h2 {
  margin: 0 0 12px;
  color: #082d67;
  font-size: 22px;
}

.admin-news-help p {
  margin: 0 0 12px;
  color: #53627b;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
}

.admin-news-current {
  margin-top: 22px;
  padding: 24px;
}

.admin-news-current > div {
  display: grid;
  gap: 12px;
}

.admin-news-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-news-item img {
  width: 120px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
  background: #eef4fb;
}

.admin-news-item span {
  color: #61708a;
  font-size: 12px;
  font-weight: 850;
}

.admin-news-item strong {
  display: block;
  margin: 4px 0;
  color: #082d67;
  font-size: 16px;
  font-weight: 950;
}

.admin-news-item p {
  margin: 0;
  color: #53627b;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;
}

.news-detail-page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.news-detail-card {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(19, 55, 108, 0.08);
}

.news-detail-card h1 {
  max-width: 780px;
  margin: 12px 0 8px;
  color: #082d67;
  font-size: clamp(34px, 4.3vw, 56px);
  line-height: 1;
  font-weight: 950;
}

.news-detail-card time {
  display: block;
  color: #61708a;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-detail-card > img {
  width: 100%;
  max-height: 480px;
  margin: 26px 0;
  border-radius: 8px;
  object-fit: cover;
}

.news-detail-text {
  color: #30425f;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 650;
}

.news-detail-text p {
  margin: 0 0 18px;
}

.news-detail-back {
  margin-left: 0;
}

.organigrama-modern {
  display: grid;
  gap: 28px;
}

body:not(.home-page) .organigrama-modern {
  padding-top: 0;
}

.org-intro-panel,
.org-mayor-panel,
.org-modern-card,
.org-delegation-list article,
.org-representatives div {
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(19, 55, 108, 0.06);
}

.org-intro-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
}

.org-intro-panel span,
.org-heading-row span {
  display: block;
  color: var(--home-blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.org-intro-panel h2,
.org-heading-row h3 {
  margin: 6px 0 0;
  color: #082d67;
  line-height: 1.05;
  font-weight: 950;
  text-transform: none;
}

.org-intro-panel h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.org-intro-panel p {
  max-width: 720px;
  margin: 12px 0 0;
  color: #53627b;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}

.org-intro-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #9bbcf8;
  border-radius: 6px;
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.org-mayor-panel {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  overflow: hidden;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(7, 95, 208, 0.94), rgba(8, 45, 103, 0.94)),
    url("assets/original-site/07-CabeceraIndex.jpg") center / cover;
  color: #ffffff;
}

.org-person-avatar {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
}

.org-mayor-panel .role-tag {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.org-mayor-panel h3 {
  margin: 10px 0 6px;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
}

.org-mayor-panel p {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.org-mayor-panel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.org-mayor-panel li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.org-modern-section {
  margin-top: 0;
}

.org-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.org-heading-row h3 {
  font-size: 26px;
}

.org-tenure-grid {
  gap: 18px;
}

.org-modern-card {
  position: relative;
  min-height: 155px;
  padding: 24px 24px 22px;
  border-left: 0;
  background: #ffffff;
}

.org-modern-card::before,
.org-delegation-list article::before,
.org-representatives div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--home-blue);
}

.org-modern-card span {
  color: var(--home-blue);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.org-modern-card h4,
.org-delegation-list strong,
.org-representatives strong {
  margin: 8px 0;
  color: #082d67;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 950;
  text-transform: none;
}

.org-modern-card p,
.org-delegation-list p,
.org-representatives span {
  margin: 0;
  color: #53627b;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

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

.org-delegation-list article,
.org-representatives div {
  position: relative;
  padding: 20px 22px 20px 24px;
}

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

.org-representatives div {
  display: block;
  border-bottom: 1px solid var(--home-line);
}

.org-representatives div:last-child {
  grid-column: 1 / -1;
}

.corporation-modern {
  display: grid;
  gap: 26px;
  min-width: 0;
}

.corporation-summary-panel,
.corporation-stats article,
.corporation-group,
.corporation-member-card {
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(19, 55, 108, 0.06);
}

.corporation-summary-panel {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding: 28px;
}

.corporation-summary-panel span,
.corporation-group-heading span {
  display: block;
  color: var(--home-blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.corporation-summary-panel h2,
.corporation-group-heading h3 {
  margin: 6px 0 0;
  color: #082d67;
  line-height: 1.05;
  font-weight: 950;
  text-transform: none;
}

.corporation-summary-panel h2 {
  font-size: clamp(30px, 3vw, 44px);
}

.corporation-summary-panel p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #53627b;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}

.corporation-summary-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #9bbcf8;
  border-radius: 6px;
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.corporation-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.corporation-stats article {
  padding: 20px;
}

.corporation-stats strong {
  display: block;
  color: var(--home-blue);
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.corporation-stats span {
  display: block;
  margin-top: 8px;
  color: #53627b;
  font-size: 13px;
  font-weight: 850;
}

.corporation-group {
  padding: 24px;
}

.corporation-group-heading {
  margin-bottom: 18px;
}

.corporation-group-heading h3 {
  font-size: 26px;
}

.corporation-modern-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.corporation-member-card {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 190px;
  padding: 24px 18px 20px;
  text-align: center;
}

.corporation-member-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 8px 8px 0 0;
  background: var(--home-blue);
}

.corporation-member-card.is-mayor::before {
  background: #082d67;
}

.member-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #e8f1ff;
  color: var(--home-blue);
  font-size: 18px;
  font-weight: 950;
}

.corporation-member-card.is-mayor .member-avatar {
  background: var(--home-blue);
  color: #ffffff;
}

.corporation-member-card h4 {
  margin: 0;
  color: #082d67;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 950;
}

.corporation-member-card p {
  margin: 8px 0 0;
  color: #53627b;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 850;
}

.corporation-member-card small {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f2f6fc;
  color: #082d67;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.section-heading {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto 14px;
}

.section-heading h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  color: #0a2c62;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 28px;
  height: 4px;
  border-radius: 4px;
  background: var(--home-blue);
}

.section-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.section-row > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 900;
}

.area-heading {
  width: var(--home-wide-width);
  margin-top: 4px;
  margin-bottom: 30px;
}

.area-heading p {
  margin: 14px 0 0 42px;
  color: #5f6f8c;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.area-heading > a {
  min-width: 208px;
  min-height: 50px;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid #9bbcf8;
  border-radius: 6px;
  background: #ffffff;
  text-transform: uppercase;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto 36px;
  overflow: hidden;
  border: 1px solid #e7edf7;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(18, 54, 105, 0.05);
}

#ayuntamiento,
.municipal-grid {
  width: var(--home-wide-width);
}

.municipal-grid a {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr 16px;
  column-gap: 19px;
  align-items: center;
  min-height: 94px;
  padding: 18px 23px;
  border-right: 1px solid #e7edf7;
  border-bottom: 1px solid #e7edf7;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.municipal-grid a:hover,
.municipal-grid a:focus-visible {
  background: #f8fbff;
}

.municipal-grid a:nth-child(3n) {
  border-right: 0;
}

.municipal-grid a:nth-last-child(-n+3) {
  border-bottom: 0;
}

.municipal-grid a::after {
  content: "";
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  width: 8px;
  height: 8px;
  border-top: 2.5px solid #075fd0;
  border-right: 2.5px solid #075fd0;
  transform: rotate(45deg);
}

.municipal-icon {
  grid-column: 1;
  grid-row: span 2;
  align-self: center;
  width: 34px;
  height: 34px;
  color: #075fd0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.municipal-grid strong {
  grid-column: 2;
  grid-row: 1;
  color: #082d67;
  align-self: end;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.municipal-grid small {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin-top: 6px;
  color: #53627b;
  font-size: 12.5px;
  line-height: 1.38;
  font-weight: 600;
}

.area-grid,
.area-mini-grid,
.procedure-row,
.home-news-grid,
.home-map {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: var(--home-wide-width);
  gap: 18px;
  margin-bottom: 24px;
}

.area-card {
  position: relative;
  box-sizing: border-box;
  display: grid;
  align-content: start;
  min-height: 312px;
  padding: 52px 26px 24px;
  overflow: hidden;
  border-radius: 9px;
  background-position: center;
  background-size: cover;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(9, 47, 98, 0.14);
}

.area-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 28, 63, 0.02) 0%, rgba(3, 28, 63, 0.26) 34%, var(--area-overlay, rgba(3, 31, 72, 0.9)) 100%),
    linear-gradient(90deg, rgba(3, 31, 72, 0.18), rgba(3, 31, 72, 0.02));
}

.area-card-icon,
.area-card strong,
.area-card small,
.area-card-link {
  position: relative;
  z-index: 1;
}

.area-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: #ffffff;
  color: #075fd0;
  box-shadow: 0 10px 22px rgba(5, 38, 82, 0.16);
}

.area-card-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.area-card strong {
  font-size: 23px;
  line-height: 1.08;
  font-weight: 900;
}

.area-card small {
  max-width: 210px;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.48;
  font-weight: 700;
}

.area-card-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 900;
}

.area-card-link::after {
  content: "";
  width: 31px;
  height: 31px;
  border: 1.5px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 46%, currentColor 47% 53%, transparent 54%) 50% 50% / 10px 10px no-repeat,
    linear-gradient(currentColor, currentColor) 50% 50% / 12px 1.5px no-repeat;
}

.area-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: var(--home-wide-width);
  gap: 30px;
  margin-bottom: 28px;
}

.area-mini-grid a {
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 22px;
  align-items: center;
  min-height: 148px;
  padding: 28px 34px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(19, 55, 108, 0.07);
}

.area-mini-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: right center;
  background-size: 62% 100%;
  background-repeat: no-repeat;
  opacity: 0.72;
  mask-image: linear-gradient(90deg, transparent 34%, #000 72%);
}

.area-mini-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 44%, rgba(255, 255, 255, 0.3) 100%);
}

.area-mini-icon,
.area-mini-grid strong,
.area-mini-grid small,
.area-mini-grid a > span:last-child {
  position: relative;
  z-index: 1;
}

.area-mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: 1 / span 3;
  width: 70px;
  height: 70px;
  border-radius: 15px;
  background: #eef4ff;
}

.area-mini-icon-red {
  background: #ffecee;
}

.area-mini-icon .line-icon {
  width: 42px;
  height: 42px;
}

.area-mini-grid strong {
  align-self: end;
  color: #082d67;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
}

.area-mini-grid small {
  max-width: 320px;
  color: #53627b;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.area-mini-grid a > span:last-child {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 900;
}

.area-mini-grid a > span:last-child::after {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.tax-banner-new {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 18px 0 28px;
  padding: 26px max(16px, calc((100% - 1100px) / 2));
  background: linear-gradient(90deg, #0055c4, #0876ea);
  color: #ffffff;
}

.tax-banner-new > div {
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 20px;
  align-items: center;
}

.tax-banner-new .line-icon {
  grid-row: span 2;
  width: 50px;
  height: 50px;
  color: #ffffff;
}

.tax-banner-new strong,
.tax-banner-new small {
  display: block;
  text-transform: uppercase;
}

.tax-banner-new strong {
  font-size: 21px;
  font-weight: 900;
}

.tax-banner-new small {
  margin-top: 5px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.tax-banner-new > a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 300px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.procedure-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.procedure-row a {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-content: center;
  column-gap: 14px;
  min-height: 100px;
  padding: 20px 18px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(19, 55, 108, 0.06);
}

.procedure-row a::after {
  content: "+";
  position: absolute;
  right: 18px;
  bottom: 17px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid var(--home-blue);
  border-radius: 50%;
  color: var(--home-blue);
  font-size: 13px;
  line-height: 1;
}

.procedure-row .line-icon {
  grid-row: span 2;
  width: 28px;
  height: 28px;
}

.procedure-row strong {
  color: var(--home-blue);
  font-size: 14px;
  font-weight: 900;
}

.procedure-row small {
  color: #53627b;
  font-size: 12px;
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.home-news-grid a {
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(19, 55, 108, 0.08);
}

.home-news-grid img {
  width: 100%;
  aspect-ratio: 1.75 / 1;
  object-fit: cover;
}

.home-news-grid small,
.home-news-grid strong,
.home-news-grid span {
  display: block;
  padding: 0 16px;
}

.home-news-grid small {
  margin-top: 13px;
  color: #53627b;
  font-size: 11px;
}

.home-news-grid strong {
  min-height: 48px;
  margin-top: 8px;
  color: #082d67;
  font-size: 16px;
  line-height: 1.2;
}

.home-news-grid span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0 18px;
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 900;
}

.map-title {
  text-align: center;
}

.home-map {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 22px;
  margin-bottom: 32px;
}

.home-map iframe {
  width: 100%;
  height: 285px;
  border: 0;
  border-radius: 8px;
  background: #e9f0f4;
}

.routes-gis-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.routes-gis-section {
  grid-template-columns: 1fr;
}

.routes-gis-map {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #e9f0f4;
}

.routes-gis-map > p {
  margin: 0;
  padding: 28px;
  color: #405271;
  font-weight: 800;
}

.routes-gis-help {
  margin: 0 0 12px;
  color: #53627b;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.routes-gis-map .leaflet-control-layers,
.routes-gis-map .leaflet-control-zoom {
  border: 0;
  box-shadow: 0 8px 22px rgba(8, 45, 103, 0.16);
}

.routes-gis-map .leaflet-control-layers {
  width: auto;
  max-width: 210px;
  max-height: 430px;
  overflow: auto;
  border-radius: 7px;
  color: #082d67;
  font-size: 12px;
  font-weight: 800;
}

.routes-gis-map .leaflet-control-layers-expanded {
  padding: 8px 10px;
}

.routes-gis-map .leaflet-control-layers-toggle {
  width: 34px;
  height: 34px;
}

.routes-gis-map .leaflet-control-layers label {
  margin: 2px 0;
  white-space: nowrap;
}

.routes-gis-bulk-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 0 !important;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(8, 45, 103, 0.16);
}

.routes-gis-bulk-control button,
.routes-gis-fullscreen {
  min-width: 42px;
  height: 34px;
  border: 0;
  background: #ffffff;
  color: #082d67;
  font: 900 11px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.routes-gis-bulk-control button + button {
  border-left: 1px solid #d7e5f4;
}

.routes-gis-bulk-control button:hover,
.routes-gis-fullscreen:hover {
  background: #eef7ff;
}

.routes-gis-fullscreen {
  display: grid;
  place-items: center;
  margin-top: 6px;
  border-radius: 4px;
  font-size: 18px;
}

.routes-gis-map:fullscreen,
.routes-gis-map.is-fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  border-radius: 0;
}

.leaflet-control-layers-overlays input:disabled {
  opacity: 1;
  cursor: default;
}

.leaflet-control-layers-overlays input:disabled + span,
.leaflet-control-layers-overlays label:has(input:disabled) {
  cursor: default;
}

.bike-station-icon {
  display: grid;
  place-items: center;
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 3px 10px rgba(8, 45, 103, 0.28);
}

.bike-station-icon span {
  display: block;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  transform: translateY(1px);
}

.routes-gis-popup {
  display: grid;
  gap: 9px;
  min-width: 240px;
  color: #082d67;
}

.routes-gis-popup span {
  color: #0a8f57;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.routes-gis-popup h3 {
  margin: 0;
  color: #082d67;
  font-size: 20px;
  line-height: 1.1;
}

.routes-gis-popup p {
  margin: 0;
  color: #405271;
  line-height: 1.42;
  font-weight: 650;
}

.routes-gis-popup dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.routes-gis-popup dl div {
  padding: 7px;
  border-radius: 6px;
  background: #f2fbf5;
}

.routes-gis-popup dt {
  color: #667792;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.routes-gis-popup dd {
  margin: 3px 0 0;
  font-weight: 900;
}

.routes-gis-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.routes-gis-downloads a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 6px;
  background: #0a8f57;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-map aside {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  align-content: center;
  padding: 26px;
  border-radius: 8px;
  background: var(--home-soft);
}

.home-map h3 {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  color: #082d67;
  font-size: 18px;
}

.home-map aside p {
  grid-column: 1 / -1;
  margin: -4px 0 4px;
  color: #53627b;
  line-height: 1.45;
  font-weight: 650;
}

.home-map aside a {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--home-line);
  border-radius: 22px;
  background: #ffffff;
  color: #233c66;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 5px 15px rgba(19, 55, 108, 0.05);
}

.routes-gis-section aside {
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr) repeat(3, minmax(130px, 1fr));
  align-items: center;
  padding: 22px;
}

.routes-gis-section aside h3 {
  grid-column: auto;
  margin: 0;
}

.routes-gis-section aside p {
  grid-column: auto;
  margin: 0;
}

.home-footer {
  background: #071f43;
  color: #ffffff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.2fr;
  gap: 44px;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 28px;
}

.footer-inner section {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-inner section:last-child {
  border-right: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 48px;
  height: 60px;
  object-fit: contain;
}

.footer-brand strong,
.footer-inner h3 {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.15;
}

.footer-inner h3 {
  margin: 0 0 14px;
  text-transform: uppercase;
}

.footer-inner p,
.footer-inner a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.55;
}

.footer-inner a {
  display: block;
  margin: 6px 0;
}

.store-badge {
  width: 168px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  background: #050505;
  color: #ffffff !important;
  font-weight: 900;
}

.copyright {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

@media (max-width: 1300px) {
  .mainbar {
    grid-template-columns: auto 1fr auto;
  }

  .search-icon {
    display: none;
  }
}

@media (max-width: 1100px) {
  .mainbar {
    grid-template-columns: auto auto 1fr;
  }

  .home-page .mobile-menu,
  body:not(.home-page) .site-standard-header .mobile-menu {
    display: inline-flex;
    justify-content: center;
    justify-self: end;
    border: 1px solid #075fd0;
    border-radius: 6px;
    background: #075fd0;
    color: #ffffff;
    padding: 10px 14px;
    font-weight: 900;
  }

  .home-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 100%;
    display: none;
    padding: 18px;
    border-radius: 0 0 10px 10px;
    background: #ffffff;
    box-shadow: var(--home-shadow);
  }

  .home-nav.is-open {
    display: grid;
    gap: 14px;
  }

  .pay-cta {
    justify-self: end;
  }

  .quick-access,
  .procedure-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .info-strip,
  .home-card-grid,
  .area-grid,
  .home-news-grid,
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-strip > a {
    min-height: 72px;
  }

  .municipal-grid a:nth-child(3n) {
    border-right: 1px solid var(--home-line);
  }

  .municipal-grid a:nth-child(2n) {
    border-right: 0;
  }

  .municipal-grid a:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--home-line);
  }

  .municipal-grid a:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .home-map {
    grid-template-columns: 1fr;
  }

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

  .home-news-arrow-prev {
    left: -12px;
  }

  .home-news-arrow-next {
    right: -12px;
  }
}

@media (max-width: 900px) {
  .home-page {
    --home-align-width: calc(100% - 32px);
  }

  body:not(.home-page) {
    --home-align-width: calc(100% - 32px);
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-wrap: wrap;
    gap: 10px 0;
    padding: 10px 0;
  }

  .topbar-contact {
    padding: 0 12px;
  }

  .topbar-contact:first-child {
    padding-left: 0;
  }

  .topbar-social {
    width: 100%;
    margin-left: 0;
  }

  .mainbar {
    grid-template-columns: 1fr auto;
    min-height: 84px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 45px;
    height: 58px;
  }

  .brand strong {
    font-size: 18px;
  }

  .pay-cta {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: center;
    max-width: none;
    min-height: 44px;
  }

  .home-hero {
    min-height: 520px;
  }

  .hero-content {
    padding-top: 46px;
  }

  .hero-content h1 {
    max-width: 390px;
    font-size: clamp(48px, 15vw, 64px);
    line-height: 1;
  }

  .quick-access,
  .info-strip,
  .home-card-grid,
  .area-grid,
  .area-mini-grid,
  .procedure-row,
  .home-news-grid,
  .footer-inner,
  .tax-banner-new,
  .tax-banner-new > div {
    grid-template-columns: 1fr;
  }

  .quick-access {
    margin-top: -72px;
  }

  .quick-access a,
  .info-strip article,
  .municipal-grid a,
  .footer-inner section {
    border-right: 0;
  }

  .quick-access a {
    min-height: 104px;
    border-bottom: 1px solid var(--home-line);
  }

  .quick-access a:last-child {
    border-bottom: 0;
  }

  .municipal-grid a:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--home-line);
  }

  .municipal-grid a:last-child {
    border-bottom: 0;
  }

  .section-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-news-preview {
    width: min(1100px, calc(100% - 32px));
  }

  .home-news-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .news-sort-control {
    justify-content: space-between;
  }

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

  .home-news-arrow {
    top: 118px;
    width: 38px;
    height: 38px;
  }

  .home-news-arrow-prev {
    left: 8px;
  }

  .home-news-arrow-next {
    right: 8px;
  }

  .news-badge {
    top: 96px;
  }

  .area-mini-grid {
    justify-content: stretch;
  }

  .tax-banner-new > a {
    min-width: 0;
    justify-content: center;
  }

  .home-map aside {
    grid-template-columns: 1fr;
  }

  .routes-gis-section aside {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.original-header {
  position: relative;
  top: 0;
  z-index: 25;
  min-height: 136px;
  color: #06285d;
  background: #ffffff;
  border-bottom: 1px solid #ededed;
  box-shadow: none;
  backdrop-filter: none;
}

.header-bg {
  display: none;
}

.header-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 26px;
  padding: 7px clamp(22px, 3.6vw, 46px) 0;
  font-size: 12px;
  font-weight: 900;
}

.header-meta nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-meta a {
  color: #075bbb;
  line-height: 1;
}

.header-meta a::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border: 2px solid currentColor;
  border-radius: 3px;
  vertical-align: -2px;
}

.header-meta .language-link::before {
  display: none;
}

.nav-row {
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 104px;
  padding: 0 clamp(22px, 3.6vw, 46px) 18px;
}

.municipal-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.municipal-brand > img {
  width: 260px;
  height: auto;
  object-fit: contain;
}

.logo-box {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 4px;
  background: #075bbb;
}

.logo-box img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin: 0;
}

.brand-text small,
.brand-text strong {
  display: block;
}

.brand-text small {
  color: #1b2b4e;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}

.brand-text strong {
  color: #075bbb;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 2.25vw, 34px);
  line-height: 0.86;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 2.35vw, 42px);
  min-height: 70px;
  color: #06285d;
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 900;
  text-transform: uppercase;
}

.main-nav a {
  padding: 26px 0 18px;
  white-space: nowrap;
}

.main-nav a:hover {
  color: #075bbb;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.appointment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 8px;
  background: #075bbb;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(7, 91, 187, 0.22);
}

.search-button {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
}

.search-button::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  width: 20px;
  height: 20px;
  border: 3px solid #075bbb;
  border-radius: 50%;
}

.search-button::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 28px;
  width: 13px;
  height: 3px;
  border-radius: 3px;
  background: #075bbb;
  transform: rotate(45deg);
}

.modernized-header {
  min-height: 240px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(23, 139, 202, 0.92) 0%, rgba(98, 181, 225, 0.72) 55%, rgba(255, 255, 255, 0.95) 100%),
    url("assets/original-site/07-CabeceraIndex.jpg") center 34% / cover;
  border-bottom: 0;
}

.modernized-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff);
  pointer-events: none;
}

.modernized-header .header-meta {
  position: relative;
  z-index: 2;
  min-height: auto;
  padding: 12px 22px 0;
}

.modernized-header .header-meta-right {
  display: grid;
  justify-items: end;
  gap: 5px;
  margin-left: auto;
}

.modernized-header .header-meta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 900;
  text-align: right;
  text-shadow: 0 1px 2px rgba(0, 77, 130, 0.35);
}

.modernized-header .header-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}

.modernized-header .header-meta a {
  color: #ffffff;
}

.modernized-header .header-meta a::before {
  display: none;
}

.social-link {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background: #050505;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.flag-link img {
  width: 38px;
  height: 24px;
  object-fit: cover;
}

.header-pay-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 20px;
  background: #2379c4;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.modernized-header .header-pay-button::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 12px;
  margin-right: 7px;
  border: 2px solid currentColor;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  border-bottom: 0;
}

.modernized-header .nav-row {
  position: relative;
  z-index: 2;
  grid-template-columns: 130px 1fr;
  align-items: start;
  gap: 28px;
  min-height: 150px;
  padding: 8px 46px 38px;
}

.modernized-header .municipal-brand {
  justify-content: center;
  align-items: start;
}

.modernized-header .municipal-brand > img {
  width: 88px;
  height: auto;
  filter: drop-shadow(0 2px 3px rgba(0, 55, 90, 0.28));
}

.modernized-header .main-nav {
  justify-content: flex-start;
  gap: clamp(34px, 4.2vw, 78px);
  min-height: 74px;
  color: #ffffff;
  font-size: clamp(22px, 1.55vw, 27px);
  font-weight: 500;
  text-transform: none;
  text-shadow: 0 1px 2px rgba(0, 83, 130, 0.32);
}

.modernized-header .main-nav a {
  padding: 28px 0 0;
}

.modernized-header .main-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 8px;
}

.pay-button {
  display: none;
}

.mobile-menu {
  display: none;
}

.hero-slider {
  position: relative;
  display: none;
  place-items: center;
  min-height: 305px;
  background: #efc79f;
  overflow: hidden;
}

.hero-poster {
  width: min(760px, 72vw);
  max-height: 305px;
  overflow: hidden;
}

.hero-poster img {
  width: 100%;
  height: 305px;
  object-fit: cover;
  object-position: center;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  border: 0;
  background: transparent;
  color: white;
  font-size: 62px;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slider-arrow.left {
  left: 22px;
}

.slider-arrow.right {
  right: 22px;
}

.shortcut-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
  margin: 24px 14px 28px;
  position: relative;
  z-index: 5;
}

.shortcut {
  display: grid;
  min-height: 132px;
  border: 5px solid #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
  background: #0d6f8c;
}

.shortcut img,
.shortcut span {
  grid-area: 1 / 1;
}

.shortcut img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shortcut span {
  align-self: end;
  padding: 14px 10px;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0));
  font-size: clamp(14px, 1.7vw, 24px);
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.section-title {
  padding: 12px 18px 10px;
  text-align: center;
}

.section-title h1,
.section-title h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 900;
  color: #3d3d3d;
  text-transform: uppercase;
}

.section-title-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 28px;
  color: #222222;
  font-size: 19px;
  font-weight: 500;
  text-transform: none;
}

.section-title-link::before {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.module-grid,
.department-grid,
.procedures,
.news-grid,
.map-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 42px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.townhall-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 58px 70px;
  width: min(1500px, calc(100% - 96px));
  margin-top: 34px;
  margin-bottom: 70px;
}

.townhall-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 28px;
  align-items: start;
  min-height: 106px;
  color: #3f3f3f;
}

.townhall-item svg {
  width: 52px;
  height: 52px;
  margin-top: 7px;
  color: #2186c8;
  fill: currentColor;
  transition: transform 0.2s ease, color 0.2s ease;
}

.townhall-item strong,
.townhall-item em {
  display: block;
}

.townhall-item strong {
  margin-bottom: 8px;
  color: #3f3f3f;
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.1;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.townhall-item em {
  color: #8c8c8c;
  font-size: clamp(16px, 1.18vw, 20px);
  line-height: 1.55;
  font-style: normal;
}

.townhall-item:hover svg,
.townhall-item:focus-visible svg {
  color: #075bbb;
  transform: translateY(-2px);
}

.townhall-item:hover strong,
.townhall-item:focus-visible strong {
  color: #075bbb;
}

.module-card {
  min-height: 168px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.module-card strong,
.module-card span {
  display: block;
}

.module-card strong {
  color: var(--blue);
  font-size: 20px;
  text-transform: uppercase;
}

.module-card span {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.image-card {
  padding: 0;
  overflow: hidden;
}

.image-card img {
  width: 100%;
  height: 122px;
  object-fit: cover;
}

.image-card strong {
  padding: 15px;
}

.department-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 24px;
  width: min(1740px, calc(100% - 58px));
  margin-bottom: 52px;
}

.department-card {
  position: relative;
  display: grid;
  align-items: start;
  min-height: 0;
  padding: 26px;
  overflow: hidden;
  border-radius: 10px;
  background-position: center;
  background-size: cover;
  color: #ffffff;
  box-shadow: none;
}

.department-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--area-overlay, rgba(33, 134, 200, 0.76));
}

.department-card span {
  position: relative;
  z-index: 1;
  display: block;
}

.department-card strong,
.department-card em {
  display: block;
}

.department-card strong {
  max-width: 520px;
  margin-bottom: 16px;
  font-size: clamp(34px, 2.35vw, 42px);
  line-height: 1.08;
  font-style: normal;
  font-weight: 900;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);
}

.department-card em {
  max-width: 520px;
  font-size: clamp(18px, 1.2vw, 22px);
  line-height: 1.25;
  font-style: normal;
  font-weight: 700;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);
}

.department-card-large {
  grid-row: span 2;
}

.department-card-large strong {
  font-size: clamp(40px, 2.6vw, 50px);
}

.department-card-large em {
  font-size: clamp(19px, 1.2vw, 23px);
  line-height: 1.25;
}

.department-card:hover::before,
.department-card:focus-visible::before {
  filter: saturate(1.15);
}

.area-obras {
  --area-overlay: rgba(25, 139, 203, 0.82);
  background-image: url("assets/original-site/30-obras2965258.jpeg");
}

.area-secretaria {
  --area-overlay: rgba(20, 90, 212, 0.78);
  background-image: url("assets/original-site/29-writing-828911_1920.jpeg");
}

.area-catastro {
  --area-overlay: rgba(43, 52, 36, 0.72);
  background-image: url("assets/original-site/32-catastro101808.jpeg");
}

.area-policia {
  --area-overlay: rgba(76, 49, 211, 0.72);
  background-image: url("assets/original-site/33-bodyworn-794108_1920.jpeg");
}

.area-medio {
  --area-overlay: rgba(21, 147, 76, 0.74);
  background-image: url("assets/original-site/34-tree-3616892_1920.jpeg");
}

.area-deportes {
  --area-overlay: rgba(159, 88, 62, 0.72);
  background-image: url("assets/original-site/35-ball-488700_1920.jpeg");
}

.area-mini-card.area-deportes,
.area-mini-card.area-sociales {
  background-image: none;
}

.area-mini-card.area-deportes::before {
  background-image: url("assets/original-site/35-ball-488700_1920.jpeg");
}

.area-mini-card.area-sociales::before {
  background-image: url("assets/original-site/36-hands-4344711_1920.jpeg");
}

.area-sociales {
  --area-overlay: rgba(238, 135, 24, 0.78);
  background-image: url("assets/original-site/36-hands-4344711_1920.jpeg");
}

.areas-directory-page {
  background: #f5f8fc;
  color: #082d67;
}

.areas-directory {
  padding-bottom: 54px;
}

.areas-directory-hero {
  min-height: 250px;
  display: grid;
  align-items: end;
  padding: 42px min(7vw, 96px);
}

.areas-directory-hero > div,
.areas-directory-intro,
.areas-directory-grid {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.areas-directory-hero h1 {
  margin: 14px 0 10px;
  color: #ffffff;
  font-size: clamp(40px, 4.8vw, 66px);
  line-height: 1;
  font-weight: 900;
}

.areas-directory-hero p {
  max-width: 680px;
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 750;
}

.areas-directory-intro {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-top: 34px;
  margin-bottom: 24px;
}

.areas-directory-intro span {
  color: #075fd0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.areas-directory-intro h2 {
  margin: 7px 0 8px;
  color: #082d67;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  font-weight: 900;
}

.areas-directory-intro p {
  max-width: 680px;
  margin: 0;
  color: #53627b;
  font-weight: 700;
  line-height: 1.5;
}

.areas-directory-intro > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #9bbcf8;
  border-radius: 6px;
  background: #ffffff;
  color: #075fd0;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.areas-directory-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1180px, calc(100% - 32px));
  margin-bottom: 0;
}

.areas-directory-grid .area-card {
  min-height: 330px;
}

@media (max-width: 1100px) {
  .areas-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .areas-directory-intro {
    display: grid;
  }

  .areas-directory-grid {
    grid-template-columns: 1fr;
  }
}

.tax-banner {
  background: var(--blue);
  color: #fff;
  text-align: center;
}

.tax-banner a {
  display: grid;
  gap: 6px;
  padding: 24px 16px;
}

.tax-banner strong {
  font-size: 22px;
}

.tax-banner span {
  color: #fff7cd;
  font-weight: 800;
}

.procedures {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: clamp(22px, 2.2vw, 44px);
  width: min(1580px, calc(100% - 96px));
  margin-bottom: 0;
  padding: 0 0 72px;
}

.tramites-title {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 36px;
  background: #cfd4d6;
  box-shadow: 0 0 0 100vmax #cfd4d6;
  clip-path: inset(0 -100vmax);
}

.procedures {
  background: #cfd4d6;
  box-shadow: 0 0 0 100vmax #cfd4d6;
  clip-path: inset(0 -100vmax);
}

.procedure-card {
  position: relative;
  min-height: 402px;
  overflow: hidden;
  border-radius: 6px;
  background-position: center;
  background-size: cover;
  color: #111111;
}

.procedure-card::before {
  content: "";
  position: absolute;
  inset: 88px 0 0;
  background: rgba(255, 255, 255, 0.78);
}

.procedure-card h3 {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 88px;
  margin: 0;
  padding: 16px;
  background: #218bcb;
  color: #ffffff;
  font-size: clamp(23px, 1.55vw, 28px);
  line-height: 1.1;
  font-weight: 500;
  text-align: center;
}

.procedure-card p {
  position: relative;
  z-index: 1;
  min-height: 64px;
  margin: 0;
  padding: 13px 26px 0;
  color: #111111;
  font-size: 16px;
  line-height: 1.05;
  text-align: justify;
}

.procedure-toggle {
  position: relative;
  z-index: 2;
  display: block;
  width: 40px;
  height: 40px;
  margin: 8px auto 0;
  border: 3px solid #218bcb;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.procedure-toggle::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 14px;
  height: 14px;
  border-right: 3px solid #218bcb;
  border-bottom: 3px solid #218bcb;
  transform: rotate(45deg);
  transition: transform 0.2s ease, top 0.2s ease;
}

.procedure-card.is-open .procedure-toggle::before {
  top: 15px;
  transform: rotate(225deg);
}

.procedure-menu {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  max-height: 0;
  overflow: hidden;
  padding: 0 26px;
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.2s ease, padding-top 0.28s ease;
}

.procedure-card.is-open .procedure-menu {
  max-height: 260px;
  padding-top: 18px;
  opacity: 1;
}

.procedure-menu a {
  color: #111111;
  font-size: 16px;
  line-height: 1.25;
}

.procedure-menu a:hover {
  color: #218bcb;
}

.procedure-obras {
  background-image: url("assets/original-site/37-obras.jpeg");
}

.procedure-certificados {
  background-image: url("assets/original-site/38-business-man-2452808_1920.jpeg");
}

.procedure-poblacion {
  background-image: url("assets/original-site/29-writing-828911_1920.jpeg");
}

.procedure-ciudadano {
  background-image: url("assets/original-site/39-people-2567915_1920.jpeg");
}

.procedure-sociales {
  background-image: url("assets/original-site/36-hands-4344711_1920.jpeg");
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.news-grid a {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-grid img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.news-grid strong {
  display: block;
  padding: 14px;
  color: var(--blue);
  text-transform: uppercase;
}

.map-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: stretch;
}

.map-section iframe {
  width: 100%;
  min-height: 70vh;
  border: 0;
}

.map-section aside {
  padding: 24px;
  background: #f4f4f4;
  line-height: 1.6;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  gap: 25px;
  align-items: center;
  padding: 32px clamp(20px, 8vw, 110px);
  background: var(--footer);
  color: white;
}

.site-footer h3 {
  margin: 0 0 10px;
  color: #fff;
}

.site-footer p {
  margin: 4px 0;
  color: #ddd;
}

.site-footer a {
  display: block;
  margin: 7px 0;
  color: #e9e9e9;
}

.site-footer img {
  width: 130px;
  justify-self: center;
}

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 25px;
  align-items: center;
  padding: 18px 36px;
  background: var(--blue);
  color: white;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.2);
}

.cookie-bar p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-bar a,
.cookie-bar button {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 12px 18px;
  border: 0;
  border-radius: 7px;
  background: #1c477f;
  color: #fff;
  font: inherit;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.cookie-bar.is-hidden {
  display: none;
}

.back-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 35;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
}

.content-page {
  min-height: 55vh;
  background: #f7f7f7;
}

.page-hero {
  padding: 54px 18px;
  background: linear-gradient(135deg, rgba(23, 139, 202, 0.9), rgba(0, 0, 0, 0.55)), url("assets/original-site/07-CabeceraIndex.jpg") center / cover;
  color: #fff;
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  text-transform: uppercase;
}

.page-body {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

.page-panel {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-panel p,
.page-panel li {
  color: #555;
  line-height: 1.65;
}

.page-panel .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-panel .button-row a {
  padding: 11px 16px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.contact-directory-page {
  background: #f3f6f8;
}

.contact-directory-hero {
  padding: 58px 18px 44px;
  background:
    linear-gradient(135deg, rgba(8, 122, 188, 0.94), rgba(16, 45, 86, 0.84)),
    url("assets/original-site/07-CabeceraIndex.jpg") center / cover;
  color: #ffffff;
  text-align: center;
}

.contact-directory-hero .kicker {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
  text-transform: uppercase;
}

.contact-directory-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
  text-transform: uppercase;
}

.contact-directory-hero p:last-child {
  max-width: 760px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.5;
}

.contact-directory-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(1180px, calc(100% - 32px));
  margin: -22px auto 32px;
  padding: 18px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(10, 54, 109, 0.12);
}

.contact-directory-nav a {
  padding: 9px 12px;
  border: 1px solid #d9e5ef;
  border-radius: 6px;
  color: #0c5b99;
  font-size: 14px;
  font-weight: 900;
}

.contact-directory-nav a:hover {
  background: #eaf6fc;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 64px;
}

.contact-department-card {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 300px;
  padding: 26px;
  border: 1px solid #dfe7ed;
  border-top: 6px solid #218bcb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(10, 54, 109, 0.08);
}

.contact-department-card h2 {
  margin: 0;
  color: #102d56;
  font-size: 25px;
  line-height: 1.15;
}

.contact-department-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.contact-department-card dl div {
  padding-left: 14px;
  border-left: 3px solid #d8edf8;
}

.contact-department-card dt {
  margin-bottom: 5px;
  color: #6f7f8a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-department-card dd {
  margin: 0;
  color: #2f3740;
  line-height: 1.5;
}

.contact-department-card a {
  color: #087abc;
  font-weight: 800;
}

.featured-contact {
  border-top-color: #e79d19;
}

.wide-contact {
  grid-column: span 3;
  min-height: auto;
}

.contact-note {
  padding: 14px 16px;
  border-radius: 6px;
  background: #f8fbfd;
  color: #3d3d3d;
}

.contact-note strong {
  display: block;
  margin-bottom: 8px;
  color: #102d56;
}

.contact-note ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.55;
}

.compact-hero {
  padding: 42px 18px;
}

.corporation-page {
  background: #ffffff;
}

.corporation-hero {
  position: relative;
  min-height: 198px;
  padding: 10px 18px 0;
  background: linear-gradient(180deg, #218bcb, #087abc);
  text-align: center;
}

.corporation-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 2.2vw, 33px);
  line-height: 1.1;
  font-weight: 900;
}

.corporation-intro-card {
  position: absolute;
  left: 50%;
  bottom: -102px;
  display: grid;
  place-items: center;
  gap: 18px;
  width: min(460px, calc(100% - 48px));
  min-height: 124px;
  padding: 24px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.16);
  transform: translateX(-50%);
}

.corporation-intro-card svg {
  width: 42px;
  height: 42px;
  fill: #087abc;
}

.corporation-intro-card strong {
  color: #102d56;
  font-size: 14px;
  font-weight: 900;
}

.corporation-board {
  min-height: 700px;
  padding: 138px 18px 64px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
    url("assets/original-site/38-business-man-2452808_1920.jpeg") center / cover;
  color: #ffffff;
  text-align: center;
}

.corporation-board h2 {
  margin: 0 0 34px;
  color: #ffffff;
  font-size: clamp(20px, 1.5vw, 24px);
  font-weight: 900;
  text-transform: uppercase;
}

.corporation-members {
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  gap: 38px 70px;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}

.council-member {
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 112px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

.member-icon {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
}

.member-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  transform: translateX(-50%);
}

.member-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 54px;
  height: 36px;
  border-radius: 18px 18px 7px 7px;
  background: #ffffff;
  transform: translateX(-50%);
}

.council-member h3 {
  margin: 0 0 5px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
}

.council-member p {
  margin: 0;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 900;
}

.municipal-layout {
  display: grid;
  grid-template-columns: 285px 1fr;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 56px;
  align-items: start;
}

.municipal-sidebar {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.municipal-sidebar a,
.municipal-sidebar summary {
  display: block;
  padding: 13px 16px;
  border-bottom: 1px solid #ececec;
  font-weight: 800;
  text-transform: uppercase;
}

.municipal-sidebar summary {
  color: #ffffff;
  background: var(--blue);
  cursor: pointer;
  list-style: none;
}

.municipal-sidebar summary::-webkit-details-marker {
  display: none;
}

.municipal-sidebar details a {
  padding-left: 28px;
  color: #464646;
  background: #fbfbfb;
  font-size: 13px;
}

.municipal-sidebar details a:hover,
.municipal-sidebar .is-current {
  color: #ffffff;
  background: var(--orange);
}

.sidebar-home,
.sidebar-tourism {
  color: #ffffff;
  background: #333;
}

.organigrama-content {
  min-width: 0;
  padding: clamp(22px, 4vw, 38px);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.organigrama-content .kicker {
  margin: 0 0 6px;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
}

.organigrama-content h2 {
  margin: 0;
  color: #3d3d3d;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
  text-transform: uppercase;
}

.intro-text {
  margin: 12px 0 26px;
  color: var(--muted);
}

.mayor-card {
  position: relative;
  margin-bottom: 28px;
  padding: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: var(--shadow);
}

.role-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mayor-card h3 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  text-transform: uppercase;
}

.mayor-card p {
  margin: 8px 0 14px;
  font-size: 18px;
  font-weight: 800;
}

.mayor-card ul {
  margin: 0;
  padding-left: 18px;
}

.org-section {
  margin-top: 30px;
}

.org-section > h3 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--blue);
  color: #3d3d3d;
  font-size: 24px;
  text-transform: uppercase;
}

.org-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.org-card {
  padding: 18px;
  border-left: 5px solid var(--blue);
  background: #f8f8f8;
}

.org-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.org-card h4 {
  margin: 0 0 8px;
  color: #333;
  font-size: 18px;
  text-transform: uppercase;
}

.org-card p {
  margin: 0;
  color: #626262;
  line-height: 1.5;
}

.two-columns {
  grid-template-columns: repeat(3, 1fr);
}

.representative-list {
  display: grid;
  gap: 10px;
}

.representative-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  background: #f8f8f8;
  border-left: 5px solid var(--orange);
}

.representative-list strong {
  text-transform: uppercase;
}

.representative-list span {
  color: var(--muted);
  text-align: right;
}

.ordinance-content {
  padding-bottom: 18px;
}

.ordinance-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 22px 0 30px;
}

.ordinance-tabs a {
  display: grid;
  place-items: center;
  min-height: 74px;
  padding: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.ordinance-tabs a:hover {
  background: var(--orange);
}

.ordinance-section {
  margin-top: 34px;
}

.ordinance-section h3 {
  margin: 0;
  padding: 14px 18px;
  color: #ffffff;
  background: #333333;
  font-size: 22px;
  text-transform: uppercase;
}

.ordinance-list {
  border: 1px solid var(--line);
  border-top: 0;
}

.ordinance-list a {
  display: grid;
  grid-template-columns: 1fr 82px;
  gap: 16px;
  align-items: center;
  min-height: 58px;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.ordinance-list a:nth-child(even) {
  background: #f8f8f8;
}

.ordinance-list span {
  color: #3f3f3f;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.ordinance-list strong {
  justify-self: end;
  min-width: 62px;
  padding: 8px 12px;
  color: #ffffff;
  background: var(--blue);
  font-size: 12px;
  text-align: center;
}

.ordinance-list a:hover strong {
  background: var(--orange);
}

.service-tabs {
  grid-template-columns: repeat(3, 1fr);
}

.service-section {
  margin-top: 34px;
}

.service-section h3 {
  margin: 0 0 8px;
  padding: 14px 18px;
  color: #ffffff;
  background: #333333;
  font-size: 22px;
  text-transform: uppercase;
}

.service-section > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.service-info-card {
  min-height: 170px;
  padding: 18px;
  border-left: 5px solid var(--blue);
  background: #f8f8f8;
}

.service-info-card.wide {
  grid-column: span 2;
}

.service-info-card h4 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 19px;
  text-transform: uppercase;
}

.service-info-card p {
  margin: 0 0 10px;
  color: #565656;
  line-height: 1.55;
}

.service-info-card a {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 12px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 900;
}

@media (max-width: 980px) {
  .original-header {
    min-height: auto;
  }

  .header-meta {
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 12px 0;
  }

  .nav-row {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 14px 16px 16px;
  }

  .mobile-menu {
    display: inline-block;
    align-self: center;
    justify-self: end;
    border: 1px solid #075bbb;
    border-radius: 6px;
    background: #075bbb;
    color: #fff;
    padding: 10px 14px;
    font-weight: 900;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    min-height: auto;
    padding: 12px 16px;
    background: #075bbb;
    color: #fff;
    font-size: 18px;
  }

  .main-nav.is-open {
    display: grid;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .shortcut-strip,
  .module-grid,
  .department-grid,
  .news-grid,
  .procedures,
  .map-section,
  .site-footer,
  .municipal-layout,
  .org-grid,
  .two-columns,
  .ordinance-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .townhall-grid {
    gap: 36px 34px;
    width: min(940px, calc(100% - 32px));
  }

  .townhall-item {
    grid-template-columns: 58px 1fr;
    gap: 18px;
  }

  .townhall-item svg {
    width: 44px;
    height: 44px;
  }

  .department-grid {
    grid-auto-rows: 210px;
    gap: 18px;
    width: min(940px, calc(100% - 32px));
  }

  .department-card-large {
    grid-row: span 1;
  }

  .procedures {
    gap: 24px;
    width: min(940px, calc(100% - 32px));
    padding-bottom: 48px;
  }

  .corporation-members {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 34px 36px;
    width: min(720px, calc(100% - 32px));
  }

  .contact-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wide-contact {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .nav-row,
  .shortcut-strip,
  .module-grid,
  .townhall-grid,
  .department-grid,
  .news-grid,
  .procedures,
  .map-section,
  .site-footer,
  .cookie-bar,
  .municipal-layout,
  .org-grid,
  .two-columns,
  .ordinance-tabs,
  .ordinance-list a,
  .service-card-grid {
    grid-template-columns: 1fr;
  }

  .service-info-card.wide {
    grid-column: span 1;
  }

.ordinance-list strong {
  justify-self: start;
  }

  .representative-list div {
    display: block;
  }

  .representative-list span {
    display: block;
    margin-top: 6px;
    text-align: left;
  }

  .municipal-brand > img {
    margin: 0 auto;
  }

  .logo-box {
    width: 58px;
    height: 58px;
  }

  .logo-box img {
    width: 48px;
    height: 48px;
  }

  .brand-text strong {
    font-size: 25px;
  }

  .mobile-menu {
    justify-self: center;
  }

  .header-actions {
    justify-self: stretch;
    justify-content: center;
  }

  .appointment-button {
    flex: 1;
    text-align: center;
    white-space: normal;
  }

  .hero-poster {
    width: 100%;
  }

  .shortcut-strip {
    margin-top: 16px;
  }

  .cookie-bar {
    padding: 16px;
  }

  .tramites-title {
    display: grid;
    gap: 8px;
  }

  .section-title-link {
    margin-left: 0;
    font-size: 17px;
  }

  .procedures {
    gap: 18px;
  }

  .procedure-card {
    min-height: 390px;
  }

  .corporation-hero {
    min-height: 180px;
  }

  .corporation-intro-card {
    bottom: -86px;
    min-height: 110px;
  }

  .corporation-board {
    padding-top: 120px;
  }

  .corporation-members {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 32px 22px;
  }

  .council-member h3 {
    font-size: 12px;
  }

  .contact-card-grid {
    grid-template-columns: 1fr;
  }

  .wide-contact {
    grid-column: span 1;
  }

  .contact-directory-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .modernized-header {
    min-height: 230px;
  }

  .modernized-header .header-meta {
    justify-content: flex-end;
    padding: 12px 14px 0;
  }

  .modernized-header .header-meta-right {
    gap: 7px;
  }

  .modernized-header .header-meta p {
    max-width: 520px;
    font-size: 12px;
  }

  .modernized-header .nav-row {
    grid-template-columns: 100px auto;
    align-items: start;
    min-height: 132px;
    padding: 12px 18px 28px;
  }

  .modernized-header .municipal-brand > img {
    width: 82px;
  }

  .modernized-header .mobile-menu {
    justify-self: end;
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(35, 121, 196, 0.88);
  }

  .modernized-header .main-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 92px;
    display: none;
    gap: 0;
    min-height: auto;
    padding: 12px 16px;
    background: rgba(35, 121, 196, 0.94);
    font-size: 18px;
  }

  .modernized-header .main-nav.is-open {
    display: grid;
  }

  .modernized-header .main-nav a {
    padding: 10px 0;
  }
}

@media (max-width: 640px) {
  .modernized-header {
    min-height: 270px;
  }

  .modernized-header .header-meta {
    justify-content: center;
  }

  .modernized-header .header-meta-right {
    justify-items: center;
    width: 100%;
  }

  .modernized-header .header-meta p {
    text-align: center;
  }

  .modernized-header .nav-row {
    grid-template-columns: 1fr auto;
    padding-top: 16px;
  }

  .modernized-header .municipal-brand {
    justify-content: flex-start;
  }

  .modernized-header .municipal-brand > img {
    margin: 0;
  }

  .header-pay-button {
    width: min(100%, 330px);
    justify-content: center;
    text-align: center;
  }

  .department-grid {
    grid-auto-rows: auto;
  }

  .department-card {
    min-height: 230px;
    padding: 22px;
  }

  .department-card strong,
  .department-card-large strong {
    font-size: 32px;
  }

  .department-card em,
  .department-card-large em {
    font-size: 17px;
  }
}

/* Dashboard-style internal pages */
body:not(.home-page) {
  background: #eef2f8;
  color: #062b61;
}

body:not(.home-page) .original-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 0;
  color: #ffffff;
  background: #083c7f;
  border-bottom: 0;
  box-shadow: 0 8px 28px rgba(5, 34, 78, 0.18);
}

body:not(.home-page) .header-meta {
  min-height: 34px;
  padding: 8px clamp(18px, 2.6vw, 36px);
  background: #062b61;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

body:not(.home-page) .nav-row {
  grid-template-columns: 260px 1fr auto;
  gap: 20px;
  min-height: 74px;
  padding: 0 clamp(18px, 2.6vw, 36px);
  background: linear-gradient(90deg, #074890, #053774);
}

body:not(.home-page) .municipal-brand > img {
  width: 190px;
  max-height: 62px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

body:not(.home-page) .main-nav {
  justify-content: stretch;
  gap: 0;
  min-height: 74px;
  color: #ffffff;
  font-size: 13px;
  text-transform: none;
}

body:not(.home-page) .main-nav a {
  display: grid;
  place-items: center;
  min-height: 74px;
  padding: 0 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

body:not(.home-page) .main-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

body:not(.home-page) .pay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  background: #df2935;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

body:not(.home-page) .content-page {
  min-height: 70vh;
  padding: 18px 0 42px;
  background:
    linear-gradient(90deg, rgba(4, 45, 101, 0.05) 0 240px, transparent 240px),
    #eef2f8;
}

body:not(.home-page) .page-hero {
  width: min(1460px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 24px 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
  border: 1px solid #d8e4f3;
  color: #07346f;
  text-align: left;
  box-shadow: 0 8px 24px rgba(8, 45, 97, 0.08);
}

body:not(.home-page) .page-hero h1 {
  color: #07346f;
  font-size: clamp(26px, 2.8vw, 40px);
  letter-spacing: 0;
}

body:not(.home-page) .municipal-layout {
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  width: min(1460px, calc(100% - 32px));
  margin: 0 auto 42px;
}

body:not(.home-page) .municipal-sidebar {
  position: sticky;
  top: 126px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #075c96;
  box-shadow: 0 12px 30px rgba(6, 40, 90, 0.18);
}

body:not(.home-page) .municipal-sidebar details {
  margin: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(4, 67, 122, 0.58);
}

body:not(.home-page) .municipal-sidebar a,
body:not(.home-page) .municipal-sidebar summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12px;
  line-height: 1.25;
  text-transform: none;
}

body:not(.home-page) .municipal-sidebar summary {
  padding: 14px 14px 10px;
  background: transparent;
  font-size: 13px;
  text-transform: uppercase;
}

body:not(.home-page) .municipal-sidebar details a {
  margin: 0 10px;
  padding: 11px 12px 11px 36px;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body:not(.home-page) .municipal-sidebar details a:hover,
body:not(.home-page) .municipal-sidebar .is-current {
  background: #0a75ce;
  color: #ffffff;
}

body:not(.home-page) .sidebar-home,
body:not(.home-page) .sidebar-tourism {
  margin: 12px;
  border-radius: 6px;
  background: #04447b;
}

body:not(.home-page) .organigrama-content,
body:not(.home-page) .page-panel {
  min-width: 0;
  border: 1px solid #d8e4f3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(8, 45, 97, 0.08);
}

body:not(.home-page) .organigrama-content {
  padding: 24px;
}

body:not(.home-page) .organigrama-content .kicker {
  color: #0a75ce;
  font-size: 12px;
  letter-spacing: 0;
}

body:not(.home-page) .organigrama-content h2 {
  color: #07346f;
  font-size: clamp(28px, 3vw, 44px);
}

body:not(.home-page) .intro-text {
  color: #4c5d76;
}

.portal-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 14px;
}

.portal-summary-grid article {
  min-height: 92px;
  padding: 18px 18px 16px 74px;
  border: 1px solid #d8e4f3;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  position: relative;
}

.portal-summary-grid article::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 21px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a75ce, #58a8ff);
}

.portal-summary-grid span,
.portal-summary-grid strong,
.portal-summary-grid small {
  display: block;
}

.portal-summary-grid span {
  color: #075cc4;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.portal-summary-grid strong {
  margin-top: 4px;
  color: #021f4b;
  font-size: 14px;
  text-transform: uppercase;
}

.portal-summary-grid small {
  margin-top: 3px;
  color: #53647d;
  font-size: 12px;
}

.portal-tool-card {
  margin: 14px 0;
  padding: 18px;
  border: 1px solid #d8e4f3;
  border-radius: 8px;
  background: #ffffff;
}

.portal-tool-card h3 {
  margin: 0 0 14px;
  color: #07346f;
  font-size: 18px;
}

.portal-tool-card label {
  display: block;
  margin-bottom: 7px;
  color: #07346f;
  font-size: 13px;
  font-weight: 900;
}

.portal-tool-card form div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
}

.portal-tool-card input {
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border: 1px solid #cbd9ea;
  border-radius: 5px;
  font: inherit;
  font-weight: 700;
}

.portal-tool-card button,
.portal-tool-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #0a75ce;
  border-radius: 5px;
  background: #0a75ce;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
}

.portal-tool-card a {
  border-color: #cbd9ea;
  background: #ffffff;
  color: #07346f;
}

.portal-tool-card p {
  margin: 8px 0 0;
  color: #4c5d76;
}

body:not(.home-page) .ordinance-tabs {
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid #d8e4f3;
  border-radius: 8px;
  background: #ffffff;
}

body:not(.home-page) .ordinance-tabs a {
  min-height: 58px;
  border-right: 1px solid #e7edf6;
  background: #ffffff;
  box-shadow: none;
  color: #07346f;
  font-size: 13px;
}

body:not(.home-page) .ordinance-tabs a:first-child,
body:not(.home-page) .ordinance-tabs a:hover {
  background: #0a75ce;
  color: #ffffff;
}

body:not(.home-page) .ordinance-section {
  overflow: hidden;
  border: 1px solid #d8e4f3;
  border-radius: 8px;
  background: #ffffff;
}

body:not(.home-page) .ordinance-section h3,
body:not(.home-page) .service-section h3,
body:not(.home-page) .org-section > h3 {
  margin: 0;
  padding: 15px 18px;
  border-bottom: 1px solid #e7edf6;
  background: #ffffff;
  color: #07346f;
  font-size: 18px;
}

body:not(.home-page) .ordinance-list {
  border: 0;
}

body:not(.home-page) .ordinance-list a {
  grid-template-columns: 1fr 78px;
  min-height: 46px;
  border-top: 1px solid #edf2f7;
}

body:not(.home-page) .ordinance-list a:nth-child(even) {
  background: #fbfdff;
}

body:not(.home-page) .ordinance-list span {
  color: #153a70;
  font-size: 13px;
  text-transform: none;
}

body:not(.home-page) .ordinance-list strong {
  border-radius: 4px;
  background: #0a75ce;
}

body:not(.home-page) .page-body {
  width: min(1180px, calc(100% - 32px));
}

body:not(.home-page) .page-panel {
  padding: 24px;
}

body:not(.home-page) .page-panel .button-row a {
  border-radius: 5px;
  background: #0a75ce;
}

body:not(.home-page) .corporation-page {
  min-height: 70vh;
  padding: 18px 0 46px;
  background:
    linear-gradient(90deg, rgba(4, 45, 101, 0.05) 0 240px, transparent 240px),
    #eef2f8;
}

body:not(.home-page) .corporation-hero {
  width: min(1460px, calc(100% - 32px));
  min-height: 150px;
  margin: 0 auto;
  padding: 26px 28px;
  border: 1px solid #d8e4f3;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
  text-align: left;
  box-shadow: 0 8px 24px rgba(8, 45, 97, 0.08);
}

body:not(.home-page) .corporation-hero h1 {
  color: #07346f;
  font-size: clamp(28px, 3vw, 42px);
}

body:not(.home-page) .corporation-intro-card {
  left: auto;
  right: 28px;
  bottom: 24px;
  transform: none;
  width: min(360px, calc(100% - 56px));
  min-height: 88px;
  border: 1px solid #d8e4f3;
  box-shadow: none;
}

body:not(.home-page) .corporation-board {
  width: min(1460px, calc(100% - 32px));
  min-height: 0;
  margin: 18px auto 0;
  padding: 24px;
  border: 1px solid #d8e4f3;
  border-radius: 8px;
  background: #ffffff;
  color: #07346f;
  box-shadow: 0 10px 28px rgba(8, 45, 97, 0.08);
}

body:not(.home-page) .corporation-board h2 {
  color: #07346f;
  text-align: left;
}

body:not(.home-page) .corporation-members {
  width: 100%;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
}

body:not(.home-page) .council-member {
  min-height: 132px;
  padding: 18px;
  border: 1px solid #d8e4f3;
  border-radius: 8px;
  background: #fbfdff;
  color: #07346f;
  text-shadow: none;
}

body:not(.home-page) .council-member h3,
body:not(.home-page) .council-member p {
  color: #07346f;
  text-shadow: none;
}

body:not(.home-page) .member-icon::before,
body:not(.home-page) .member-icon::after {
  background: #0a75ce;
}

@media (max-width: 1100px) {
  body:not(.home-page) .nav-row,
  body:not(.home-page) .municipal-layout,
  .portal-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  body:not(.home-page) .municipal-sidebar {
    position: static;
  }

  body:not(.home-page) .municipal-layout {
    align-items: stretch;
  }

  body:not(.home-page) .corporation-members {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 720px) {
  body:not(.home-page) .nav-row,
  body:not(.home-page) .municipal-layout,
  .portal-summary-grid,
  .portal-tool-card form div,
  body:not(.home-page) .ordinance-tabs {
    grid-template-columns: 1fr;
  }

  body:not(.home-page) .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 100%;
    display: none;
    min-height: auto;
    padding: 10px;
    border-radius: 0 0 8px 8px;
    background: #07346f;
  }

  body:not(.home-page) .main-nav.is-open {
    display: grid;
  }

  body:not(.home-page) .main-nav a {
    min-height: 44px;
  }

  body:not(.home-page) .mobile-menu {
    display: inline-flex;
    justify-content: center;
    justify-self: end;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 6px;
    background: #0a75ce;
    color: #ffffff;
    padding: 10px 14px;
    font-weight: 900;
  }

  body:not(.home-page) .pay-button {
    justify-self: stretch;
  }

  .portal-tool-card button,
  .portal-tool-card a {
    width: 100%;
  }

  body:not(.home-page) .corporation-intro-card {
    position: static;
    margin-top: 18px;
  }

  body:not(.home-page) .corporation-members {
    grid-template-columns: 1fr;
  }
}

/* Reference municipal detail layout */
body:not(.home-page) {
  --detail-blue: #005fcc;
  --detail-navy: #071f4d;
  --detail-text: #061f4f;
  --detail-muted: #53627c;
  --detail-line: #dce5f0;
  --detail-soft: #f3f8ff;
  --icon-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10.5V20h13v-9.5'/%3E%3Cpath d='M9.5 20v-6h5v6'/%3E%3C/svg%3E");
  --icon-bank: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10h18L12 4 3 10Z'/%3E%3Cpath d='M5 10v9M9 10v9M15 10v9M19 10v9M3 20h18'/%3E%3C/svg%3E");
  --icon-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3Ccircle cx='16' cy='8' r='3'/%3E%3Cpath d='M3 19c.5-3.2 2.2-5 5-5s4.5 1.8 5 5M11 19c.5-3.2 2.2-5 5-5s4.5 1.8 5 5'/%3E%3C/svg%3E");
  --icon-services: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 7v10l8 4 8-4V7l-8-4Z'/%3E%3Cpath d='M12 11 4.5 7M12 11l7.5-4M12 11v10'/%3E%3C/svg%3E");
  --icon-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 19 6v5c0 4.8-2.7 8-7 10-4.3-2-7-5.2-7-10V6l7-3Z'/%3E%3Cpath d='m9 12 2 2 4-5'/%3E%3C/svg%3E");
  --icon-megaphone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14h4l10 4V6L8 10H4v4Z'/%3E%3Cpath d='m8 14 2 6h3l-2-6M18 10c1.5.5 2.5 1.2 2.5 2S19.5 13.5 18 14'/%3E%3C/svg%3E");
  --icon-briefcase: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V5h6v2M3 12h18M10 12v2h4v-2'/%3E%3C/svg%3E");
  --icon-leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 4c-7.5.4-12 3.7-13.5 9.5C5.5 17.2 8.2 20 12 20c5.2 0 8.3-6 8-16Z'/%3E%3Cpath d='M6 19c2.5-5 6-8 10.5-10'/%3E%3C/svg%3E");
  --icon-monitor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='11' rx='1.5'/%3E%3Cpath d='M9 20h6M12 16v4'/%3E%3C/svg%3E");
  --icon-folder: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6.5A2.5 2.5 0 0 1 5.5 4H9l2 2h7.5A2.5 2.5 0 0 1 21 8.5v9A2.5 2.5 0 0 1 18.5 20h-13A2.5 2.5 0 0 1 3 17.5v-11Z'/%3E%3C/svg%3E");
  --icon-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13 13 20 4 11V4h7l9 9Z'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.2'/%3E%3C/svg%3E");
  --icon-coins: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='6' rx='7' ry='3'/%3E%3Cpath d='M5 6v5c0 1.7 3.1 3 7 3s7-1.3 7-3V6M5 11v5c0 1.7 3.1 3 7 3s7-1.3 7-3v-5'/%3E%3C/svg%3E");
  --icon-document: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l3 3v15H6V3Z'/%3E%3Cpath d='M14 3v4h4M9 11h6M9 15h6'/%3E%3C/svg%3E");
  --icon-car: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13 7 7h10l2 6M4 13h16v5H4v-5Z'/%3E%3Ccircle cx='7' cy='18' r='1.5'/%3E%3Ccircle cx='17' cy='18' r='1.5'/%3E%3C/svg%3E");
  --icon-house: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10.5V20h13v-9.5M9 20v-6h6v6'/%3E%3C/svg%3E");
  --icon-chart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16M6 17v-5M11 17V8M16 17v-9M6 12l5-4 5 3 4-6'/%3E%3C/svg%3E");
  --icon-helmet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14a8 8 0 0 1 16 0v2H4v-2Z'/%3E%3Cpath d='M9 5v7M15 5v7M3 16h18'/%3E%3C/svg%3E");
  --icon-tree: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23075fd0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 7 10h3l-4 6h5v5h2v-5h5l-4-6h3L12 3Z'/%3E%3C/svg%3E");
  background: #ffffff;
}

body:not(.home-page) .original-header {
  position: sticky;
  top: 0;
  z-index: 3000;
  background: #ffffff;
  color: var(--detail-navy);
  box-shadow: 0 2px 18px rgba(7, 31, 77, 0.08);
}

body:not(.home-page) {
  --home-navy: #062757;
  --home-blue: #075fd0;
  --home-align-width: min(1210px, calc(100% - 140px));
}

body:not(.home-page) .site-standard-header {
  min-height: auto;
  border-bottom: 0;
}

body:not(.home-page) .site-standard-header .topbar {
  min-height: 44px;
  background: #052652;
}

body:not(.home-page) .site-standard-header .topbar-inner {
  min-height: 44px;
}

body:not(.home-page) .site-standard-header .mainbar {
  min-height: 104px;
  background: #ffffff;
}

body:not(.home-page) .site-standard-header .brand {
  min-width: 250px;
}

body:not(.home-page) .site-standard-header .brand img {
  width: 56px;
  height: 70px;
}

body:not(.home-page) .site-standard-header .brand small {
  color: #0a2c62;
  font-size: 13px;
  font-weight: 800;
}

body:not(.home-page) .site-standard-header .brand strong {
  color: #09275a;
  font-size: 23px;
  line-height: 1.02;
  font-weight: 900;
}

body:not(.home-page) .site-standard-header .home-nav {
  justify-content: center;
  gap: clamp(18px, 2vw, 34px);
  color: #08275a;
  font-size: 14px;
  font-weight: 900;
}

body:not(.home-page) .site-standard-header .home-nav a {
  color: #08275a;
  white-space: nowrap;
}

body:not(.home-page) .site-standard-header .home-nav a:hover {
  color: #075fd0;
}

body:not(.home-page) .site-standard-header .pay-cta {
  min-width: 236px;
}

body:not(.home-page) .site-standard-header .search-icon {
  justify-self: end;
}

body:not(.home-page) .header-meta {
  display: flex;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  background: #061f4f;
  color: #ffffff;
  font-size: 13px;
}

body:not(.home-page) .header-meta span {
  display: flex;
  align-items: center;
  width: min(1320px, 100%);
}

body:not(.home-page) .nav-row {
  grid-template-columns: 330px 1fr auto 40px;
  width: min(1320px, calc(100% - 32px));
  min-height: 104px;
  margin: 0 auto;
  padding: 0;
  background: #ffffff;
}

body:not(.home-page) .municipal-brand {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  align-items: center;
}

body:not(.home-page) .municipal-brand > img {
  width: 58px;
  max-height: 76px;
  filter: none;
}

body:not(.home-page) .municipal-brand::after {
  content: "Ayuntamiento de\a Sant Joan de Labritja";
  white-space: pre;
  color: var(--detail-navy);
  font-size: 22px;
  line-height: 1.04;
  font-weight: 900;
}

body:not(.home-page) .main-nav {
  justify-content: center;
  gap: clamp(18px, 2vw, 34px);
  min-height: 104px;
  color: var(--detail-navy);
  font-size: 15px;
  font-weight: 900;
}

body:not(.home-page) .main-nav a {
  display: inline-flex;
  min-height: auto;
  padding: 0;
  border-left: 0;
  color: var(--detail-navy);
}

body:not(.home-page) .main-nav a:hover {
  background: transparent;
  color: var(--detail-blue);
}

body:not(.home-page) .pay-button {
  min-height: 48px;
  max-width: 220px;
  padding: 0 18px;
  border-radius: 7px;
  background: #075fd0;
  font-size: 12px;
  line-height: 1.15;
  text-align: left;
}

body:not(.home-page) .pay-button::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 16px;
  margin-right: 11px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

body:not(.home-page) .nav-row::after {
  content: "";
  justify-self: end;
  align-self: center;
  width: 30px;
  height: 30px;
  background:
    linear-gradient(var(--detail-navy), var(--detail-navy)) 22px 24px / 13px 3px no-repeat;
  border: 3px solid var(--detail-navy);
  border-radius: 50%;
  transform: rotate(45deg);
}

body:not(.home-page) .content-page {
  padding: 0 0 64px;
  background: #ffffff;
}

body:not(.home-page) .page-hero {
  width: 100%;
  min-height: 250px;
  margin: 0;
  padding: 56px max(24px, calc((100% - 1320px) / 2)) 98px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(2, 43, 94, 0.88), rgba(2, 66, 130, 0.66)),
    url("assets/original-site/07-CabeceraIndex.jpg") center / cover;
  color: #ffffff;
  box-shadow: none;
}

body:not(.home-page) .page-hero h1 {
  max-width: 760px;
  margin: 20px 0 0;
  color: #ffffff;
  font-size: clamp(42px, 4vw, 58px);
  line-height: 1;
  text-transform: none;
}

body:not(.home-page) .page-hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.breadcrumb a,
.breadcrumb span {
  color: #ffffff;
}

.breadcrumb span::before {
  content: ">";
  margin-right: 8px;
}

body:not(.home-page) .municipal-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  width: min(1320px, calc(100% - 32px));
  margin: -74px auto 0;
  align-items: start;
}

body:not(.home-page) .municipal-sidebar {
  position: sticky;
  top: 118px;
  overflow: hidden;
  border: 1px solid var(--detail-line);
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(7, 31, 77, 0.08);
}

body:not(.home-page) .municipal-sidebar h2 {
  margin: 0;
  padding: 18px 18px 12px;
  color: #075fd0;
  font-size: 16px;
  text-transform: uppercase;
}

body:not(.home-page) .municipal-sidebar a,
body:not(.home-page) .municipal-sidebar summary {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-bottom: 0;
  color: var(--detail-text);
  font-size: 13px;
  font-weight: 900;
}

body:not(.home-page) .municipal-sidebar a::before,
body:not(.home-page) .municipal-sidebar summary::before {
  content: "";
  width: 17px;
  height: 17px;
  border: 0;
  border-radius: 0;
  background: currentColor;
  -webkit-mask: var(--item-icon, var(--icon-document)) center / contain no-repeat;
  mask: var(--item-icon, var(--icon-document)) center / contain no-repeat;
}

body:not(.home-page) .icon-home {
  --item-icon: var(--icon-home);
}

body:not(.home-page) .icon-bank {
  --item-icon: var(--icon-bank);
  --tab-icon: var(--icon-bank);
}

body:not(.home-page) .icon-users {
  --item-icon: var(--icon-users);
}

body:not(.home-page) .icon-services {
  --item-icon: var(--icon-services);
}

body:not(.home-page) .icon-shield {
  --item-icon: var(--icon-shield);
}

body:not(.home-page) .icon-megaphone {
  --item-icon: var(--icon-megaphone);
}

body:not(.home-page) .icon-briefcase {
  --item-icon: var(--icon-briefcase);
}

body:not(.home-page) .icon-leaf {
  --item-icon: var(--icon-leaf);
}

body:not(.home-page) .icon-monitor {
  --item-icon: var(--icon-monitor);
}

body:not(.home-page) .icon-folder {
  --item-icon: var(--icon-folder);
  --tab-icon: var(--icon-folder);
}

body:not(.home-page) .icon-tag {
  --tab-icon: var(--icon-tag);
}

body:not(.home-page) .icon-coins {
  --tab-icon: var(--icon-coins);
}

body:not(.home-page) .icon-document {
  --tab-icon: var(--icon-document);
}

body:not(.home-page) .municipal-sidebar details {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body:not(.home-page) .municipal-sidebar summary {
  background: #075fd0;
  color: #ffffff;
  list-style: none;
}

body:not(.home-page) .municipal-sidebar summary::-webkit-details-marker {
  display: none;
}

body:not(.home-page) .municipal-sidebar summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

body:not(.home-page) .municipal-sidebar details a {
  display: block;
  min-height: 32px;
  margin: 0;
  padding: 8px 18px 8px 66px;
  background: #ffffff;
  color: #293d66;
  font-size: 12px;
  font-weight: 500;
}

body:not(.home-page) .municipal-sidebar details a::before {
  display: none;
}

body:not(.home-page) .municipal-sidebar > a:not(.sidebar-home) {
  border-top: 1px solid #f0f3f8;
}

body:not(.home-page) .municipal-sidebar > a:not(.sidebar-home)::after {
  content: "";
  justify-self: end;
  width: 7px;
  height: 7px;
  border-right: 2px solid #075fd0;
  border-bottom: 2px solid #075fd0;
  transform: rotate(-45deg);
  opacity: 0;
}

body:not(.home-page) .municipal-sidebar > a:not(.sidebar-home):hover::after {
  opacity: 1;
}

body:not(.home-page) .municipal-sidebar details a:hover,
body:not(.home-page) .municipal-sidebar .is-current,
body:not(.home-page) .sidebar-home:hover {
  background: #eef6ff;
  color: #075fd0;
}

body:not(.home-page) .sidebar-home,
body:not(.home-page) .sidebar-tourism {
  margin: 0;
  border-radius: 0;
  background: #ffffff;
}

body:not(.home-page) .organigrama-content {
  padding: 20px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.home-page) .ordinance-tabs {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  margin: 0 0 30px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body:not(.home-page) .ordinance-tabs a {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  place-items: center start;
  min-height: 58px;
  padding: 0 26px;
  border: 1px solid var(--detail-line);
  border-radius: 5px;
  background: #ffffff;
  color: var(--detail-text);
  font-size: 15px;
  box-shadow: none;
}

body:not(.home-page) .ordinance-tabs a::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  background: currentColor;
  -webkit-mask: var(--tab-icon, var(--icon-document)) center / contain no-repeat;
  mask: var(--tab-icon, var(--icon-document)) center / contain no-repeat;
}

body:not(.home-page) .ordinance-tabs a:first-child,
body:not(.home-page) .ordinance-tabs a:hover {
  border-color: #075fd0;
  background: #075fd0;
  color: #ffffff;
}

body:not(.home-page) .ordinance-section {
  margin-top: 32px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body:not(.home-page) .ordinance-section:first-of-type {
  margin-top: 0;
}

body:not(.home-page) .ordinance-section h3 {
  position: relative;
  display: inline-block;
  margin: 0 0 8px;
  padding: 0 0 8px;
  border: 0;
  background: transparent;
  color: var(--detail-navy);
  font-size: 30px;
  line-height: 1.05;
}

body:not(.home-page) .ordinance-section h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  border-radius: 3px;
  background: #075fd0;
}

body:not(.home-page) .ordinance-section > p {
  margin: 0 0 18px;
  color: var(--detail-muted);
  font-size: 16px;
}

body:not(.home-page) .ordinance-list {
  display: grid;
  gap: 8px;
}

body:not(.home-page) .ordinance-list a {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto 52px;
  grid-template-rows: auto auto;
  gap: 3px 18px;
  align-items: center;
  min-height: 72px;
  padding: 13px 24px 13px 18px;
  border: 1px solid var(--detail-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(7, 31, 77, 0.03);
}

body:not(.home-page) .ordinance-list a:nth-child(even) {
  background: #ffffff;
}

body:not(.home-page) .ordinance-list a::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #e9f4ff;
  background-image: var(--row-icon, var(--icon-document));
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px;
}

body:not(.home-page) .ordinance-list a:nth-child(1) {
  --row-icon: var(--icon-car);
}

body:not(.home-page) .ordinance-list a:nth-child(2) {
  --row-icon: var(--icon-house);
}

body:not(.home-page) .ordinance-list a:nth-child(3) {
  --row-icon: var(--icon-chart);
}

body:not(.home-page) .ordinance-list a:nth-child(4) {
  --row-icon: var(--icon-helmet);
}

body:not(.home-page) .ordinance-list a:nth-child(5) {
  --row-icon: var(--icon-tree);
}

body:not(.home-page) .ordinance-list span {
  grid-column: 2;
  grid-row: 1;
  color: var(--detail-text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: none;
}

body:not(.home-page) .ordinance-list small {
  grid-column: 2;
  grid-row: 2;
  color: var(--detail-muted);
  font-size: 13px;
  line-height: 1.3;
}

body:not(.home-page) .ordinance-list strong {
  grid-column: 3;
  grid-row: 1 / span 2;
  min-width: 110px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #075fd0;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
  text-transform: none;
}

body:not(.home-page) .ordinance-list strong::after {
  content: none;
}

body:not(.home-page) .ordinance-list a::after {
  content: "PDF";
  grid-column: 4;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 46px;
  border: 2px solid #075fd0;
  border-radius: 6px;
  background:
    linear-gradient(135deg, transparent 0 8px, rgba(7, 95, 208, 0.12) 8px 100%) right top / 15px 15px no-repeat,
    #ffffff;
  color: #075fd0;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
}

.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(260px, 100%);
  min-height: 42px;
  margin: 18px auto 0;
  border: 1px solid var(--detail-line);
  border-radius: 8px;
  color: var(--detail-text);
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 1100px) {
  body:not(.home-page) .nav-row,
  body:not(.home-page) .municipal-layout,
  body:not(.home-page) .ordinance-tabs {
    grid-template-columns: 1fr;
  }

  body:not(.home-page) .municipal-layout {
    margin-top: -42px;
  }

  body:not(.home-page) .municipal-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  body:not(.home-page) .nav-row {
    min-height: 96px;
    padding: 12px 0;
  }

  body:not(.home-page) .municipal-brand {
    grid-template-columns: 48px 1fr;
  }

  body:not(.home-page) .municipal-brand::after {
    font-size: 17px;
  }

  body:not(.home-page) .municipal-brand > img {
    width: 45px;
  }

  body:not(.home-page) .nav-row::after {
    display: none;
  }

  body:not(.home-page) .page-hero {
    min-height: 240px;
    padding: 36px 18px 76px;
  }

  body:not(.home-page) .page-hero h1 {
    font-size: 38px;
  }

  body:not(.home-page) .ordinance-list a {
    grid-template-columns: 46px minmax(0, 1fr) 44px;
    padding: 13px 14px;
  }

  body:not(.home-page) .ordinance-list a::before {
    width: 38px;
    height: 38px;
  }

  body:not(.home-page) .ordinance-list span,
  body:not(.home-page) .ordinance-list small {
    grid-column: 2;
  }

  body:not(.home-page) .ordinance-list strong {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
    margin-top: 6px;
    text-align: left;
  }

  body:not(.home-page) .ordinance-list a::after {
    grid-column: 3;
  }
}

body:not(.home-page) .procedures-page {
  background: #f6f9fd;
}

body:not(.home-page) .procedures-hero {
  min-height: 260px;
  padding-bottom: 46px;
  background:
    linear-gradient(90deg, rgba(4, 32, 76, 0.92), rgba(7, 83, 170, 0.62)),
    url("assets/original-site/07-CabeceraIndex.jpg") center / cover;
}

body:not(.home-page) .procedures-hero h1 {
  font-size: clamp(48px, 5vw, 74px);
}

.procedures-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.procedure-detail-page {
  background: #f6f9fd;
}

body:not(.home-page) .procedure-detail-hero {
  min-height: 300px;
  background:
    linear-gradient(90deg, rgba(4, 32, 76, 0.92), rgba(7, 83, 170, 0.58)),
    url("assets/original-site/30-obras2965258.jpeg") center / cover;
}

body:not(.home-page) .procedure-detail-hero h1 {
  max-width: 980px;
  font-size: clamp(38px, 4vw, 58px);
}

.procedure-detail-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: -48px auto 64px;
  align-items: start;
}

.procedure-detail-side,
.procedure-detail-card {
  border: 1px solid #dfe8f5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(19, 55, 108, 0.08);
}

.procedure-detail-side {
  position: sticky;
  top: 170px;
  display: grid;
  gap: 14px;
  padding: 24px;
}

.procedure-badge {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #075fd0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.procedure-detail-side h2 {
  margin: 4px 0 0;
  color: #082d67;
  font-size: 24px;
}

.procedure-detail-side p {
  margin: 0;
  color: #5f6f8c;
  font-weight: 700;
}

.procedure-detail-side a {
  display: inline-flex;
  justify-content: center;
  padding: 12px 14px;
  border: 1px solid #b9d0f4;
  border-radius: 7px;
  color: #075fd0;
  font-size: 13px;
  font-weight: 900;
}

.procedure-downloads {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #dfe8f5;
}

.procedure-downloads > strong {
  color: #082d67;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.procedure-detail-side a.procedure-download-button {
  justify-content: flex-start;
  padding: 12px 14px 12px 42px;
  background:
    linear-gradient(#ffffff, #ffffff) 16px 13px / 14px 18px no-repeat,
    linear-gradient(135deg, transparent 50%, #d5e6ff 0) 26px 13px / 7px 7px no-repeat,
    #075fd0;
  color: #ffffff;
  line-height: 1.25;
  text-align: left;
}

.procedure-link-with-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.procedure-link-with-download > a:first-child {
  min-width: 0;
}

.procedure-generated-link > a:first-child {
  color: #07346f;
}

.is-search-hidden {
  display: none !important;
}

.procedure-search-result {
  grid-column: 1 / -1;
  margin: 0;
  color: #075fd0;
  font-size: 13px;
  font-weight: 900;
}

.procedure-pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  padding: 0 10px;
  border: 1px solid #b9d0f4;
  border-radius: 7px;
  background: #eef6ff;
  color: #075fd0;
  font-size: 12px;
  font-weight: 900;
}

.procedure-pdf-link:hover {
  background: #075fd0;
  color: #ffffff;
}

.procedure-detail-card {
  display: grid;
}

.procedure-detail-card section {
  padding: 28px 34px;
  border-bottom: 1px solid #edf2f9;
}

.procedure-detail-card section:last-child {
  border-bottom: 0;
}

.procedure-detail-card h2 {
  margin: 0 0 14px;
  color: #082d67;
  font-size: 25px;
  line-height: 1.2;
}

.procedure-detail-card p {
  margin: 0;
  color: #314668;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 650;
}

.procedure-generated-panel h2 {
  margin: 26px 0 10px;
  color: #082d67;
  font-size: 24px;
  line-height: 1.15;
}

.procedure-generated-panel h2:first-of-type {
  margin-top: 8px;
}

.procedure-info-grid,
.procedure-download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.procedure-info-grid section,
.procedure-download-grid article {
  padding: 18px;
  border: 1px solid #d8e4f3;
  border-radius: 8px;
  background: #f8fbff;
}

.procedure-info-grid h3 {
  margin: 0 0 10px;
  color: #075fd0;
  font-size: 15px;
  font-weight: 900;
}

.procedure-info-grid ul {
  margin: 0;
  padding-left: 18px;
}

.procedure-download-grid article {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-height: 176px;
}

.procedure-download-grid strong {
  color: #082d67;
  font-size: 14.5px;
  line-height: 1.32;
}

.procedure-download-grid p {
  margin: 0;
  color: #52627c;
  font-size: 13px;
}

.procedure-download-grid .procedure-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  padding: 0 16px;
  border-radius: 6px;
  background: #075fd0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.procedure-note {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 18px;
  border: 1px solid #dfe8f5;
  border-radius: 8px;
  background: #f8fbff;
}

.procedure-note strong {
  color: #075fd0;
  font-size: 15px;
  text-transform: uppercase;
}

.procedure-doc-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.procedure-doc-list li {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 17px 18px 17px 54px;
  border: 1px solid #e3ebf6;
  border-radius: 8px;
  background: #ffffff;
}

.procedure-doc-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 20px;
  height: 24px;
  border: 2px solid #075fd0;
  border-radius: 3px;
}

.procedure-doc-list strong {
  color: #082d67;
  font-size: 15px;
}

.procedure-doc-list span {
  color: #53627b;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}

@media (max-width: 900px) {
  .procedure-detail-shell {
    grid-template-columns: 1fr;
    margin-top: -34px;
  }

  .procedure-detail-side {
    position: static;
  }

  .procedure-info-grid,
  .procedure-download-grid {
    grid-template-columns: 1fr;
  }
}

.sports-area-page {
  background: #f6f9fd;
  color: #06295f;
}

.sports-page {
  background: #f6f9fd;
}

.sports-hero {
  position: relative;
  min-height: 510px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.sports-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 28, 67, 0.92), rgba(7, 87, 175, 0.52) 58%, rgba(4, 28, 67, 0.25));
}

.sports-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sports-hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 74px;
  color: #ffffff;
}

.sports-hero .breadcrumb {
  margin-bottom: 28px;
}

.sports-hero .breadcrumb a,
.sports-hero .breadcrumb span {
  color: #ffffff;
}

.sports-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: #9fd5ff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.sports-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: 0;
}

.sports-hero p {
  max-width: 690px;
  margin: 22px 0 0;
  color: #edf6ff;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}

.sports-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.sports-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 7px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.sports-actions a:first-child {
  border-color: #075fd0;
  background: #075fd0;
}

.sports-overview {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: -44px auto 0;
  overflow: hidden;
  border: 1px solid #dbe6f4;
  border-radius: 10px;
  background: #dbe6f4;
  box-shadow: 0 18px 42px rgba(12, 51, 106, 0.14);
}

.sports-overview article {
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 28px;
  background: #ffffff;
}

.sports-overview span,
.section-title span,
.sports-facility-card span,
.sports-info-panel > div:first-child span {
  color: #075fd0;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.sports-overview strong {
  color: #082d67;
  font-size: 22px;
  line-height: 1.15;
}

.sports-overview p {
  margin: 0;
  color: #53627b;
  line-height: 1.5;
  font-weight: 650;
}

.sports-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 0;
}

.sports-intro-section {
  padding-top: 58px;
}

.section-title {
  display: grid;
  gap: 8px;
}

.section-title h2 {
  margin: 0;
  color: #082d67;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.05;
}

.sports-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-top: 26px;
  align-items: stretch;
}

.sports-copy,
.sports-contact-card,
.sports-info-panel,
.sports-side-panel {
  border: 1px solid #dfe8f5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(19, 55, 108, 0.08);
}

.sports-copy {
  display: grid;
  gap: 18px;
  padding: 34px;
}

.sports-copy p {
  margin: 0;
  color: #314668;
  font-size: 17px;
  line-height: 1.68;
  font-weight: 650;
}

.sports-contact-card {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 30px;
}

.sports-contact-card h3,
.sports-side-panel h2 {
  margin: 0 0 6px;
  color: #082d67;
  font-size: 24px;
  line-height: 1.15;
}

.sports-contact-card p {
  margin: 0;
  color: #425577;
  font-weight: 700;
}

.sports-contact-card a,
.sports-side-panel a {
  color: #075fd0;
  font-weight: 900;
}

.sports-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.sports-outline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid #b7cdf0;
  border-radius: 7px;
  color: #075fd0;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.sports-facility-card {
  overflow: hidden;
  border: 1px solid #dfe8f5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(19, 55, 108, 0.08);
}

.sports-facility-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.sports-facility-card div {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.sports-facility-card h3 {
  margin: 0;
  color: #082d67;
  font-size: 24px;
  line-height: 1.1;
}

.sports-facility-card p {
  margin: 0;
  min-height: 68px;
  color: #52617b;
  line-height: 1.55;
  font-weight: 650;
}

.sports-facility-card a {
  width: fit-content;
  color: #075fd0;
  font-size: 13px;
  font-weight: 900;
}

.sports-info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  padding-bottom: 72px;
  align-items: start;
}

.sports-info-main {
  display: grid;
  gap: 18px;
}

.sports-info-panel {
  display: grid;
  gap: 20px;
  padding: 30px;
}

.sports-info-panel h2 {
  margin: 5px 0 0;
  color: #082d67;
  font-size: 30px;
  line-height: 1.12;
}

.sports-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sports-details-grid div {
  padding: 18px;
  border: 1px solid #e4edf8;
  border-radius: 8px;
  background: #f8fbff;
}

.sports-details-grid h3 {
  margin: 0 0 10px;
  color: #082d67;
  font-size: 18px;
}

.sports-details-grid p {
  margin: 0 0 8px;
  color: #435675;
  line-height: 1.48;
  font-weight: 650;
}

.sports-details-grid p:last-child {
  margin-bottom: 0;
}

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

.sports-price-list p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 15px 18px;
  border: 1px solid #e4edf8;
  border-radius: 8px;
  background: #f8fbff;
}

.sports-price-list strong {
  color: #082d67;
}

.sports-price-list span {
  color: #075fd0;
  font-size: 20px;
  font-weight: 900;
}

.sports-side-panel {
  position: sticky;
  top: 168px;
  display: grid;
  gap: 13px;
  padding: 24px;
}

.sports-side-panel a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #dbe6f4;
  border-radius: 7px;
  background: #f8fbff;
}

@media (max-width: 980px) {
  .sports-overview,
  .sports-intro-grid,
  .sports-info-layout {
    grid-template-columns: 1fr;
  }

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

  .sports-side-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .sports-hero {
    min-height: 470px;
  }

  .sports-hero-content {
    padding: 58px 0 56px;
  }

  .sports-hero h1 {
    font-size: 58px;
  }

  .sports-hero p {
    font-size: 17px;
  }

  .sports-actions a,
  .sports-outline-link {
    width: 100%;
  }

  .sports-heading-row {
    display: grid;
  }

  .sports-facility-grid,
  .sports-details-grid {
    grid-template-columns: 1fr;
  }

  .sports-overview article,
  .sports-copy,
  .sports-contact-card,
  .sports-info-panel {
    padding: 22px;
  }
}

.social-area-page {
  background: #f7f9fc;
  color: #082d67;
}

.social-page {
  background: #f7f9fc;
}

.social-hero {
  position: relative;
  min-height: 500px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.social-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 31, 75, 0.94), rgba(7, 95, 208, 0.54) 56%, rgba(184, 43, 62, 0.26));
}

.social-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 70px;
  color: #ffffff;
}

.social-hero .breadcrumb {
  margin-bottom: 26px;
}

.social-hero .breadcrumb a,
.social-hero .breadcrumb span {
  color: #ffffff;
}

.social-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: #ffd6de;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.social-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(50px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: 0;
}

.social-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: #f5f8ff;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}

.social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.social-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 7px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.social-actions a:first-child {
  border-color: #d92b4c;
  background: #d92b4c;
}

.social-contact-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: -44px auto 0;
  overflow: hidden;
  border: 1px solid #dfe8f5;
  border-radius: 10px;
  background: #dfe8f5;
  box-shadow: 0 18px 42px rgba(12, 51, 106, 0.14);
}

.social-contact-strip article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 136px;
  padding: 28px;
  background: #ffffff;
}

.social-contact-strip span,
.social-title span,
.social-service-card span,
.social-panel-heading span {
  color: #d92b4c;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.social-contact-strip strong {
  color: #082d67;
  font-size: 22px;
  line-height: 1.15;
}

.social-contact-strip p {
  margin: 0;
  color: #53627b;
  line-height: 1.5;
  font-weight: 650;
}

.social-contact-strip a {
  color: #075fd0;
  font-weight: 800;
}

.social-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 0;
}

.social-title {
  display: grid;
  gap: 8px;
}

.social-title h2 {
  margin: 0;
  color: #082d67;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.05;
}

.social-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  margin-top: 26px;
  align-items: stretch;
}

.social-intro-copy,
.social-photo-card,
.social-detail-panel,
.social-side-nav {
  border: 1px solid #dfe8f5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(19, 55, 108, 0.08);
}

.social-intro-copy {
  display: grid;
  gap: 18px;
  padding: 34px;
}

.social-intro-copy p {
  margin: 0;
  color: #314668;
  font-size: 17px;
  line-height: 1.68;
  font-weight: 650;
}

.social-photo-card {
  overflow: hidden;
  min-height: 300px;
}

.social-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.social-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.social-outline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid #f1b9c4;
  border-radius: 7px;
  color: #d92b4c;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.social-service-card {
  overflow: hidden;
  border: 1px solid #dfe8f5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(19, 55, 108, 0.08);
}

.social-service-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.social-service-card div {
  display: grid;
  gap: 9px;
  padding: 23px;
}

.social-service-card strong {
  color: #082d67;
  font-size: 23px;
  line-height: 1.12;
}

.social-service-card small {
  min-height: 58px;
  color: #53627b;
  font-size: 14px;
  line-height: 1.48;
  font-weight: 650;
}

.social-content-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 26px;
  padding-bottom: 72px;
  align-items: start;
}

.social-side-nav {
  position: sticky;
  top: 168px;
  display: grid;
  gap: 10px;
  padding: 24px;
}

.social-side-nav h2 {
  margin: 0 0 8px;
  color: #082d67;
  font-size: 24px;
}

.social-side-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid #dfe8f5;
  border-radius: 7px;
  background: #f8fbff;
  color: #075fd0;
  font-size: 13px;
  font-weight: 900;
}

.social-detail-stack {
  display: grid;
  gap: 18px;
}

.social-detail-panel {
  display: grid;
  gap: 22px;
  padding: 30px;
  scroll-margin-top: 150px;
}

.social-panel-heading {
  display: grid;
  gap: 10px;
}

.social-panel-heading h2 {
  margin: 0;
  color: #082d67;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
}

.social-panel-heading p {
  margin: 0;
  color: #405271;
  font-size: 16px;
  line-height: 1.62;
  font-weight: 650;
}

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

.social-two-columns section {
  padding: 20px;
  border: 1px solid #e4edf8;
  border-radius: 8px;
  background: #f8fbff;
}

.social-two-columns h3 {
  margin: 0 0 12px;
  color: #082d67;
  font-size: 20px;
}

.social-two-columns ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: #425575;
  line-height: 1.48;
  font-weight: 650;
}

.social-price {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff0f3;
  color: #9d1730;
  font-weight: 900;
}

.social-community-panel {
  overflow: hidden;
}

.social-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.social-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

@media (max-width: 980px) {
  .social-contact-strip,
  .social-intro-grid,
  .social-content-layout {
    grid-template-columns: 1fr;
  }

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

  .social-side-nav {
    position: static;
  }
}

@media (max-width: 680px) {
  .social-hero {
    min-height: 470px;
  }

  .social-hero-content {
    padding: 58px 0 56px;
  }

  .social-hero h1 {
    font-size: 48px;
  }

  .social-hero p {
    font-size: 17px;
  }

  .social-actions a,
  .social-outline-link {
    width: 100%;
  }

  .social-heading-row {
    display: grid;
  }

  .social-card-grid,
  .social-two-columns,
  .social-gallery {
    grid-template-columns: 1fr;
  }

  .social-contact-strip article,
  .social-intro-copy,
  .social-detail-panel {
    padding: 22px;
  }
}

.secretary-area-page {
  background: #f6f9fd;
  color: #082d67;
}

.secretary-page {
  background: #f6f9fd;
}

.secretary-hero {
  position: relative;
  min-height: 500px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.secretary-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 30, 73, 0.95), rgba(7, 95, 208, 0.58) 58%, rgba(5, 24, 56, 0.32));
}

.secretary-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.secretary-hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 70px;
  color: #ffffff;
}

.secretary-hero .breadcrumb {
  margin-bottom: 26px;
}

.secretary-hero .breadcrumb a,
.secretary-hero .breadcrumb span {
  color: #ffffff;
}

.secretary-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: #a9d8ff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.secretary-hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(54px, 6vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

.secretary-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #edf6ff;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}

.secretary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.secretary-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 7px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.secretary-actions a:first-child {
  border-color: #075fd0;
  background: #075fd0;
}

.secretary-summary {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: -44px auto 0;
  overflow: hidden;
  border: 1px solid #dfe8f5;
  border-radius: 10px;
  background: #dfe8f5;
  box-shadow: 0 18px 42px rgba(12, 51, 106, 0.14);
}

.secretary-summary article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 136px;
  padding: 28px;
  background: #ffffff;
}

.secretary-summary span,
.secretary-title span,
.secretary-function-card span,
.secretary-detail-panel > div:first-child span {
  color: #075fd0;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.secretary-summary strong {
  color: #082d67;
  font-size: 22px;
  line-height: 1.15;
}

.secretary-summary p {
  margin: 0;
  color: #53627b;
  line-height: 1.5;
  font-weight: 650;
}

.secretary-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 0;
}

.secretary-title {
  display: grid;
  gap: 8px;
}

.secretary-title h2 {
  margin: 0;
  color: #082d67;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.05;
}

.secretary-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-top: 26px;
  align-items: stretch;
}

.secretary-copy,
.secretary-contact-card,
.secretary-function-card,
.secretary-detail-panel,
.secretary-side-nav {
  border: 1px solid #dfe8f5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(19, 55, 108, 0.08);
}

.secretary-copy {
  display: grid;
  gap: 18px;
  padding: 34px;
}

.secretary-copy p {
  margin: 0;
  color: #314668;
  font-size: 17px;
  line-height: 1.68;
  font-weight: 650;
}

.secretary-contact-card {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 30px;
}

.secretary-contact-card h3,
.secretary-side-nav h2 {
  margin: 0 0 6px;
  color: #082d67;
  font-size: 24px;
  line-height: 1.15;
}

.secretary-contact-card p {
  margin: 0;
  color: #425577;
  font-weight: 700;
}

.secretary-contact-card a,
.secretary-side-nav a {
  color: #075fd0;
  font-weight: 900;
}

.secretary-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.secretary-outline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid #b7cdf0;
  border-radius: 7px;
  color: #075fd0;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.secretary-function-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 26px;
}

.secretary-function-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eaf3ff;
}

.secretary-function-card strong {
  color: #082d67;
  font-size: 23px;
  line-height: 1.12;
}

.secretary-function-card small {
  color: #53627b;
  font-size: 14px;
  line-height: 1.48;
  font-weight: 650;
}

.secretary-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 26px;
  padding-bottom: 72px;
  align-items: start;
}

.secretary-side-nav {
  position: sticky;
  top: 168px;
  display: grid;
  gap: 10px;
  padding: 24px;
}

.secretary-side-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid #dfe8f5;
  border-radius: 7px;
  background: #f8fbff;
  color: #075fd0;
  font-size: 13px;
  font-weight: 900;
}

.secretary-detail-stack {
  display: grid;
  gap: 18px;
}

.secretary-detail-panel {
  display: grid;
  gap: 20px;
  padding: 30px;
  scroll-margin-top: 150px;
}

.secretary-detail-panel > div:first-child {
  display: grid;
  gap: 10px;
}

.secretary-detail-panel h2 {
  margin: 0;
  color: #082d67;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
}

.secretary-detail-panel p {
  margin: 0;
  color: #405271;
  font-size: 16px;
  line-height: 1.62;
  font-weight: 650;
}

.secretary-detail-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 20px 20px 20px 38px;
  border: 1px solid #e4edf8;
  border-radius: 8px;
  background: #f8fbff;
  color: #425575;
  line-height: 1.5;
  font-weight: 650;
}

.secretary-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.secretary-inline-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #b7cdf0;
  border-radius: 7px;
  color: #075fd0;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .secretary-summary,
  .secretary-intro-grid,
  .secretary-layout {
    grid-template-columns: 1fr;
  }

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

  .secretary-side-nav {
    position: static;
  }
}

@media (max-width: 680px) {
  .secretary-hero {
    min-height: 470px;
  }

  .secretary-hero-content {
    padding: 58px 0 56px;
  }

  .secretary-hero h1 {
    font-size: 52px;
  }

  .secretary-hero p {
    font-size: 17px;
  }

  .secretary-actions a,
  .secretary-outline-link {
    width: 100%;
  }

  .secretary-heading-row {
    display: grid;
  }

  .secretary-function-grid {
    grid-template-columns: 1fr;
  }

  .secretary-summary article,
  .secretary-copy,
  .secretary-contact-card,
  .secretary-function-card,
  .secretary-detail-panel {
    padding: 22px;
  }
}

.cadastre-area-page {
  background: #f4faf8;
  color: #082d67;
}

.cadastre-page {
  background: #f4faf8;
}

.cadastre-hero {
  position: relative;
  min-height: 500px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.cadastre-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 39, 72, 0.95), rgba(0, 104, 94, 0.62) 58%, rgba(4, 39, 72, 0.32));
}

.cadastre-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cadastre-hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 70px;
  color: #ffffff;
}

.cadastre-hero .breadcrumb {
  margin-bottom: 26px;
}

.cadastre-hero .breadcrumb a,
.cadastre-hero .breadcrumb span {
  color: #ffffff;
}

.cadastre-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: #a9f2df;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.cadastre-hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(54px, 6vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

.cadastre-hero p {
  max-width: 780px;
  margin: 22px 0 0;
  color: #efffff;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}

.cadastre-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.cadastre-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 7px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.cadastre-actions a:first-child {
  border-color: #008f7c;
  background: #008f7c;
}

.cadastre-quick {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: -44px auto 0;
  overflow: hidden;
  border: 1px solid #d6e8e5;
  border-radius: 10px;
  background: #d6e8e5;
  box-shadow: 0 18px 42px rgba(7, 68, 77, 0.14);
}

.cadastre-quick article {
  display: grid;
  gap: 8px;
  min-height: 172px;
  padding: 28px;
  background: #ffffff;
}

.cadastre-quick span,
.cadastre-title span,
.cadastre-service-card span,
.cadastre-detail-panel > div:first-child span {
  color: #008f7c;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.cadastre-quick strong {
  color: #082d67;
  font-size: 22px;
  line-height: 1.15;
}

.cadastre-quick p {
  margin: 0;
  color: #53627b;
  line-height: 1.5;
  font-weight: 650;
}

.cadastre-quick a {
  width: fit-content;
  margin-top: 4px;
  color: #008f7c;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.cadastre-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 0;
}

.cadastre-title {
  display: grid;
  gap: 8px;
}

.cadastre-title h2 {
  margin: 0;
  color: #082d67;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.05;
}

.cadastre-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-top: 26px;
}

.cadastre-copy,
.cadastre-contact-card,
.cadastre-service-card,
.cadastre-detail-panel,
.cadastre-side-nav {
  border: 1px solid #d6e8e5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(7, 68, 77, 0.08);
}

.cadastre-copy {
  display: grid;
  gap: 18px;
  padding: 34px;
}

.cadastre-copy p {
  margin: 0;
  color: #314668;
  font-size: 17px;
  line-height: 1.68;
  font-weight: 650;
}

.cadastre-contact-card {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 30px;
}

.cadastre-contact-card h3,
.cadastre-side-nav h2 {
  margin: 0 0 6px;
  color: #082d67;
  font-size: 24px;
  line-height: 1.15;
}

.cadastre-contact-card p {
  margin: 0;
  color: #425577;
  font-weight: 700;
}

.cadastre-contact-card a,
.cadastre-side-nav a {
  color: #008f7c;
  font-weight: 900;
}

.cadastre-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.cadastre-outline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid #9bd4ca;
  border-radius: 7px;
  color: #008f7c;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.cadastre-service-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 26px;
}

.cadastre-service-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e4f7f3;
}

.cadastre-service-card strong {
  color: #082d67;
  font-size: 23px;
  line-height: 1.12;
}

.cadastre-service-card small {
  color: #53627b;
  font-size: 14px;
  line-height: 1.48;
  font-weight: 650;
}

.cadastre-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 26px;
  padding-bottom: 72px;
  align-items: start;
}

.cadastre-side-nav {
  position: sticky;
  top: 168px;
  display: grid;
  gap: 10px;
  padding: 24px;
}

.cadastre-side-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid #d6e8e5;
  border-radius: 7px;
  background: #f6fcfb;
  color: #008f7c;
  font-size: 13px;
  font-weight: 900;
}

.cadastre-detail-stack {
  display: grid;
  gap: 18px;
}

.cadastre-detail-panel {
  display: grid;
  gap: 20px;
  padding: 30px;
  scroll-margin-top: 150px;
}

.cadastre-detail-panel > div:first-child {
  display: grid;
  gap: 10px;
}

.cadastre-detail-panel h2 {
  margin: 0;
  color: #082d67;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
}

.cadastre-detail-panel p {
  margin: 0;
  color: #405271;
  font-size: 16px;
  line-height: 1.62;
  font-weight: 650;
}

.cadastre-detail-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 20px 20px 20px 38px;
  border: 1px solid #d6e8e5;
  border-radius: 8px;
  background: #f6fcfb;
  color: #425575;
  line-height: 1.5;
  font-weight: 650;
}

.cadastre-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cadastre-link-row a,
.cadastre-tools-grid a {
  border: 1px solid #9bd4ca;
  border-radius: 7px;
  color: #008f7c;
  font-size: 13px;
  font-weight: 900;
}

.cadastre-link-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-transform: uppercase;
}

.cadastre-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cadastre-tools-grid a {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: #f6fcfb;
}

.cadastre-tools-grid strong {
  color: #082d67;
  font-size: 17px;
}

.cadastre-tools-grid small {
  color: #53627b;
  line-height: 1.45;
  font-weight: 650;
}

@media (max-width: 980px) {
  .cadastre-quick,
  .cadastre-intro-grid,
  .cadastre-layout {
    grid-template-columns: 1fr;
  }

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

  .cadastre-side-nav {
    position: static;
  }
}

@media (max-width: 680px) {
  .cadastre-hero {
    min-height: 470px;
  }

  .cadastre-hero-content {
    padding: 58px 0 56px;
  }

  .cadastre-hero h1 {
    font-size: 52px;
  }

  .cadastre-hero p {
    font-size: 17px;
  }

  .cadastre-actions a,
  .cadastre-outline-link {
    width: 100%;
  }

  .cadastre-heading-row {
    display: grid;
  }

  .cadastre-service-grid,
  .cadastre-tools-grid {
    grid-template-columns: 1fr;
  }

  .cadastre-quick article,
  .cadastre-copy,
  .cadastre-contact-card,
  .cadastre-service-card,
  .cadastre-detail-panel {
    padding: 22px;
  }
}

.police-area-page {
  background: #f6f8fc;
  color: #082d67;
}

.police-page {
  background: #f6f8fc;
}

.police-hero {
  position: relative;
  min-height: 500px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.police-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 26, 62, 0.95), rgba(7, 81, 178, 0.58) 56%, rgba(167, 26, 42, 0.36));
}

.police-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.police-hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 70px;
  color: #ffffff;
}

.police-hero .breadcrumb {
  margin-bottom: 26px;
}

.police-hero .breadcrumb a,
.police-hero .breadcrumb span {
  color: #ffffff;
}

.police-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: #b9dcff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.police-hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(52px, 6vw, 90px);
  line-height: 0.95;
  letter-spacing: 0;
}

.police-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #edf6ff;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}

.police-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.police-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 7px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.police-actions a:first-child {
  border-color: #075fd0;
  background: #075fd0;
}

.police-contact-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: -44px auto 0;
  overflow: hidden;
  border: 1px solid #dfe8f5;
  border-radius: 10px;
  background: #dfe8f5;
  box-shadow: 0 18px 42px rgba(12, 51, 106, 0.14);
}

.police-contact-strip article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 136px;
  padding: 28px;
  background: #ffffff;
}

.police-contact-strip span,
.police-title span,
.police-procedure-card span,
.police-detail-panel > div:first-child span {
  color: #c91f3a;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.police-contact-strip strong {
  color: #082d67;
  font-size: 22px;
  line-height: 1.15;
}

.police-contact-strip p {
  margin: 0;
  color: #53627b;
  line-height: 1.5;
  font-weight: 650;
}

.police-contact-strip a {
  color: #075fd0;
  font-weight: 800;
}

.police-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 0;
}

.police-title {
  display: grid;
  gap: 8px;
}

.police-title h2 {
  margin: 0;
  color: #082d67;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.05;
}

.police-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-top: 26px;
}

.police-copy,
.police-quality-card,
.police-procedure-card,
.police-detail-panel,
.police-side-nav {
  border: 1px solid #dfe8f5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(19, 55, 108, 0.08);
}

.police-copy {
  display: grid;
  gap: 18px;
  padding: 34px;
}

.police-copy p {
  margin: 0;
  color: #314668;
  font-size: 17px;
  line-height: 1.68;
  font-weight: 650;
}

.police-quality-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 30px;
}

.police-quality-card h3,
.police-side-nav h2 {
  margin: 0 0 6px;
  color: #082d67;
  font-size: 24px;
  line-height: 1.15;
}

.police-quality-card p {
  margin: 0;
  color: #425577;
  line-height: 1.5;
  font-weight: 700;
}

.police-quality-card a,
.police-side-nav a {
  color: #075fd0;
  font-weight: 900;
}

.police-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.police-outline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid #b7cdf0;
  border-radius: 7px;
  color: #075fd0;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.police-procedure-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 26px;
}

.police-procedure-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff0f3;
}

.police-procedure-card strong {
  color: #082d67;
  font-size: 23px;
  line-height: 1.12;
}

.police-procedure-card small {
  color: #53627b;
  font-size: 14px;
  line-height: 1.48;
  font-weight: 650;
}

.police-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 26px;
  padding-bottom: 72px;
  align-items: start;
}

.police-side-nav {
  position: sticky;
  top: 168px;
  display: grid;
  gap: 10px;
  padding: 24px;
}

.police-side-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid #dfe8f5;
  border-radius: 7px;
  background: #f8fbff;
  color: #075fd0;
  font-size: 13px;
  font-weight: 900;
}

.police-detail-stack {
  display: grid;
  gap: 18px;
}

.police-detail-panel {
  display: grid;
  gap: 20px;
  padding: 30px;
  scroll-margin-top: 150px;
}

.police-detail-panel > div:first-child {
  display: grid;
  gap: 10px;
}

.police-detail-panel h2 {
  margin: 0;
  color: #082d67;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
}

.police-detail-panel p {
  margin: 0;
  color: #405271;
  font-size: 16px;
  line-height: 1.62;
  font-weight: 650;
}

.police-detail-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 20px 20px 20px 38px;
  border: 1px solid #e4edf8;
  border-radius: 8px;
  background: #f8fbff;
  color: #425575;
  line-height: 1.5;
  font-weight: 650;
}

.police-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.police-link-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #b7cdf0;
  border-radius: 7px;
  color: #075fd0;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .police-contact-strip,
  .police-intro-grid,
  .police-layout {
    grid-template-columns: 1fr;
  }

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

  .police-side-nav {
    position: static;
  }
}

@media (max-width: 680px) {
  .police-hero {
    min-height: 470px;
  }

  .police-hero-content {
    padding: 58px 0 56px;
  }

  .police-hero h1 {
    font-size: 48px;
  }

  .police-hero p {
    font-size: 17px;
  }

  .police-actions a,
  .police-outline-link {
    width: 100%;
  }

  .police-heading-row {
    display: grid;
  }

  .police-procedure-grid {
    grid-template-columns: 1fr;
  }

  .police-contact-strip article,
  .police-copy,
  .police-quality-card,
  .police-procedure-card,
  .police-detail-panel {
    padding: 22px;
  }
}

.environment-area-page {
  background: #f5fbf6;
  color: #082d67;
}

.environment-page {
  background: #f5fbf6;
}

.environment-hero {
  position: relative;
  min-height: 500px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.environment-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 41, 45, 0.95), rgba(0, 112, 75, 0.58) 58%, rgba(6, 51, 24, 0.28));
}

.environment-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.environment-hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 70px;
  color: #ffffff;
}

.environment-hero .breadcrumb {
  margin-bottom: 26px;
}

.environment-hero .breadcrumb a,
.environment-hero .breadcrumb span {
  color: #ffffff;
}

.environment-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: #baf5cf;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.environment-hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(50px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: 0;
}

.environment-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #effff5;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}

.environment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.environment-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 7px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.environment-actions a:first-child {
  border-color: #0a8f57;
  background: #0a8f57;
}

.environment-contact-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: -44px auto 0;
  overflow: hidden;
  border: 1px solid #d7eadb;
  border-radius: 10px;
  background: #d7eadb;
  box-shadow: 0 18px 42px rgba(17, 84, 49, 0.14);
}

.environment-contact-strip article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 136px;
  padding: 28px;
  background: #ffffff;
}

.environment-contact-strip span,
.environment-title span,
.environment-procedure-card span,
.environment-detail-panel > div:first-child span {
  color: #0a8f57;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.environment-contact-strip strong {
  color: #082d67;
  font-size: 22px;
  line-height: 1.15;
}

.environment-contact-strip p {
  margin: 0;
  color: #53627b;
  line-height: 1.5;
  font-weight: 650;
}

.environment-contact-strip a {
  color: #0a8f57;
  font-weight: 800;
}

.environment-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 0;
}

.environment-title {
  display: grid;
  gap: 8px;
}

.environment-title h2 {
  margin: 0;
  color: #082d67;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.05;
}

.environment-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-top: 26px;
}

.environment-copy,
.environment-info-card,
.environment-procedure-card,
.environment-detail-panel,
.environment-side-nav {
  border: 1px solid #d7eadb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 84, 49, 0.08);
}

.environment-copy {
  display: grid;
  gap: 18px;
  padding: 34px;
}

.environment-copy p {
  margin: 0;
  color: #314668;
  font-size: 17px;
  line-height: 1.68;
  font-weight: 650;
}

.environment-info-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 30px;
}

.environment-info-card h3,
.environment-side-nav h2 {
  margin: 0 0 6px;
  color: #082d67;
  font-size: 24px;
  line-height: 1.15;
}

.environment-info-card p {
  margin: 0;
  color: #425577;
  font-weight: 700;
}

.environment-info-card a,
.environment-side-nav a {
  color: #0a8f57;
  font-weight: 900;
}

.environment-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.environment-outline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid #a6d9b7;
  border-radius: 7px;
  color: #0a8f57;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.environment-procedure-card {
  display: grid;
  gap: 12px;
  min-height: 196px;
  padding: 24px;
}

.environment-procedure-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e8f8ed;
}

.environment-procedure-card strong {
  color: #082d67;
  font-size: 21px;
  line-height: 1.12;
}

.environment-procedure-card small {
  color: #53627b;
  font-size: 14px;
  line-height: 1.48;
  font-weight: 650;
}

.environment-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 26px;
  padding-bottom: 72px;
  align-items: start;
}

.environment-side-nav {
  position: sticky;
  top: 168px;
  display: grid;
  gap: 10px;
  padding: 24px;
}

.environment-side-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid #d7eadb;
  border-radius: 7px;
  background: #f7fcf8;
  color: #0a8f57;
  font-size: 13px;
  font-weight: 900;
}

.environment-detail-stack {
  display: grid;
  gap: 18px;
}

.environment-detail-panel {
  display: grid;
  gap: 20px;
  padding: 30px;
  scroll-margin-top: 150px;
}

.environment-detail-panel > div:first-child {
  display: grid;
  gap: 10px;
}

.environment-detail-panel h2 {
  margin: 0;
  color: #082d67;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
}

.environment-detail-panel p {
  margin: 0;
  color: #405271;
  font-size: 16px;
  line-height: 1.62;
  font-weight: 650;
}

.environment-link-row,
.environment-tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.environment-link-row a,
.environment-tools-grid a {
  border: 1px solid #a6d9b7;
  border-radius: 7px;
  color: #0a8f57;
  font-size: 13px;
  font-weight: 900;
}

.environment-link-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-transform: uppercase;
}

.environment-highlight {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid #d7eadb;
  border-radius: 8px;
  background: #f7fcf8;
}

.environment-highlight strong {
  color: #082d67;
  font-size: 18px;
}

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

.environment-tools-grid a {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: #f7fcf8;
}

.environment-tools-grid strong {
  color: #082d67;
  font-size: 17px;
}

.environment-tools-grid small {
  color: #53627b;
  line-height: 1.45;
  font-weight: 650;
}

@media (max-width: 1100px) {
  .environment-procedure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .environment-contact-strip,
  .environment-intro-grid,
  .environment-layout {
    grid-template-columns: 1fr;
  }

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

  .environment-side-nav {
    position: static;
  }
}

@media (max-width: 680px) {
  .environment-hero {
    min-height: 470px;
  }

  .environment-hero-content {
    padding: 58px 0 56px;
  }

  .environment-hero h1 {
    font-size: 44px;
  }

  .environment-hero p {
    font-size: 17px;
  }

  .environment-actions a,
  .environment-outline-link {
    width: 100%;
  }

  .environment-heading-row {
    display: grid;
  }

  .environment-procedure-grid,
  .environment-tools-grid {
    grid-template-columns: 1fr;
  }

  .environment-contact-strip article,
  .environment-copy,
  .environment-info-card,
  .environment-procedure-card,
  .environment-detail-panel {
    padding: 22px;
  }
}

.municipal-services-area-page {
  background: #f6f9fd;
  color: #082d67;
}

.municipal-services-page {
  background: #f6f9fd;
}

.municipal-services-hero {
  position: relative;
  min-height: 500px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.municipal-services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 30, 73, 0.95), rgba(7, 95, 208, 0.56) 58%, rgba(4, 30, 73, 0.26));
}

.municipal-services-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.municipal-services-hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 70px;
  color: #ffffff;
}

.municipal-services-hero .breadcrumb {
  margin-bottom: 26px;
}

.municipal-services-hero .breadcrumb a,
.municipal-services-hero .breadcrumb span {
  color: #ffffff;
}

.municipal-services-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: #a9d8ff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.municipal-services-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

.municipal-services-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #edf6ff;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}

.municipal-services-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.municipal-services-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 7px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.municipal-services-actions a:first-child {
  border-color: #075fd0;
  background: #075fd0;
}

.municipal-services-summary {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: -44px auto 0;
  overflow: hidden;
  border: 1px solid #dfe8f5;
  border-radius: 10px;
  background: #dfe8f5;
  box-shadow: 0 18px 42px rgba(12, 51, 106, 0.14);
}

.municipal-services-summary article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 136px;
  padding: 28px;
  background: #ffffff;
}

.municipal-services-summary span,
.municipal-services-title span,
.municipal-service-card span {
  color: #075fd0;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.municipal-services-summary strong {
  color: #082d67;
  font-size: 22px;
  line-height: 1.15;
}

.municipal-services-summary p {
  margin: 0;
  color: #53627b;
  line-height: 1.5;
  font-weight: 650;
}

.municipal-services-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 0;
}

.municipal-services-title {
  display: grid;
  gap: 8px;
}

.municipal-services-title h2 {
  margin: 0;
  color: #082d67;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.05;
}

.municipal-services-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-top: 26px;
}

.municipal-services-copy,
.municipal-services-contact-card,
.municipal-service-card {
  border: 1px solid #dfe8f5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(19, 55, 108, 0.08);
}

.municipal-services-copy {
  display: grid;
  gap: 18px;
  padding: 34px;
}

.municipal-services-copy p {
  margin: 0;
  color: #314668;
  font-size: 17px;
  line-height: 1.68;
  font-weight: 650;
}

.municipal-services-contact-card {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 30px;
}

.municipal-services-contact-card h3 {
  margin: 0 0 6px;
  color: #082d67;
  font-size: 24px;
  line-height: 1.15;
}

.municipal-services-contact-card p {
  margin: 0;
  color: #425577;
  font-weight: 700;
}

.municipal-services-contact-card a {
  color: #075fd0;
  font-weight: 900;
}

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

.municipal-services-tabs a,
.municipal-services-outline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid #b7cdf0;
  border-radius: 7px;
  color: #075fd0;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.municipal-services-tabs a:first-child {
  border-color: #075fd0;
  background: #075fd0;
  color: #ffffff;
}

.municipal-services-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.municipal-services-outline-link {
  min-height: 50px;
  white-space: nowrap;
}

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

.municipal-service-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 26px;
  border-left: 5px solid #168bd4;
}

.municipal-service-card-wide {
  min-height: 220px;
}

.municipal-service-card h3 {
  margin: 0;
  color: #082d67;
  font-size: 24px;
  line-height: 1.1;
}

.municipal-service-card p {
  margin: 0;
  color: #405271;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 650;
}

.municipal-service-card strong {
  color: #082d67;
}

.municipal-service-card a {
  width: fit-content;
  margin-top: 4px;
  padding: 10px 13px;
  border-radius: 6px;
  background: #168bd4;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .municipal-services-summary,
  .municipal-services-intro-grid,
  .municipal-services-tabs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .municipal-services-hero {
    min-height: 470px;
  }

  .municipal-services-hero-content {
    padding: 58px 0 56px;
  }

  .municipal-services-hero h1 {
    font-size: 44px;
  }

  .municipal-services-hero p {
    font-size: 17px;
  }

  .municipal-services-actions a,
  .municipal-services-outline-link {
    width: 100%;
  }

  .municipal-services-heading-row {
    display: grid;
  }

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

  .municipal-services-summary article,
  .municipal-services-copy,
  .municipal-services-contact-card,
  .municipal-service-card {
    padding: 22px;
  }
}

/* Global alignment layer: keep the main content width consistent across the site. */
:root {
  --site-container: min(1180px, calc(100% - 48px));
  --site-container-narrow: min(1180px, calc(100% - 48px));
}

.home-page {
  --home-align-width: var(--site-container);
  --home-wide-width: var(--site-container);
}

.topbar-inner,
.mainbar,
.hero-content,
.quick-access,
.home-news-preview,
.section-heading,
.home-card-grid,
.area-heading,
.area-grid,
.area-mini-grid,
.procedure-row,
.home-news-grid,
.home-map,
.footer-inner,
.copyright,
.module-grid,
.department-grid,
.procedures,
.news-grid,
.map-section,
.procedure-search-panel,
.procedure-summary,
.procedure-directory,
.news-page,
.admin-news-shell,
.news-detail-page,
.areas-directory,
.sports-hero-content,
.sports-intro,
.sports-facilities,
.social-hero-content,
.social-services-layout,
.social-programs,
.secretary-hero-content,
.secretary-layout,
.secretary-services,
.cadastre-hero-content,
.cadastre-layout,
.cadastre-services,
.police-hero-content,
.police-layout,
.police-services,
.environment-hero-content,
.environment-layout,
.environment-services,
.municipal-services-hero-content,
.municipal-services-layout,
.municipal-services-summary {
  width: var(--site-container);
  max-width: var(--site-container);
  margin-right: auto;
  margin-left: auto;
}

body:not(.home-page) .site-standard-header .topbar-inner,
body:not(.home-page) .site-standard-header .mainbar,
body:not(.home-page) .municipal-layout,
body:not(.home-page) .corporation-hero,
body:not(.home-page) .corporation-board {
  width: var(--site-container);
  max-width: var(--site-container);
  margin-right: auto;
  margin-left: auto;
}

body:not(.home-page) .page-hero {
  padding-right: max(24px, calc((100% - 1180px) / 2));
  padding-left: max(24px, calc((100% - 1180px) / 2));
}

.tax-banner-new {
  padding-right: max(24px, calc((100% - 1180px) / 2));
  padding-left: max(24px, calc((100% - 1180px) / 2));
}

@media (max-width: 760px) {
  :root {
    --site-container: calc(100% - 28px);
    --site-container-narrow: calc(100% - 28px);
  }

  body:not(.home-page) .page-hero {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 1100px) {
  .news-feature-layout {
    grid-template-columns: 1fr;
  }

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

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

  .org-intro-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .corporation-summary-panel {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

@media (max-width: 760px) {
  .news-page {
    width: min(100% - 28px, 1180px);
    padding-top: 24px;
  }

  .news-page-heading h1 {
    font-size: 38px;
  }

  .news-feature-card img {
    aspect-ratio: 1.55 / 1;
  }

  .news-feature-content {
    padding: 20px;
  }

  .news-side-item {
    grid-template-columns: 54px minmax(0, 1fr) 14px;
    gap: 12px;
    padding: 15px;
  }

  .news-side-item time {
    width: 48px;
  }

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

  .admin-news-shell {
    width: min(100% - 28px, 1180px);
    padding-top: 24px;
  }

  .admin-news-heading,
  .admin-news-form,
  .admin-news-help,
  .admin-news-current {
    padding: 20px;
  }

  .admin-news-form,
  .admin-news-item {
    grid-template-columns: 1fr;
  }

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

  .admin-news-item img {
    width: 100%;
    height: 160px;
  }

  .org-mayor-panel {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .org-representatives,
  .org-grid {
    grid-template-columns: 1fr;
  }

  .org-representatives div:last-child {
    grid-column: auto;
  }

  .corporation-modern-grid,
  .corporation-opposition-grid,
  .corporation-stats {
    grid-template-columns: 1fr;
  }

  .corporation-summary-panel,
  .corporation-group {
    padding: 20px;
  }
}


.hero-search {
  position: relative;
  z-index: 30;
  overflow: visible;
}

.site-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10000;
  display: grid;
  overflow: auto;
  max-height: min(460px, 58vh);
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(0, 24, 72, 0.22);
}

.site-search-results[hidden] {
  display: none;
}


.site-search-ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 10px;
  border-bottom: 1px solid #dce8f8;
  background: linear-gradient(90deg, #f7fbff 0%, #ffffff 100%);
  color: #082d67;
}

.site-search-ai-head span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #075fd0;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.site-search-ai-head strong {
  color: #52627c;
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.site-search-result {
  display: grid;
  gap: 3px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5edf8;
  color: #082d67;
}

.site-search-result:last-child {
  border-bottom: 0;
}

.site-search-result:hover,
.site-search-result:focus {
  background: #f3f8ff;
}

.site-search-result span {
  color: #075fd0;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.site-search-result strong {
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
}

.site-search-result small {
  overflow: hidden;
  color: #52627c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-search-empty {
  margin: 0;
  padding: 14px 16px;
  color: #52627c;
  font-size: 13px;
  font-weight: 800;
}

.routes-site-page .routes-home-hero {
  min-height: 560px;
}

.routes-site-page .routes-hero::before {
  background: linear-gradient(90deg, rgba(4, 41, 45, 0.96), rgba(0, 105, 91, 0.66) 54%, rgba(5, 47, 76, 0.18));
}

.routes-site-page .routes-quick-access {
  margin-bottom: 0;
}

.routes-site-page .routes-summary {
  margin-top: 34px;
}

.routes-site-page .routes-townhall-cta {
  background: linear-gradient(135deg, #0a8f57, #087253);
  box-shadow: 0 8px 18px rgba(10, 143, 87, 0.24);
}

.routes-site-page .routes-quick-access .line-icon {
  color: #0a8f57;
}

.routes-site-page .routes-link-row {
  margin-top: 0;
}

.routes-site-page .home-footer {
  margin-top: 0;
}

.routes-index-heading {
  margin-top: 54px;
}

.routes-index-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.routes-gr-index-grid {
  grid-template-columns: 1.35fr repeat(2, minmax(0, 1fr));
}

.routes-gr-index-grid .routes-feature-card {
  min-height: 260px;
}

.routes-gr-info-card,
.routes-gr-summary article {
  border: 1px solid #bfd8f2;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(6, 39, 87, 0.08);
}

.routes-gr-info-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 260px;
  padding: 28px;
}

.routes-gr-info-card span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e9f7ee;
  color: #00894f;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.routes-gr-info-card h3 {
  margin: 0;
  color: #082d67;
  font-size: 23px;
  line-height: 1.15;
}

.routes-gr-info-card p {
  margin: 0;
  color: #253c62;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.55;
}

.routes-gr-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.routes-gr-summary article {
  padding: 18px;
}

.routes-gr-summary strong,
.routes-gr-summary span {
  display: block;
}

.routes-gr-summary strong {
  color: #082d67;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.routes-gr-summary span {
  margin-top: 8px;
  color: #53627b;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

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

.routes-feature-card {
  min-height: 286px;
  background:
    linear-gradient(135deg, rgba(4, 35, 82, 0.88), rgba(5, 115, 85, 0.72)),
    url("assets/original-site/20-RutesWeb.png") center / cover;
}

.routes-feature-bike {
  background:
    linear-gradient(135deg, rgba(3, 65, 58, 0.9), rgba(10, 143, 87, 0.76)),
    url("assets/original-site/34-tree-3616892_1920.jpeg") center / cover;
}

.routes-feature-service {
  background:
    linear-gradient(135deg, rgba(4, 32, 76, 0.9), rgba(7, 95, 208, 0.62)),
    url("assets/original-site/12-WebTurismo.jpg") center / cover;
}

.routes-feature-signage {
  background:
    linear-gradient(135deg, rgba(6, 39, 87, 0.88), rgba(10, 143, 87, 0.7)),
    url("imagenes/fotosRutas/Ruta2-360x460.jpg") center / cover;
}

.routes-ordinance-banner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
  background: #082d67;
}

.routes-ordinance-banner div {
  max-width: 820px;
}

.routes-ordinance-banner .line-icon {
  color: #ffffff;
}

.routes-service-row {
  margin-top: 0;
}

.routes-service-row a {
  min-height: 150px;
}

.routes-service-row small {
  max-width: 190px;
  margin: 0 auto;
  line-height: 1.35;
}

.routes-regulation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: var(--site-container);
  max-width: var(--site-container);
  margin: 26px auto 0;
}

.routes-regulation-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 214px;
  padding: 24px;
  border: 1px solid #d7eadb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(17, 84, 49, 0.07);
}

.routes-regulation-grid span,
.routes-contact-strip span {
  color: #0a8f57;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.routes-regulation-grid h3 {
  margin: 0;
  color: #082d67;
  font-size: 22px;
  line-height: 1.12;
}

.routes-regulation-grid p {
  margin: 0;
  color: #405271;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 650;
}

.routes-signup-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  box-sizing: border-box;
  width: var(--site-container);
  max-width: var(--site-container);
  margin: 28px auto 52px;
  padding: 28px;
  border: 1px solid #bdd7ef;
  border-left: 7px solid var(--route-blue);
  border-radius: 8px;
  background: #f1f7ff;
  box-shadow: 0 14px 30px rgba(6, 39, 87, 0.06);
}

.routes-signup-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.routes-signup-copy span {
  color: var(--route-blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.routes-signup-copy h2 {
  margin: 0;
  color: #082d67;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.routes-signup-copy p {
  margin: 0;
  color: #405271;
  font-weight: 700;
  line-height: 1.5;
}

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

.routes-signup-form label {
  display: grid;
  gap: 7px;
  color: #082d67;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.routes-signup-form [hidden] {
  display: none !important;
}

.routes-signup-form input,
.routes-signup-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #bfd8f2;
  border-radius: 6px;
  background: #ffffff;
  color: #082d67;
  font: 700 15px/1 Arial, Helvetica, sans-serif;
}

.routes-signup-form input[type="file"] {
  min-height: auto;
  padding: 12px 13px;
}

.routes-signup-form label small {
  color: #53627b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

.routes-signup-form input:focus,
.routes-signup-form select:focus {
  outline: 3px solid rgba(7, 95, 208, 0.16);
  border-color: #075fd0;
}

.routes-signup-wide {
  grid-column: 1 / -1;
}

.routes-signup-legal {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid var(--route-blue);
  background: #ffffff;
  color: #405271;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 750;
  text-align: left;
  text-align-last: left;
}

.routes-signup-privacy {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid #bdd7ef;
  border-radius: 8px;
  background: #ffffff;
  color: #405271;
  font-size: 14px;
  line-height: 1.45;
  text-transform: none;
}

.routes-signup-privacy input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  padding: 0;
}

.routes-signup-privacy a {
  color: var(--route-blue);
  font-weight: 950;
  text-decoration: none;
}

.routes-signup-form button {
  align-self: end;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: #075fd0;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.routes-signup-form button:hover {
  background: #004db8;
}

.routes-signup-form button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.routes-signup-status {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: #405271;
  font-size: 14px;
  font-weight: 850;
}

.routes-signup-status.is-success {
  color: #0a8f57;
}

.routes-signup-status.is-error {
  color: #b42318;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 20, 48, 0.62);
}

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

.privacy-modal-open {
  overflow: hidden;
}

.privacy-modal-panel {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(720px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: 34px;
  border: 1px solid #bdd7ef;
  border-left: 7px solid var(--route-blue);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(3, 20, 48, 0.32);
}

.privacy-modal-panel > span {
  color: var(--route-blue);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.privacy-modal-panel h2 {
  margin: 0;
  color: var(--route-navy);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.privacy-modal-panel p {
  margin: 0;
  color: #405271;
  font-size: 15px;
  line-height: 1.62;
  font-weight: 700;
  text-align: justify;
}

.privacy-modal-panel a {
  justify-self: start;
  margin-top: 4px;
  color: var(--route-blue);
  font-weight: 950;
  text-decoration: none;
}

.privacy-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--route-navy);
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}

.routes-home-map {
  margin-top: 0;
  margin-bottom: 34px;
}

.routes-contact-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  width: var(--site-container);
  max-width: var(--site-container);
  margin: 0 auto 52px;
  padding: 24px;
  border: 1px solid #d7eadb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 84, 49, 0.08);
}

.routes-contact-strip article {
  display: grid;
  gap: 6px;
}

.routes-contact-strip strong {
  color: #082d67;
  font-size: 23px;
  line-height: 1.15;
}

.routes-contact-strip p {
  max-width: 720px;
  margin: 0;
  color: #53627b;
  font-weight: 650;
  line-height: 1.45;
}

.routes-contact-strip > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 7px;
  background: #0a8f57;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.routes-contact-strip > a:last-child {
  border: 1px solid #a6d9b7;
  background: #ffffff;
  color: #0a8f57;
}

@media (max-width: 1100px) {
  .routes-index-grid,
  .routes-regulation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .routes-gr-index-grid,
  .routes-gr-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .routes-contact-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .routes-index-grid,
  .routes-gr-index-grid,
  .routes-gr-summary,
  .routes-regulation-grid {
    grid-template-columns: 1fr;
  }

  .routes-gis-map {
    min-height: 440px;
  }

  .routes-gis-map .leaflet-control-layers {
    max-height: 220px;
    font-size: 12px;
  }

  .routes-ordinance-banner {
    display: grid;
  }

  .routes-contact-strip {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
    padding: 20px;
  }

.routes-contact-strip > a {
    width: 100%;
  }
}

.route-detail-page {
  background: #f5fbf7;
  color: #082d67;
}

.route-detail-hero {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.route-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 41, 45, 0.95), rgba(0, 105, 91, 0.62) 56%, rgba(4, 32, 76, 0.18));
}

.route-detail-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
}

.route-detail-hero-content,
.route-detail-summary,
.route-detail-layout,
.gr-stage-section,
.route-next-steps {
  width: min(1180px, calc(100% - 48px));
  max-width: min(1180px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.route-detail-hero-content {
  padding: 76px 0 64px;
  color: #ffffff;
}

.route-detail-hero .breadcrumb {
  margin-bottom: 22px;
}

.route-detail-hero .breadcrumb a,
.route-detail-hero .breadcrumb span {
  color: #ffffff;
}

.route-detail-hero h1 {
  max-width: 920px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(44px, 5vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.route-detail-hero p {
  max-width: 820px;
  margin: 20px 0 0;
  color: #effff5;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 700;
}

.route-detail-summary {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: -34px;
  overflow: hidden;
  border: 1px solid #d7eadb;
  border-radius: 10px;
  background: #d7eadb;
  box-shadow: 0 18px 42px rgba(17, 84, 49, 0.14);
}

.route-detail-summary article {
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 24px;
  background: #ffffff;
}

.route-detail-summary span,
.route-map-head span,
.route-info-panel > span {
  color: #0a8f57;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.route-detail-summary strong {
  color: #082d67;
  font-size: 22px;
  line-height: 1.15;
}

.route-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  padding: 58px 0 0;
}

.route-map-panel,
.route-info-panel {
  border: 1px solid #d7eadb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 84, 49, 0.08);
}

.route-map-panel {
  padding: 24px;
}

.route-map-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.route-map-head h2,
.route-info-panel h2 {
  margin: 6px 0 0;
  color: #082d67;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
}

.route-map-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.route-map-head a,
.route-info-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 7px;
  background: #0a8f57;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.route-info-panel a {
  min-height: 0;
  padding: 0;
  background: transparent;
  color: #0a8f57;
  text-transform: none;
  white-space: normal;
}

.route-map-canvas {
  overflow: hidden;
  border: 1px solid #cfe7d5;
  border-radius: 8px;
  background: #eef8f1;
}

.route-leaflet-map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(420px, 54vw, 620px);
  min-height: 420px;
  background: #dfe9e2;
}

.route-leaflet-map .leaflet-control-layers,
.route-leaflet-map .leaflet-control-zoom {
  border: 0;
  box-shadow: 0 8px 22px rgba(8, 45, 103, 0.16);
}

.route-leaflet-map .leaflet-control-layers {
  border-radius: 7px;
  color: #082d67;
  font-size: 13px;
  font-weight: 800;
}

.route-leaflet-map .leaflet-control-attribution {
  color: #405271;
  font-size: 10px;
}

.route-map-canvas > p {
  margin: 0;
  padding: 32px;
  color: #405271;
  font-weight: 800;
}

.route-svg-map {
  display: block;
  width: 100%;
  height: auto;
  min-height: 420px;
}

.route-svg-bg {
  fill: #eef8f1;
}

.route-svg-grid {
  fill: none;
  stroke: rgba(10, 143, 87, 0.14);
  stroke-width: 1.5;
}

.route-svg-line polyline {
  fill: none;
  stroke: #075fd0;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 12px rgba(7, 95, 208, 0.22));
}

.route-svg-point {
  stroke: #ffffff;
  stroke-width: 4;
}

.route-svg-start {
  fill: #0a8f57;
}

.route-svg-end {
  fill: #e79d19;
}

.route-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid #cfe7d5;
  color: #53627b;
  font-size: 13px;
  font-weight: 800;
}

.route-map-legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 50%;
  background: #0a8f57;
}

.route-map-legend span:nth-child(2)::before {
  background: #e79d19;
}

.route-official-sheet {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  color: #082d67;
  font-weight: 900;
}

.route-official-sheet img {
  width: 100%;
  max-height: 520px;
  border: 1px solid #cfe7d5;
  border-radius: 8px;
  object-fit: contain;
  object-position: top center;
  background: #f7fcf8;
}

.route-info-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.route-info-panel dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.route-info-panel dl div {
  padding: 14px;
  border: 1px solid #d7eadb;
  border-radius: 8px;
  background: #f7fcf8;
}

.route-info-panel dt {
  color: #667792;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.route-info-panel dd {
  margin: 5px 0 0;
  color: #082d67;
  font-weight: 850;
}

.route-info-panel p {
  margin: 0;
  color: #405271;
  line-height: 1.55;
  font-weight: 650;
}

.route-info-panel .route-federation-link {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  min-height: 0;
  padding: 12px;
  border: 1px solid #d7eadb;
  border-radius: 8px;
  background: #ffffff;
  color: #082d67;
  text-transform: none;
  white-space: normal;
}

.route-federation-link img {
  grid-row: span 2;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.route-federation-link span {
  color: #082d67;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.route-federation-link strong {
  color: #0a8f57;
  font-size: 12px;
  text-transform: uppercase;
}

.route-direction-list {
  display: grid;
  gap: 12px;
}

.route-direction-list h3 {
  margin: 0;
  color: #082d67;
  font-size: 22px;
}

.route-direction-list article {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d7eadb;
  border-radius: 8px;
  background: #ffffff;
}

.route-direction-list strong {
  color: #082d67;
  font-size: 16px;
}

.route-direction-list dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.route-next-steps {
  padding-bottom: 60px;
}

.gr-stage-section {
  padding: 56px 0 0;
}

.gr-stage-section[hidden] {
  display: none;
}

.gr-stage-home {
  padding-bottom: 10px;
}

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

.gr-stage-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d7eadb;
  border-radius: 8px;
  background: #ffffff;
  color: #082d67;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(17, 84, 49, 0.08);
}

.gr-stage-card img {
  width: 100%;
  aspect-ratio: 2 / 2.75;
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
  background: #f1f7f2;
}

.gr-stage-card span {
  color: #0a8f57;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gr-stage-card strong {
  min-height: 48px;
  color: #082d67;
  font-size: 16px;
  line-height: 1.25;
}

.gr-stage-card small {
  color: #53627b;
  font-size: 13px;
  font-weight: 900;
}

.green-bike-page {
  background: #f4fbf6;
}

.green-bike-hero .route-detail-hero-photo {
  object-position: center center;
}

.green-bike-summary article strong {
  font-size: 20px;
}

.green-bike-map-section,
.green-bike-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.green-bike-map-section {
  padding: 18px 0 0;
}

.green-bike-map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 600px;
  min-height: 600px;
  overflow: hidden;
  border: 1px solid #cfe8d7;
  border-radius: 8px;
  background: #eaf5ee;
}

.green-bike-map > p {
  margin: 0;
  padding: 24px;
  color: #082d67;
  font-weight: 850;
}

.green-bike-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 28px 0 64px;
}

.green-bike-grid article {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 24px;
  border: 1px solid #d7eadb;
  border-radius: 8px;
  background: #ffffff;
  color: #082d67;
  box-shadow: 0 16px 36px rgba(17, 84, 49, 0.08);
}

.green-bike-grid span {
  color: #0a8f57;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.green-bike-grid h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
}

.green-bike-grid p {
  margin: 0;
  color: #405271;
  line-height: 1.55;
  font-weight: 650;
}

.green-bike-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #405271;
  font-weight: 700;
  line-height: 1.45;
}

.green-bike-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.green-bike-downloads a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: #0a8f57;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.green-bike-signage-panel {
  grid-column: 1 / -1;
}

.routes-green-signage-index {
  width: var(--site-container);
  max-width: var(--site-container);
  margin: 18px auto 42px;
}

.green-signage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.green-signage-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d7eadb;
  border-radius: 8px;
  background: #f7fcf8;
  box-shadow: none;
}

.green-signage-grid img {
  width: 100%;
  height: 132px;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
}

.green-signage-grid strong {
  color: #082d67;
  font-size: 15px;
  line-height: 1.15;
}

.green-signage-grid small {
  color: #405271;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .route-detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .green-bike-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .green-signage-grid {
    grid-template-columns: 1fr;
  }
}

/* Senderismo V1 visual proposal: Ayuntamiento-inspired route portal. */
.routes-site-page {
  --route-navy: #062757;
  --route-blue: #075fd0;
  --route-green: #0a8f57;
  --route-soft: #f4f9f7;
  --route-line: #cfe1f4;
  --route-shadow: 0 14px 34px rgba(6, 39, 87, 0.11);
  background:
    radial-gradient(circle at 10% 8%, rgba(10, 143, 87, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0, #f6fbff 420px, #f4f9f7 100%);
}

.routes-site-page p,
.routes-site-page small,
.routes-site-page li {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.routes-site-page nav a,
.routes-site-page button,
.routes-site-page .routes-actions a,
.routes-site-page .routes-outline-link,
.routes-site-page .routes-text-link,
.routes-site-page .area-card-link,
.routes-site-page .quick-access strong,
.routes-site-page .routes-gis-downloads a {
  text-align: center;
  text-align-last: center;
}

.routes-site-page .home-header {
  box-shadow: 0 2px 18px rgba(6, 39, 87, 0.14);
}

.routes-site-page .topbar {
  background: var(--route-navy);
  font-size: 12px;
}

.routes-site-page .topbar-inner {
  min-height: 33px;
}

.routes-site-page .mainbar {
  grid-template-columns: auto 1fr auto auto 36px;
  min-height: 82px;
  background: #ffffff;
}

.routes-site-page .brand img {
  width: 48px;
  height: 58px;
}

.routes-site-page .brand strong {
  color: var(--route-navy);
  font-size: 24px;
}

.routes-site-page .home-nav {
  color: var(--route-navy);
  font-size: 13px;
}

.routes-site-page .pay-cta {
  background: linear-gradient(135deg, var(--route-blue), #0055c4);
  box-shadow: 0 8px 18px rgba(7, 95, 208, 0.22);
}

.routes-signup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 7px;
  background: #0a8f57;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(10, 143, 87, 0.24);
  white-space: nowrap;
}

.routes-signup-button:hover {
  background: #087253;
}

.routes-site-page .routes-home-hero {
  min-height: 560px;
  align-items: center;
}

.routes-site-page .routes-hero::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(6, 39, 87, 0.9) 0%, rgba(6, 39, 87, 0.72) 40%, rgba(6, 39, 87, 0.16) 76%),
    linear-gradient(180deg, rgba(6, 39, 87, 0.04), rgba(6, 39, 87, 0.2));
}

.routes-site-page .routes-hero-media {
  z-index: -1;
  background: #062757;
}

.routes-site-page .routes-hero-video {
  object-position: center center;
  filter: saturate(1.06) contrast(1.03);
}

.routes-site-page .routes-hero-content {
  position: relative;
  z-index: 1;
  padding: 96px 0 138px;
}

.routes-site-page .routes-kicker {
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.routes-site-page .routes-hero h1 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.98;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.38);
}

.routes-site-page .routes-hero em {
  display: block;
  margin-top: 8px;
  color: #b7f4d5;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(22px, 2.4vw, 34px);
  font-style: normal;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.routes-site-page .routes-hero p {
  max-width: 640px;
  margin-top: 20px;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
}

.routes-site-page .routes-actions a {
  border-radius: 5px;
  background: var(--route-green);
  box-shadow: 0 9px 20px rgba(10, 143, 87, 0.28);
}

.routes-site-page .routes-actions a:last-child {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(6, 39, 87, 0.2);
  box-shadow: none;
}

.routes-site-page .routes-quick-access {
  position: relative;
  z-index: 3;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: -58px;
  border: 1px solid #d7e5f4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--route-shadow);
}

.routes-site-page .routes-quick-access a {
  min-height: 112px;
  padding-right: 8px;
  padding-left: 8px;
  border-right: 1px solid #d7e5f4;
  color: var(--route-navy);
}

.routes-site-page .routes-quick-access strong {
  font-size: 12px;
  line-height: 1.22;
}

.routes-site-page .routes-quick-access a:last-child {
  border-right: 0;
}

.routes-site-page .routes-quick-access .line-icon {
  color: var(--route-blue);
}

.routes-news-showcase,
.routes-site-page .routes-summary,
.routes-site-page .routes-section,
.routes-site-page .gr-stage-section {
  width: var(--site-container);
  max-width: var(--site-container);
  margin-left: auto;
  margin-right: auto;
}

.routes-news-showcase {
  margin-top: 46px;
}

.routes-text-link {
  color: var(--route-blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.routes-news-grid article,
.routes-card-grid .route-card,
.routes-site-page .gr-stage-card {
  overflow: hidden;
  border: 1px solid #bfd8f2;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(6, 39, 87, 0.08);
}

.routes-news-grid img,
.route-card > img {
  width: 100%;
  height: 178px;
  object-fit: cover;
}

.routes-news-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-bottom: 18px;
}

.routes-news-grid span {
  justify-self: start;
  margin: 0 16px;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--route-blue);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.routes-news-grid article:nth-child(1) span,
.routes-news-grid article:nth-child(3) span {
  background: var(--route-green);
}

.routes-news-grid h3,
.routes-news-grid p,
.routes-news-grid a {
  margin-left: 16px;
  margin-right: 16px;
}

.routes-news-grid h3 {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--route-navy);
  font-size: 19px;
}

.routes-news-grid p {
  margin-top: 0;
  margin-bottom: 0;
  color: #405271;
  font-weight: 650;
  line-height: 1.45;
}

.routes-news-grid a {
  color: var(--route-blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.routes-site-page .routes-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.routes-site-page .routes-summary article {
  border: 1px solid #cce2d8;
  background: rgba(255, 255, 255, 0.86);
}

.routes-site-page .routes-title h2,
.routes-index-heading h2 {
  color: var(--route-navy);
  font-size: clamp(31px, 3vw, 42px);
  line-height: 1.08;
}

.routes-site-page .routes-title span,
.routes-index-heading p {
  color: var(--route-green);
}

.routes-site-page .routes-copy,
.routes-site-page .routes-info-card,
.route-homologation-panel,
.routes-regulation-grid article,
.routes-contact-strip {
  border: 1px solid #cfe2d7;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(6, 39, 87, 0.06);
}

.routes-site-page .routes-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.routes-card-grid .route-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto auto;
  gap: 11px;
  min-height: 0;
  padding: 0 16px 16px;
}

.routes-site-page .routes-card-grid .route-card-feature {
  grid-column: auto;
  min-height: 0;
}

.routes-site-page .routes-card-grid .route-card > img {
  display: block;
  width: calc(100% + 32px);
  max-width: none;
  height: 170px;
  margin-right: -16px;
  margin-left: -16px;
  justify-self: start;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid #d8e8f7;
}

.routes-site-page .routes-card-grid .route-card p {
  min-height: 74px;
}

.routes-card-grid .route-card span {
  margin-top: 4px;
  color: var(--route-green);
}

.routes-card-grid .route-card h3 {
  color: var(--route-navy);
  font-size: 21px;
}

.routes-card-grid .route-card dl {
  background: #f0f8f4;
}

.routes-card-grid .route-card a {
  border-radius: 4px;
  background: var(--route-blue);
}

.routes-card-grid .route-card::before {
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: var(--route-green);
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 5px 12px rgba(6, 39, 87, 0.22);
}

.routes-card-grid .route-card:nth-child(1)::before { content: "1"; }
.routes-card-grid .route-card:nth-child(2)::before { content: "2"; }
.routes-card-grid .route-card:nth-child(3)::before { content: "3"; }
.routes-card-grid .route-card:nth-child(4)::before { content: "4"; }
.routes-card-grid .route-card:nth-child(5)::before { content: "5"; }
.routes-card-grid .route-card:nth-child(6)::before { content: "6"; }
.routes-card-grid .route-card:nth-child(7)::before { content: "7"; }

.routes-card-grid .route-card-sig::before {
  content: "SIG";
  width: 46px;
  font-size: 14px;
}

.routes-card-grid .route-card-sig {
  border-color: #9ed4bf;
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf7 100%);
}

.routes-site-page .routes-feature-card {
  border: 1px solid #bdd7ef;
  border-radius: 7px;
}

.routes-feature-gr {
  background:
    linear-gradient(135deg, rgba(6, 39, 87, 0.88), rgba(7, 95, 208, 0.55)),
    url("imagenes/fotosRutas/PuertoSAnMiguel.jpg") center / cover;
}

.routes-feature-bike {
  background:
    linear-gradient(135deg, rgba(6, 39, 87, 0.72), rgba(10, 143, 87, 0.76)),
    url("imagenes/fotosRutas/CampoBosque.jpg") center / cover;
}

.routes-feature-service {
  background:
    linear-gradient(135deg, rgba(6, 39, 87, 0.82), rgba(7, 95, 208, 0.62)),
    url("imagenes/fotosRutas/FotoBenirras-01.jpeg") center / cover;
}

.routes-feature-signage {
  background:
    linear-gradient(135deg, rgba(6, 39, 87, 0.86), rgba(10, 143, 87, 0.72)),
    url("imagenes/fotosRutas/Ruta2-360x460.jpg") center / cover;
}

/* Bloques visuales diferenciados para portada de rutas. */
.routes-site-page .routes-block,
.routes-site-page .routes-block-heading,
.routes-site-page .routes-block-gr-body,
.routes-site-page .routes-block-gr-stage,
.routes-site-page .routes-block-green-body,
.routes-site-page .routes-block-green-signage,
.routes-site-page .routes-block-bike-kicker,
.routes-site-page .routes-block-bike-body,
.routes-site-page .routes-block-bike-regulations {
  position: relative;
  z-index: 0;
}

.routes-site-page .routes-block::before,
.routes-site-page .routes-block-heading::before,
.routes-site-page .routes-block-gr-body::before,
.routes-site-page .routes-block-gr-stage::before,
.routes-site-page .routes-block-green-body::before,
.routes-site-page .routes-block-green-signage::before,
.routes-site-page .routes-block-bike-kicker::before,
.routes-site-page .routes-block-bike-body::before,
.routes-site-page .routes-block-bike-regulations::before {
  content: "";
  position: absolute;
  inset: -24px -28px;
  z-index: -1;
  border-radius: 12px;
  border: 1px solid var(--block-border, #cfe2d7);
  background:
    linear-gradient(90deg, var(--block-accent, #0a8f57) 0 7px, transparent 7px),
    var(--block-bg, #f5fbf7);
  box-shadow: 0 18px 44px rgba(6, 39, 87, 0.06);
}

.routes-site-page .routes-block-senderismo {
  --block-bg: #f3fbf6;
  --block-border: #e6d28f;
  --block-accent: #b08a00;
  margin-top: 62px;
  padding: 30px 28px 34px;
}

.routes-site-page .routes-block-senderismo::before {
  inset: 0;
}

.routes-site-page .routes-block-heading {
  width: var(--site-container);
  max-width: var(--site-container);
  margin-right: auto;
  margin-left: auto;
  padding: 26px 28px;
}

.routes-site-page .routes-block-heading::before {
  inset: 0;
}

.routes-site-page .routes-block-heading > div {
  display: grid;
  gap: 8px;
}

.routes-site-page .routes-block-heading .routes-title span,
.routes-site-page .routes-block-heading > div > span {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--block-accent, var(--route-green));
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.routes-site-page .routes-block-heading p {
  max-width: 760px;
  color: #405271;
  font-weight: 700;
}

.routes-site-page .routes-block-gr-heading,
.routes-site-page .routes-block-gr-body,
.routes-site-page .routes-block-gr-stage {
  --block-bg: #fff5f5;
  --block-border: #f0c6c9;
  --block-accent: #b42232;
}

.routes-site-page .routes-block-gr-heading {
  margin-top: 72px;
}

.routes-site-page .routes-block-gr-heading h2,
.routes-site-page .routes-block-gr-heading p {
  color: #7c1020;
}

.routes-site-page .routes-block-gr-body,
.routes-site-page .routes-block-gr-stage {
  margin-top: 18px;
}

.routes-site-page .routes-block-gr-body::before {
  inset: -18px -28px -28px;
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.routes-site-page .routes-block-gr-stage::before {
  inset: -22px -28px -28px;
}

.routes-site-page .routes-block-gr-body .routes-feature-card {
  min-height: 250px;
}

.routes-site-page .routes-block-gr-stage .section-heading {
  margin-top: 0;
}

.routes-site-page .routes-block-green-heading,
.routes-site-page .routes-block-green-body,
.routes-site-page .routes-block-green-signage {
  --block-bg: #f0fbf4;
  --block-border: #bfe6d0;
  --block-accent: #0a8f57;
}

.routes-site-page .routes-block-green-heading {
  margin-top: 72px;
}

.routes-site-page .routes-block-green-body,
.routes-site-page .routes-block-green-signage {
  margin-top: 18px;
}

.routes-site-page .routes-block-green-body::before,
.routes-site-page .routes-block-green-signage::before {
  inset: -18px -28px -28px;
}

.routes-site-page .routes-block-green-body .area-card {
  min-height: 230px;
}

.routes-site-page .routes-block-green-signage {
  padding: 24px 0 30px;
}

.routes-site-page .routes-block-green-signage .routes-index-heading {
  margin-top: 0;
}

.routes-site-page .routes-block-bike-kicker,
.routes-site-page .routes-block-bike-heading,
.routes-site-page .routes-block-bike-body,
.routes-site-page .routes-block-bike-regulations {
  --block-bg: #f1f7ff;
  --block-border: #bdd7ef;
  --block-accent: var(--route-blue);
}

.routes-site-page .routes-block-bike-kicker {
  width: var(--site-container);
  max-width: var(--site-container);
  margin: 74px auto 0;
  border-color: transparent;
  background: var(--route-blue);
}

.routes-site-page .routes-block-bike-kicker::before {
  inset: -22px -28px -116px;
}

.routes-site-page .routes-block-bike-heading {
  margin-top: 34px;
}

.routes-site-page .routes-block-bike-body,
.routes-site-page .routes-block-bike-regulations {
  width: var(--site-container);
  max-width: var(--site-container);
  margin-right: auto;
  margin-left: auto;
}

.routes-site-page .routes-block-bike-body {
  margin-top: 18px;
}

.routes-site-page .routes-block-bike-regulations {
  margin-top: 22px;
}

.routes-site-page .routes-block-bike-body::before,
.routes-site-page .routes-block-bike-regulations::before {
  inset: -18px -28px -28px;
}

.routes-site-page .routes-block-bike-body a,
.routes-site-page .routes-block-bike-regulations article {
  border-color: #bdd7ef;
  background: #ffffff;
}

.routes-site-page .routes-block-bike-body .line-icon,
.routes-site-page .routes-block-bike-regulations span {
  color: var(--route-blue);
}

.routes-site-page .route-homologation-panel {
  margin-top: 18px;
}

.routes-site-page .routes-block-senderismo .routes-card-grid {
  margin-top: 22px;
}

.routes-site-page .routes-block-senderismo .routes-title span,
.routes-site-page .routes-block-senderismo .route-card > span,
.routes-site-page .routes-block-senderismo .route-status-pill,
.routes-site-page .routes-block-senderismo .route-card span small {
  color: #8a6a00;
}

.routes-site-page .routes-block-senderismo .route-status-pill,
.routes-site-page .routes-block-senderismo .route-card span small {
  background: #fff4c2;
}

.routes-site-page .routes-block-senderismo .federation-brand-card a,
.routes-site-page .routes-block-senderismo .routes-outline-link {
  border-color: #d6b43a;
  background: #b08a00;
  color: #ffffff;
}

.routes-site-page .routes-block-senderismo .route-card {
  border-color: #e0ca82;
}

.routes-site-page .routes-block-senderismo .route-card::before {
  background: #b08a00;
}

.routes-site-page .routes-block-senderismo .route-card dl {
  background: #fff9df;
}

.routes-site-page .routes-block-combined {
  position: relative;
  z-index: 0;
  box-sizing: border-box;
  width: var(--site-container);
  max-width: var(--site-container);
  margin: 72px auto 0;
  padding: 30px 28px 34px;
}

.routes-site-page .routes-block-combined::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 12px;
  border: 1px solid var(--block-border, #cfe2d7);
  background:
    linear-gradient(90deg, var(--block-accent, #0a8f57) 0 7px, transparent 7px),
    var(--block-bg, #f5fbf7);
  box-shadow: 0 18px 44px rgba(6, 39, 87, 0.06);
}

.routes-site-page .routes-block-combined-gr {
  --block-bg: #fff5f5;
  --block-border: #f0c6c9;
  --block-accent: #b42232;
}

.routes-site-page .routes-block-combined-green {
  --block-bg: #f0fbf4;
  --block-border: #bfe6d0;
  --block-accent: #0a8f57;
}

.routes-site-page .routes-block-combined-bike {
  --block-bg: #f1f7ff;
  --block-border: #bdd7ef;
  --block-accent: var(--route-blue);
}

.routes-site-page .routes-block-combined .routes-block-heading,
.routes-site-page .routes-block-combined .area-grid,
.routes-site-page .routes-block-combined .procedure-row,
.routes-site-page .routes-block-combined .routes-index-grid,
.routes-site-page .routes-block-combined .routes-block-gr-body,
.routes-site-page .routes-block-combined .routes-block-gr-stage,
.routes-site-page .routes-block-combined .routes-block-green-body,
.routes-site-page .routes-block-combined .routes-block-green-signage,
.routes-site-page .routes-block-combined .routes-block-bike-kicker,
.routes-site-page .routes-block-combined .routes-block-bike-body,
.routes-site-page .routes-block-combined .routes-block-bike-regulations {
  box-sizing: border-box;
  width: auto;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.routes-site-page .routes-block-combined .routes-block-heading::before,
.routes-site-page .routes-block-combined .routes-block-gr-body::before,
.routes-site-page .routes-block-combined .routes-block-gr-stage::before,
.routes-site-page .routes-block-combined .routes-block-green-body::before,
.routes-site-page .routes-block-combined .routes-block-green-signage::before,
.routes-site-page .routes-block-combined .routes-block-bike-kicker::before,
.routes-site-page .routes-block-combined .routes-block-bike-body::before,
.routes-site-page .routes-block-combined .routes-block-bike-regulations::before {
  display: none !important;
}

.routes-site-page .routes-block-combined .routes-block-heading {
  margin-top: 0;
  padding: 0 0 18px;
}

.routes-site-page .routes-block-combined .routes-block-gr-body,
.routes-site-page .routes-block-combined .routes-block-gr-symbols,
.routes-site-page .routes-block-combined .routes-block-gr-stage,
.routes-site-page .routes-block-combined .routes-block-green-body,
.routes-site-page .routes-block-combined .routes-block-green-signage,
.routes-site-page .routes-block-combined .routes-block-bike-body,
.routes-site-page .routes-block-combined .routes-block-bike-regulations {
  margin-top: 18px;
}

.routes-site-page .routes-block-combined .routes-block-bike-kicker {
  margin: 0;
  border-color: #bdd7ef;
  background: #ffffff;
}

.routes-site-page .routes-block-combined .routes-green-index-grid,
.routes-site-page .routes-block-combined .routes-gr-index-grid,
.routes-site-page .routes-block-combined .routes-regulation-grid {
  width: 100%;
  max-width: 100%;
}

.routes-site-page .routes-block-gr-symbols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.routes-site-page .routes-block-gr-symbols article {
  border-color: #f0c6c9;
}

.routes-site-page .routes-block-combined-gr .routes-block-heading h2,
.routes-site-page .routes-block-combined-gr .routes-block-heading p,
.routes-site-page .routes-block-combined-gr .section-heading h2 {
  color: #7c1020;
}

.routes-site-page .routes-block-combined-gr .section-heading h2::after {
  background: #b42232;
}

.routes-site-page .routes-block-combined-gr .routes-gr-info-card h3,
.routes-site-page .routes-block-combined-gr .trail-symbols strong,
.routes-site-page .routes-block-combined-gr .routes-gr-summary strong,
.routes-site-page .routes-block-combined-gr .gr-stage-card strong {
  color: #181818;
}

.routes-site-page .routes-block-combined-gr .section-heading p,
.routes-site-page .routes-block-combined-gr .routes-gr-info-card p,
.routes-site-page .routes-block-combined-gr .trail-symbols small,
.routes-site-page .routes-block-combined-gr .routes-gr-summary span,
.routes-site-page .routes-block-combined-gr .gr-stage-card small {
  color: #333333;
}

.routes-site-page .routes-block-combined-gr .routes-block-heading a,
.routes-site-page .routes-block-combined-gr .section-heading a,
.routes-site-page .routes-block-combined-gr .area-card-link {
  color: #b42232;
}

.routes-site-page .routes-block-combined-gr .routes-gr-info-card span,
.routes-site-page .routes-block-combined-gr .gr-stage-card span {
  background: #ffe4e6;
  color: #b42232;
}

.routes-site-page .routes-block-combined-gr .routes-gr-info-card,
.routes-site-page .routes-block-combined-gr .routes-gr-summary article,
.routes-site-page .routes-block-combined-gr .trail-symbols article,
.routes-site-page .routes-block-combined-gr .gr-stage-card,
.routes-site-page .routes-block-combined-gr .routes-feature-card {
  border-color: #f0c6c9;
}

.routes-site-page .routes-block-combined-gr .routes-gr-summary article,
.routes-site-page .routes-block-combined-gr .gr-stage-card {
  background: #fffafa;
}

.routes-site-page .routes-block-combined-gr .routes-feature-gr {
  background:
    linear-gradient(135deg, rgba(124, 16, 32, 0.92), rgba(180, 34, 50, 0.68)),
    url("imagenes/fotosRutas/PuertoSAnMiguel.jpg") center / cover;
}

.routes-site-page .routes-block-combined-gr .routes-feature-card,
.routes-site-page .routes-block-combined-gr .routes-feature-card strong,
.routes-site-page .routes-block-combined-gr .routes-feature-card small,
.routes-site-page .routes-block-combined-gr .routes-feature-card .area-card-link {
  color: #ffffff;
}

.routes-site-page .routes-block-combined-gr .routes-feature-card .area-card-icon {
  color: #b42232;
}

.routes-site-page .routes-block-combined-bike .routes-block-bike-heading {
  margin-top: 0;
}

.routes-site-page .routes-bike-intro {
  display: grid;
  align-items: center;
  min-height: auto;
  padding: 22px 24px;
  border: 1px solid #bdd7ef;
  border-radius: 8px;
  background: #ffffff;
}

.routes-site-page .routes-bike-intro > div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  max-width: none;
}

.routes-site-page .routes-bike-intro .line-icon {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  color: var(--route-blue);
}

.routes-site-page .routes-bike-intro strong,
.routes-site-page .routes-bike-intro small {
  display: block;
  text-transform: none;
}

.routes-site-page .routes-bike-intro strong {
  color: var(--route-navy);
  font-size: 22px;
  line-height: 1.12;
  font-weight: 950;
}

.routes-site-page .routes-bike-intro small {
  margin-top: 6px;
  color: #405271;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 750;
}

.routes-site-page .routes-block-combined-bike .routes-block-bike-body {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.routes-site-page .routes-block-combined-bike .routes-block-bike-body a {
  min-height: 132px;
  padding: 18px 16px;
}

.routes-site-page .routes-block-combined-bike .routes-block-bike-body small {
  margin: 0;
  max-width: none;
  text-align: left;
}

.routes-site-page .routes-block-combined-bike .routes-block-bike-regulations article {
  min-height: 190px;
}

/* Paginas legales */
.legal-page {
  background: #f4fbf9;
}

.legal-hero {
  min-height: 340px;
}

.legal-content {
  display: grid;
  gap: 18px;
  width: min(980px, calc(100% - 48px));
  margin: 42px auto 76px;
}

.legal-card {
  padding: 28px;
  border: 1px solid #cfe2d7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(6, 39, 87, 0.06);
}

.legal-card h2 {
  margin: 0 0 14px;
  color: var(--route-navy);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.12;
}

.legal-card p,
.legal-card li {
  color: #31476a;
  font-size: 16px;
  line-height: 1.68;
  font-weight: 650;
  text-align: justify;
}

.legal-card p {
  margin: 0;
}

.legal-card p + p,
.legal-card p + ul,
.legal-card ul + p {
  margin-top: 14px;
}

.legal-card ul {
  margin: 0;
  padding-left: 22px;
}

.legal-card a {
  color: var(--route-blue);
  font-weight: 900;
  text-decoration: none;
}

.legal-updated {
  color: #0a8f57;
  font-weight: 950;
}

.legal-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  color: #31476a;
  font-size: 15px;
  font-weight: 650;
}

.legal-table th,
.legal-table td {
  padding: 14px;
  border: 1px solid #cfe2d7;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: var(--route-navy);
  background: #eef8f3;
  font-weight: 950;
}

@media (max-width: 1100px) {
  .routes-site-page .routes-block-combined-bike .routes-block-bike-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.routes-site-page .routes-gis-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid #bdd7ef;
  border-radius: 8px;
  background: var(--route-navy);
  box-shadow: var(--route-shadow);
}

.routes-site-page .routes-gis-panel > div {
  min-width: 0;
}

.routes-site-page .routes-gis-help {
  margin: 0;
  padding: 15px 18px;
  background: #ffffff;
  color: var(--route-navy);
}

.routes-site-page .routes-gis-map {
  min-height: 620px;
  border: 0;
  border-radius: 0;
}

.routes-site-page .routes-contact-strip {
  background: #effaf4;
}

.routes-site-page .home-footer {
  background: var(--route-navy);
}

@media (max-width: 1100px) {
  .routes-site-page .mainbar {
    grid-template-columns: auto 1fr auto auto;
  }

  .routes-site-page .search-icon {
    display: none;
  }

  .routes-news-grid,
  .routes-site-page .routes-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .routes-site-page .routes-gis-panel {
    grid-template-columns: 1fr;
  }

  .routes-signup-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .routes-news-grid,
  .routes-site-page .routes-summary,
  .routes-site-page .routes-card-grid {
    grid-template-columns: 1fr;
  }

  .routes-site-page .routes-quick-access {
    display: none;
  }

  .routes-site-page .routes-block-senderismo {
    padding: 22px 14px 28px;
  }

  .routes-site-page .routes-block-senderismo .federation-brand-card {
    grid-template-columns: 78px minmax(0, 1fr);
    justify-items: start;
  }

  .routes-site-page .routes-block-senderismo .federation-brand-card img {
    width: 78px;
    height: 78px;
  }

  .routes-site-page .routes-block-senderismo .federation-brand-card .route-status-pill,
  .routes-site-page .routes-block-senderismo .federation-brand-card h3,
  .routes-site-page .routes-block-senderismo .federation-brand-card p {
    display: none;
  }

  .routes-site-page .routes-block-senderismo .federation-brand-card a {
    margin-top: 0;
  }

  .routes-site-page .routes-block-combined {
    padding: 22px 14px 28px;
  }

  .routes-site-page .routes-bike-intro {
    padding: 18px;
  }

  .routes-site-page .routes-bike-intro > div {
    grid-template-columns: 1fr;
  }

  .routes-site-page .routes-block-combined-bike .routes-block-bike-body {
    grid-template-columns: 1fr;
  }

  .legal-content {
    width: calc(100% - 28px);
    margin: 28px auto 52px;
  }

  .legal-card {
    padding: 20px;
  }

  .routes-site-page .routes-hero-content {
    padding: 72px 0 96px;
  }

  .routes-site-page .mainbar {
    grid-template-columns: 1fr auto;
    row-gap: 18px;
  }

  .routes-signup-button {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 16px;
  }

  .routes-site-page .routes-townhall-cta {
    display: none;
  }

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

  .routes-signup-section {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
    padding: 20px;
  }

  .privacy-modal {
    padding: 14px;
  }

  .privacy-modal-panel {
    padding: 28px 20px 22px;
  }
}

@media (max-width: 760px) {
  .route-detail-hero-content,
  .route-detail-summary,
  .route-detail-layout,
  .gr-stage-section,
  .route-next-steps,
  .green-bike-map-section,
  .green-bike-grid {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
  }

  .route-detail-summary {
    grid-template-columns: 1fr;
  }

  .route-map-head {
    display: grid;
  }

  .route-map-head a {
    width: 100%;
  }

  .route-leaflet-map {
    height: 430px;
    min-height: 430px;
  }

  .green-bike-map {
    height: 460px;
    min-height: 460px;
  }

  .gr-stage-grid {
    grid-template-columns: 1fr;
  }
}





