/* =========================================================================
   Huellas Armenia — Hoja de estilos principal
   Estructura:
   01. Tokens de diseño
   02. Reset y base
   03. Utilidades
   04. Botones e iconos
   05. Header y navegación
   06. Hero
   07. Indicadores (stats)
   08. Secciones y selector principal
   09. Buscador, filtros y chips
   10. Tarjetas de mascota (PetCard) y skeletons
   11. Estados (vacío / error)
   12. Detalle de mascota (modal)
   13. Formulario de publicación
   14. Cómo ayudar y CTA
   15. Footer
   16. Modal y toasts
   17. Responsive
   ========================================================================= */

/* ------------------------------------------------------------------
   01. TOKENS DE DISEÑO
   ------------------------------------------------------------------ */
:root {
  /* Paleta ------------------------------------------------------------
     Más cálida y suave que la original. Regla que se mantiene: los fondos
     que llevan texto blanco usan el tono -dark (contraste AA); los tonos
     claros siempre van con texto -ink oscuro. */
  --green: #3E9B7B;
  --green-dark: #2F7A60;
  --green-darker: #23604A;
  --green-soft: #E7F5EF;
  --green-line: #C6E7D8;

  --yellow: #F7CB6B;
  --yellow-dark: #E0AE3F;
  --yellow-soft: #FEF6E6;

  --cream: #FFF8EF;
  --bg: #FBFAF6;
  --white: #FFFFFF;

  --ink: #2A3B40;
  --muted: #6B7A80;

  /* Coral en lugar de rojo puro: avisa sin agredir */
  --red: #C25232;
  --red-soft: #FDEDE8;
  --red-line: #F6D5CC;
  --red-ink: #A8412C;

  /* Un color por especie, para distinguirlas de un vistazo */
  --amber-soft: #FEF6E6;  --amber-ink: #8A6614;
  --violet-soft: #F4EEFC; --violet-ink: #5C3F94;
  --sky-soft: #EAF4FD;    --sky-ink: #1F5F8B;
  --pink-soft: #FDEFF4;   --pink-ink: #9B3F60;
  --mint-soft: #E9F6F0;   --mint-ink: #23604A;

  --line: #EDEAE3;
  --line-strong: #DFDBD2;

  /* Radios */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Sombras (muy sutiles) */
  --sh-xs: 0 1px 2px rgba(38, 50, 56, .05);
  --sh-sm: 0 2px 8px rgba(38, 50, 56, .06);
  --sh-md: 0 6px 20px rgba(38, 50, 56, .07);
  --sh-lg: 0 18px 44px rgba(38, 50, 56, .11);

  /* Espaciado y layout */
  --container: 1180px;
  --gutter: 20px;
  --header-h: 68px;

  /* Movimiento */
  --t-fast: 140ms ease;
  --t: 220ms cubic-bezier(.2, .7, .3, 1);

  /* Tipografía */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ------------------------------------------------------------------
   02. RESET Y BASE
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* El atributo [hidden] debe ganarle SIEMPRE a cualquier `display` de las
   clases (el modal, el botón de limpiar búsqueda y el contador de filtros
   definen display propio y, sin esta regla, se quedaban visibles). */
[hidden] { display: none !important; }

img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green-darker); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 6px;
}

section { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ------------------------------------------------------------------
   03. UTILIDADES
   ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 780px; }

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

.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 200;
  background: var(--green-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  transition: top var(--t);
}
.skip-link:focus { top: 12px; color: #fff; }

.hl {
  background: linear-gradient(180deg, transparent 62%, var(--yellow-soft) 62%);
  padding-inline: 2px;
}

.linklike {
  background: none; border: 0; padding: 0;
  color: inherit; text-align: left;
}
.linklike:hover { text-decoration: underline; }

/* ------------------------------------------------------------------
   04. BOTONES E ICONOS
   ------------------------------------------------------------------ */
.icon {
  width: 20px; height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: 0 0 auto;
}
[data-icon] { display: inline-flex; }

/* Nota de accesibilidad: los fondos con texto blanco usan --green-dark
   (contraste 5.8:1). El --green puro queda en 4.1:1 y solo se emplea en
   elementos gráficos, no detrás de texto pequeño. */
.btn {
  --btn-bg: var(--green-dark);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  min-height: 46px;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; }

.btn--primary { box-shadow: 0 4px 14px rgba(59, 140, 110, .22); }
.btn--primary:hover { --btn-bg: var(--green-darker); }

.btn--accent { --btn-bg: var(--yellow); --btn-fg: #4A3B12; box-shadow: 0 4px 14px rgba(244, 201, 93, .3); }
.btn--accent:hover { --btn-bg: var(--yellow-dark); }

.btn--outline { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--outline:hover { --btn-bd: var(--green); --btn-fg: var(--green-dark); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--muted); }
.btn--ghost:hover { --btn-bg: var(--green-soft); --btn-fg: var(--green-dark); }

.btn--wa { --btn-bg: #1F7C4B; --btn-fg: #fff; }
.btn--wa:hover { --btn-bg: #196540; }

/* Acción destructiva: se distingue del resto, pero sin gritar */
.btn--danger { --btn-bg: var(--white); --btn-fg: var(--red-ink); --btn-bd: var(--red-line); }
.btn--danger:hover { --btn-bg: var(--red-ink); --btn-fg: #fff; --btn-bd: var(--red-ink); }

.btn--sm { padding: 9px 16px; min-height: 40px; font-size: 14px; }
.btn--lg { padding: 15px 26px; min-height: 54px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.icon-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-full);
  background: var(--white);
  color: var(--ink);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.icon-btn:hover { background: var(--green-soft); border-color: var(--green-line); }

/* Badges de estado -------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 9px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.badge--lost { background: var(--red-soft); color: var(--red-ink); border-color: var(--red-line); }
.badge--found { background: var(--green-soft); color: var(--green-darker); border-color: var(--green-line); }
.badge--reunited { background: var(--yellow-soft); color: #8A6A15; border-color: #F0DFAE; }

/* ------------------------------------------------------------------
   05. HEADER Y NAVEGACIÓN
   ------------------------------------------------------------------ */
/* Aviso de "esto no se guarda" cuando no hay base de datos conectada */
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  font-size: 13.5px;
  line-height: 1.4;
  text-align: center;
}
.demo-bar .icon { width: 18px; height: 18px; flex: 0 0 auto; color: var(--yellow); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 250, 247, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--sh-xs);
}

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: 0 0 auto; }
.brand__mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--green-soft);
  border-radius: 12px;
  color: var(--green-dark);
}
.brand__mark .icon { width: 22px; height: 22px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brand__tagline { font-size: 11.5px; color: var(--muted); }

.nav { display: none; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: block;
  padding: 9px 13px;
  border-radius: var(--r-full);
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap; /* nunca partir un enlace en dos líneas */
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__link:hover { background: var(--green-soft); color: var(--green-darker); }

.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header__cta { display: none; }
.header__cta span:last-child { display: inline; }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 8px var(--gutter) 16px;
  animation: fade-down var(--t) both;
}
.mobile-menu__list { display: flex; flex-direction: column; }
.mobile-menu__list a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 8px;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__list li:last-child a { border-bottom: 0; }
.mobile-menu__list a .icon { color: var(--green); }

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------
   06. HERO
   ------------------------------------------------------------------ */
.hero {
  background:
    radial-gradient(1100px 460px at 85% -12%, var(--green-soft) 0%, transparent 62%),
    linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
  padding: 40px 0 52px;
}
.hero__inner { display: grid; gap: 36px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--white);
  border: 1px solid var(--green-line);
  color: var(--green-dark);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--sh-xs);
  margin-bottom: 18px;
}
.eyebrow .icon { width: 15px; height: 15px; }

.hero__title { font-size: clamp(2.1rem, 7vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; }
.hero__text {
  margin-top: 16px;
  font-size: clamp(1rem, 2.6vw, 1.13rem);
  color: var(--muted);
  max-width: 54ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__note {
  display: flex; align-items: center; gap: 8px;
  margin-top: 20px; font-size: 13.5px; color: var(--muted);
}
.hero__note .icon { width: 16px; height: 16px; color: var(--green); }

/* Composición visual */
.hero__visual { position: relative; min-height: 300px; }
.hero__blob {
  position: absolute; inset: 6% 4% 10% 6%;
  background: linear-gradient(150deg, var(--green-soft), var(--yellow-soft));
  border-radius: 46% 54% 58% 42% / 48% 42% 58% 52%;
}
.hero-card {
  position: absolute;
  width: min(210px, 46%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  animation: float-in .6s both;
}
.hero-card--a { left: 2%; top: 4%; }
.hero-card--b { right: 2%; bottom: 4%; animation-delay: .12s; }
.hero-card__img {
  aspect-ratio: 4 / 3;
  background: var(--green-soft) center / cover no-repeat;
}
.hero-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.hero-card__body strong { font-size: 15px; }
.hero-card__body small { color: var(--muted); font-size: 12.5px; }
.hero-card .badge { align-self: flex-start; margin-bottom: 2px; }

.hero-paws { position: absolute; inset: 0; pointer-events: none; color: var(--green); opacity: .22; }
.hero-paws span { position: absolute; }
.hero-paws span:nth-child(1) { top: 8%; right: 30%; transform: rotate(18deg); }
.hero-paws span:nth-child(2) { top: 34%; right: 14%; transform: rotate(-12deg) scale(1.4); }
.hero-paws span:nth-child(3) { bottom: 26%; left: 34%; transform: rotate(28deg) scale(.9); }

@keyframes float-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------
   07. INDICADORES (STATS)
   ------------------------------------------------------------------ */
.stats { padding-bottom: 8px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 22px 18px;
  box-shadow: var(--sh-sm);
}
.stat { text-align: center; padding: 8px 4px; }
.stat__value {
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--green-dark);
  line-height: 1.1;
}
.stat--accent .stat__value { color: var(--yellow-dark); }
.stat__label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ------------------------------------------------------------------
   08. SECCIONES Y SELECTOR PRINCIPAL
   ------------------------------------------------------------------ */
.section { padding: 56px 0; }
.section--soft { background: var(--cream); border-block: 1px solid var(--line); }

.section__head { margin-bottom: 28px; max-width: 62ch; }
.section__title { font-size: clamp(1.5rem, 4.4vw, 2.05rem); font-weight: 800; }
.section__sub { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

.choice-grid { display: grid; gap: 16px; }
.choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  padding: 24px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xs);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.choice:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--green-line); }
.choice__icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 18px;
  margin-bottom: 6px;
  transition: transform var(--t);
}
.choice__icon .icon { width: 28px; height: 28px; stroke-width: 1.8; }
.choice:hover .choice__icon { transform: scale(1.06) rotate(-3deg); }

.choice--lost .choice__icon { background: var(--amber-soft); color: var(--amber-ink); }
.choice--found .choice__icon { background: var(--violet-soft); color: var(--violet-ink); }
.choice--all .choice__icon { background: var(--mint-soft); color: var(--mint-ink); }
.choice__title { font-size: 18px; font-weight: 700; }
.choice__text { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.choice__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px;
  color: var(--green-dark);
  font-weight: 600; font-size: 14.5px;
}
.choice__link .icon { width: 17px; height: 17px; transition: transform var(--t-fast); }
.choice:hover .choice__link .icon { transform: translateX(3px); }

/* ------------------------------------------------------------------
   09. BUSCADOR, FILTROS Y CHIPS
   ------------------------------------------------------------------ */
.type-chips {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 18px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-full);
  background: var(--white);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.chip .icon { width: 18px; height: 18px; stroke-width: 1.9; }
.chip:hover { border-color: var(--green); color: var(--green-dark); }

/* En reposo el icono lleva el color de su especie; al activarse, todo blanco */
.chip--amber .icon { color: var(--amber-ink); }
.chip--violet .icon { color: var(--violet-ink); }
.chip--sky .icon { color: var(--sky-ink); }
.chip--pink .icon { color: var(--pink-ink); }
.chip--mint .icon { color: var(--mint-ink); }

.chip[aria-pressed="true"] {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
  font-weight: 600;
}
.chip[aria-pressed="true"] .icon { color: #fff; }

.searchbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px;
  box-shadow: var(--sh-sm);
}
.searchbar__field {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 12px;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.searchbar__field:focus-within { border-color: var(--green); background: var(--white); }
.searchbar__icon { color: var(--muted); flex: 0 0 auto; }
.searchbar__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 14px 10px;
  font-size: 15.5px;
  outline: none;
}
.searchbar__input::-webkit-search-cancel-button { display: none; }
.searchbar__clear {
  border: 0; background: transparent; color: var(--muted);
  border-radius: 50%;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; flex: 0 0 auto;
}
.searchbar__clear:hover { background: var(--line); color: var(--ink); }
.searchbar__submit, .searchbar__filters { width: 100%; }

.chip-count {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px;
  padding-inline: 5px;
  border-radius: var(--r-full);
  background: var(--green-dark);
  color: #fff;
  font-size: 11.5px; font-weight: 700;
}

.filters {
  display: none;
  margin-top: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--sh-xs);
}
.filters.is-open { display: block; animation: fade-down var(--t) both; }
.filters__grid { display: grid; gap: 14px; }
.filters__actions { margin-top: 14px; display: flex; justify-content: flex-end; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field--inline { flex-direction: row; align-items: center; gap: 8px; }
.field__label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field__control {
  width: 100%;
  padding: 12px 14px;
  min-height: 46px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--white);
  font-size: 15px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field__control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(59, 140, 110, .15); }
.field__control[aria-invalid="true"] { border-color: var(--red); background: #FFFCFC; }
.field__control--sm { min-height: 40px; padding: 8px 12px; font-size: 14px; width: auto; }
/* Flecha del select dibujada con un SVG embebido (sin dependencias) */
select.field__control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2368747A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}
.field__hint { font-size: 12.5px; color: var(--muted); }
.field__error { font-size: 13px; color: var(--red); font-weight: 500; }
.req { color: var(--red); }
.opt { color: var(--muted); font-weight: 400; }

.results__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 16px;
}
.results__count { font-size: 14.5px; color: var(--muted); font-weight: 500; }
.results__count strong { color: var(--ink); font-weight: 700; }

/* ------------------------------------------------------------------
   10. PETCARD Y SKELETONS
   ------------------------------------------------------------------ */
.pet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.pet-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-xs);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  animation: card-in .32s both;
}
.pet-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--green-line); }
.pet-card:focus-within { border-color: var(--green); }

.pet-card__media { position: relative; }
.pet-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--green-soft);
}
.pet-card__badge { position: absolute; top: 12px; left: 12px; box-shadow: var(--sh-sm); background-color: var(--white); }
.pet-card__type {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .94);
  border-radius: var(--r-full);
  padding: 5px 11px 5px 9px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--sh-xs);
}
.pet-card__type .icon { width: 15px; height: 15px; }
.pet-card__type--amber { color: var(--amber-ink); }
.pet-card__type--violet { color: var(--violet-ink); }
.pet-card__type--sky { color: var(--sky-ink); }
.pet-card__type--pink { color: var(--pink-ink); }
.pet-card__type--mint { color: var(--mint-ink); }

/* Municipio siempre visible sobre la foto */
.pet-card__town {
  position: absolute;
  left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, .94);
  border-radius: var(--r-full);
  padding: 5px 11px 5px 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green-darker);
  box-shadow: var(--sh-xs);
  max-width: calc(100% - 24px);
}
.pet-card__town .icon { width: 14px; height: 14px; color: var(--green-dark); }

.pet-card__body { padding: 16px 16px 8px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.pet-card__name { font-size: 18px; font-weight: 700; }
.pet-card__meta { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--muted); }
.pet-card__meta span { display: inline-flex; align-items: center; gap: 7px; }
.pet-card__meta .icon { width: 15px; height: 15px; color: var(--green); }
.pet-card__desc {
  font-size: 14px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pet-card__foot {
  padding: 8px 16px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
/* Área táctil de 44px: pensado para usarse con el pulgar en el celular */
.pet-card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14.5px; color: var(--green-dark);
  background: none; border: 0; padding: 6px 0;
  min-height: 44px;
}
.pet-card__cta .icon { width: 16px; height: 16px; transition: transform var(--t-fast); }
.pet-card__cta:hover .icon { transform: translateX(3px); }
.pet-card__share {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  display: grid; place-items: center;
  color: var(--muted);
}
.pet-card__share:hover { color: var(--green-dark); border-color: var(--green-line); background: var(--green-soft); }

@keyframes card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Skeleton */
.skeleton {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding-bottom: 16px;
}
.sk { background: linear-gradient(90deg, #EFEEE9 25%, #F7F6F2 37%, #EFEEE9 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 8px; }
.sk--img { aspect-ratio: 4 / 3; border-radius: 0; }
.sk--line { height: 12px; margin: 14px 16px 0; }
.sk--line.w60 { width: 60%; }
.sk--line.w40 { width: 40%; }
.sk--line.w80 { width: 80%; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ------------------------------------------------------------------
   11. ESTADOS
   ------------------------------------------------------------------ */
.state {
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-xl);
}
.state__icon {
  width: 62px; height: 62px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
}
.state__icon .icon { width: 28px; height: 28px; stroke-width: 1.8; }
.state--error .state__icon { background: var(--red-soft); color: var(--red-ink); }
.state__title { font-size: 19px; font-weight: 700; }
.state__text { color: var(--muted); margin: 8px 0 20px; font-size: 15px; }
.state--error { border-color: var(--red-line); background: #FFFCFC; }

/* Aviso reutilizable */
.notice {
  display: flex; gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.notice .icon { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 1px; }
.notice--warning { background: var(--yellow-soft); border: 1px solid #F0DFAE; color: #6B520F; }
.notice--info { background: var(--green-soft); border: 1px solid var(--green-line); color: var(--green-darker); }

/* ------------------------------------------------------------------
   12. DETALLE DE MASCOTA
   ------------------------------------------------------------------ */
.detail__header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.detail__name { font-size: clamp(1.5rem, 5vw, 1.9rem); font-weight: 800; }
.detail__sub { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }

.gallery__main {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: var(--green-soft);
}
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery__thumb {
  width: 68px; height: 54px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  overflow: hidden;
  padding: 0;
  background: none;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { border-color: var(--green); }

.detail__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.fact__label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.fact__value {
  font-size: 15px; font-weight: 600; margin-top: 2px;
  display: flex; align-items: center; gap: 7px;
}
.fact__value .icon { width: 18px; height: 18px; color: var(--green-dark); flex: 0 0 auto; }

.detail__block { margin-bottom: 20px; }
.detail__block h3 { font-size: 16px; margin-bottom: 6px; }
.detail__block p { color: var(--ink); font-size: 15px; }

/* Mapa (placeholder) */
.map-placeholder {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(59, 140, 110, .10) 26px 28px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(59, 140, 110, .10) 34px 36px),
    var(--green-soft);
  height: 168px;
  display: grid;
  place-items: center;
  text-align: center;
}
.map-placeholder__pin {
  background: var(--white);
  border: 1px solid var(--green-line);
  border-radius: var(--r-full);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-darker);
  box-shadow: var(--sh-md);
  display: inline-flex; align-items: center; gap: 8px;
}
.map-note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

.recognize {
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  border-radius: var(--r-lg);
  padding: 20px;
  margin: 22px 0;
}
.recognize h3 { font-size: 17px; margin-bottom: 6px; }
.recognize p { font-size: 14.5px; color: var(--green-darker); margin-bottom: 14px; }

.contact-box {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  background: var(--white);
}
.contact-box h3 { font-size: 16px; margin-bottom: 4px; }
.contact-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.contact-list a, .contact-list span {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.contact-list .icon { color: var(--green); }

.share-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ------------------------------------------------------------------
   13. FORMULARIO DE PUBLICACIÓN
   ------------------------------------------------------------------ */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px 20px;
  box-shadow: var(--sh-xs);
}
.publish { display: flex; flex-direction: column; gap: 18px; }
.publish__step { border: 1px solid var(--line); margin: 0; min-width: 0; transition: opacity var(--t); }
.publish__step[disabled] { opacity: .5; }
.publish__legend {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700;
  padding: 0; margin-bottom: 18px;
}
.publish__num {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  font-size: 14px; font-weight: 700;
}

.report-choice { display: grid; gap: 12px; }
.report-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.report-option__box {
  display: flex; flex-direction: column; gap: 3px;
  padding: 18px;
  border: 2px solid var(--line-strong);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.report-option__box:hover { transform: translateY(-2px); }
.report-option__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 13px;
  margin-bottom: 8px;
}
.report-option__icon .icon { width: 21px; height: 21px; }
.report-option--lost .report-option__icon { background: var(--red-soft); color: var(--red-ink); }
.report-option--found .report-option__icon { background: var(--green-soft); color: var(--green-dark); }
.report-option__title { font-weight: 700; font-size: 16px; }
.report-option__text { font-size: 13.5px; color: var(--muted); }
.report-option input:checked + .report-option__box { border-color: var(--green); background: var(--green-soft); }
.report-option input:focus-visible + .report-option__box { outline: 3px solid var(--green); outline-offset: 2px; }

.form-grid { display: grid; gap: 16px; }

.uploader {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 26px 18px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--bg);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.uploader:hover { border-color: var(--green); background: var(--green-soft); }
.uploader .icon { color: var(--green); width: 24px; height: 24px; margin-bottom: 4px; }
.uploader__title { font-weight: 600; font-size: 15px; }
.uploader__text { font-size: 13px; color: var(--muted); }
.uploader__previews { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.preview {
  position: relative;
  width: 84px; height: 84px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
}
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview button {
  position: absolute; top: 4px; right: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 0;
  background: rgba(38, 50, 56, .72);
  color: #fff;
  display: grid; place-items: center;
}
.preview button .icon { width: 14px; height: 14px; }

.check { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; font-size: 14.5px; cursor: pointer; }
.check input {
  width: 22px; height: 22px;
  accent-color: var(--green);
  flex: 0 0 auto;
  margin-top: 1px;
}
.publish__submit { margin-top: 20px; }
.publish__disclaimer { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* Éxito */
.success { text-align: center; padding: 6px 0; }
.success__icon {
  width: 68px; height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--green-soft);
  display: grid; place-items: center;
  color: var(--green-dark);
  animation: pop .38s cubic-bezier(.2, 1.4, .4, 1) both;
}
.success__icon .icon { width: 32px; height: 32px; }
.success h2 { font-size: 22px; }
.success p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.success__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------------------
   14. CÓMO AYUDAR Y CTA
   ------------------------------------------------------------------ */
.help-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.help-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--sh-xs);
  transition: transform var(--t), box-shadow var(--t);
}
.help-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.help-card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  margin-bottom: 14px;
  background: var(--green-soft);
  color: var(--green-dark);
}
.help-card__icon .icon { width: 23px; height: 23px; stroke-width: 1.9; }
/* Un color distinto por tarjeta, en el mismo orden del HTML */
.help-grid .help-card:nth-child(1) .help-card__icon { background: var(--sky-soft); color: var(--sky-ink); }
.help-grid .help-card:nth-child(2) .help-card__icon { background: var(--amber-soft); color: var(--amber-ink); }
.help-grid .help-card:nth-child(3) .help-card__icon { background: var(--mint-soft); color: var(--mint-ink); }
.help-grid .help-card:nth-child(4) .help-card__icon { background: var(--pink-soft); color: var(--pink-ink); }
.help-card__title { font-size: 17px; margin-bottom: 4px; }
.help-card__text { color: var(--muted); font-size: 14.5px; }

.cta-band {
  margin-top: 32px;
  background: linear-gradient(120deg, var(--green-dark) 0%, var(--green-darker) 100%);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--sh-md);
}
.cta-band__title { font-size: 20px; }
.cta-band__text { color: rgba(255, 255, 255, .88); font-size: 15px; margin-top: 6px; }

/* ------------------------------------------------------------------
   14b. DONACIONES
   ------------------------------------------------------------------ */
/* "Donar" es un botón, no un enlace de texto: debe verse pulsable sin
   competir con el CTA verde principal. Relleno suave + borde dorado. */
.nav__donate {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  border-radius: var(--r-full);
  background: var(--yellow-soft);
  border: 1.5px solid var(--yellow);
  color: #6B520F;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.nav__donate .icon { width: 16px; height: 16px; color: var(--yellow-dark); transition: color var(--t-fast); }
.nav__donate:hover {
  background: var(--yellow);
  color: #4A3B12;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 201, 93, .4);
}
.nav__donate:hover .icon { color: #4A3B12; }

.mobile-menu__donate { color: #8A6A15 !important; font-weight: 700 !important; }
.mobile-menu__donate .icon { color: var(--yellow-dark) !important; }

.eyebrow--warm { border-color: #F0DFAE; color: #8A6A15; }
.eyebrow--warm .icon { color: var(--yellow-dark); }

.donate {
  display: grid;
  gap: 24px;
  background: linear-gradient(160deg, var(--cream) 0%, var(--yellow-soft) 100%);
  border: 1px solid #F0DFAE;
  border-radius: var(--r-xl);
  padding: 28px 22px;
}

.donate__lead {
  font-size: clamp(1rem, 2.6vw, 1.12rem);
  color: var(--ink);
  margin-top: 10px;
  max-width: 52ch;
}

.donate__points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 22px 0 26px;
}
.donate__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.donate__ico {
  width: 40px; height: 40px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--white);
  border: 1px solid #F2E2BC;
  border-radius: 12px;
  color: var(--yellow-dark);
}
.donate__ico .icon { width: 20px; height: 20px; }
.donate__list .icon { width: 19px; height: 19px; color: var(--green-dark); flex: 0 0 auto; }

.donate__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.donate__warning { margin: 22px 0 0; background: var(--white); }

.donate__aside {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--sh-xs);
  align-self: start;
}
.donate__aside-title { font-size: 17px; }
.donate__aside-text { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.donate__list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 20px; }
.donate__list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }

/* Aviso de "sin monto mínimo" (sección y modal) */
.donate-free {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--white);
  border: 1px solid #F0DFAE;
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin: 18px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #6B520F;
  font-weight: 600;
}
.donate-free .icon { flex: 0 0 auto; width: 18px; height: 18px; color: var(--yellow-dark); margin-top: 2px; }
.detail .donate-free { margin: 0 0 22px; }

.donate-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  background: var(--white);
}
.donate-method__body { flex: 1; min-width: 0; }
.donate-method__label { font-size: 13px; color: var(--muted); }
.donate-method__value { font-weight: 700; font-size: 16px; word-break: break-word; }

/* Muro de transparencia */
.transparency {
  margin-top: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px 20px;
  box-shadow: var(--sh-xs);
}
.transparency__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.transparency__title { display: flex; align-items: center; gap: 9px; font-size: 18px; }
.transparency__title .icon { color: var(--green-dark); }
.transparency__sub { color: var(--muted); font-size: 14.5px; margin-top: 6px; max-width: 60ch; }

.transparency__summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.tsum {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.tsum__value { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--green-dark); }
.tsum__label { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.donation-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.donation-item__who { font-weight: 700; font-size: 15px; flex: 1 1 auto; min-width: 140px; }
.donation-item__meta { font-size: 13px; color: var(--muted); width: 100%; }
.donation-item__amount { font-weight: 800; font-size: 16px; color: var(--green-dark); }
.donation-item__msg {
  width: 100%;
  font-size: 14px;
  color: var(--ink);
  background: var(--green-soft);
  border-radius: var(--r-sm);
  padding: 8px 12px;
}

/* Panel de administración (revisión de donaciones) */
.admin-row {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 12px;
  background: var(--white);
}
.admin-row__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.admin-row__who { font-weight: 700; font-size: 15.5px; flex: 1 1 auto; min-width: 120px; }
.admin-row__amount { font-weight: 800; font-size: 17px; color: var(--green-dark); }

.admin-row__data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 14px 0 0;
}
.admin-row__data dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.admin-row__data dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 600; word-break: break-word; }

.admin-row__msg {
  margin-top: 12px;
  font-size: 14px;
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 8px 12px;
}
.admin-row__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Pestañas del panel */
.admin-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 5px;
  margin-bottom: 18px;
}
.admin-tab {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 14px;
  min-height: 44px;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--muted);
  font-size: 14.5px; font-weight: 600;
  transition: background var(--t-fast), color var(--t-fast);
}
.admin-tab .icon { width: 17px; height: 17px; }
.admin-tab:hover { color: var(--ink); }
.admin-tab[aria-selected="true"] {
  background: var(--white);
  color: var(--green-darker);
  box-shadow: var(--sh-xs);
}
.admin-tab .chip-count { background: var(--red-ink); }

/* Ficha de mascota en el panel */
.admin-row--pet { display: flex; gap: 14px; align-items: flex-start; }
.admin-row__thumb {
  width: 84px; height: 84px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--green-soft);
}
.admin-row__main { flex: 1; min-width: 0; }
.admin-row__confirm {
  width: 100%;
  display: flex; align-items: flex-start; gap: 9px;
  background: var(--red-soft);
  border: 1px solid var(--red-line);
  border-radius: var(--r-md);
  padding: 10px 13px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--red-ink);
}
.admin-row__confirm .icon { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; }

/* ------------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------------ */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding-top: 44px; margin-top: 0; }
.footer__inner { display: grid; gap: 30px; padding-bottom: 32px; }
.footer__logo {
  font-size: 18px; font-weight: 800; letter-spacing: -.02em;
  display: flex; align-items: center; gap: 9px;
}
.footer__logo .icon { width: 22px; height: 22px; color: var(--green-dark); }
.footer__text { color: var(--muted); font-size: 14.5px; margin-top: 8px; max-width: 40ch; }
.footer__place { margin-top: 12px; font-size: 14px; font-weight: 600; }
.footer__heading { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.footer__nav ul { display: flex; flex-direction: column; gap: 9px; }
.footer__nav a, .footer__nav .linklike { color: var(--ink); font-size: 14.5px; }
.footer__nav a:hover, .footer__nav .linklike:hover { color: var(--green-dark); }
.footer__note p { color: var(--muted); font-size: 14px; }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: 18px;
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: space-between;
  font-size: 13.5px; color: var(--muted);
}
.footer__demo { font-size: 12.5px; }

/* ------------------------------------------------------------------
   16. MODAL Y TOASTS
   ------------------------------------------------------------------ */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: end center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(38, 50, 56, .45); animation: fade .2s both; }
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 26px 20px 32px;
  box-shadow: var(--sh-lg);
  animation: slide-up .28s cubic-bezier(.2, .8, .3, 1) both;
}
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; }
body.is-locked { overflow: hidden; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.toasts {
  position: fixed;
  left: 50%; bottom: 20px;
  transform: translateX(-50%);
  z-index: 200;
  display: flex; flex-direction: column; gap: 8px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink);
  color: #fff;
  padding: 13px 16px;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  font-size: 14.5px;
  animation: toast-in .25s both;
}
.toast--success { background: var(--green-dark); }
.toast--error { background: var(--red); }
.toast .icon { width: 18px; height: 18px; flex: 0 0 auto; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------
   17. RESPONSIVE
   ------------------------------------------------------------------ */
/* Solo móvil: áreas táctiles cómodas en los controles secundarios */
@media (max-width: 719px) {
  .field__control--sm,
  .btn--sm { min-height: 44px; }
  .footer__nav a, .footer__nav .linklike { display: inline-block; padding-block: 10px; }
  .footer__nav ul { gap: 2px; }
}

@media (min-width: 560px) {
  /* auto-fit: sirve igual con 3 indicadores (producción) que con 4 (demo) */
  .stats__grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .pet-grid { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
  .help-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .report-choice { grid-template-columns: repeat(2, 1fr); }
  .success__actions { flex-direction: row; justify-content: center; }
  /* Los filtros se acomodan solos: 2 columnas en tablet, hasta 5 en escritorio */
  .filters__grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .card, .modal__dialog { padding: 30px; }
  .choice-grid { grid-template-columns: repeat(3, 1fr); }
  .searchbar { grid-template-columns: 1fr auto auto; align-items: center; }
  .searchbar__submit, .searchbar__filters { width: auto; }
  .detail__facts { grid-template-columns: repeat(3, 1fr); }
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; }
  .donate { grid-template-columns: 1.5fr 1fr; gap: 32px; padding: 36px; }
  .transparency { padding: 30px; }
  .transparency__head { flex-direction: row; align-items: center; justify-content: space-between; }
  .transparency__summary { grid-template-columns: repeat(4, 1fr); }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .modal { place-items: center; }
  .modal__dialog { border-radius: var(--r-xl); max-height: 88vh; }
  .hero { padding: 60px 0 72px; }
}

@media (min-width: 960px) {
  .header__cta { display: inline-flex; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
  .hero__visual { min-height: 420px; }
  .help-grid { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 76px 0; }
}

/* El menú horizontal solo aparece cuando de verdad cabe completo (1100px).
   Por debajo manda el hamburguesa, en vez de apretujar o partir los enlaces. */
@media (min-width: 1100px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* Preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
