/* Fuente Outfit (SIL Open Font License, fonts/OFL.txt), servida desde este mismo sitio: sin peticiones a Google Fonts. */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2?v=1") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/outfit-latin-ext.woff2?v=1") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Bienestar Animal Aranda — Ayuntamiento de Aranda de Duero */
:root {
  /* paleta brand — azul institucional del Ayuntamiento de Aranda de Duero
     (misma paleta que fiestas.arandadeduero.es: primary #0083c1, accent #3cb4e5) */
  --brand-50: #f0f9ff;
  --brand-100: #e0f2fe;
  --brand-200: #bae6fd;
  --brand-300: #7dd3fc;
  --brand-400: #3cb4e5;
  --brand-500: #0083c1;
  --brand-600: #006a9e;
  --brand-700: #00567f;
  --brand-800: #004260;
  --brand-900: #002e42;

  --paper: #f4f4f4;
  --ink: #303030;
  --line: #dfe1e5;
  --slate-500: #6b6b6b;
  --slate-600: #646464;
  --slate-700: #4a4a4a;
  --slate-900: #202020;

  --font-display: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-card: 1.4rem;
  --shadow-card: 0 10px 30px rgba(31, 36, 48, .06);
  --shadow-card-hover: 0 18px 40px rgba(31, 36, 48, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a { color: var(--brand-600); }

.container { max-width: 1440px; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-left: 2rem; padding-right: 2rem; } }
main.container { padding-bottom: 3rem; }

/* ===== Barra superior ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand__logo { width: 3rem; height: 3rem; border-radius: .5rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__kicker {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .3em;
  font-weight: 600;
  color: var(--brand-600);
}
.brand__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.mainnav {
  display: flex;
  align-items: center;
  gap: .25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 .75rem;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--slate-600);
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.mainnav a:hover { background: #f1f5f9; color: var(--brand-700); }
.mainnav a.is-active { background: var(--brand-50); color: var(--brand-700); }

.nav-dropdown { position: relative; }
.nav-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 2.75rem;
  padding: 0 .75rem;
  border: none;
  border-radius: 999px;
  background: none;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 500;
  color: var(--slate-600);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-dropdown__toggle:hover,
.nav-dropdown.is-open .nav-dropdown__toggle { background: #f1f5f9; color: var(--brand-700); }
.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: .4rem;
  min-width: 10rem;
  flex-direction: column;
  gap: .15rem;
  padding: .4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .8rem;
  box-shadow: var(--shadow-card);
  z-index: 50;
}
.nav-dropdown.is-open .nav-dropdown__menu { display: flex; }
/* En escritorio nav.js añade esta clase y calcula --nav-menu-top/--nav-menu-right desde el botón. */
.nav-dropdown__menu--fixed {
  position: fixed;
  top: var(--nav-menu-top);
  right: var(--nav-menu-right);
  margin-top: 0;
}
.nav-dropdown__menu a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .7rem;
  border-radius: .5rem;
  color: var(--ink);
  text-decoration: none;
  font-size: .875rem;
  white-space: nowrap;
}
.nav-dropdown__menu a:hover { background: var(--brand-50); color: var(--brand-700); }

/* botón hamburguesa (solo móvil) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: #fff;
  color: var(--brand-700);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

/* ===== Tarjetas de estadísticas (portada) ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  padding: 1.4rem 1.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.stat-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 1.15rem;
  margin-bottom: .3rem;
}
.stat-card__icon--paw { background: #fde8e0; }
.stat-card__icon--pin { background: #ece5fb; }
.stat-card__icon--heart { background: #e3f6ee; }
.stat-card__icon--people { background: #fde9d0; }
.stat-card__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
}
.stat-card__label { font-weight: 700; color: var(--ink); font-size: .95rem; }
.stat-card__sub { color: var(--slate-500); font-size: .82rem; }

/* velo suave para legibilidad del texto sobre la foto en pantallas estrechas */
@media (max-width: 767px) {
  /* Menú hamburguesa */
  .nav-toggle { display: inline-flex; }
  .mainnav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: .1rem;
    padding: .5rem 1rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(31, 36, 48, .08);
    overflow-x: visible;
  }
  .mainnav.is-open { display: flex; }
  .mainnav a { min-height: 2.75rem; padding-left: 1rem; padding-right: 1rem; }
  .nav-dropdown__toggle { width: 100%; justify-content: flex-start; padding-left: 1rem; }
  .nav-dropdown__menu {
    position: static;
    box-shadow: none;
    border: none;
    margin-top: 0;
    padding: 0 0 0 1rem;
  }
}

.empty { text-align: center; color: var(--slate-500); padding: 3rem 1rem; }

.archivo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.archivo-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.archivo-list__item strong { display: block; color: var(--ink); }
.archivo-list__meta { display: block; margin-top: .2rem; font-size: .82rem; color: var(--slate-500); }
.archivo-list__item a { font-weight: 600; color: var(--brand-700); text-decoration: none; white-space: nowrap; }
.archivo-list__item a:hover { text-decoration: underline; }

/* ===== Página de protectoras ===== */
.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-800);
  margin: 2.25rem 0 .4rem;
}
.page-lead { margin: 0 0 1.75rem; color: var(--slate-600); max-width: 60ch; }
.page-note {
  margin: -1rem 0 1.75rem;
  padding: .6rem .9rem;
  border-radius: .6rem;
  background: var(--brand-50);
  color: var(--brand-800);
  font-size: .82rem;
  font-weight: 600;
  max-width: 60ch;
}
.report-banner {
  margin: 0 0 1.75rem;
  padding: .7rem 1rem;
  border-radius: .6rem;
  background: #fdecea;
  color: #8a2a2a;
  font-size: .88rem;
  font-weight: 600;
  max-width: 68ch;
}
.report-banner a { color: #8a2a2a; text-decoration: underline; }
.info-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 68ch;
}
.info-block h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--brand-800);
}
.info-block h3 { margin: 1.4rem 0 .6rem; font-family: var(--font-display); font-size: 1rem; color: var(--brand-700); }
.info-block p { color: var(--slate-700); font-size: .92rem; line-height: 1.7; }
.info-block ul { margin: 0; padding-left: 1.2rem; color: var(--slate-700); font-size: .92rem; line-height: 1.7; }
.info-block li + li { margin-top: .6rem; }
.info-block li strong { color: var(--ink); }
.info-block figure { margin: 1.5rem 0 0; max-width: 260px; }
.info-block img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
.info-block figcaption { margin-top: .5rem; font-size: .8rem; color: var(--slate-500); }
.municipal-service {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-500);
  border-radius: var(--radius-card);
  background: var(--brand-50);
}
.municipal-service__title {
  margin: 0 0 .6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brand-800);
}
.municipal-service p { margin: .5rem 0; color: var(--slate-700); font-size: .92rem; line-height: 1.6; max-width: 68ch; }
.municipal-service__contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .9rem;
}
.municipal-service__contact-icon { font-size: 1.8rem; line-height: 1; }
.municipal-service__contact-phone {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-700);
  text-decoration: none;
}
.municipal-service__contact-phone:hover { text-decoration: underline; }
.municipal-service__contact-sub { margin: .15rem 0 0; font-size: .85rem; color: var(--slate-700); font-weight: 600; }
.municipal-service__contact-note { margin: .3rem 0 0; font-size: .82rem; color: var(--slate-500); }
.municipal-service__pending {
  margin-top: 1rem;
  padding: .6rem .9rem;
  border-radius: .6rem;
  background: #fff8e6;
  color: #7a5b00;
  font-size: .82rem;
  font-weight: 600;
  max-width: none;
}
.recogidas-section { margin-top: 1.5rem; }
.recogidas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.recogida-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.recogida-card__photo { width: 100%; height: 9rem; object-fit: cover; background: var(--brand-50); }
.recogida-card__body { padding: .85rem 1rem; display: flex; flex-direction: column; gap: .3rem; }
.recogida-card__situacion {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand-700);
  background: var(--brand-50);
  padding: .2rem .55rem;
  border-radius: 999px;
}
.recogida-card__data { margin: 0; font-size: .85rem; color: var(--slate-700); }
.recogida-card__data strong { color: var(--ink); }
.recogida-card__desc { margin: .2rem 0 0; font-size: .8rem; color: var(--slate-500); }

/* ===== Mapa de colonias felinas ===== */
.colonias-map {
  height: 26rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .colonias-map { height: 32rem; } }
.colonias-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .85rem;
}
.colonias-list__item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .9rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .9rem;
  font-size: .88rem;
  color: var(--slate-700);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.colonias-list__item:hover,
.colonias-list__item:focus-visible { border-color: var(--brand-400); box-shadow: var(--shadow-card); outline: none; }
.colonias-list__item strong { color: var(--ink); font-size: .95rem; }
.colonias-list__zone { color: var(--slate-500); }
.colonias-list__nogeo { color: var(--slate-500); font-style: italic; font-size: .8rem; }

.map-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: .9rem 0 .7rem; font-size: .85rem; color: var(--slate-700); }
.map-legend__item { display: flex; align-items: center; gap: .5rem; }
.map-legend__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.map-legend__dot--punto { width: 1.5rem; height: 1.5rem; background: #f59e0b; color: #fff; font-size: .75rem; font-weight: 800; }
.map-legend__dot--colonia { width: .9rem; height: .9rem; background: var(--brand-500); }

/* Marcador numerado de un punto de alimentación autorizado (Nº del cartel) */
.map-pin--punto {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f59e0b;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.popup-muted { color: var(--slate-500); font-size: .85em; }

.pa-photos { display: flex; gap: .4rem; margin-top: .6rem; }
.pa-photos a { display: block; line-height: 0; }
.pa-photos img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: .5rem;
  border: 1px solid var(--line);
  background: var(--brand-50);
}

.section-subtitle {
  margin: 2.5rem 0 .3rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--brand-800);
}
.section-lead { margin: 0 0 1rem; max-width: 68ch; font-size: .9rem; color: var(--slate-600); }

/* Ficha de una colonia con punto de alimentación autorizado: lo principal de la página */
.puntos-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 1rem;
}
.punto-card {
  display: flex;
  gap: .9rem;
  padding: .9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.punto-card:hover,
.punto-card:focus-visible { box-shadow: var(--shadow-card-hover); outline: none; border-color: #f59e0b; }
.punto-card__photos { display: flex; gap: .35rem; flex: none; }
.punto-card__photos a { display: block; line-height: 0; }
.punto-card__photos img {
  width: 76px;
  height: 101px;
  object-fit: cover;
  border-radius: .5rem;
  border: 1px solid var(--line);
  background: var(--brand-50);
}
.punto-card__body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; font-size: .88rem; color: var(--slate-700); }
.punto-card__body strong { color: var(--ink); font-size: 1rem; }
.punto-card__num { color: #b45309; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 420px) { .punto-card { flex-direction: column; } .punto-card__photos img { width: 120px; height: 160px; } }
.shelters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  /* Reserva el alto de las tarjetas (se pintan por JS) para que el pie no salte al cargar. */
  min-height: 21.5rem;
}
@media (max-width: 599px) { .shelters { min-height: 42rem; } }
.shelter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .65rem;
  padding: 1.6rem 1.2rem;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform .3s, box-shadow .3s;
}
.shelter-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.shelter-card__logo {
  width: 100%;
  max-width: 9rem;
  height: 4.75rem;
  border-radius: .85rem;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #fff;
  padding: .4rem;
}
.shelter-card__name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0; }
.shelter-card__zone { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--slate-500); }
.shelter-card__contact { display: flex; flex-direction: column; gap: .4rem; width: 100%; margin-top: .2rem; }
.shelter-card__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.shelter-card__links a {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand-700);
  background: var(--brand-50);
  padding: .3rem .7rem;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.shelter-card__links a:hover { background: var(--brand-500); color: #fff; }
.shelter-card__links .ico { font-size: .95em; line-height: 1; }

/* ===== Pie ===== */
.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
}
.site-footer__inner { padding-top: 1.4rem; padding-bottom: 1.5rem; }
.site-footer p { margin: .3rem 0; font-size: .875rem; line-height: 1.75; color: var(--slate-700); }
.site-footer .fineprint { font-size: .78rem; color: var(--slate-500); }
.site-footer a {
  font-weight: 600;
  color: var(--slate-900);
  text-decoration: underline;
  text-decoration-color: #94a3b8;
  text-underline-offset: .25rem;
  transition: color .2s, text-decoration-color .2s;
}
.site-footer a:hover { color: var(--brand-700); text-decoration-color: var(--brand-300); }

/* ===== Aviso de consentimiento de analítica (GDPR) ===== */
.analytics-consent {
  position: fixed;
  z-index: 400;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: .85rem 1rem calc(.85rem + env(safe-area-inset-bottom));
  box-shadow: 0 -.6rem 2rem rgba(15, 18, 23, .12);
}
.analytics-consent[hidden] { display: none !important; }
.analytics-consent-text {
  flex: 1 1 20rem;
  max-width: 42rem;
  margin: 0;
  color: var(--slate-600);
  font-size: .85rem;
  line-height: 1.45;
}
.analytics-consent-text a { color: var(--brand-600); font-weight: 700; text-decoration: underline; }
.analytics-consent-actions { display: flex; flex: 0 0 auto; gap: .5rem; }
.analytics-consent-btn {
  min-height: 2.4rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  padding: 0 1.1rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
}
/* Aceptar y Denegar con el mismo aspecto (la AEPD pide que rechazar sea tan fácil y visible como aceptar). */
.analytics-consent-deny,
.analytics-consent-accept { background: var(--brand-600); color: #fff; }
.analytics-consent-deny:hover,
.analytics-consent-deny:focus-visible,
.analytics-consent-accept:hover,
.analytics-consent-accept:focus-visible { background: var(--brand-700); }

/* ===== Visor emergente de fotos de los puntos de alimentación ===== */
.foto-visor {
  max-width: min(94vw, 900px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: .75rem;
  background: #000;
  overflow: hidden;
}
.foto-visor::backdrop { background: rgba(0, 0, 0, .75); }
.foto-visor img { display: block; max-width: 100%; max-height: 94vh; margin: 0 auto; object-fit: contain; }
.foto-visor__close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.foto-visor__close:hover,
.foto-visor__close:focus-visible { background: #fff; }
