* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #010313;
  background-image: radial-gradient(circle at 10% 20%, rgba(34, 197, 94, 0.03) 0%, rgba(1, 3, 19, 0.98) 90%);
  color: #f1f5f9;
  line-height: 1.5;
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #22c55e;
  border-radius: 10px;
}

.container {
  max-width: 100%;
  margin: 0 auto;
}

/* header */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #FFFFFF, #86efac);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo i {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #22c55e;
  font-size: 32px;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: #cbd5e1;
  transition: 0.2s ease;
  font-size: 1rem;
}

.nav-links a:hover {
  color: #22c55e;
}

.btn-outline-light {
  background: transparent;
  border: 1.5px solid #22c55e;
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline-light:hover {
  background: #22c55e20;
  border-color: #4ade80;
}

.btn-primary {
  background: linear-gradient(105deg, #22c55e 0%, #16a34a 100%);
  border: none;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #010313;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s;
  box-shadow: 0 8px 20px -6px #22c55e40;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -10px #22c55e70;
}

.btn-secondary {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid #22c55e80;
  padding: 10px 24px;
  border-radius: 40px;
  font-weight: 600;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #22c55e30;
  border-color: #22c55e;
}

#dynamic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(circle at 20% 30%, #03061a, #000000);
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
}

/* hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 40px
}

.hero-content {
  flex: 1.2;
}

.hero-badge {
  background: rgba(34, 197, 94, 0.15);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #86efac;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero-content h1 {
  font-size: 3.7rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.5px;
  background: linear-gradient(to right, #ffffff, #bbf7d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.2rem;
  color: #94a3b8;
  max-width: 90%;
  margin-bottom: 32px;
}

.email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.email-input {
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 14px 20px;
  border-radius: 60px;
  width: 280px;
  font-size: 1rem;
  color: white;
  transition: all 0.2s;
}

.email-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px #22c55e30;
}

.trust-stats {
  display: flex;
  gap: 28px;
  margin-top: 20px;
}

.trust-stats div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #a0aec0;
}

.trust-stats i {
  color: #22c55e;
}

.hero-visual {
  flex: 0.9;
  background: linear-gradient(145deg, #0f172a, #030617);
  border-radius: 48px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid #22c55e30;
  box-shadow: 0 25px 35px -15px black;
}

.coin-pool {
  background: linear-gradient(125deg,  #0f172a, #22c55e40);
  border-radius: 32px;
  padding: 16px;
  margin-bottom: 20px;
}

.coin-pool span {
  font-size: 0.8rem;
  color: #86efac;
}

.coin-number {
  font-size: 3rem;
  font-weight: 800;
  color: #facc15;
}

.game-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 28px 0 16px;
}

.game-icons i {
  font-size: 2.5rem;
  color: #475569;
  transition: 0.2s;
}

.game-icons i:hover {
  color: #22c55e;
}

   /* torneos activos */
    .tournaments-list {
      display: flex;
      flex-wrap: wrap;
      gap: 24px;
      justify-content: center;
      margin: 40px 0;
    }

    .tournament-card-mini {
      background: #0f172a;
      border-radius: 24px;
      padding: 20px;
      width: 280px;
      border: 1px solid #1e293b;
      transition: 0.2s;
      text-align: center;
    }

    .tournament-card-mini:hover {
      border-color: #22c55e;
      transform: translateY(-4px);
    }

    .tournament-card-mini h3 {
      font-size: 1.2rem;
      margin: 10px 0;
    }

    .tournament-card-mini p {
      color: #94a3b8;
      font-size: 0.85rem;
      margin: 6px 0;
    }

/* secciones */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin: 48px 0 48px 0;
  letter-spacing: -0.5px;
}

.section-title span {
  background: linear-gradient(120deg, #22c55e, #bbf7d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.card-modern {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 32px;
  padding: 28px 22px;
  width: 280px;
  border: 1px solid #1e293b;
  transition: all 0.25s ease;
  text-align: center;
}

.card-modern:hover {
  transform: translateY(-8px);
  border-color: #22c55e60;
  background: rgba(20, 30, 55, 0.8);
  box-shadow: 0 20px 30px -15px #00000050;
}

.card-icon {
  font-size: 2.8rem;
  color: #22c55e;
  margin-bottom: 20px;
}

.game-card {
  background: #0f172a;
  border-radius: 28px;
  padding: 24px;
  width: 300px;
  transition: 0.2s;
  border: 1px solid #1e293b;
}

.game-card:hover {
  border-color: #22c55e;
  transform: scale(1.02);
}

.section-money {
  background: linear-gradient(180deg, #01031300, #30614198, #01031300);
  text-align: center;
  margin: 60px 0;
}

.game-badge {
  background: #22c55e20;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.coin-reward {
  font-size: 2rem;
  font-weight: 800;
  color: #facc15;
}

.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.testimonial {
  background: #0a0f1c;
  border-radius: 28px;
  padding: 28px;
  width: 320px;
  border-left: 4px solid #22c55e;
}

.sponsor-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 30px;
  align-items: center;
  opacity: 0.8;
}

.sponsor-row span {
  font-size: 0.9rem;
  color: #a0aec0;
}

.cta-section {
  background: linear-gradient(125deg, #22c55e40, #020617);
  border-radius: 48px;
  padding: 60px 40px;
  text-align: center;
  margin: 35px;
  border: 1px solid #22c55e40;
}

.games-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 20px;
  margin: 40px 0;
}

.collage-item {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  cursor: pointer;
}

/* tamaños distintos */
.collage-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.collage-item:nth-child(4) {
  grid-column: span 2;
}

.collage-item:nth-child(6) {
  grid-row: span 2;
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.collage-item:hover img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, #000000cc, transparent);
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  text-align: center;
}

.collage-item:hover .overlay {
  transform: translateY(0);
}

.overlay h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: #22c55e;
}

.overlay p {
  font-size: 0.85rem;
  color: #f1f5f9;
}

/* Para móviles: mostrar overlay al hacer clic (se añade clase activa) */
@media (max-width: 768px) {
  .collage-item.active .overlay {
    transform: translateY(0);
  }
}

footer {
  border-top: 1px solid #1e293b;
  padding: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #22c55e;
}

@media (max-width: 600px) {
  .games-collage {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .collage-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .navbar {
    flex-direction: column;
  }

  .hero-content p {
    max-width: 100%;
  }

  .email-form .email-input {
    width: 100%;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

/* Botón hamburguesa (oculto en desktop) */
.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    position: relative;
    flex-wrap: nowrap;
  }

  .hamburger {
    display: block;
    order: 1;
  }

  .logo {
    gap: 0;
    flex-direction: column;
  }

  .btn-outline-light {
    order: 2;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 10, 25, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-radius: 0 0 20px 20px;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 10px;
    text-align: center;
    background-color: #0f172a;
  }
}