/* ---------- Tarjetas de mascotas ---------- */
.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}
.pet-card {
  position: relative;
  display: block;
  aspect-ratio: 1.3;
  overflow: hidden;
  border-radius: calc(var(--radius-hero) - 4px);
  background: var(--color-primary-light);
  color: #fff;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.pet-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  text-decoration: none;
}
.pet-card > img,
.pet-card > .photo-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pet-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(40, 30, 25, 0.72));
}
.pet-card__status {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  color: var(--color-text);
}
.pet-card__info {
  position: absolute;
  left: var(--space-lg);
  right: var(--space-lg);
  bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.pet-card__info strong {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pet-card__info span {
  font-size: 15px;
  opacity: 0.95;
}
.photo-placeholder {
  display: grid;
  place-items: center;
  background: var(--color-primary-light);
  color: #fff;
}
.thumb {
  flex: none;
  overflow: hidden;
  border-radius: 16px;
  background: var(--color-primary-light);
}
.thumb img,
.thumb .photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.load-more {
  display: flex;
  justify-content: center;
  padding-top: var(--space-md);
}

/* ---------- Inicio ---------- */
.home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}
.home-head h1 {
  font-size: 32px;
}
.search-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1 1 320px;
  max-width: 560px;
}
.search-row__field {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
  min-height: 56px;
  padding: 0 22px;
  border-radius: var(--radius-field);
  background: var(--color-field);
  color: var(--color-muted);
  font-weight: 600;
}
.search-row__field:hover {
  background: var(--color-primary-soft);
  text-decoration: none;
}
.banner {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--space-xxl);
  border-radius: var(--radius-hero);
  color: #fff;
}
.banner__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 15% center;
}
.banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(85, 75, 69, 0.55) 0%, rgba(211, 152, 134, 0.55) 45%, rgba(211, 152, 134, 0.35) 100%);
}
.banner__text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  max-width: 460px;
}
.banner__text h2 {
  font-size: 28px;
}
.banner .btn--soft,
.hero-share .btn--soft {
  background: #fff;
  color: var(--color-primary);
}

.carousel {
  position: relative;
}
.carousel__track {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  padding: 4px 2px var(--space-md);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar {
  display: none;
}
.carousel__item {
  flex: 0 0 min(78%, 300px);
  scroll-snap-align: start;
}
.carousel__nav {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.carousel-skeleton {
  display: flex;
  gap: var(--space-lg);
  overflow: hidden;
}
.carousel-skeleton .skeleton {
  flex: 0 0 min(78%, 300px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}
/* 4 tarjetas fijas en 2x2: con auto-fit, según el ancho, la 4ta a veces
   quedaba sola en una segunda fila con dos huecos al lado. */
.feature-grid--pairs {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 560px) {
  .feature-grid--pairs {
    grid-template-columns: 1fr;
  }
}
.feature-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: var(--space-lg);
  border: 0;
  border-radius: var(--radius-card-lg);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.feature-tile:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
  text-decoration: none;
}
.feature-tile__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding: var(--space-xl);
}
.cta-card__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ---------- "Cómo funciona" (pasos, con foto) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
@media (max-width: 700px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}
.step-tile {
  border-radius: var(--radius-card-lg);
  background: var(--color-surface);
  overflow: hidden;
}
.step-tile__photo {
  position: relative;
  height: 140px;
}
.step-tile__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.step-tile__number {
  position: absolute;
  right: var(--space-md);
  bottom: -18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-background);
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
}
.step-tile__body {
  padding: var(--space-lg);
}
.step-tile__body .feature-tile__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-sm);
}

/* Variante no interactiva de feature-tile: mismo look, sin hover de link. */
.feature-tile--static {
  cursor: default;
}
.feature-tile--static:hover {
  box-shadow: none;
  transform: none;
}

/* ---------- Franja de ancho completo (fondo de color) ---------- */
.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.band {
  position: relative;
  overflow: hidden;
  padding: var(--space-3xl) 0;
}
.band__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(211, 152, 134, 0.6), rgba(211, 152, 134, 0));
}
.band__inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.band .section-header h2 {
  color: #fff;
}
.band .feature-tile__icon {
  background: var(--color-surface);
}

/* ---------- Preguntas frecuentes ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.faq__item {
  border-radius: var(--radius-card-lg);
  background: var(--color-surface);
  overflow: hidden;
}
.faq__item[open] {
  box-shadow: var(--shadow-soft);
}
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker {
  display: none;
}
.faq__question .icon {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq__item[open] .faq__question .icon {
  transform: rotate(90deg);
}
.faq__answer {
  margin: 0;
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-muted);
}
/* ---------- Compartir (cierre, con foto de fondo) ---------- */
.hero-share {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.hero-share img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-share__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(40, 30, 25, 0.5), rgba(40, 30, 25, 0.75));
}
.hero-share__content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}
.hero-share__content h2 {
  color: #fff;
}
.hero-share__content p {
  margin: var(--space-sm) 0 var(--space-lg);
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 600px) {
  .banner {
    padding: var(--space-xl);
  }
  .pet-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Mapa ---------- */
.map-page {
  position: relative;
  height: calc(100vh - var(--navbar-height));
  min-height: 420px;
}
/* Mapbox le pone `position: relative` al contenedor (su CSS carga después del
   nuestro): sin tamaño explícito el mapa quedaría colapsado y en blanco. */
.map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-pill {
  position: absolute;
  top: var(--space-lg);
  left: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: calc(100% - 140px);
  padding: 10px var(--space-lg);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  transform: translateX(-50%);
}
.map-pill .icon {
  color: var(--color-primary);
}
.map-filter {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: 5;
}
.map-filter .icon-btn {
  box-shadow: var(--shadow-soft);
  background: var(--color-surface);
}
.map-filter .icon-btn--active {
  background: var(--color-primary-light);
}
.map-popup-host {
  position: absolute;
  left: var(--space-lg);
  bottom: 48px;
  z-index: 6;
  width: min(420px, calc(100% - 2 * var(--space-lg)));
}
.map-legend {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
}
.map-legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.map-popup {
  position: relative;
  padding: var(--space-lg);
  border-radius: var(--radius-card-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-lift);
}
.map-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
}
.map-popup__row {
  display: flex;
  gap: var(--space-md);
  padding-right: 44px;
}
.map-popup__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.map-popup__text strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 20px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-popup__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-md);
}
.map-pin {
  position: relative;
  display: block;
  width: 34px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 3px 4px rgba(85, 75, 69, 0.35));
  transition: transform 0.12s ease;
}
.map-pin:hover,
.map-pin--selected {
  transform: scale(1.18);
  transform-origin: 50% 100%;
  z-index: 2;
}
.map-pin__label {
  position: absolute;
  top: 100%;
  left: 50%;
  max-width: 130px;
  overflow: hidden;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 5px #fff;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

/* ---------- Detalle ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  font-weight: 700;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-xxl);
  align-items: start;
  margin-bottom: var(--space-xl);
}
.gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.gallery {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-hero);
  background: var(--color-primary-light);
}
.gallery__stage {
  aspect-ratio: 4 / 3;
}
.gallery__stage--clickable {
  cursor: zoom-in;
}
.gallery__stage img,
.gallery__stage .photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__counter {
  position: absolute;
  right: var(--space-lg);
  bottom: var(--space-lg);
}
.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
}
.gallery__nav--prev {
  left: var(--space-md);
}
.gallery__nav--next {
  right: var(--space-md);
}
.gallery__thumbs {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
}
.gallery__thumb {
  flex: none;
  width: 72px;
  height: 72px;
  padding: 0;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 16px;
  background: var(--color-primary-light);
  opacity: 0.75;
}
.gallery__thumb[aria-current='true'] {
  border-color: var(--color-primary);
  opacity: 1;
}
.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-md) var(--space-lg);
  border-radius: 18px;
  background: var(--color-surface);
  font-size: 14px;
}
.stat-card strong {
  font-size: 17px;
}
.action-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
}
.action-panel__divider {
  height: 1px;
  margin: var(--space-xs) 0;
  background: var(--color-border);
}
.detail-info {
  padding: var(--space-xl);
}
.detail-row {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
}
.detail-row__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.detail-row .muted {
  font-size: 13px;
}
.prewrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mini-map {
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius-field);
  background: var(--color-field);
}

/* ---------- Formularios ---------- */
.form-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  border-radius: var(--radius-card-lg);
  background: var(--color-surface);
}
.form-section .input,
.form-section .select,
.form-section .textarea {
  background: var(--color-field);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xl);
  border: 2px dashed var(--color-primary-light);
  border-radius: var(--radius-field);
  background: var(--color-field);
  color: var(--color-primary);
  text-align: center;
}
.drop-zone strong {
  color: var(--color-text);
}
.drop-zone:hover,
.drop-zone--over {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
}
.photo-picker {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-md);
}
.photo-grid:empty {
  display: none;
}
.photo-grid__item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  background: var(--color-primary-light);
}
.photo-grid__item img,
.photo-grid__item .photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-grid__main {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 2px 10px;
  font-size: 12px;
}
.photo-grid__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(85, 75, 69, 0.75);
  color: #fff;
}
.photo-grid__remove:hover {
  background: var(--color-text);
}
.location-picker__top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: end;
}
.location-picker__search {
  position: relative;
}
.suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 20;
  margin: var(--space-xs) 0 0;
  padding: var(--space-xs);
  list-style: none;
  border-radius: var(--radius-field);
  background: var(--color-surface);
  box-shadow: var(--shadow-lift);
}
.suggestions__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: none;
  text-align: left;
}
.suggestions__item:hover,
.suggestions__item:focus-visible {
  background: var(--color-field);
}
.picker-map {
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius-field);
  background: var(--color-field);
}

/* ---------- Listas (mis publicaciones, resultados, mensajes) ---------- */
.mine-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.mine-card__main {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: inherit;
  text-decoration: none;
}
.mine-card__main:hover {
  text-decoration: none;
}
.mine-card__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.mine-card__text strong {
  font-size: 18px;
  font-weight: 800;
}
.mine-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.visual-result {
  padding: var(--space-lg);
}
.conversation-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.conversation-row__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.conversation-row__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.conversation-row__text strong {
  font-size: 17px;
  font-weight: 800;
}

/* ---------- Conversación ---------- */
.thread {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--navbar-height));
  padding-bottom: var(--space-lg);
}
.thread__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.thread__head .back-link {
  margin-bottom: 0;
}
.thread__head h1 {
  flex: 1;
  min-width: 0;
  font-size: 22px;
}
.thread__feed {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-sm);
  min-height: 0;
  padding: var(--space-md) 2px;
  overflow-y: auto;
}
.bubble-row {
  display: flex;
}
.bubble-row--mine {
  justify-content: flex-end;
}
.bubble {
  max-width: min(78%, 480px);
  padding: 10px 16px;
  border-radius: 20px 20px 20px 6px;
  background: var(--color-surface);
}
.bubble--mine {
  border-radius: 20px 20px 6px 20px;
  background: var(--color-primary);
  color: #fff;
}
.bubble time {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.7;
  text-align: right;
}
.thread__composer {
  padding-top: var(--space-md);
}
.composer {
  display: flex;
  align-items: flex-end;
  gap: var(--space-sm);
}
.composer .textarea {
  min-height: 56px;
  max-height: 140px;
  padding: 16px 22px;
  resize: none;
}
.send-btn {
  flex: none;
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: #fff;
}
.send-btn:hover {
  background: #c98a77;
}

/* ---------- Perfil ---------- */
.profile-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
}
.profile-head .avatar {
  margin-bottom: var(--space-sm);
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}
@media (max-width: 600px) {
  .form-row,
  .location-picker__top {
    grid-template-columns: 1fr;
  }
  .form-section {
    padding: var(--space-lg);
  }
  .map-popup-host {
    left: var(--space-md);
    width: calc(100% - 2 * var(--space-md));
    bottom: 40px;
  }
  .thread {
    height: calc(100vh - var(--navbar-height));
  }
}

/* ---------- Avistamientos (vista del dueño) ---------- */
.mini-map--tall {
  height: 280px;
}
.sightings-alert {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-field);
  background: var(--color-primary-soft);
  font-weight: 700;
}
.sightings-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sighting {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-field);
  background: var(--color-background);
}
.sighting--received {
  box-shadow: inset 4px 0 0 var(--color-primary);
}
.sighting--discarded {
  opacity: 0.65;
}
.sighting__number {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
}
.sighting__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
}
.sighting__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.sighting__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ---------- Reportes ---------- */
.report-btn {
  display: grid;
  place-items: center;
  flex: none;
  align-self: center;
  width: 36px;
  height: 36px;
  margin-left: var(--space-xs);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-muted);
}
.report-btn:hover,
.report-btn:focus-visible {
  background: var(--color-field);
  color: var(--color-danger);
}

/* ---------- Usuarios bloqueados (perfil) ---------- */
.blocked-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.blocked-row__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ---------- Páginas legales (terms.html, privacy.html) ---------- */
.legal {
  max-width: 780px;
}
.legal h1 {
  margin-bottom: var(--space-sm);
  font-size: 32px;
}
.legal h2 {
  margin: var(--space-xl) 0 var(--space-sm);
  font-size: 20px;
}
.legal p,
.legal li {
  margin-bottom: var(--space-sm);
}
.legal ul {
  padding-left: var(--space-xl);
}
.legal .updated {
  color: var(--color-muted);
}
.draft-note {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-field);
  background: #fff4d6;
  color: #6b5200;
  font-weight: 700;
}
.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
}
.site-footer a {
  color: inherit;
  text-decoration: underline;
}
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-sm);
}
