.counters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem; /* espai uniforme i compacte */
  margin-bottom: 3rem;
  max-width: 100vw; /* no superar amplada dispositiu */
  padding: 0 1rem; /* evitar que el contingut toqui els extrems */
  box-sizing: border-box;
  overflow-x: hidden; /* evitar scroll horitzontal */
}

/* .counter-container {
    display: flex;
    flex-direction: column;
    align-items: center;

    font-family: 'Poppins', sans-serif;
    color: #333;
    box-sizing: border-box;
    flex: 1 1 150px; 
    min-width: 120px;
    max-width: 100%;
  } */

  .counter-container {
    flex: 1 1 150px; /* flexible i adaptatiu */
    min-width: 120px; /* amplada mínima per no col·lapsar */
    max-width: 300px; /* opcional, limita amplada en pantalles grans */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem; /* marges per espaiar */
    box-sizing: border-box;
  }
  
  .counter-number-wrapper {
    font-size: 72px;
    font-weight: 900;
    color: #ffffff; /* color blau lila modern */
    position: relative;
    text-shadow: 0 2px 5px rgba(92, 106, 196, 0.3);
    display: flex;
    align-items: baseline;
  }
  
  .counter-number-wrapper .suffix {
    font-size: 48px;
    margin-left: 6px;
    color: #ffffff;
  }
  
  .counter-title-wrapper {
    text-align: center;
    margin-top: 0.5rem;
  }
  
  .counter-title-wrapper .desc-text:first-child {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: #ffffff;
    position: relative;
    padding-bottom: 0.3rem;
    margin-bottom: 0.5rem;
  }
  
  /* .counter-title-wrapper .desc-text:first-child::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, #ffffff, #ffffff);
    border-radius: 2px;
  } */
  
  .counter-title-wrapper .desc-text:last-child {
    font-size: 18px;
    font-weight: 400;
    color: #777;
    letter-spacing: 1px;
  }
  

  /* Responsive mòbil */
@media screen and (max-width: 768px) {
  .counters {
    gap: 1rem;
    padding: 0 0.5rem;
  }
  .counter-container {
      margin: 1rem 0; /* marge vertical més petit */
      flex: 1 1 100%; /* ocupa tota l’amplada disponible */
      max-width: 100%;
  }
  .counter-number-wrapper {
      font-size: 48px; /* font més petita per mòbil */
  }
  .counter-number-wrapper .suffix {
      font-size: 32px;
  }
  .counter-title-wrapper .desc-text:first-child {
      font-size: 20px;
  }
  .counter-title-wrapper .desc-text:last-child {
      font-size: 14px;
  }
}