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

body {
  min-height: 100vh;
  background: #0f0f1a;
  color: #eee;
  font-family: 'Courier New', Courier, monospace;
  overflow-x: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* ===== Fondo animado (blobs de color) ===== */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.blob-1 {
  width: 380px;
  height: 380px;
  background: #00e5ff;
  top: -100px;
  left: -80px;
  animation: float-blob 14s ease-in-out infinite;
}

.blob-2 {
  width: 420px;
  height: 420px;
  background: #c34dff;
  bottom: -140px;
  right: -100px;
  animation: float-blob 18s ease-in-out infinite reverse;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: #4dff88;
  bottom: 20%;
  left: 40%;
  animation: float-blob 16s ease-in-out infinite;
}

@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.15); }
}

/* ===== Partículas flotantes ===== */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  opacity: 0;
  animation-name: float-up;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes float-up {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-110vh) translateX(var(--drift));
    opacity: 0;
  }
}

/* ===== Contenedor principal ===== */
.hub {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hub-header {
  text-align: center;
  animation: fadeInUp 0.8s ease both;
}

.eyebrow {
  color: #888;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.title {
  font-size: 42px;
  letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.title-accent {
  background: linear-gradient(90deg, #00e5ff, #c34dff, #4dff88, #00e5ff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease infinite;
}

.subtitle {
  margin-top: 12px;
  color: #aaa;
  font-size: 14px;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Grid de tarjetas ===== */
.grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 32px 20px;
  background: #1a1a2e;
  border: 2px solid #333;
  border-radius: 14px;
  text-decoration: none;
  color: #eee;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:nth-child(1) { animation-delay: 0.15s; }
.card:nth-child(2) { animation-delay: 0.3s; }
.card:nth-child(3) { animation-delay: 0.45s; }

.card:hover {
  transform: translateY(-10px) scale(1.03);
}

.card-glow {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(16px);
}

.card:hover .card-glow {
  opacity: 0.6;
}

.card-tetris:hover { border-color: #00e5ff; box-shadow: 0 10px 30px rgba(0, 229, 255, 0.25); }
.card-tetris .card-glow { background: #00e5ff; }

.card-bobble:hover { border-color: #ff4d6d; box-shadow: 0 10px 30px rgba(255, 77, 109, 0.25); }
.card-bobble .card-glow { background: #ff4d6d; }

.card-memory:hover { border-color: #4dff88; box-shadow: 0 10px 30px rgba(77, 255, 136, 0.25); }
.card-memory .card-glow { background: #4dff88; }

.card-icon {
  font-size: 42px;
  margin-bottom: 6px;
  animation: bounce-icon 2.4s ease-in-out infinite;
  display: inline-block;
}

.card:nth-child(2) .card-icon { animation-delay: 0.3s; }
.card:nth-child(3) .card-icon { animation-delay: 0.6s; }

@keyframes bounce-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.card h2 {
  font-size: 18px;
  letter-spacing: 1px;
  color: #fff;
}

.card p {
  font-size: 12.5px;
  color: #999;
  line-height: 1.5;
}

.card-btn {
  margin-top: 10px;
  padding: 8px 18px;
  border-radius: 20px;
  background: #00e5ff;
  color: #0f0f1a;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  transition: transform 0.2s ease;
}

.card-bobble .card-btn { background: #ff4d6d; }
.card-memory .card-btn { background: #4dff88; }

.card:hover .card-btn {
  transform: scale(1.08);
}

/* ===== Sección descriptiva (SEO) ===== */
.about {
  width: 100%;
  max-width: 640px;
  text-align: center;
  color: #999;
  font-size: 12.5px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.about h2 {
  font-size: 14px;
  letter-spacing: 1px;
  color: #ccc;
  margin-bottom: 10px;
}

.about strong {
  color: #00e5ff;
}

/* ===== Footer ===== */
.hub-footer {
  text-align: center;
  color: #666;
  font-size: 16px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

@media (max-width: 640px) {
  .title { font-size: 30px; }
}
