/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #1e293b 0%, #020617 55%, #000000 100%);
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* CONTENEDOR GENERAL */
section {
  padding: 40px 16px;
}

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 2px solid rgba(96, 165, 250, 0.4);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo h1 {
  font-family: "Press Start 2P", system-ui, monospace;
  font-size: 16px;
  letter-spacing: 2px;
  color: #facc15;
  text-shadow: 0 0 6px rgba(250, 204, 21, 0.8),
               0 0 18px rgba(59, 130, 246, 0.8);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.main-nav a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.main-nav a:hover {
  background: rgba(37, 99, 235, 0.25);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
  transform: translateY(-1px);
}

.btn-login {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

/* HERO */
.hero {
  padding: 40px 16px 32px;
  position: relative;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.7fr);
  align-items: center;
  gap: 24px;
}

.hero-content h2 {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #f9fafb;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
}

.hero-content p {
  font-size: 15px;
  color: #cbd5f5;
  max-width: 480px;
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-hero.alumno {
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  color: #0b1120;
}

.btn-hero.docente {
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #0b1120;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.9);
  filter: brightness(1.05);
}

/* panel decorativo */
.hero-panel {
  width: 220px;
  height: 220px;
  border-radius: 24px;
  border: 2px solid rgba(148, 163, 184, 0.4);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.9)),
    repeating-linear-gradient(
      45deg,
      rgba(148, 163, 184, 0.18),
      rgba(148, 163, 184, 0.18) 2px,
      transparent 2px,
      transparent 4px
    );
  box-shadow:
    0 0 18px rgba(59, 130, 246, 0.6),
    0 0 40px rgba(8, 47, 73, 0.9);
}

/* TÍTULOS Y TEXTOS DE SECCIÓN */
section h2 {
  font-size: 22px;
  margin-bottom: 8px;
  text-align: center;
  color: #e5e7eb;
}

section p {
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 20px;
}

/* SECCIÓN JUEGOS */
.section-juegos {
  position: relative;
}

.filtros-juegos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.filtros-juegos button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  font-size: 13px;
  cursor: pointer;
}

.grid-juegos {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.juego-card {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.35), rgba(15, 23, 42, 0.95));
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow:
    0 0 10px rgba(15, 23, 42, 0.9),
    0 0 18px rgba(30, 64, 175, 0.7);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.juego-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: #f9fafb;
}

.juego-card p {
  font-size: 13px;
  text-align: left;
  color: #cbd5f5;
  margin-bottom: 12px;
}

.btn-jugar {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #022c22;
}

/* SECCIÓN DOCENTES */
.section-docentes {
  background: radial-gradient(circle at bottom, rgba(24, 24, 27, 0.95), rgba(15, 23, 42, 1));
}

.grid-recursos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.recurso-card {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.9), rgba(6, 78, 59, 0.95));
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow:
    0 0 10px rgba(6, 95, 70, 0.9),
    0 0 20px rgba(15, 23, 42, 1);
}

.recurso-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: #fefce8;
}

.recurso-card p {
  font-size: 13px;
  text-align: left;
  color: #e5e7eb;
  margin-bottom: 10px;
}

.btn-ver {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #0b1120;
  font-size: 13px;
  font-weight: 600;
}

/* SECCIÓN PROGRESO */
.section-progreso {
  text-align: center;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.98));
}

.btn-registro {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #f9fafb;
  font-size: 13px;
  font-weight: 600;
}

/* FOOTER */
.site-footer {
  margin-top: auto;
  padding: 16px;
  background: #020617;
  border-top: 1px solid rgba(31, 41, 55, 1);
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: none;
  }

  section {
    padding: 32px 14px;
  }

  .grid-juegos,
  .grid-recursos {
    grid-template-columns: 1fr;
  }
}
