:root {
  --primary-color: #09709F;
  --secondary-color: #f0f8ff; /* Un azul muy claro, casi blanco */
  --text-color: #333;
  --bg-color-light: #f5f5f5;
  --bg-color-dark: #222;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--secondary-color);
  color: var(--text-color);
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

header .logo-title {
  display: flex;
  align-items: center;
}

header .logo {
  height: auto;
  width: 100px;
  margin-right: 10px;
}

header h1 {
  font-size: 1.5rem;
  margin: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #c0e0ff;
}

main {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

section {
  padding: 4rem 0;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  background-color: var(--primary-color);
  color: white;
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: -2rem -2rem 0 -2rem;
  background-image: url('../img/hero-bg.png'); /* Añade una imagen de fondo */
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* About Section */
.about-section {
  text-align: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.developer-info {
  margin-top: 2rem;
  text-align: center;
}

.developer-photo {
  max-width: 200px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

/* Games Section */
.games-section {
  background-color: var(--bg-color-light);
  margin: -2rem -2rem 0 -2rem;
  padding: 4rem 2rem;
}

.game-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.game-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 1.5rem;
  transition: transform 0.3s;
}

.game-card:hover {
  transform: translateY(-5px);
}

.game-image {
  width: 100%;             /* La imagen ocupa todo el ancho de la tarjeta */
  height: 200px;           /* Mantiene la altura máxima que me diste */
  object-fit: cover;       /* Evita que la imagen se estire y mantiene su proporción */
  object-position: top;    /* ¡El cambio clave! La imagen se posicionará siempre arriba */
  border-bottom: 1px solid #ddd;
}

.game-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin: 1rem 0;
}

.game-card p {
  padding: 0 1.5rem;
  font-size: 0.9rem;
  color: #666;
}

.download-links {
  margin-top: 1rem;
  display: flex; /* Para que los botones estén uno al lado del otro */
  justify-content: center; /* Para centrarlos */
  flex-wrap: wrap; /* Para que se ajusten en pantallas pequeñas */
}

.download-store-btn {
  display: inline-block;
  margin: 5px; /* Pequeño margen entre los botones */
  max-width: 160px; /* Limita el tamaño de los badges */
  height: auto;
}

.download-store-btn .store-badge {
  width: 100%;
  height: auto;
}

.download-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  margin: 0 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.download-btn.android {
  background-color: #3DDC84; /* Verde para Android */
}

.download-btn.ios {
  background-color: #000000; /* Negro para iOS */
}

.download-btn:hover {
  background-color: #065476;
}

/* Contact Section */
.contact-section {
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.contact-form button {
  background-color: var(--primary-color);
  color: white;
  padding: 15px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #065476;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 1rem 0;
  margin-top: auto;
}

footer a {
  color: white;
  text-decoration: none;
  margin-left: 10px;
  font-weight: bold;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-links img {
  width: 30px;
  height: 30px;
}

/* Cookie Banner */
.cookie-banner {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 2000;
  display: none;
}

.cookie-banner button {
  background-color: var(--primary-color);
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  cursor: pointer;
  border-radius: 5px;
  margin-left: 10px;
}

.privacy-content {
  max-width: 700px;
  margin: auto;
  padding: 2rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}