@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Roboto:wght@400;500&display=swap');

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #8b0000 0%, #daa520 100%);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  background-color: #2c0f0f;
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #ffd700;
  margin-bottom: 10px;
  user-select: none;
}

.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-link {
  display: flex;
  align-items: center;
  background-color: #3a1a1a;
  padding: 10px 15px;
  border-radius: 8px;
  color: #ffd700;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.nav-link:hover {
  background-color: #5e2b2b;
}

.nav-link i {
  margin-right: 8px;
  }
.tab {
  background-color: #3a1a1a;
  color: #ffd700;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: background 0.3s, color 0.3s;
  user-select: none;
  font-size: 1rem;
}

.tab i {
  margin-right: 8px;
}

.tab:hover:not(.active) {
  background-color: #5e2b2b;
}

.tab.active {
  background-color: #daa520;
  color: #2c0f0f;
  box-shadow: 0 0 12px #ffd700;
}

.header {
  height: 300px;
  background: url('naturaleza.png'); 
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 10px;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}

.header::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.header h2 {
  position: relative;
  z-index: 1;
  color: #fff8dc;
  font-size: 3rem;
  font-family: 'Playfair Display', serif;
  text-shadow: 2px 2px 12px #000;
  margin: 0 20px;
  user-select: none;
}

.main {
  padding: 40px 60px;
  flex-grow: 1;
  background-color: #fff8dc;
  color: #333;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  max-width: 900px;
  margin: 20px auto 40px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-in;
}

.tab-content.active {
  display: block;
}

.tab-content h2 {
  color: #b22222;
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-family: 'Playfair Display', serif;
}

.tab-content p,
.tab-content ul {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 10px 0;
}

.tab-content ul {
  padding-left: 20px;
}

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

/* Responsive */

@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
    align-items: center;
  }

  .nav-tabs {
    flex-direction: column;
    width: 100%;
  }

  .tab {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
  }

  .header {
    height: 220px;
    border-radius: 0 0 15px 15px;
  }

  .header h2 {
    font-size: 2rem;
  }

  .main {
    padding: 20px 30px;
    margin: 15px auto 30px;
    max-width: 100%;
  }
}.juego-card {
  background-color: #3a1a1a;
  border: 2px solid #daa520;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  overflow: hidden;
  margin-bottom: 30px;
  max-width: 800px;
  margin-inline: auto;
}

.juego-card img {
  width: 100%;
  height: auto;
  display: block;
}

.juego-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.juego-info p {
  flex: 1;
  margin: 0;
  color: #fff8dc;
  font-size: 1.1rem;
  line-height: 1.5;
}

.boton-juego {
  background-color: #b22222;
  color: #fff8dc;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.boton-juego:hover {
  background-color: #8b0000;
}

@media (max-width: 768px) {
  .juego-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .boton-juego {
    align-self: flex-start;
  }
}
