/* Municipalidad de Dalmacio Vélez Sarsfield — brand system */

:root {
  --verde: #029242;
  --verde-sello: #015c2b;
  --tinta: #1a2420;
  --suave: #4a5a52;
  --papel: #ffffff;
  --campo: #e8f0eb;
  --borde: #b8c9bf;
  --acceso-tramites: #029242;
  --acceso-boletin: #1a6f8c;
  --acceso-noticias: #b86a12;
  --acceso-obras: #7a5c2e;
  --acceso-contacto: #0d7a63;
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebe57;
  --font: "Noto Sans", "Segoe UI", sans-serif;
  --max: 70rem;
  --gutter: 1.25rem;
  --focus: 0 0 0 3px rgba(2, 146, 66, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--campo);
  -webkit-font-smoothing: antialiased;
}

body.is-menu-open {
  overflow: hidden;
}

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

a {
  color: var(--verde-sello);
}

a:hover {
  color: var(--verde);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

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

.sr-only:focus,
.sr-only:focus-visible,
a.sr-only:focus,
a.sr-only:focus-visible {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.65rem 1rem;
  clip: auto;
  overflow: visible;
  white-space: normal;
  background: var(--papel);
  color: var(--tinta);
  box-shadow: var(--focus);
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

/* Utility bar */
.utility-bar {
  background: var(--verde-sello);
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 3px solid var(--verde);
  font-size: 0.875rem;
  font-weight: 500;
}

.utility-bar a {
  color: #fff;
  text-decoration: none;
}

.utility-bar a:hover {
  text-decoration: underline;
}

.utility-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 1.25rem;
  padding: 0.55rem 0;
}

.utility-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

@media (min-width: 640px) {
  .utility-bar__item:last-child {
    margin-left: auto;
  }
}

/* Site header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--papel);
  border-bottom: 1px solid var(--borde);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
  padding: 0.5rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  text-decoration: none;
  color: var(--tinta);
  line-height: 1.15;
}

.brand__logo {
  display: block;
  flex-shrink: 0;
  width: auto;
  height: 3.35rem;
  object-fit: contain;
}

.brand__name {
  font-size: clamp(0.78rem, 2.3vw, 0.95rem);
  font-weight: 700;
  color: var(--tinta);
}

@media (min-width: 640px) {
  .brand__logo {
    height: 3.85rem;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.05rem;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--suave);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--verde-sello);
}

.nav-desktop a[aria-current="page"] {
  border-bottom-color: var(--verde);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid var(--borde);
  border-radius: 2px;
  background: var(--papel);
  color: var(--tinta);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.menu-toggle[aria-expanded="true"] {
  border-color: var(--verde);
  color: var(--verde-sello);
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--borde);
  background: var(--papel);
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--borde);
  text-decoration: none;
  color: var(--tinta);
  font-weight: 500;
}

.nav-mobile a[aria-current="page"] {
  color: var(--verde-sello);
  box-shadow: inset 4px 0 0 var(--verde);
  padding-left: 0.75rem;
}

/* Signature stripe on main */
.page-shell {
  border-left: 4px solid var(--verde);
  background: var(--papel);
  min-height: 60vh;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 22rem;
  color: #fff;
  overflow: hidden;
  background: var(--verde-sello);
}

.hero__image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
}

.hero__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.32);
}

.hero__panel {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__inner {
  padding: 2.25rem 0;
}

.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.9rem, 4.4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.hero__lead {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.12rem, 2.1vw, 1.35rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.page-hero {
  padding: 2.5rem 0 1.75rem;
  border-bottom: 1px solid var(--borde);
  background: var(--campo);
}

.page-hero h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
}

.page-hero__lead {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  color: var(--suave);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section + .section {
  border-top: 1px solid var(--borde);
}

.section--campo {
  background: var(--campo);
}

.section h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.25;
}

.section__intro {
  margin: 0.65rem 0 0;
  max-width: 40rem;
  color: var(--suave);
}

.prose {
  max-width: 42rem;
}

.prose p {
  margin: 1rem 0 0;
}

.prose p:first-child {
  margin-top: 1.25rem;
}

/* Quick access cards */
.access-grid {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  margin: 1.75rem 0 0;
  padding: 0;
}

.access-card {
  --access: var(--verde);
  --access-ink: var(--verde-sello);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 1.75rem 1.2rem 1.45rem;
  border: 1px solid var(--borde);
  border-top: 4px solid var(--access);
  border-radius: 2px;
  background: var(--papel);
  box-shadow: 0 1px 3px rgba(26, 36, 32, 0.06);
  text-align: center;
  text-decoration: none;
  color: var(--tinta);
}

.access-card--tramites {
  --access: var(--acceso-tramites);
  --access-ink: #015c2b;
}

.access-card--boletin {
  --access: var(--acceso-boletin);
  --access-ink: #0f5168;
}

.access-card--noticias {
  --access: var(--acceso-noticias);
  --access-ink: #8a4e0c;
}

.access-card--obras {
  --access: var(--acceso-obras);
  --access-ink: #5a4422;
}

.access-card--contacto {
  --access: var(--acceso-contacto);
  --access-ink: #085a49;
}

.access-card:hover,
.access-card:focus-visible {
  color: var(--tinta);
}

.access-card:hover .access-card__cta,
.access-card:focus-visible .access-card__cta {
  background: var(--access-ink);
  color: #fff;
}

.access-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.35rem;
  height: 4.35rem;
  border-radius: 50%;
  background: var(--access);
  color: #fff;
}

.access-card__icon svg {
  width: 2rem;
  height: 2rem;
}

.access-card h3 {
  margin: 1.15rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--access);
}

.access-card p {
  margin: 0.55rem 0 0;
  flex: 1;
  max-width: 22rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--suave);
}

.access-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.5rem;
  min-height: 2.75rem;
  margin-top: 1.25rem;
  padding: 0.45rem 1.15rem;
  border-radius: 2px;
  background: var(--access);
  color: #fff;
  font-weight: 600;
}

@media (min-width: 640px) {
  .access-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .access-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-light {
  background: #fff;
  color: var(--verde-sello);
}

.btn-light:hover {
  background: var(--campo);
  color: var(--verde-sello);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-solid {
  background: var(--verde);
  color: #fff;
}

.btn-solid:hover {
  background: var(--verde-sello);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--verde-sello);
  border-color: var(--verde);
}

.btn-outline:hover {
  background: var(--campo);
  color: var(--verde-sello);
}

/* Empty / meta */
.empty {
  margin: 1.25rem 0 0;
  color: var(--suave);
}

.meta-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.meta-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--borde);
}

.meta-list li:first-child {
  border-top: 1px solid var(--borde);
}

.meta-list dt,
.meta-list .label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--suave);
}

.meta-list dd,
.meta-list .value {
  margin: 0;
  font-weight: 500;
}

.note {
  margin: 1.25rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--borde);
  color: var(--suave);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--verde-sello);
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__inner {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0;
}

.site-footer h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer__base {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.9rem 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 640px) {
  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .nav-mobile,
  .nav-mobile.is-open {
    display: none;
  }

  .hero {
    min-height: min(52vh, 32rem);
  }

  .hero__inner {
    padding: 2.75rem 0;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Icons (Feather) */
svg.feather {
  width: 1.05rem;
  height: 1.05rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

svg.icon-whatsapp {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.utility-bar svg.feather,
.utility-bar svg.icon-whatsapp {
  width: 0.95rem;
  height: 0.95rem;
}

.access-card__icon svg.feather {
  width: 2rem;
  height: 2rem;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 36, 32, 0.28);
  text-decoration: none;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: var(--whatsapp-hover);
  color: #fff;
}

.whatsapp-float svg.icon-whatsapp {
  width: 1.85rem;
  height: 1.85rem;
}

@media (min-width: 768px) {
  .whatsapp-float {
    right: 1.5rem;
    bottom: 1.5rem;
    width: 3.75rem;
    height: 3.75rem;
  }
}

/* Published content lists */
.content-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.content-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--borde);
}

.content-item:first-child {
  border-top: 1px solid var(--borde);
}

.content-item h2,
.content-item h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.content-item h2 a,
.content-item h3 a {
  text-decoration: none;
  color: var(--tinta);
}

.content-item h2 a:hover,
.content-item h3 a:hover {
  color: var(--verde-sello);
}

.content-item__meta {
  margin: 0.35rem 0 0;
  color: var(--suave);
  font-size: 0.9rem;
}

.content-item p {
  margin: 0.5rem 0 0;
  max-width: 42rem;
}

.content-item__image {
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin: 0 0 0.85rem;
}

.entry {
  max-width: 46rem;
}

.entry__meta {
  margin: 0.5rem 0 0;
  color: var(--suave);
}

.entry__image {
  width: 100%;
  max-height: 22rem;
  margin: 1.25rem 0 0;
  object-fit: cover;
}

.entry .prose {
  margin-top: 1.25rem;
}

.doc-item {
  display: grid;
  gap: 0.35rem;
}

.doc-item__type {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--verde-sello);
}
