body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
}

.titulo {
  text-align: center;
  background: #a2171a;
  color: white;
  padding: 15px 10px;
  font-size: 18px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Contenedor horizontal por defecto */
.contenedor {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}

.contenedor::-webkit-scrollbar {
  height: 6px;
}

.contenedor::-webkit-scrollbar-thumb {
  background: #a2171a;
  border-radius: 3px;
}

/* Tarjetas */
.card {
  background: white;
  min-width: 180px;
  max-width: 200px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  flex-shrink: 0; /* importante para horizontal scroll */
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.foto {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.caritas {
  display: flex;
  justify-content: space-between;
  font-size: 28px; /* más grande para móviles */
  cursor: pointer;
}

.cara {
  transition: transform 0.2s;
}

.cara:hover {
  transform: scale(1.4);
}

/* Responsive para móviles */
@media (max-width: 600px) {
  .contenedor {
    flex-wrap: wrap; /* vertical stack en pantallas muy pequeñas */
    justify-content: center;
  }

  .card {
    min-width: 250px; /* más grande para tocar cómodamente */
    max-width: 90%;
    margin-bottom: 15px;
  }

  .caritas {
    font-size: 32px; /* más grande */
  }
}
