/* ============================================
   ANIMALS-MODERN.CSS
   Listados, fichas simples y cards de animales
   (SIN modal ficha completa, SIN notificaciones,
    SIN formularios, SIN mapa/filtros/paneles)
   ============================================ */

/* Nota:
   - NO redefinimos :root ni body aquí.
   - Usamos tokens globales de variables.css
   - Este archivo solo contiene UI de animales:
     cards, listados y ficha simple.
*/

/* ============================================
   CARDS DE ANIMALES
   ============================================ */
.card-animal {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card-animal:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-color-dark, var(--border-color));
}

.card-animal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.card-animal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.card-animal-tipo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-animal-tipo.perdido {
  background: rgba(255, 107, 107, 0.12);
  color: var(--color-lost);
}

.card-animal-tipo.encontrado {
  background: rgba(29, 209, 161, 0.12);
  color: var(--color-found);
}

.card-animal-tipo.adopcion {
  background: rgba(155, 89, 182, 0.12);
  color: var(--color-adoption);
}

.card-animal-fecha {
  font-size: 0.75rem;
  color: var(--text-light);
  white-space: nowrap;
}

.card-animal-titulo {
  margin: 0 0 var(--space-2);
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
}

.card-animal-imagen {
  display: block;
  width: 100%;
  height: 180px;
  margin-bottom: var(--space-3);
  object-fit: cover;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.card-animal-descripcion {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: var(--space-3);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: var(--line-height-relaxed);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-animal-detalles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: 0.95rem;
}

.card-animal-detalle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--text-light);
}

.card-animal-detalle strong {
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
}

.card-animal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-color-light);
}

.card-animal-ubicacion {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--text-light);
  font-size: 0.95rem;
  min-width: 0;
}

.card-animal-acciones {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Estado loading */
.card-animal.loading {
  animation: pulse-subtle 2s ease-in-out infinite;
}

/* ============================================
   FICHA SIMPLE (NO MODAL PANTALLA COMPLETA)
   ============================================ */
.ficha-animal {
  margin: var(--space-4) 0;
  padding: var(--space-6);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.ficha-animal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.ficha-animal-titulo {
  margin: 0 0 var(--space-1);
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

.ficha-animal-subtitulo {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.ficha-animal-imagen {
  display: block;
  width: 100%;
  max-height: 300px;
  margin: var(--space-4) 0;
  object-fit: cover;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
}

.ficha-animal-contenido {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .ficha-animal-contenido {
    grid-template-columns: 1fr 1fr;
  }
}

.ficha-animal-seccion {
  margin-bottom: var(--space-4);
}

.ficha-animal-seccion-titulo {
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-2);
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  border-bottom: 2px solid var(--border-color-light);
}

.ficha-animal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-3);
}

.ficha-animal-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.ficha-animal-label {
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ficha-animal-valor {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
}

.ficha-animal-descripcion {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: var(--line-height-relaxed);
  white-space: pre-line;
}

/* ============================================
   LISTADO DE ANIMALES
   ============================================ */
.lista-animales {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .lista-animales {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lista-animales {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============================================
   PLACEHOLDER / IMAGEN VACÍA
   ============================================ */
.luupigo-animal-placeholder-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 200px;
  font-size: 3.5rem;
  color: var(--text-primary);
  background: radial-gradient(
    circle at top,
    var(--bg-tertiary) 0%,
    var(--bg-secondary) 100%
  );
  border-radius: var(--radius-lg);
  opacity: 0.9;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  .ficha-animal {
    margin: var(--space-2) 0;
    padding: var(--space-4);
  }

  .ficha-animal-titulo {
    font-size: 1.25rem;
  }

  .luupigo-animal-placeholder-emoji {
    min-height: 160px;
    font-size: 2.8rem;
  }

  .card-animal-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-animal-acciones {
    width: 100%;
  }
}

/* ============================================
   MODO OSCURO
   ============================================ */
@media (prefers-color-scheme: dark) {
  .card-animal,
  .ficha-animal {
    border-color: var(--border-color-dark, var(--border-color));
  }

  .card-animal:hover {
    border-color: var(--border-color);
  }
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .card-animal,
  .card-animal.loading {
    transition: none !important;
    animation: none !important;
  }

  .card-animal:hover {
    transform: none;
  }
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}









/*en teoria esto va en animals modern*/
/* =========================================================
   ESTILO DE TARJETAS CERCA DE TI - LuupiGÜ style
   ========================================================= */

/* Contenedor de tarjetas de animales cercanos */
.luupigo-nearby-container {
  position: absolute;
  bottom: calc(86px + env(safe-area-inset-bottom));
  left: 16px;
  right: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.luupigo-nearby-container > * {
  pointer-events: auto;
}

/* Tarjeta individual de animal */
.nearby-animal-card {
  background: rgba(18, 18, 36, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nearby-animal-card:active {
  transform: scale(0.98);
  background: rgba(18, 18, 36, 0.95);
}

/* Icono del animal */
.nearby-animal-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.nearby-animal-icon.perdido {
  background: rgba(255, 107, 107, 0.15);
}

.nearby-animal-icon.encontrado {
  background: rgba(81, 207, 102, 0.15);
}

/* Contenido de la tarjeta */
.nearby-animal-info {
  flex: 1;
}

.nearby-animal-name {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.nearby-animal-status {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255, 107, 107, 0.9);
  color: white;
}

.nearby-animal-status.encontrado {
  background: rgba(81, 207, 102, 0.9);
}

.nearby-animal-details {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nearby-animal-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nearby-animal-distance {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nearby-animal-probability {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #FFD700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Flecha indicadora */
.nearby-animal-arrow {
  color: rgba(255, 255, 255, 0.4);
  font-size: 20px;
}

/* Título de sección */
.nearby-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  padding: 0 4px;
}

.nearby-section-title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.nearby-section-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* Estado vacío */
.nearby-empty-state {
  background: rgba(18, 18, 36, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 24px 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nearby-empty-icon {
  font-size: 40px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.nearby-empty-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================================
   PASEANTE ACTIVO - Banner superior
   ========================================================= */
//////.paseante-active-info {
//////  display: flex;
//////  align-items: center;
//////  gap: 12px;
//////}
//////
//////.paseante-active-icon {
//////  width: 44px;
//////  height: 44px;
//////  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
//////  border-radius: 22px;
//////  display: flex;
//////  align-items: center;
//////  justify-content: center;
//////  font-size: 22px;
//////}
//////
//////.paseante-active-text {
//////  display: flex;
//////  flex-direction: column;
//////}
//////
//////.paseante-active-title {
//////  font-size: 14px;
//////  font-weight: 700;
//////  color: white;
//////}
//////
//////.paseante-active-subtitle {
//////  font-size: 11px;
//////  color: rgba(255, 255, 255, 0.5);
//////}
//////
//////.paseante-active-time {
//////  font-family: monospace;
//////  font-size: 16px;
//////  font-weight: 700;
//////  color: #51CF66;
//////}
//////
//////.paseante-active-close {
//////  width: 36px;
//////  height: 36px;
//////  background: rgba(255, 255, 255, 0.1);
//////  border-radius: 18px;
//////  display: flex;
//////  align-items: center;
//////  justify-content: center;
//////  font-size: 18px;
//////  color: rgba(255, 255, 255, 0.6);
//////  cursor: pointer;
//////  transition: all 0.2s ease;
//////}
//////
//////.paseante-active-close:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.95);
}

/* =========================================================
   AJUSTES DE ESPACIADO - VERSIÓN MEJORADA
   ========================================================= */

/* Contenedor principal del stack inferior */
//////.luupigo-map-bottom-stack {
//////  position: absolute;
//////  left: 16px;
//////  right: 16px;
//////  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
//////  z-index: 1030;
//////  display: flex;
//////  flex-direction: column;
//////  gap: 14px;
//////  pointer-events: none;
//////  max-height: 55vh;
//////  overflow-y: auto;
//////  overflow-x: hidden;
//////  padding-bottom: 8px;
//////}
//////
///////* Scrollbar bonito */
//////.luupigo-map-bottom-stack::-webkit-scrollbar {
//////  width: 3px;
//////}
//////
//////.luupigo-map-bottom-stack::-webkit-scrollbar-track {
//////  background: rgba(255,255,255,0.1);
//////  border-radius: 10px;
//////}
//////
//////.luupigo-map-bottom-stack::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 10px;
}

/* Banner Paseante Activo - MÁS ESPACIADO */
//////.paseante-active-info {
//////  display: flex;
//////  align-items: center;
//////  gap: 14px;
//////}
//////
//////.paseante-active-icon {
//////  width: 52px;
//////  height: 52px;
//////  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
//////  border-radius: 26px;
//////  display: flex;
//////  align-items: center;
//////  justify-content: center;
//////  font-size: 26px;
//////}
//////
//////.paseante-active-text {
//////  display: flex;
//////  flex-direction: column;
//////  gap: 4px;
//////}
//////
//////.paseante-active-title {
//////  font-size: 16px;
//////  font-weight: 800;
//////  color: white;
//////}
//////
//////.paseante-active-subtitle {
//////  font-size: 12px;
//////  color: rgba(255, 255, 255, 0.6);
//////}
//////
//////.paseante-active-time {
//////  font-family: monospace;
//////  font-size: 18px;
//////  font-weight: 800;
//////  color: #51CF66;
//////  background: rgba(81, 207, 102, 0.15);
//////  padding: 6px 12px;
//////  border-radius: 30px;
//////}
//////
//////.paseante-active-close {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Título de sección - MÁS ESPACIADO */
.nearby-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 4px;
  margin-bottom: 4px;
  padding: 0 6px;
}

.nearby-section-title {
  font-size: 17px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.3px;
}

.nearby-section-count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

/* Tarjeta de animal - MÁS ESPACIADA */
.nearby-animal-card {
  background: rgba(18, 18, 36, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.nearby-animal-card:active {
  transform: scale(0.98);
  background: rgba(18, 18, 36, 0.95);
}

/* Icono del animal - MÁS GRANDE */
.nearby-animal-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
}

.nearby-animal-icon.perdido {
  background: rgba(255, 107, 107, 0.12);
}

.nearby-animal-icon.encontrado {
  background: rgba(81, 207, 102, 0.12);
}

/* Contenido de la tarjeta */
.nearby-animal-info {
  flex: 1;
}

.nearby-animal-name {
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.nearby-animal-status {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 30px;
  background: rgba(255, 107, 107, 0.9);
  color: white;
  letter-spacing: 0.5px;
}

.nearby-animal-status.encontrado {
  background: rgba(81, 207, 102, 0.9);
}

.nearby-animal-details {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  row-gap: 6px;
}

.nearby-animal-time,
.nearby-animal-distance {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nearby-animal-probability,
.nearby-animal-probabilidad {
  font-size: 12px;
  padding: 4px 12px;
  background: rgba(255, 215, 0, 0.15);
  border-radius: 30px;
  color: #FFD700;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.nearby-animal-status-badge {
  font-size: 12px;
  padding: 4px 12px;
  background: rgba(81, 207, 102, 0.15);
  border-radius: 30px;
  color: #51CF66;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Flecha indicadora */
.nearby-animal-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 24px;
  font-weight: 300;
}

/* Separador entre tarjetas */
.nearby-animal-card + .nearby-animal-card {
  margin-top: 0;
}

/* Scroll suave y elegante */
//////.luupigo-map-bottom-stack {
//////  scrollbar-width: thin;
//////  scrollbar-color: rgba(255,255,255,0.3) transparent;
//////}
//////
//////.luupigo-map-bottom-stack::-webkit-scrollbar {
//////  width: 3px;
//////}
//////
//////.luupigo-map-bottom-stack::-webkit-scrollbar-track {
//////  background: transparent;
//////}
//////
//////.luupigo-map-bottom-stack::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 10px;
}