/* Wagmore Project (fix16) — el tablón de mascotas del grupo.
   Piel de la casa: papel #faf8f3, verde #173e32, dorado #d9bc83,
   Playfair Display + Libre Franklin (la pila del portal).
   TODOS los estilos de la sección viven en esta hoja: ninguna
   otra hoja del portal se toca. */

/* ---------- Portada de la sección ---------- */
.wag-hero { position: relative; overflow: hidden; padding: 8px 4px 4px; }
.wag-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #173e32; margin: 2px 0 10px;
}
.wag-intro { max-width: 68ch; color: #3d434d; }
.wag-resumen { color: #173e32; }
.wag-corner { position: absolute; color: #d9bc83; opacity: .45; pointer-events: none; }
.wag-corner svg { display: block; }
.wag-corner--tl { top: -14px; right: 6px; transform: rotate(18deg); }
.wag-corner--tl svg { width: 92px; height: 92px; }
.wag-corner--br { bottom: -20px; right: 84px; transform: rotate(-24deg); }
.wag-corner--br svg { width: 56px; height: 56px; }

/* ---------- Filtros ---------- */
.wag-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }
.wag-filters a {
  border: 1px solid #d9bc83; border-radius: 999px; padding: 6px 14px;
  color: #173e32; text-decoration: none; background: #fffdf8;
  font-family: 'Libre Franklin', system-ui, sans-serif; font-size: .92rem;
}
.wag-filters a:hover { border-color: #173e32; }
.wag-filters a.wag-on { background: #173e32; color: #faf8f3; border-color: #173e32; }

/* ---------- La mampostería de casos ---------- */
.wag-grid { columns: 3 300px; column-gap: 20px; }
.wag-card {
  break-inside: avoid; display: inline-block; width: 100%;
  background: #fffdf8; border: 1px solid #e3ddcd; border-radius: 14px;
  overflow: hidden; margin: 0 0 20px; vertical-align: top;
  box-shadow: 0 1px 3px rgba(23, 62, 50, .07);
}
.wag-photo { position: relative; background: #efe9da; }
.wag-photo img { display: block; width: 100%; height: auto; }
.wag-photo--ph {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 34px 16px 26px; color: #b49b5e;
  font-family: 'Libre Franklin', system-ui, sans-serif; font-size: .85rem;
}
.wag-photo--ph .wag-paw-ph { width: 64px; height: 64px; opacity: .8; }
.wag-card--resuelto .wag-photo img { filter: saturate(.55); }
.wag-body { padding: 14px 16px 16px; position: relative; }

/* ---------- Insignias y sello ---------- */
.wag-badge {
  display: inline-block; border-radius: 999px; padding: 3px 11px;
  font-family: 'Libre Franklin', system-ui, sans-serif;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #faf8f3; background: #173e32;
}
.wag-badge--perdido    { background: #9c3d2e; }
.wag-badge--encontrado { background: #173e32; }
.wag-badge--abandonado  { background: #6d4c41; }
.wag-badge--adopcion   { background: #d9bc83; color: #173e32; }
.wag-badge--rescate    { background: #3d5a73; }
/* El sello «Resuelto»: la referencia del dueño (Nov 10) —
   cuño de goma verde oscuro sobre papel: borde doble (el
   grueso de fuera + la línea fina de dentro, con su respiro
   de papel entre ambos), esquinas redondeadas y su inclinación. */
.wag-seal {
  position: absolute; top: 12px; right: 12px;
  border: 3px solid #173e32; color: #173e32; border-radius: 9px;
  box-shadow: inset 0 0 0 2px rgba(250, 248, 243, .92), inset 0 0 0 4px #173e32;
  padding: 3px 12px; transform: rotate(5deg);
  font-family: 'Libre Franklin', system-ui, sans-serif;
  font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem;
  background: rgba(250, 248, 243, .92);
}

/* ---------- Texto de la tarjeta ---------- */
.wag-animal {
  font-family: 'Playfair Display', Georgia, serif;
  color: #173e32; font-size: 1.18rem; line-height: 1.3; margin: 10px 0 4px;
}
.wag-meta { color: #6d7268; font-size: .9rem; margin: 0 0 8px; }
.wag-text { color: #23262c; margin: 0 0 10px; }
.wag-author { color: #6d7268; font-size: .88rem; margin: 0 0 8px; }
.wag-more { margin: 0 0 12px; }
.wag-more a { color: #173e32; font-weight: 700; text-decoration-color: #d9bc83; }
.wag-more span { display: block; color: #6d7268; font-size: .8rem; }
.wag-resolution {
  border-left: 3px solid #d9bc83; background: #faf8f3;
  padding: 8px 10px; color: #3d434d; font-size: .9rem; margin: 0 0 10px;
}

/* ---------- El teléfono, llamativo: botón dorado de llamada ---------- */
.wag-call {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: #d9bc83; color: #173e32; border: 1px solid #bfa25f;
  border-radius: 10px; padding: 11px 14px; margin: 0 0 10px;
  font-family: 'Libre Franklin', system-ui, sans-serif;
  font-weight: 800; font-size: 1.05rem; letter-spacing: .01em;
  text-decoration: none; box-shadow: 0 2px 6px rgba(23, 62, 50, .18);
}
.wag-call svg { width: 20px; height: 20px; flex: none; }
.wag-call:hover { background: #cdb073; }

/* ---------- Acciones: resolver / reabrir / entrar ---------- */
.wag-actions { margin-top: 4px; }
.wag-btn {
  border: 1px solid #173e32; background: #173e32; color: #faf8f3;
  border-radius: 9px; padding: 9px 15px; cursor: pointer;
  font-family: 'Libre Franklin', system-ui, sans-serif; font-weight: 700; font-size: .95rem;
}
.wag-btn--ghost { background: transparent; color: #173e32; }
.wag-btn[disabled] { opacity: .55; cursor: wait; }
.wag-login-note { color: #3d434d; margin: 0 0 8px; }
.wag-empty {
  border: 1px dashed #d9bc83; border-radius: 12px; background: #fffdf8;
  padding: 22px; color: #3d434d; text-align: center;
}

/* ---------- Añadir caso (fix28): el botón al grupo + pasos ---------- */
.wag-add {
  border: 1px solid #d9bc83; border-radius: 14px; background: #fffdf8;
  box-shadow: 0 1px 3px rgba(23, 62, 50, .07);
  padding: 20px 22px; margin: 16px 0 4px; max-width: 68ch;
}
.wag-add-head { display: flex; align-items: center; gap: 12px; }
.wag-add-paw { color: #b49b5e; flex: none; }
.wag-add-paw svg { display: block; width: 34px; height: 34px; }
.wag-add-head h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #173e32; margin: 0; font-size: 1.35rem; line-height: 1.25;
}
.wag-add-lead { color: #3d434d; margin: 10px 0 14px; }
.wag-add-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: #d9bc83; color: #173e32; border: 1px solid #bfa25f;
  border-radius: 10px; padding: 13px 18px;
  font-family: 'Libre Franklin', system-ui, sans-serif;
  font-weight: 800; font-size: 1.1rem; letter-spacing: .01em;
  text-decoration: none; box-shadow: 0 2px 6px rgba(23, 62, 50, .18);
}
.wag-add-btn:hover { background: #cdb073; }
.wag-add-steps-title {
  font-family: 'Libre Franklin', system-ui, sans-serif;
  color: #173e32; font-size: 1rem; margin: 18px 0 8px;
}
.wag-add-steps { margin: 0 0 14px; padding-left: 22px; color: #23262c; }
.wag-add-steps li { margin: 0 0 6px; }
.wag-add-note {
  border-left: 3px solid #d9bc83; background: #faf8f3;
  padding: 8px 10px; color: #3d434d; font-size: .92rem; margin: 0;
}

/* ---------- La ventana suave de confirmación (fix29) ---------- */
.wag-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.wag-modal[hidden] { display: none; }
.wag-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(23, 62, 50, .48);
}
.wag-modal-card {
  position: relative; width: 100%; max-width: 430px;
  background: #fffdf8; border: 1px solid #d9bc83; border-radius: 14px;
  box-shadow: 0 18px 50px rgba(23, 62, 50, .35);
  padding: 24px 24px 20px; text-align: center;
}
.wag-modal-paw { display: block; color: #b49b5e; margin-bottom: 6px; }
.wag-modal-paw svg { display: block; width: 40px; height: 40px; margin: 0 auto; }
.wag-modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  color: #173e32; font-size: 1.4rem; line-height: 1.25; margin: 0 0 10px;
}
.wag-modal-text { color: #3d434d; margin: 0 0 18px; }
.wag-modal-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
