/* RESET y BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-image:url(../images/fondo.webp);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*HEADER*/
header {
  background-color: azure;
  padding: 0.5rem 1rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.navbar-nav a {
  text-decoration: none;
  color: black;
  font-weight: 500;
}

.navbar-nav a:hover {
  color: #007bff;
}

/*MAIN*/
main {
  margin-top: 120px; 
  padding: 20px;
  flex: 1;
}

.main h2 {
  background-color: azure;
  text-align: center;
  margin-bottom: 40px;
  padding: 10px;
  border-radius: 12px;
  font-size: 2rem;
}

.container-principal {
  max-width: 800px;
  margin: 0 auto;
  background-color: aliceblue;
}

/*(index y categoryI)*/
.container-games {
  background-color: aliceblue;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  gap: 20px;               
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.games-images {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/*CARDS (categoryII)*/
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  overflow: hidden;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: scale(1.02);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-bottom: 1px solid #ddd;
}

.card-content {
  padding: 1rem;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.card-description {
  font-size: 14px;
  margin-bottom: 10px;
  color: #555;
}

.card-price {
  font-size: 16px;
  font-weight: bold;
  color: green;
  margin-bottom: 15px;
}

.btn-comprar {
  display: inline-block;
  padding: 8px 12px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  text-align: center;
  
}

.btn-comprar:hover {
  background: #0056b3;
}

/*FORM (contact)*/
.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  max-width: 500px;
  margin: auto;
}

.form label {
  font-weight: bold;
}

.form input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
}

.btn {
  font-size: 16px;
  padding: 10px;
  border-radius: 6px;
}

/*Sobre nosotros*/

.container-about {
  background-color: aliceblue;
  padding: 20px;
  border-radius: 10px;
  margin: 20px auto;
  max-width: 900px;
  text-align: center;
}

.container-about h2 {
  margin-bottom: 15px;
}

.container-about p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
}


.about-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; 
}

.about-images img {
  max-width: 220px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s;
}

.about-images img:hover {
  transform: scale(1.05);
}



/*FOOTER*/
footer {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

.footer-social-medias {
  background-color: azure;
  padding: 1rem;
}

.footer-social-medias h3 {
  margin-bottom: 10px;
}

.footer-social-medias ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
}

.footer-social-medias-icons li img {
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: transform 0.2s;
}

.footer-social-medias-icons li img:hover {
  transform: scale(1.1);
}

/*RESPONSIVE*/

/* Tablets */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr); /
  }
}

/* Moviles */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .navbar-nav {
    flex-direction: column;
    gap: 10px;
  }

  .grid {
    grid-template-columns: 1fr; 
  }

  .main h2 {
    font-size: 1.5rem;
  }
}
