@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

.card {
  padding: 20px;
  background-color: #4174d9;
  border-radius: 10px;
  color: white;
  text-align: center;
}

.nombre{
  margin-top: 2%;
  margin-bottom: 40px;
  font-size: 30px;
}

.progreso-grid {
  margin: 0;
  font-size: 18px;
}

.progreso {
  background-color: white;
  height: 20px;
  border-radius: 30px;
  margin: 5px auto;
  width: 80%;
  position: relative;
}

.premios-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 33%;
  height:60px;
  margin-bottom: 5%;
}

.premios-txt {
  font-size: 20px;
  margin: 2px 0 0 0;
}

.premios-img {
  width: 60px;
}

@keyframes premioPulse {
  0% {
    transform: scale(1);

  }

  50% {
    transform: scale(1.1);

  }

  100% {
    transform: scale(1);

  }
}

.premio-activo {
  animation: premioPulse 1.6s infinite ease-in-out;
  border-radius: 30px;
  box-shadow: 0 0 0 4px white;
}

.info {
  display: flex;
  justify-content: center;
  gap: 15%;
}

.txt {
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.txt span {
  text-align: center;
  min-height: 50px;
  font-size: 20px;
}

.puntos {
  background: white;
  width: 130px;
  height: 60px;
  margin-top: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  color: #4174d9;
  font-size: 25px;
}


/* =========================
   Responsive (móviles)
   ========================= */
   @media (max-width: 768px) {

    .card{
      padding: 16px;
      border-radius: 12px;
    }
  
    .nombre{
      font-size: 22px;
      margin-bottom: 18px;
      line-height: 1.2;
    }
  
    /* Premios arriba */
    .premios-grid {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 33%;
      height: 45px; /* antes 60px */
    }
  
    .premios-img{
      width: 46px;
    }
  
    .premios-txt{
      font-size: 16px;
      margin-bottom: 0;
    }
  
    /* Barra */
    .progreso {
      background-color: white;
      height: 20px;
      border-radius: 30px;
      margin: 5px auto; /* antes 5px */
      width: 90%;
      position: relative;
    }
  
    /* Info de puntos (en móvil, en columna) */
    .info{
      display: grid;
      grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
      gap: 10px;
      width: 100%;
      margin-top: 10px;
    }
  
    .txt{
      width: 100%; /* quita el ancho fijo */
    }
  
    .txt span{
      font-size: 14px;
      text-align: center;
      line-height: 1.2;
    }
  
    .puntos{
      width: 100%;        /* ocupa todo el ancho de su columna */
      max-width: 90px;    /* para que no se hagan enormes */
      height: 45px;
      font-size: 18px;
      margin: 8px auto 0 auto;
    }
  
    /* Animación del premio activo un pelín más suave en móvil */
    .premio-activo{
      box-shadow: 0 0 0 3px white;
    }
  }