


/* Contenedor de tarjetas */
.contenedor-tarjetas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centra horizontalmente */
  align-items: flex-start; /* Alinea arriba */
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tarjeta individual */
.tarjeta {
  background-color: white;
  width: 250px; /* Tamaño fijo para todas */
  border-radius: 15px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
  display: flex; /* 🔹 Ahora usamos flex para mantener estructura interna */
  flex-direction: column;
  justify-content: flex-start;
  height: 100%; /* 🔹 Todas las tarjetas de la fila se igualan */
}

/* Efecto hover */
.tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Imágenes */
.tarjeta img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

/* Título */
.titulo-medicamento {
  font-weight: bold;
  font-size: 1.1rem;
  color: #3600f8;
  margin-bottom: 0.5rem;
}

/* Contenido de texto */
.contenido {
  font-size: 0.9rem;
  color: #000000;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  flex-grow: 1; /* 🔹 Hace que el texto ocupe el espacio sobrante */
}
