.numeros-section {
  position: relative;
  width: 100%;
  background-image: url('../images/destacados2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 60px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 40vh;
}

.numeros-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.3); /* overlay semitransparente */
  z-index: 0;
}

.numeros-container {
  position: relative;
  z-index: 1; /* contenido por encima del overlay */
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.numeros-title {
  color: #ff9800;
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 700;
}

.numeros-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.numero-card {
  flex: 1 1 200px; 
  max-width: 220px;
  height: 200px;
  background: rgba(255,255,255,0.15);
  border-radius: 15px;
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center; /* centra horizontalmente */
  align-items: center;     /* centra verticalmente */
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 0; /* eliminamos padding */
  text-align: center;
}

.numero-overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;  /* centra verticalmente */
  align-items: center;      /* centra horizontalmente */
  height: 100%;             /* ocupa todo el cuadro */
  width: 100%;              /* ocupa todo el cuadro */
  margin: 0;
  padding: 0;
}

.numero, .numero-overlay p {
  margin: 0;               /* eliminamos margen por defecto */
}

.numero {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ff9800;
}

.numero-overlay p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}


/* Responsive */
@media (max-width: 1024px) {
  .numero-card {
    flex: 1 1 180px;
    max-width: 200px;
    height: 180px;
  }

  .numero {
    font-size: 2rem;
  }

  .numero-overlay p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .numeros-container {
    padding: 0 15px;
  }

  .numero-card {
    flex: 1 1 45%;
    max-width: none;
    height: 160px;
  }

  .numero {
    font-size: 1.8rem;
  }

  .numero-overlay p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .numero-card {
    flex: 1 1 100%;
    height: 150px;
  }

  .numero {
    font-size: 1.6rem;
  }

  .numero-overlay p {
    font-size: 0.9rem;
  }
}
