:root {
  --font-heading: 'Montserrat', Arial, sans-serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --red: #b20c3f;
  --red-dark: #890c32;
  --cyan: #01A9C4;
  --cyan-dark: #0093ab;
  --ink: #1f2d34;
  --muted: #576770;
  --bg: #f5f7f8;
  --line: #d8e2e4;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--bg);
  font: 16px/1.6 var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.eyebrow,
.step-label,
.pill,
.badge,
.brand strong,
.brand b,
.btn,
.service-filters button,
.photo-label,
.quick-strip strong,
.download-featured h3,
.account-banner h3,
.office-card-tag,
.office-featured-badge {
  font-family: var(--font-heading);
}

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

button, input {
  font: inherit;
}

button, a, input, summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

button, summary {
  cursor: pointer;
}

.wrap {
  width: min(1280px, calc(100% - 64px));
  margin: auto;
}

/* TOPBAR */
.topbar {
  background: var(--red);
  color: white;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 10px 0;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 98px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  line-height: 1.2;
  flex-shrink: 0;
}

.municipal-logo {
  display: block;
  width: 250px;
  height: auto;
  object-fit: contain;
}

.rentas-brand {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.rentas-brand small {
  display: block;
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  margin: 0 0 3px;
  color: var(--muted);
}

.rentas-brand b {
  display: block;
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1;
  color: var(--red);
}

/* NAVEGACIÓN */
nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 650;
  flex-wrap: nowrap;
}

nav > a {
  padding: 8px 6px;
  color: var(--ink);
  transition: color .2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

nav > a:not(.btn):hover,
nav summary:hover {
  color: var(--red);
}

nav details {
  position: relative;
  flex-shrink: 0;
}

nav summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 6px;
  font-size: 14.5px;
  font-weight: 650;
  user-select: none;
  transition: color .2s ease;
  white-space: nowrap;
}

nav summary::-webkit-details-marker {
  display: none;
}

nav summary:after {
  content: '⌄';
  font-size: 14px;
  line-height: 1;
  display: inline-block;
  transition: transform .24s cubic-bezier(.16,1,.3,1);
}

nav details > div {
  position: absolute;
  top: calc(100% + 8px);
  left: -20px;
  width: 320px;
  max-height: 70vh;
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(38,57,66,.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.98);
  pointer-events: none;
  transition: opacity .22s cubic-bezier(.16,1,.3,1), transform .22s cubic-bezier(.16,1,.3,1), visibility .22s;
  z-index: 100;
}

nav details a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

nav details a .menu-svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
  flex-shrink: 0;
  transition: transform .18s ease, color .18s ease;
}

nav details a:hover .menu-svg {
  color: #00879c;
  transform: scale(1.15);
}

nav details a span:not(.arrow) {
  flex: 1;
}

nav details a .arrow {
  margin-left: auto;
  color: #8fa1a9;
  font-size: 13px;
  font-weight: 700;
  transition: color .18s ease, transform .18s ease;
}

nav details a:hover .arrow {
  color: var(--cyan);
  transform: translate(2px, -2px);
}

nav details a:hover {
  background: #eaf6f8;
  color: #00879c;
  transform: translateX(3px);
}

@media(min-width: 1051px) {
  nav details > div {
    display: block;
  }
  nav details:hover > div,
  nav details[open] > div {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  nav details:hover summary,
  nav details[open] summary {
    color: var(--cyan);
  }
  nav details:hover summary:after,
  nav details[open] summary:after {
    transform: rotate(180deg);
    color: var(--cyan);
  }
}

/* BOTONES ESTILO tish.css (.btn-principal / .btn-sucursales) */
.btn-principal,
.btn-sucursales {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
  box-shadow: 0px 6px 24px 0px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border: none;
  z-index: 1;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  line-height: 1;
}

.btn-principal {
  background: #01A9C4;
}

.btn-sucursales {
  background: #5C6B77;
}

.btn-principal:after,
.btn-sucursales:after {
  content: " ";
  width: 0%;
  height: 100%;
  background: #A6CE39;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  transition: all 0.4s ease-in-out;
  z-index: 10;
}

.btn-principal:hover::after,
.btn-sucursales:hover::after {
  right: auto;
  left: 0;
  width: 100%;
}

.btn-principal span,
.btn-sucursales span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  width: 100%;
  padding: 12px 22px;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.25em;
  z-index: 20;
  transition: all 0.3s ease-in-out;
  white-space: nowrap;
}

.btn-principal:hover span,
.btn-sucursales:hover span {
  color: white;
  animation: scaleUp 0.3s ease-in-out;
}

nav .btn-principal span,
nav .btn-sucursales span {
  padding: 10px 18px;
  font-size: 13px;
  letter-spacing: 0.2em;
}

@keyframes scaleUp {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 5px;
  padding: 11px 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  background: #01A9C4;
  color: #ffffff;
  box-shadow: 0px 4px 16px rgba(1, 169, 196, 0.32);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  background: #0093ab;
  box-shadow: 0px 8px 22px rgba(1, 169, 196, 0.45);
  color: #ffffff;
}

.btn.red {
  background: var(--red);
  box-shadow: 0px 4px 16px rgba(178, 12, 63, 0.3);
}

.btn.red:hover {
  background: var(--red-dark);
  box-shadow: 0px 8px 22px rgba(178, 12, 63, 0.45);
}

.btn.white {
  background: #ffffff;
  color: var(--red);
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.12);
}

.btn.white:hover {
  background: #fafafa;
  box-shadow: 0px 8px 22px rgba(0, 0, 0, 0.2);
  color: var(--red-dark);
}

.btn.outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  color: #ffffff;
  box-shadow: none;
}

.btn.outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
}

nav > .btn {
  padding: 9px 18px;
  font-size: 13.5px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 20px;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  margin-top: 36px;
  min-height: 470px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(38, 57, 66, 0.08);
}

.hero-copy {
  background: var(--red);
  color: white;
  padding: 55px 48px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy:before, .hero-copy:after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  border: 90px solid rgba(255, 255, 255, 0.06);
  top: -280px;
  left: -320px;
}

.hero-copy:after {
  width: 380px;
  height: 380px;
  top: 200px;
  left: 250px;
  border: 0;
  background: rgba(255, 255, 255, 0.04);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 750;
  margin: 0 0 16px;
  color: var(--red);
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
  font-weight: 800;
  position: relative;
}

.hero h1 em {
  font-style: normal;
  color: #8ce4f2;
}

.hero p {
  max-width: 440px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.95);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
}

.hero-image {
  position: relative;
  background: url('../assets/img/home/hero-bg.jpg') center center/cover no-repeat;
  image-rendering: -webkit-optimize-contrast;
}

.hero-image:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18, 47, 57, 0.75), transparent 60%);
}

.photo-label {
  position: absolute;
  bottom: 24px;
  left: 28px;
  z-index: 2;
  color: white;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.petal {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 72px;
  height: 72px;
  background: var(--cyan);
  border-radius: 50% 0 50% 50%;
  opacity: .94;
  z-index: 2;
}

.petal:after {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 0 100% 0 100%;
  bottom: 0;
  left: 0;
}

/* QUICK STRIP */
.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(38, 57, 66, 0.04);
}

.quick-strip a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  transition: background-color .18s ease;
}

.quick-strip a:hover {
  background: #f4fafb;
}

.quick-strip a + a {
  border-left: 1px solid var(--line);
}

.quick-strip svg {
  width: 34px;
  height: 34px;
  color: var(--cyan);
  flex-shrink: 0;
}

.quick-strip strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}

.quick-strip small {
  display: block;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13.5px;
}

.quick-strip .arrow {
  margin-left: auto;
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
}

/* SECTIONS HEAD */
section {
  padding: 70px 0 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  margin-bottom: 28px;
}

h2 {
  font-family: var(--font-heading);
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -.8px;
  margin: 0;
  font-weight: 750;
  color: var(--ink);
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

.pill {
  font-family: var(--font-heading);
  border: 1px solid #b7e3ea;
  background: #edf8fa;
  color: #087a8f;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

/* BÚSQUEDA Y FILTROS */
.search {
  display: flex;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(38, 57, 66, 0.04);
  max-width: 880px;
}

.search input {
  width: 100%;
  border: 0;
  background: none;
  padding: 12px 20px;
  outline: none;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--ink);
  min-width: 0;
}

.search input::placeholder {
  color: #8fa1a9;
}

.search button {
  border-radius: 6px;
  padding: 12px 26px;
  font-size: 14.5px;
}

.search-status {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.service-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 26px;
}

.service-filters button {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 10px 20px;
  background: white;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 650;
  transition: all .18s ease;
}

.service-filters button span {
  margin-left: 8px;
  font-size: 12px;
  padding: 2px 8px;
  background: #edf2f4;
  border-radius: 12px;
  color: var(--muted);
}

.service-filters button[aria-pressed=true] {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.service-filters button[aria-pressed=true] span {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* SERVICES GRID */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  min-height: 195px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.service:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 12px 28px rgba(1, 169, 196, 0.12);
}

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--cyan);
}

.service-top svg {
  width: 34px;
  height: 34px;
}

.service-top span {
  font-size: 16px;
  font-weight: 700;
  color: #83949a;
  transition: color .2s ease;
}

.service:hover .service-top span {
  color: var(--cyan);
}

.service h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 18px 0 8px;
  color: var(--ink);
}

.service p {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  margin-top: auto;
}

.service:nth-child(4n+1) .service-top {
  color: var(--red);
}

.service:nth-child(4n+1):hover .service-top span {
  color: var(--red);
}

.extra-links {
  margin-top: 22px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 650;
  color: var(--red);
}

.extra-links .row-link {
  border: 0;
  padding: 4px 0;
  font-size: 14px;
}

/* ACCOUNT BANNER */
.account-banner {
  background: #e6f4f6;
  border: 1px solid #cde7eb;
  border-radius: 16px;
  padding: 34px 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
}

.account-banner h3 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -.4px;
  color: var(--ink);
}

.account-banner p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: #3b5a64;
}

.account-banner > div:last-child {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
}

/* MEDIOS DE PAGO */
.text-link {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--red);
  font-weight: 700;
  white-space: nowrap;
}

.payment-layout {
  display: grid;
  grid-template-columns: .85fr 1.55fr;
  gap: 24px;
}

.payment-intro {
  background: #e7f4f6;
  border: 1px solid #cde7eb;
  border-radius: 16px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.step-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .12em;
  color: #087b91;
}

.payment-intro h3 {
  font-family: var(--font-heading);
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -.6px;
  margin: 16px 0 24px;
  color: var(--ink);
}

.payment-intro ol {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 18px;
  width: 100%;
}

.payment-intro li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.payment-intro li span {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: #087b91;
  background: white;
  border-radius: 50%;
  height: 32px;
  width: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(8, 123, 145, .12);
}

.payment-intro > p {
  font-family: var(--font-body);
  font-size: 13px;
  color: #4a6a75;
  line-height: 1.6;
  margin: 18px 0 0;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.payment-option, .payment-office {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 140px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.payment-option:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(1, 169, 196, 0.1);
}

.provider-logo {
  width: 110px;
  height: 62px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.provider-image {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.method-type {
  font-family: var(--font-heading);
  font-size: 11px;
  color: #087b91;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.payment-option h3, .payment-office h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin: 4px 0 6px;
  color: var(--ink);
}

.payment-option p, .payment-office p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.payment-office {
  background: #fff8fa;
  border-color: #eedce2;
}

.payment-office:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(178, 12, 63, 0.1);
}

.office-icon {
  color: var(--red);
  font-size: 34px;
  width: 48px;
  flex-shrink: 0;
  text-align: center;
}

.payment-office > span:last-child {
  margin-left: auto;
  color: var(--red);
  font-size: 18px;
  font-weight: 700;
}

.payment-note {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  margin-top: 18px;
  align-items: center;
}

.payment-note p {
  margin: 0;
}

.payment-note > span {
  font-size: 18px;
  color: var(--cyan);
}

/* NORMATIVA Y DESCARGAS */
.calendar {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--red);
  color: white;
  padding: 26px 32px;
  border-radius: 14px;
  margin-bottom: 22px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.calendar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(178, 12, 63, 0.2);
}

.calendar svg {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.calendar strong {
  font-family: var(--font-heading);
  font-size: 19px;
  display: block;
  margin-bottom: 4px;
}

.calendar small {
  font-family: var(--font-body);
  font-size: 14px;
  opacity: .9;
}

.calendar > span {
  margin-left: auto;
  font-size: 24px;
  font-weight: 700;
}

.document-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.document-groups details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 24px;
  align-self: start;
}

.document-groups summary {
  padding: 20px 0;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  cursor: pointer;
}

.document-groups summary small {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 10px;
}

.document-groups summary:after {
  content: "+";
  color: var(--cyan);
  font-size: 22px;
  line-height: 1;
}

.document-groups details[open] summary:after {
  content: "−";
}

.document-groups details > div {
  padding-bottom: 16px;
}

.row-link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color .18s ease;
}

.row-link:last-child {
  border-bottom: 0;
}

.row-link span {
  color: var(--cyan);
  flex-shrink: 0;
  font-weight: 700;
}

.row-link:hover {
  color: var(--red);
}

/* DOS COLUMNAS - ORIENTACIÓN */
.two-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 26px;
}

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
}

.panel h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin: 0 0 20px;
  color: var(--ink);
}

/* ATENCIÓN PRESENCIAL MODERNA Y ESTÉTICA */
.office-featured {
  background: linear-gradient(135deg, #ffffff 0%, #edf8fa 100%);
  border: 1.5px solid #c7e5eb;
  border-radius: 18px;
  padding: 36px 40px;
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(1, 169, 196, 0.08);
  position: relative;
  overflow: hidden;
}

.office-featured:before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(1, 169, 196, 0.05);
  pointer-events: none;
}

.office-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: white;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.office-featured h3 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--ink);
  letter-spacing: -.5px;
}

.office-featured p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 22px;
}

.office-featured-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.office-featured-meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
}

.office-featured-meta-item svg {
  width: 22px;
  height: 22px;
  color: var(--cyan);
  flex-shrink: 0;
}

.office-featured-card {
  background: white;
  border: 1px solid #d4e6ea;
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.office-featured-card h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--ink);
}

.office-featured-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 13.5px;
  color: #3b5a64;
}

.office-featured-card li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.office-featured-card li:before {
  content: "✓";
  color: var(--cyan);
  font-weight: 800;
}

.offices-subhead {
  margin-bottom: 22px;
}

.offices-subhead h3 {
  font-size: 20px;
  font-weight: 750;
  margin: 0 0 6px;
  color: var(--ink);
}

.offices-subhead p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Grilla 3x3 de Delegaciones */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.office-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
}

.office-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 10px 25px rgba(1, 169, 196, 0.12);
}

.office-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.office-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #edf8fa;
  color: var(--cyan);
  display: grid;
  place-items: center;
}

.office-card-icon svg {
  width: 22px;
  height: 22px;
}

.office-card-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #087b91;
  background: #edf8fa;
  padding: 4px 10px;
  border-radius: 20px;
}

.office-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.35;
}

.office-card-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.45;
}

.office-card-address svg {
  width: 16px;
  height: 16px;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.office-card-schedule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f8f9;
  border: 1px solid #e5ecee;
  border-radius: 6px;
  padding: 6px 10px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: #087a8f;
  margin-top: auto;
  margin-bottom: 14px;
}

.office-card-schedule svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.office-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  transition: gap .18s ease;
  margin-top: 4px;
}

.office-card-link:hover {
  gap: 10px;
  color: var(--red-dark);
}

/* CONTACT BAND */
.contact-band {
  margin-top: 70px;
  padding: 50px 0;
  background: var(--cyan);
  color: white;
}

.contact-band .wrap {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.contact-band h2 {
  font-size: 32px;
  color: white;
}

.contact-band p {
  font-family: var(--font-body);
  font-size: 16px;
  margin: 10px 0 0;
  opacity: .95;
}

.contact-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-buttons .btn {
  color: #087a8f;
  font-size: 14px;
}

/* FOOTER */
footer {
  background: #21343d;
  color: #dce5e8;
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr .8fr;
  gap: 48px;
}

.footer-logo {
  display: block;
  width: 230px;
  height: auto;
  background: white;
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 24px;
}

footer h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin: 0 0 18px;
}

footer p, footer a {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.6;
}

footer a:hover {
  text-decoration: underline;
  color: white;
}

.mail-list a {
  display: block;
  overflow-wrap: anywhere;
  margin-bottom: 14px;
}

.mail-list small {
  display: block;
  color: #93b1bd;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.socials a {
  display: block;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 36px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #93b1bd;
}

.back-top {
  color: white;
  font-weight: 600;
}

.skip {
  position: fixed;
  top: -100px;
  z-index: 50;
  background: white;
  padding: 15px;
}

.skip:focus {
  top: 0;
}

[hidden] {
  display: none !important;
}

/* RESPONSIVE */
@media(max-width: 1200px) {
  .municipal-logo {
    width: 220px;
  }
  .rentas-brand {
    padding-left: 14px;
  }
  .brand {
    gap: 14px;
  }
  nav {
    gap: 12px;
    font-size: 13.5px;
  }
  .payment-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .payment-option .provider-logo {
    height: 52px;
    width: 120px;
  }
  .payment-intro {
    padding: 28px;
  }
  .payment-layout {
    grid-template-columns: .85fr 1.4fr;
  }
  .office-featured {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px;
  }
}

@media(max-width: 1050px) {
  .header-inner {
    min-height: 86px;
  }
  .mobile-toggle {
    display: block;
  }
  nav {
    display: none;
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    max-height: calc(100dvh - 100px);
    overflow: auto;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
  }
  nav.open {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    font-size: 15px;
  }
  nav details > div {
    position: static;
    width: 100%;
    max-height: none;
    box-shadow: none;
    margin-top: 12px;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  nav details:not([open]) > div {
    display: none;
  }
  nav details[open] > div {
    display: block;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero-copy {
    padding: 40px;
  }
  .services {
    grid-template-columns: repeat(3, 1fr);
  }
  .offices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 800px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .topbar .wrap span:last-child {
    display: none;
  }
  .municipal-logo {
    width: 210px;
  }
  .rentas-brand {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    margin-top: 20px;
    min-height: 0;
  }
  .hero-copy {
    padding: 34px 28px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero p {
    font-size: 16px;
    margin-bottom: 24px;
  }
  .hero-image {
    min-height: 240px;
  }
  .quick-strip {
    grid-template-columns: 1fr;
  }
  .quick-strip a + a {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  section {
    padding-top: 48px;
  }
  .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .section-head .pill {
    display: none;
  }
  h2 {
    font-size: 28px;
  }
  .services {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .service {
    padding: 20px;
    min-height: 175px;
  }
  .account-banner {
    padding: 28px 24px;
    align-items: flex-start;
    flex-direction: column;
  }
  .payment-layout {
    grid-template-columns: 1fr;
  }
  .payment-intro {
    padding: 28px 24px;
  }
  .payment-options {
    gap: 12px;
  }
  .payment-option {
    min-height: auto;
    padding: 20px;
  }
  .payment-office {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .payment-office > span:last-child {
    display: none;
  }
  .two-col, .document-groups {
    grid-template-columns: 1fr;
  }
  .offices-grid {
    grid-template-columns: 1fr;
  }
  .office-featured {
    padding: 24px;
  }
  .contact-band .wrap {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
  }
  .search button {
    padding: 12px 20px;
  }
}

@media(max-width: 480px) {
  .services {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 34px;
  }
  .municipal-logo {
    width: 190px;
  }
  .contact-buttons {
    width: 100%;
  }
  .contact-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

@media(prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
