/*Cosas globales*/
* {
  margin: 0%;
  font-family: "Poppins", sans-serif;
}


body {
  background-color: #FFEFEF;
      text-align: center;

}

.parent {
    display: grid;
    grid-template-columns: repeat(auto-fit, 300px); /* 300px es el ancho de tus imágenes */
    justify-content: center;
    gap: 5px;
    margin: 2%;
    align-items: center;     /* centra verticalmente si hay altura */
}


.img-mascota{
    width: 300px;
    height: 300px;
    object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.img-mascota:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.div2{
  position: relative;
  width: 300px;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
}

.texto-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  padding: 5px 5px;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
}

.div2:hover .texto-hover {
  opacity: 1;
}

.div2:hover .img-mascota {
  filter: brightness(0.5);
}

.titulo-mascotas {
  font-size: 50px;
  font-weight: bold;
  color: #90676e;
  text-align: center;
  margin-top: 2%;
}

.texto-mascotas {
    text-align: center;
    margin-bottom: 15px;
}


h3 {
  color: #d63384;
  font-size: 24px;
}

select, button {
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 12px;
  border: none;
  outline: none;
  margin-top: 5px;
  margin-bottom: 5px;
}

select {
  background-color: #fff0f5;
  border: 2px solid #f7a4d1;
  color: #cc0066;
}

button {
  background-color: #ffb3d9;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #e68ebf;
}

#consejoMascota {
  background-color: #fff;
  border: 2px dashed #ff99cc;
  padding: 10px;
  border-radius: 16px;
  display: inline-block;
  margin-top: 2px;
  font-size: 15px;
  color: #b30059;
}