/* .🔹 VARIABLES GLOBALES. */
:root {
  --color-blue: #1e3a8a;      /* azul sobrio */
  --color-blue-soft: #2563eb; /* azul acento */
  --color-red: #dc2626;       /* rojo elegante */
  --color-black: #111111;
  --color-gray: #6b7280;
  --font-main: "Orbitron", system-ui, sans-serif;
}

/* 🔹 RESET & BASE */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: var(--color-black);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

/* 🔹 HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 25px;
  background: #ffffff;
  border-bottom: 2px solid var(--color-blue);
  position: relative;
  z-index: 100;
}

header h1 {
  margin: 0;
  display: flex;
  align-items: center;
}

header h1 img {
  height: 50px;
  margin-left: 15px;
  transition: transform 0.2s ease;
}

header h1 img:hover {
  transform: scale(1.05);
}

/* 🔹 TÍTULOS */
#title,
#title2,
#title3,
.title-juego {
  text-align: center;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-blue);
}

/* Tamaños */
#title {
  font-size: 2rem;
  margin: 40px 0 6px;
}

#title2 {
  font-size: 1.6rem;
}

#title3 {
  font-size: 1.3rem;
}

/* 🔹 SUBTÍTULOS */
#subtitulo {
  color: #dc2626;
  text-align: center;
}

/* 🔹 RESPONSIVE */
@media (max-width: 900px) {

  .gamesDiv {
    grid-template-columns: 1fr;
  }

  .card-juego iframe {
    height: 350px;
  }

  #main-menu {
    flex-direction: column;
  }
}

