

.titulo-section {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.titulo-section h1 {
  font-size: 1.6rem;
  color: #666;
  font-weight: 600;
  margin: 0;
}
.subtitulo-section {
  text-align: center;
  margin: 2rem 0 1.5rem;
}

.subtitulo-section h2 {
  font-size: 1.2rem;
  color: #666;
  font-weight: 600;
  margin: 0;
}

.search-form {
  background: #fff8f0;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  max-width: 700px;
  margin: 1rem auto 2rem auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-size: 0.9rem;
  color: #4e2e1f;
}

.search-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
}

.search-form p {
  flex: 1 1 150px;
  margin: 0;
}

.search-form label {
  font-weight: 600;
  margin-right: 0.3rem;
  color: #290B00;
}

.search-form select {
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  width: 100%;
  max-width: 180px;
  background: white;
  color: #290B00;
}

.search-form button {
  background-color: #e65100;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 0.5rem;
}

.search-form button:hover {
  background-color: #bf360c;
}

/* Contenedor de cards */

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.3rem;
  margin: 0 auto 2rem auto;
  max-width: 1100px;
  padding: 0 1rem;
}

/* Card personalizada */

.card-custom {
  background: #fff8f0;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  color: #4e2e1f;
  transition: transform 0.15s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 0.9rem;
}

.card-custom:hover {
  transform: scale(1.05);
}

/* Imagen dentro de card */

.card-custom img {
  width: 100%;
  height: 220px;         /* altura fija para imágenes uniformes */
  object-fit: cover;     /* cubrir el espacio sin deformar */
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  background-color: #fff8f0;
}

/* Cuerpo de la card */

.card-body-custom {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Título de la card */

.card-title-custom {
  color: #e65100;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  text-align: center;
}

/* Texto descriptivo */

.card-text-custom {
  margin-bottom: 1rem;
  line-height: 1.3;
  color: #4e2e1f;
}

/* Botón para ver detalle */

.btn-adoptar {
  background-color: #e65100;
  color: white;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
  align-self: center;
}

.btn-adoptar:hover {
  background-color: #bf360c;
}
