html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial;
  background: radial-gradient(circle at top, #0a1a10, #050805);
  color: white;
  overflow-x: hidden;
}

/* PARTICLES */
#particles {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 35px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
}

.logo {
  color: #00ff7b;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 13px;
  opacity: 0.8;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #00ff7b;
}

/* HERO */
.hero {
  text-align: center;
  padding-top: 120px;
}

.hero h1 {
  font-size: 70px;
  color: #00ff7b;
  text-shadow: 0 0 20px #00ff7b;
}

.hero p {
  opacity: 0.7;
}

/* 🔥 FIX PRINCIPAL: FILAS PERFECTAS */
.actions,
.grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1100px;
  margin: 40px auto 0 auto;
}

/* CARDS UNIFORMES */
.card,
.box {
  width: 220px;
  min-height: 130px;
  padding: 18px;
  border-radius: 15px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,255,123,0.2);
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  color: white;
  text-decoration: none;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card:hover,
.box:hover {
  transform: scale(1.06);
  border: 1px solid #00ff7b;
  box-shadow: 0 0 25px rgba(0,255,123,0.25);
}

/* SECCIONES */
.section {
  text-align: center;
  margin-top: 80px;
}

h2 {
  color: #00ff7b;
}

/* RESPONSIVE FIX */
@media (max-width: 768px) {
  .card,
  .box {
    width: 90%;
  }

  .hero h1 {
    font-size: 45px;
  }
}