body.light {
  background-color: #ffffff;
  color: #000000;
}

body.dark {
  background-color: #121212;
  color: #f0f0f0;
}

header, footer, section {
  transition: background 0.3s, color 0.3s;
}

body.dark header,
body.dark footer,
body.dark section {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

body {
  font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

/* Header */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: inherit;
  z-index: 1000;
  border-bottom: none;
}

header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
}

header .brand img.logo {
  width: 64px;
  height: 64px;
}

header .brand h1 {
  font-size: 32px;
  margin: 0;
}

/* Navegación */
nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0 20px 10px;
  flex-wrap: wrap;
}

nav ul li a {
  text-decoration: none;
  font-weight: bold;
  color: #ff6600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}

nav ul li a:hover,
nav ul li a:focus {
  background: #fff3e6;
  outline: none;
}

/* Selector de idioma + botón tema */
.lang-selector {
  position: absolute;
  top: 10px;
  right: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-selector img {
  width: 24px;
  height: 16px;
}

.lang-selector button {
  padding: 4px 8px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  background: #ff6600;
  color: white;
  cursor: pointer;
}

.lang-selector button:hover {
  background: #e65c00;
  transform: scale(1.05);
}

/* Hero section */
.hero {
  text-align: center;
  padding: 0px 20px;
  margin-top: -10px;
}

.hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}

/* Secciones */
section {
  max-width: 960px;
  margin: 40px auto;
  padding: 20px;
  border-top: 1px solid #e6e6e6;
  scroll-margin-top: 80px;
}

section h2 {
  margin-bottom: 12px;
}

/* Carrusel */
#carousel {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  scroll-snap-type: x mandatory;
  padding: 20px;
}

.game-card {
  flex: 0 0 auto;
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-snap-align: center;
}

#carousel img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: none; /* sin aumento al hover */
}

.game-title {
  margin-top: 8px;
  font-weight: bold;
  text-align: center;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  border-top: 1px solid #e6e6e6;
  background-color: #fafafa;
  color: #333;
}

body.dark footer {
  background-color: #1a1a1a;
  color: #ccc;
}
