:root {
  --brisa-green: #55b847;
  --brisa-green-deep: #2f8f46;
  --action-green: #1f7f38; /* solo para controles (texto blanco AA 5.06:1); NO es color identitario */
  --medical-teal: #35aeb3;
  --clinical-blue: #2f7fc4;
  --ink: #263238;
  --muted: #65717a;
  --line: #d8e5e8;
  --surface: #ffffff;
  --surface-soft: #f5faf9;
  --panel: #edf7f5;
  --glass: rgba(255, 255, 255, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.84);
  --glass-border: rgba(255, 255, 255, 0.74);
  --shadow: 0 14px 32px rgba(27, 63, 72, 0.12);
  --shadow-strong: 0 22px 48px rgba(27, 63, 72, 0.16);
  --shadow-glass: 0 24px 60px rgba(31, 74, 82, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh; /* fallback navegadores sin dvh */
  min-height: 100dvh; /* viewport dinámico: evita el bug de la barra móvil */
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: #fbfdfc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}

/* Sticky footer global: el main crece y empuja al footer al borde inferior
   cuando el contenido no llena la pantalla; en páginas largas, scroll normal. */
main {
  flex: 1 0 auto;
}

img,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(47, 127, 196, 0.28);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(216, 229, 232, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 18px rgba(27, 63, 72, 0.05);
}

.header-inner {
  position: relative;
  width: min(100% - 32px, var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 148px;
  height: auto;
  display: block;
}

.brand span {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

.header-title {
  justify-self: center;
  margin: 0;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 700;
  color: var(--brisa-green);
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  justify-self: end;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--brisa-green);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.nav-toggle-icon::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: none;
  flex-direction: column;
  align-items: stretch;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--brisa-green-deep);
  background: #ebf7ed;
}

.hero {
  background:
    linear-gradient(135deg, #ffffff 0%, #f4fbf9 48%, #eef7fb 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: min(100% - 32px, var(--max));
  min-height: 500px;
  margin: 0 auto;
  padding: 64px 0 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 500px);
  align-items: center;
  gap: 52px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--action-green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 700px;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
}

h2 {
  font-size: clamp(1.6rem, 2.3vw, 2.35rem);
}

h3 {
  font-size: 1.02rem;
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 650px;
}

.hero-visual {
  position: relative;
  min-height: 390px;
  display: grid;
  align-items: center;
  justify-items: center;
}

.hero-device {
  width: min(100%, 460px);
  display: block;
  filter: drop-shadow(0 22px 38px rgba(20, 52, 60, 0.2));
}

.hero-badge {
  position: absolute;
  left: 0;
  bottom: 22px;
  width: min(260px, 66%);
  padding: 18px;
  border: 1px solid rgba(216, 229, 232, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hero-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button.primary {
  border-color: var(--action-green);
  background: var(--action-green);
  color: #ffffff;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(31, 74, 82, 0.12);
}

.operations-band {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.operations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.operations-grid a {
  min-height: 96px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
  text-decoration: none;
}

.operations-grid a:hover {
  background: #f5faf9;
}

.operations-grid strong {
  color: var(--ink);
  font-size: 1rem;
}

.operations-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 58px 0;
}

.section.alt {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

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

.section-head p {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
}

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

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

.tile {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tile::before {
  content: "";
  width: 100%;
  height: 4px;
  display: block;
  background: linear-gradient(90deg, var(--brisa-green), var(--medical-teal), var(--clinical-blue));
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.tile-body {
  flex: 1;
  padding: 16px 16px 18px;
}

.tile-body p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.glass-panel,
.glass-card {
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  box-shadow: var(--shadow-glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.78);
}

.home-page {
  background:
    linear-gradient(180deg, #fbfdfc 0%, #f1f8f7 47%, #f8fbfc 100%);
}

.home-page .site-header {
  background: rgba(255, 255, 255, 0.78);
  border-bottom-color: rgba(216, 229, 232, 0.72);
  -webkit-backdrop-filter: saturate(150%) blur(24px);
  backdrop-filter: saturate(150%) blur(24px);
}

.home-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #fafffd 0%, #f0faf7 47%, #eff8fc 100%);
  border-bottom: 1px solid rgba(216, 229, 232, 0.76);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, rgba(85, 184, 71, 0.08) 0%, rgba(255, 255, 255, 0) 54%);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  width: min(100% - 32px, var(--max));
  min-height: 460px;
  margin: 0 auto;
  padding: 40px 0 36px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(0, 540px);
  align-items: start;
  gap: 48px;
}

.home-hero-copy {
  max-width: 720px;
}

.home-hero h1 {
  max-width: 680px;
  font-size: clamp(2.65rem, 6vw, 4.8rem);
  letter-spacing: 0;
}

.home-hero h1 img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  /* sube el párrafo dentro del padding transparente inferior (~19%) del PNG del lockup; no editar el PNG */
  margin-bottom: -3.7rem;
}

.home-hero .lead {
  max-width: 690px;
  margin-top: 18px;
  color: #56646d;
  font-size: 1.08rem;
}

.home-page .button {
  border-color: rgba(216, 229, 232, 0.94);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(31, 74, 82, 0.09);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.home-page .button.primary {
  border-color: var(--action-green);
  background: var(--action-green);
  color: #ffffff;
}

picture {
  display: contents;
}

.home-hero-visual {
  display: grid;
  place-items: center;
  min-height: 390px;
}

.home-hero-device {
  width: min(100%, 540px);
  height: auto;
  display: block;
  /* alinea el contenido visible del mockup con el del lockup (compensa el padding transparente del PNG); se resetea a 0 al apilar (<=980) */
  margin-top: -3rem;
  filter: drop-shadow(0 30px 42px rgba(20, 52, 60, 0.2));
}

.home-section {
  padding: 62px 0;
}

.home-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 22px;
}

.home-access-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(216, 229, 232, 0.82);
  border-radius: var(--radius);
  background: var(--glass-strong);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-access-card::before {
  content: "";
  width: 100%;
  height: 4px;
  display: block;
  background: linear-gradient(90deg, var(--brisa-green), var(--medical-teal), var(--clinical-blue));
}

.home-access-card:hover {
  transform: translateY(-4px);
  border-color: rgba(85, 184, 71, 0.58);
  box-shadow: var(--shadow-glass);
}

.home-access-media {
  display: block;
  padding: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(240, 248, 247, 0.72) 100%);
}

.home-access-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.home-access-body {
  flex: 1;
  padding: 18px 18px 20px;
}

.home-access-titlerow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-access-body p {
  margin: 8px 0 0;
  color: var(--muted);
}

.home-access-go {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--action-green);
  transition: transform 0.18s ease;
}

.home-access-card:hover .home-access-go {
  transform: translate(3px, -3px);
}

.home-access-card:focus-visible {
  outline: 3px solid rgba(47, 127, 196, 0.34);
  outline-offset: 4px;
  border-color: rgba(47, 127, 196, 0.42);
}

.page-hero {
  background:
    linear-gradient(135deg, #eff8f5 0%, #edf7fb 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero .wrap {
  min-height: 300px;
  padding: 54px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: center;
  gap: 40px;
}

.page-hero img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.content-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.content-panel p,
.content-panel li {
  color: var(--muted);
}

.content-panel p:last-child,
.content-panel ul:last-child {
  margin-bottom: 0;
}

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

.image-strip img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.wide-image {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.reference-sheets.compact {
  margin-top: 28px;
}

.reference-card {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.reference-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.reference-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.location-overview img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #f8fbfb;
}

.location-summary-grid,
.location-map-grid {
  display: grid;
  gap: 22px;
}

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

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

.location-chip-card,
.location-map-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.location-chip-card {
  display: grid;
  grid-template-columns: minmax(240px, 44%) 1fr;
  align-items: center;
}

.location-chip-card img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: contain;
  background: #f8fbfb;
}

.location-chip-card div,
.location-card-body {
  padding: 20px;
}

.location-chip-card p,
.location-card-body p {
  color: var(--muted);
}

.location-map-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.location-map-card img {
  width: 100%;
  height: auto; /* evita que el atributo height="1080" fije el alto y pise el aspect-ratio */
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  background: #f8fbfb;
}

.location-card-body {
  flex: 1;
}

.location-card-body .button {
  margin-top: 14px;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.check-list {
  margin: 14px 0 0;
  padding-left: 20px;
}

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

.directory-card,
.contact-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.directory-card h3,
.contact-card h3 {
  margin-bottom: 14px;
  color: var(--ink);
}

.directory-card dl {
  margin: 0;
}

.directory-card dl div {
  padding: 10px 0;
  border-top: 1px solid #edf3f4;
}

.directory-card dt {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.directory-card dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
}

.contact-card p + p {
  margin-top: 12px;
}

.contact-card strong {
  color: var(--ink);
}

.pdf-frame {
  width: 100%;
  height: min(78vh, 820px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.privacy {
  max-width: 880px;
}

.privacy h2 {
  margin-top: 30px;
  font-size: 1.35rem;
}

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

.site-footer {
  background: var(--brisa-green);
  color: #ffffff;
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 22px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px 24px;
}

.footer-legend {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.footer-links {
  grid-column: 3;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 18px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .home-page .site-header,
  .home-page .button,
  .home-access-card {
    background: #ffffff;
  }
}

@media (max-width: 1120px) {
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-legend {
    grid-column: auto;
  }

  .footer-links {
    grid-column: auto;
    justify-self: center;
    justify-content: center;
  }
}

@media (max-width: 980px) {
  .hero-inner,
  .page-hero .wrap {
    grid-template-columns: 1fr;
  }

  .home-hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 46px 0 36px;
  }

  .home-hero h1 {
    font-size: clamp(2.6rem, 8vw, 3.7rem);
  }

  .home-hero-visual {
    width: min(100%, 480px);
    min-height: auto;
    display: grid;
    justify-self: center;
    justify-items: center;
  }

  .home-hero-device {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 460px);
    margin-top: 0;
  }

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

  .hero-visual {
    min-height: 340px;
    justify-items: start;
  }

  .access-grid,
  .resource-grid,
  .directory-grid,
  .contact-grid,
  .location-map-grid,
  .operations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .reference-sheets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-title {
    display: none;
  }

  .brand img {
    width: 122px;
  }

  .brand span {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    padding: 38px 0 34px;
    gap: 30px;
  }

  .home-hero-inner {
    padding: 30px 0 24px;
    gap: 22px;
  }

  .home-hero h1 {
    font-size: clamp(2.35rem, 12vw, 2.72rem);
  }

  .home-hero h1 img {
    max-width: 320px;
  }

  .home-hero .lead {
    font-size: 1rem;
  }

  .section-head {
    display: block;
  }

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

  .home-hero-visual {
    min-height: auto;
  }

  .home-hero-device {
    position: relative;
    top: auto;
    right: auto;
    width: 86%;
    margin-top: 0;
  }

  .home-section {
    padding: 44px 0;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-device {
    width: min(100%, 340px);
  }

  .hero-badge {
    position: static;
    width: 100%;
    margin-top: -10px;
  }

  .hero-actions {
    display: grid;
  }

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

  .section {
    padding: 42px 0;
  }

  .access-grid,
  .resource-grid,
  .content-grid,
  .directory-grid,
  .contact-grid,
  .location-summary-grid,
  .location-map-grid,
  .image-strip {
    grid-template-columns: 1fr;
  }

  .tile-body {
    padding: 13px;
  }
}

/* Skip-link de accesibilidad (oculto hasta recibir foco de teclado). */
.skip-link {
  position: absolute;
  left: 8px;
  top: -56px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--action-green);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 8px;
}

/* Respeta la preferencia de movimiento reducido del sistema. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .home-access-card:hover .home-access-go {
    transform: none;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   Localización · clases EXCLUSIVAS de esta página (location-*) — page-scoped.
   Verificado: location-* vive solo en localizacion-distritos-puntos-de-encuentro.
   No afecta a Inicio, Comunicaciones, Manuales, Protocolos ni Vademécum.
   ────────────────────────────────────────────────────────────────────────── */

/* Cambio 1 — Tarjetas de placas 100% clickeables (patrón stretched link). */
.location-map-card {
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.location-map-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}
.location-card-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.location-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.location-card-link:hover {
  color: var(--action-green);
}
.location-card-link:focus-visible {
  outline: none;
}
.location-card-link:focus-visible::after {
  outline: 2px solid var(--action-green);
  outline-offset: 3px;
}
.location-link-icon {
  flex: 0 0 auto;
  color: var(--action-green);
}

/* Cambio 2 — Eyebrows verdes consistentes en las placas (vence el override
   de especificidad de .location-card-body p; sólo afecta esta página). */
.location-card-body p.eyebrow {
  color: var(--action-green);
}

/* Cambio A — Hero sin imagen (modificador exclusivo de esta página). .page-hero
   y el elemento h1 tienen reglas globales/compartidas: NO se tocan. Acá el wrap
   pasa a una sola columna y el h1 libera su cap global de 700px para ocupar todo
   el ancho del contenedor (el lead conserva su medida de lectura).
   El font-size se baja respecto al global (5.6rem) a una escala más sobria
   (~3.5rem en desktop) para un escalón limpio con el h2 (~2.35rem ≈ 1.6×) y un
   hero prolijo, sin dejar de ocupar todo el ancho. */
.page-hero--solo .wrap {
  grid-template-columns: 1fr;
}
.page-hero--solo h1 {
  max-width: none;
  font-size: clamp(2.4rem, 4.4vw, 3.5rem);
}
/* El lead del hero libera su cap global (650px) para entrar en una sola línea. */
.page-hero--solo .lead {
  max-width: none;
}

/* Eyebrows de sección un poco más grandes y presentes en esta página (scoped a
   .location-page > .section-head; NO afecta el .eyebrow global ni los eyebrows
   de las tarjetas, que viven en .location-card-body). */
.location-page .section-head .eyebrow {
  font-size: 0.95rem;
}

/* Cambio C — Rótulos de grupo (Upstream / Downstream) dentro del grid de placas.
   Sub-encabezados entre el h2 de sección (~2.35rem) y los títulos de tarjeta. */
.location-segment-label {
  grid-column: 1 / -1;
  margin: 12px 0 6px;
  font-size: 1.5rem;
  letter-spacing: .01em;
  font-weight: 600;
  color: var(--action-green);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* En desktop (≥981px, donde el grid es de 3 columnas reales) el grid pasa a 6
   columnas: 3 cards Upstream por fila y las 2 Downstream centradas debajo
   (mismo tamaño de card). Reemplaza el centrado por nth-child del lote anterior,
   que con los rótulos insertados apuntaría a la card equivocada. */
@media (min-width: 981px) {
  .location-map-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .location-map-grid > .location-map-card {
    grid-column: span 2;
  }
  .location-segment-label--down + .location-map-card {
    grid-column: 2 / span 2;
  }
  .location-segment-label--down + .location-map-card + .location-map-card {
    grid-column: 4 / span 2;
  }
}
