@font-face {
  font-family: "AcuminXCond";
  src: url("../fonts/acumin-extracondensed.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0f213d;
  --navy-soft: #1b3151;
  --pink: #f199be;
  --pink-hover: #f5a9c8;
  --offwhite: #f2f1f0;
  --white: #ffffff;

  --map-land: #e8e8e8;
  --map-land-hover: #d3d6d9;
  --map-border: #8d949c;

  --focus: var(--white);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cta,
.site-footer {
  --focus: var(--navy);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.1875rem;
}

.site-shell {
  width: 100%;
  min-height: 100vh;
  background: var(--offwhite);
  overflow: hidden;
}

.heading,
.hero-card h1,
.hero-card .tagline,
.cta h2,
.map-text h2,
.map-text .province,
.contact-bar .contact,
.accounts .label,
.closing h3,
.map-label {
  font-family: "AcuminXCond", Impact, sans-serif;
}

.header {
  padding: 26px 20px 30px;
  background: var(--navy);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.header img {
  width: 128px;
  height: auto;
  display: block;
}

.hero {
  margin-top: -1px;
  padding: 1px 16px 14px;
  background: var(--navy);
  display: grid;
  gap: 12px;
}

.hero-card {
  padding: 28px 22px 26px;
  border-radius: 28px;
  background: var(--pink);
  color: var(--offwhite);
}

.hero-card h1 {
  margin: 0 0 10px;
  font-size: clamp(3rem, 14.5vw, 3.65rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 0.82;
  text-transform: uppercase;
}

.hero-card .tagline {
  margin: 0 0 16px;
  font-size: clamp(1.15rem, 5.4vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
}

.hero-card p {
  margin: 0 0 14px;
  font-family: "AcuminXCond", Arial, sans-serif;
  font-size: clamp(1.12rem, 4.9vw, 1.22rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.32;
}

.hero-card p:last-child {
  margin-bottom: 0;
}

.hero-photo {
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  background: var(--navy-soft);
}

.hero-photo-btn {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  display: block;
  cursor: zoom-in;
}

.hero-photo-btn:focus-visible {
  outline-offset: -0.3125rem;
}

.hero-photo picture {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 48%;
  transform: scale(var(--photo-scale, 1));
  transition: transform 500ms var(--ease);
}

@media (hover: hover) {
  .hero-photo-btn:hover {
    --photo-scale: 1.04;
  }
}

.download-wrap {
  margin-top: -1px;
  padding: 17px 16px 30px;
  background: var(--navy);
  display: flex;
  justify-content: center;
}

.pill {
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--pink);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 200ms ease,
    box-shadow 220ms var(--ease);
}

@media (hover: hover) {
  .pill:hover {
    background: var(--pink-hover);
    box-shadow:
      0 0 0 0.25rem rgba(241, 153, 190, 0.26),
      0 0.625rem 1.375rem rgba(241, 153, 190, 0.45);
  }
}

.pill:active {
  box-shadow:
    0 0 0 0.25rem rgba(241, 153, 190, 0.26),
    0 0.1875rem 0.625rem rgba(241, 153, 190, 0.35);
  transition-duration: 90ms;
}

.pill.is-busy {
  cursor: progress;
  opacity: 0.72;
}

.pill-download {
  width: 100%;
  max-width: 47.5rem;
  font-size: clamp(0.66rem, 3vw, 0.76rem);
  letter-spacing: 0.1em;
  text-wrap: balance;
}

.pill-firma {
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
}

.cta {
  padding: 30px 20px 32px;
  background: var(--offwhite);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
}

.cta h2 {
  margin: 0;
  color: var(--pink);
  font-size: clamp(1.9rem, 8.8vw, 2.4rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
}

.divider {
  position: relative;
  z-index: 1;
  height: 8px;
  margin: -1px 0;
  background: var(--pink);
}

.map-section {
  padding: 36px 20px 30px;
  background: var(--navy);
  color: var(--white);
}

.map-text h2 {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: clamp(3rem, 14.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 0.82;
  text-transform: uppercase;
}

.map-text .province {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.map-graphic {
  width: 92%;
  max-width: 420px;
  margin: 22px 0 0 auto;
}

.map-graphic svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Sin la capa de partidos es el fallback y se ve como siempre; con la capa
   montada pasa a ser el fondo que tapa las costuras entre partidos vecinos. */
.province-shape {
  fill: var(--pink);
  pointer-events: none;
  transition: fill 300ms ease;
}

.has-partidos .province-shape {
  fill: var(--map-land);
}

.map-partidos {
  fill-rule: evenodd;
}

.partido-shape {
  fill: var(--map-land);
  stroke: var(--map-border);
  stroke-width: 0.6;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill 260ms ease;
}

.partido-shape.is-active {
  fill: var(--pink);
}

.partido-shape.is-hovered {
  fill: var(--map-land-hover);
}

.partido-shape.is-active.is-hovered {
  fill: var(--pink-hover);
}

/* Fijado al clickear: el contorno blanco lo distingue del simple hover. */
.partido-shape.is-pinned {
  stroke: var(--white);
  stroke-width: 1.6;
}

.has-partidos .partido-shape {
  cursor: pointer;
}

/* El callout no le puede robar el hover a la forma que está señalando. */
#callouts {
  pointer-events: none;
}

/* Zoom al conurbano: se mueve la placa (contorno + formas), nunca el viewBox,
   así la etiqueta del callout sigue calculándose contra el mismo lienzo. */
.map-plate {
  transform-box: view-box;
  transform-origin: 0 0;
  transition: transform 420ms var(--ease);
}

.map-zoom-hint {
  fill: transparent;
  stroke: var(--white);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0.45;
  cursor: zoom-in;
  transition: opacity 200ms ease;
}

.map-zoom-hint:hover,
.map-zoom-hint:focus-visible {
  opacity: 0.95;
}

.map-zoom-hint[hidden],
.map-zoom-back[hidden] {
  display: none;
}

svg.is-zoomed {
  cursor: zoom-out;
}

.map-zoom-back {
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 200ms ease;
}

.map-zoom-back:hover,
.map-zoom-back:focus-visible {
  opacity: 1;
}

.map-zoom-chip {
  fill: var(--navy);
  stroke: var(--white);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.map-zoom-arrow {
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.map-zoom-text {
  fill: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .map-plate {
    transition: none;
  }
}

.map-line {
  fill: none;
  stroke: var(--white);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.map-point {
  fill: var(--white);
}

.map-label {
  fill: var(--white);
  font-size: var(--label-size, 24px);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.site-footer {
  background: var(--offwhite);
}

.contact-bar {
  padding: 26px 20px 0;
  display: grid;
  gap: 16px;
}

.contact-bar .contact {
  font-size: 1.55rem;
  line-height: 1;
}

.contact-bar .contact b {
  font-weight: 900;
  letter-spacing: 0.01em;
}

.accounts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.accounts .label {
  max-width: 150px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
}

.accounts .icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-link {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease;
}

.social-link svg {
  width: 58%;
  height: 58%;
  display: block;
  fill: currentColor;
}

.social-link[data-network="instagram"] {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.social-link[data-network="facebook"] {
  background: #1877f2;
}

.social-link[data-network="tiktok"] {
  background: #000000;
}

.social-link[data-network="x"] {
  background: #000000;
}

@media (hover: hover) {
  .social-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
  }
}

.social-link:active {
  transform: translateY(1px);
}

.closing {
  padding: 30px 20px 0;
  background: var(--offwhite);
  text-align: center;
}

.closing h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 8.4vw, 2.3rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}

.closing-logo {
  position: relative;
  padding: 20px 20px 44px;
  background: var(--offwhite);
  text-align: center;
}

.closing-logo img {
  width: min(54vw, 210px);
  height: auto;
  display: inline-block;
}

.link-ordenanza {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  color: rgba(15, 33, 61, 0.65);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-decoration-color: rgba(15, 33, 61, 0.3);
  text-underline-offset: 2px;
}

@media (hover: hover) {
  .link-ordenanza:hover {
    color: var(--navy);
    text-decoration-color: var(--pink);
  }
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 1.125rem;
  width: min(calc(100% - 2rem), 32.5rem);
  padding: 0.8125rem 1.125rem;
  border-radius: 0.875rem;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 0.75rem 2.125rem rgba(0, 0, 0, 0.24);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.75rem);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.lightbox {
  max-width: min(92vw, 75rem);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(15, 33, 61, 0.88);
  backdrop-filter: blur(6px);
}

.lightbox-figure {
  position: relative;
  margin: 0;
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 1.375rem;
  box-shadow: 0 1.875rem 5rem rgba(0, 0, 0, 0.45);
}

.lightbox-caption {
  margin: 0.875rem 0 0;
  color: var(--offwhite);
  font-family: "AcuminXCond", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 150ms ease, box-shadow 220ms var(--ease);
}

.lightbox-close svg {
  width: 1.125rem;
  height: 1.125rem;
  display: block;
}

@media (hover: hover) {
  .lightbox-close:hover {
    background: var(--pink-hover);
    box-shadow: 0 0 0 0.25rem rgba(241, 153, 190, 0.26);
  }
}

.lightbox[open] {
  animation: lightbox-in 260ms var(--ease);
}

.lightbox[open]::backdrop {
  animation: lightbox-fade-in 260ms ease;
}

.lightbox.is-closing {
  animation: lightbox-out 200ms ease forwards;
}

.lightbox.is-closing::backdrop {
  animation: lightbox-fade-out 200ms ease forwards;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

@keyframes lightbox-out {
  to {
    opacity: 0;
    transform: scale(0.98);
  }
}

@keyframes lightbox-fade-in {
  from { opacity: 0; }
}

@keyframes lightbox-fade-out {
  to { opacity: 0; }
}

.lightbox-open {
  overflow: hidden;
}

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

.firma-modal {
  width: min(92vw, 34rem);
  max-width: 92vw;
  padding: 0;
  border: 0;
  background: transparent;

  overflow: visible;
}

.firma-modal::backdrop {
  background: rgba(15, 33, 61, 0.88);
  backdrop-filter: blur(6px);
}

.firma-card {
  position: relative;
  padding: 30px 22px 26px;
  border-radius: 28px;
  background: var(--pink);
  color: var(--offwhite);

  max-height: 88vh;
  max-height: 88svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  --focus: var(--navy);
}

.firma-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--offwhite);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 150ms ease, box-shadow 220ms var(--ease);
}

.firma-close svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

@media (hover: hover) {
  .firma-close:hover {
    background: var(--navy-soft);
  }
}

.firma-title {
  margin: 0 0 8px;
  padding-right: 2.5rem;
  font-family: "AcuminXCond", Impact, sans-serif;
  font-size: clamp(2.1rem, 10vw, 2.9rem);
  font-weight: 900;
  line-height: 0.85;
  text-transform: uppercase;
  text-wrap: balance;
}

.firma-title-a {
  color: var(--navy);
}

.firma-title-b {
  color: var(--offwhite);
}

.firma-intro {
  margin: 0;
  font-family: "AcuminXCond", Arial, sans-serif;
  font-size: clamp(1.05rem, 4.4vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.32;
}

.firma-form {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.firma-field {

  position: relative;
  display: block;
  min-width: 0;
}

.firma-input {
  width: 100%;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-family: "AcuminXCond", Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.firma-input::placeholder {
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  opacity: 1;
}

.firma-textarea {
  border-radius: 22px;

  resize: none;
  overflow-y: auto;
}

.firma-submit {
  min-height: 50px;
  margin-top: 4px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: var(--pink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 200ms ease, transform 200ms ease;
}

@media (hover: hover) {
  .firma-submit:hover:not(:disabled) {
    background: var(--navy-soft);
  }
}

.firma-submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.firma-listbox {
  position: absolute;
  z-index: 5;
  inset-inline: 0;
  top: calc(100% + 6px);
  max-height: 15rem;
  margin: 0;
  padding: 6px 0;
  border-radius: 18px;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 0.75rem 2rem rgba(15, 33, 61, 0.28);
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.firma-opcion {
  padding: 11px 18px;
  cursor: pointer;
  font-family: "AcuminXCond", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
}

.firma-opcion[data-activa],
.firma-opcion:hover {
  background: rgba(15, 33, 61, 0.1);
}

.firma-opcion-vacia {
  cursor: default;
  color: #6b7280;
}

.firma-opcion-vacia:hover {
  background: none;
}

.firma-estado {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.firma-estado:empty,
.firma-gracias:empty {
  display: none;
}

.firma-gracias {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-family: "AcuminXCond", Impact, sans-serif;
  font-size: clamp(1.6rem, 7vw, 2rem);
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.firma-trampa {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.firma-modal[open] {
  animation: lightbox-in 260ms var(--ease);
}

.firma-modal[open]::backdrop {
  animation: lightbox-fade-in 260ms ease;
}

.firma-modal.is-closing {
  animation: lightbox-out 200ms ease forwards;
}

.firma-modal.is-closing::backdrop {
  animation: lightbox-fade-out 200ms ease forwards;
}

.js [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(0.875rem);
}

.js [data-reveal].is-visible {
  animation: reveal 600ms var(--ease) backwards;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(0.875rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.js .hero-photo.is-visible img {
  animation: photo-settle 1200ms var(--ease) backwards;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes photo-settle {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}

.map-callout {
  --step: calc(var(--i, 0) * 150ms);
}

.js .map-line {
  transform: scaleX(0);
  transform-origin: left center;
  transform-box: fill-box;
}

.js .map-point {
  transform: scale(0);
  transform-origin: center;
  transform-box: fill-box;
}

.js .map-label {
  opacity: 0;
}

.js .map-graphic.is-visible .map-callout:not(.map-hover) .map-line {
  animation: reveal-x 500ms var(--ease) calc(400ms + var(--step)) forwards;
}

.js .map-graphic.is-visible .map-callout:not(.map-hover) .map-point:first-of-type {
  animation: pop 260ms var(--ease) calc(350ms + var(--step)) forwards;
}

.js .map-graphic.is-visible .map-callout:not(.map-hover) .map-point:last-of-type {
  animation: pop 260ms var(--ease) calc(850ms + var(--step)) forwards;
}

.js .map-graphic.is-visible .map-callout:not(.map-hover) .map-label {
  animation: fade 300ms ease-out calc(950ms + var(--step)) forwards;
}

/* El callout de hover reusa el mismo nodo: arranca con .is-showing y con
   @keyframes propios, para que cada hover vuelva a empezar de cero. */
.map-hover[hidden] {
  display: none;
}

.map-callout.map-hover {
  --step: 0ms;
}

.map-hover .map-label {
  transform-box: fill-box;
  transform-origin: left center;
}

.js .map-hover.is-showing .map-point:first-of-type {
  animation: hover-pop 160ms var(--ease) 0ms both;
}

.js .map-hover.is-showing .map-line {
  animation: hover-line 300ms var(--ease) 60ms both;
}

.js .map-hover.is-showing .map-point:last-of-type {
  animation: hover-pop 180ms var(--ease) 300ms both;
}

.js .map-hover.is-showing .map-label {
  animation: hover-label 220ms var(--ease) 330ms both;
}

@keyframes hover-pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

@keyframes hover-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes hover-label {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Salida: se va el nombre, la línea se repliega hacia el partido y al final
   desaparece el punto. Más corta que la entrada para que no se sienta pesada. */
.js .map-hover.is-leaving .map-label {
  animation: hover-label-out 120ms ease-in 0ms both;
}

.js .map-hover.is-leaving .map-point:last-of-type {
  animation: hover-pop-out 120ms var(--ease) 40ms both;
}

.js .map-hover.is-leaving .map-line {
  animation: hover-line-out 180ms var(--ease) 60ms both;
}

.js .map-hover.is-leaving .map-point:first-of-type {
  animation: hover-pop-out 120ms var(--ease) 170ms both;
}

@keyframes hover-pop-out {
  from { transform: scale(1); }
  to { transform: scale(0); }
}

@keyframes hover-line-out {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@keyframes hover-label-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-10px); }
}

/* Reemplaza al stagger por callout, que se fue junto con las etiquetas fijas. */
.js .map-graphic.is-visible .map-partidos {
  animation: fade 500ms ease-out 250ms backwards;
}

/* Se acota a 10 pasos: con 50 partidos publicados un stagger sin techo tardaba
   varios segundos en terminar de pintar el mapa. */
.partido-shape.is-active {
  transition-delay: calc(min(var(--i, 0), 10) * 60ms);
}

@media (prefers-reduced-motion: reduce) {
  .map-hover.is-showing *,
  .map-hover.is-leaving * {
    animation: none;
  }

  .partido-shape {
    transition: none;
  }
}

@keyframes pop {
  to { transform: scale(1); }
}

@keyframes fade {
  to { opacity: 1; }
}

@keyframes reveal-x {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (min-width: 700px) {
  html {
    font-size: clamp(8px, 1.5625vw, 1.875rem);
  }

  .site-shell {
    max-width: 1920px;
    margin-inline: auto;
  }

  .header {
    height: 6.5rem;
    padding: 1.75rem 1.25rem 0.75rem;
  }

  .header img {
    width: 10.9375rem;
  }

  .hero {
    padding: 1px 1.75rem 1.25rem;
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    gap: 0.875rem;
  }

  .hero-card {
    padding: 2.125rem 1.875rem;
    border-radius: 1.875rem;
    color: var(--white);
  }

  .hero-card h1 {
    margin-bottom: 1.125rem;
    font-size: 4.67rem;
    line-height: 0.79;
  }

  .hero-card .tagline {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
  }

  .hero-card p {
    margin-bottom: 1.125rem;
    font-size: 1.3rem;
    line-height: 1.28;
  }

  .hero-photo {
    aspect-ratio: auto;
    min-height: 100%;
    border-radius: 1.5rem;
  }

  .download-wrap {
    padding: 0.6875rem 1.75rem 1.875rem;
  }

  .pill {
    min-height: 3rem;
    padding: 0.8125rem 1.375rem;
    line-height: 1.2;
  }

  .pill-download {
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .pill-firma {
    width: 13.125rem;
    max-width: 17.5rem;
    min-height: 3.25rem;
    margin: 0;
    flex: 0 0 auto;
    font-size: 1.2rem;
    letter-spacing: 0.12em;
  }

  .cta {
    padding: 2.125rem 2.75rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .cta h2 {
    max-width: 40rem;
    padding-top: 0.2em;
    font-size: 3.5rem;
    letter-spacing: 0.01em;
    line-height: 0.88;
  }

  .divider {
    height: 0.625rem;
  }

  .map-section {
    padding: 2.5rem 2.75rem 2.25rem;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 2.5rem;
  }

  .map-text h2 {
    margin-bottom: 0.625rem;
    font-size: 5.12rem;
    line-height: 0.79;
  }

  .map-text .province {
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: 0.025em;
  }

  .map-graphic {
    width: 100%;
    /* El alto manda: el dibujo mide 445/560 del ancho, así que topeándolo en
       78vh la sección entera entra en pantalla con las dos líneas rosas. */
    max-width: min(33rem, 86vh);
    margin: 0 auto;
  }

  .map-line {
    stroke-width: 3;
  }

  .map-label {
    font-size: var(--label-size, 29px);
    font-weight: 700;
  }

  .contact-bar {
    padding: 1.875rem 2.75rem 1.125rem;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.375rem;
  }

  .contact-bar .contact {
    font-size: 1.85rem;
  }

  .accounts .label {
    max-width: none;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
  }

  .accounts .icons {
    gap: 0.3125rem;
  }

  .social-link {
    width: 2.625rem;
    height: 2.625rem;
  }

  .social-link svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .closing {
    padding: 0.75rem 1.25rem 0;
  }

  .closing h3 {
    font-size: 3.6rem;
  }

  .closing-logo {
    padding: 1.5rem 1.25rem 2.5rem;
  }

  .closing-logo img {
    width: 14.375rem;
  }

  .link-ordenanza {
    bottom: 0.7rem;
    font-size: 12px;
  }

  .firma-modal {
    width: min(90vw, 680px);
  }

  .firma-card {
    padding: 38px 42px 34px;
    border-radius: 34px;
  }

  .firma-close {
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
  }

  .firma-close svg {
    width: 20px;
    height: 20px;
  }

  .firma-title {
    padding-right: 56px;
    font-size: 56px;
  }

  .firma-intro {
    font-size: 21px;
  }

  .firma-form {
    margin-top: 26px;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
  }

  .firma-field-ancho,
  .firma-submit,
  .firma-estado,
  .firma-gracias {
    grid-column: 1 / -1;
  }

  .firma-input {
    min-height: 52px;
    padding: 14px 26px;
    font-size: 20px;
  }

  .firma-textarea {
    border-radius: 26px;
  }

  .firma-submit {
    min-height: 56px;
    font-size: 16px;
  }

  .firma-listbox {
    max-height: 260px;
    border-radius: 20px;
  }

  .firma-opcion {
    padding: 12px 22px;
    font-size: 19px;
  }

  .firma-estado {
    font-size: 17px;
  }

  .firma-gracias {
    font-size: 40px;
  }
}

@media (min-width: 700px) and (max-width: 999px) {
  .hero-photo {
    aspect-ratio: 4 / 3;
    min-height: 0;
    align-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }

  .js [data-reveal],
  .js .hero-photo img,
  .js .map-line,
  .js .map-point,
  .js .map-label {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
