:root {
  --bg: #eaf8f0; 
  --green-1: #0f8a3a;
  --green-2: #45b26b;
  --green-3: #dff5e6;
  --muted: #51645a;
  --radius: 10px;
  --shadow: 0 6px 18px rgba(15, 138, 58, 0.12);
}

html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--green-1);
}

header {
  text-align: center;
  padding: 20px 12px;
}
header h1.wunder {
  margin: 0;
  font-size: 1.8rem;
  color: var(--green-1);
}

.home-btn {
  position: fixed;
  left: 18px;
  top: 18px;
  background: linear-gradient(180deg, var(--green-1), var(--green-2));
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
  z-index: 9999;
  border: 2px solid rgba(255, 255, 255, 0.08);
}
.home-btn:hover {
  transform: translateY(-2px);
}

.seleccion {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  padding: 18px 22px;
  max-width: 1200px;
  margin: 0 auto 28px;
}

.boton {
  background: transparent;
  border: 2px solid var(--green-2);
  color: var(--green-1);
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
}

.animalTarjeta {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--green-3);
  border-left: 6px solid var(--green-2);
  padding: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.35;
}
.tabla {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.animalTarjeta {
  transform-origin: center center;
  transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.2, 1),
    box-shadow 0.18s ease;
  cursor: pointer;
}
.animalTarjeta:hover,
.animalTarjeta:focus-within,
.animalTarjeta:active {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 14px 30px rgba(15, 138, 58, 0.18);
}
.animalTarjeta:hover .tabla,
.animalTarjeta:active .tabla {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .animalTarjeta,
  .tabla {
    transition: none !important;
  }
  .animalTarjeta:hover,
  .animalTarjeta:active {
    transform: none !important;
    box-shadow: var(--shadow) !important;
  }
}

a {
  color: var(--green-1);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .seleccion {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .tabla {
    width: 72px;
    height: 72px;
  }
  header h1.wunder {
    font-size: 1.4rem;
  }
  .home-btn {
    left: 12px;
    top: 12px;
    padding: 8px 10px;
  }
}
