.personajes-container {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 32px;
}

/* CARD */
.personaje-card {
  background: linear-gradient(180deg, #f4f6f1, #cfe9db);
  border-radius: 20px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  transition: 
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* HOVER */
.personaje-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
}

/* IMG */
.personaje-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
}

/* NAME */
.personaje-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #2f3e34;
}

/* DESC */
.personaje-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
}

/* =========================
   RESPONSIVE – AGREGADO
========================= */

@media (max-width: 480px) {
  .personajes-container {
    padding: 0 16px;
    gap: 24px;
  }

  .personaje-card img {
    height: 190px;
  }
}

/* =========================
   AJUSTE LECTURA – MÓVIL
   PERSONAJES (AGREGADO)
========================= */

@media (max-width: 600px) {

  /* Menos columnas, lectura clara */
  .personajes-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Card más baja y liviana */
  .personaje-card {
    padding: 14px;
    border-radius: 18px;
  }

  /* Imagen más baja */
  .personaje-card img {
    height: 160px;
    margin-bottom: 10px;
  }

  /* Texto más compacto */
  .personaje-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .personaje-card p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

.btn-volver {
  display: inline-block;
  margin-bottom: 28px;
  margin-right: 12px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;

  background-color: rgba(47, 111, 78, 0.08);
  color: #2f6f4e;

  transition: background-color 0.25s ease, transform 0.2s ease;
}