html,
body {
  overflow-x: hidden;
  height: 100%;
}

section {
  padding: 5rem 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom, #0f0c29, #8e2de2, #4a00e0);
  color: #fff;
}

/* HEADER */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f0c29;
  box-shadow: 0 2px 10px rgb(255, 255, 255);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  height: 50px;
  width: auto;
}

/* NAVIGATION */
/* nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  
} */

.header-container{
  width: 100%;
 display: flex;
 align-items: center;
 gap: 4px;
 justify-content: space-between;

}

.right{
  
}

.left{
  
  float: left;
}


nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  margin: 0 10px;
  white-space: nowrap;
}

nav a:hover {
  color: #ffffff;
}

/* HERO */
.hero {
  text-align: left;
  padding: 3rem 1rem;
  margin-left: 100px;
  margin-top: 100px;
}

.hero h1 span {
  color: #00f2ff;
}

.hero-texto h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  margin-right: 600px;
}

.hero-texto p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  margin-right: 600px;
}

.hero-imagen {
  flex: 1;
  text-align: right;
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin-top: -400px;
  margin-right: 50px;
}

/* BOTONES */
.buttons .btn,
.btn {
  background: #00f2ff;
  color: #000;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.btn-outline {
  border: 2px solid #00f2ff;
  color: #00f2ff;
  padding: 8px 18px;
  margin: 10px;
  text-decoration: none;
  border-radius: 5px;
}

/* SECCIÓN: QUIÉNES SOMOS */
.quienes-somos {
  position: relative;
  z-index: 1;
  overflow: visible;
  color: #4B4949;
}

.quienes-somos::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1500px;
  height: 800px;
  background: #ffffff;
  border-radius: 50%;
  z-index: 0;
}

.quienes-somos .contenido {
  position: relative;
  z-index: 1;
  text-align: left;
  margin: 150px 50px 0 100px;
  font-size: 1.5rem;
}

/* SECCIÓN DE TARJETAS */
.cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.card {
  flex: 1 1 250px;
  color: #333;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  box-shadow: 0 5px 20px #BA00BD;
  border: 1px solid #BA00BD;
  border-radius: 12px;
  padding: 20px;
  background-color: white;
}

.card-img {
  width: 20%;
  margin-bottom: 1rem;
}

/* JUEGOS */
.juegos {
  padding: 60px 20px;
  margin: 150px 150px 0 100px;
  text-align: left;
}

.juegos h2,
.juegos p {
  color: #ffffff;
}

.grid-juegos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
}

.juego {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px #7BD9FF;
  max-width: 300px;
  text-align: center;
  transition: transform 0.3s ease;
  margin-top: 50px;
}

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

.juego img {
  max-width: 100%;
  margin-bottom: 15px;
}

.juego h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #333;
}

.juego .btn {
  margin-top: 10px;
  background-color: #7BD9FF;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.juego .btn:hover {
  background-color: #BA00BD;
}

/* CONTACTO */
.contacto {
  position: relative;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contacto::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1500px;
  height: 700px;
  background: #ffffff;
  border-radius: 50%;
  z-index: 0;
}

.contacto h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #BA00BD;
}

.contacto form {
  position: relative;
  background-color: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1;
}

.contacto input,
.contacto textarea {
  width: 95%;
  padding: 15px;
  border: 2px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  resize: none;
}

.contacto input:focus,
.contacto textarea:focus {
  border-color: #BA00BD;
  box-shadow: 0 0 4px rgba(162, 89, 255, 0.4);
}

.contacto label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #555;
}

.contacto input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #BA00BD;
  cursor: pointer;
}

.contacto .btn {
  align-self: center;
  background-color: #BA00BD;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

.contacto .btn:hover {
  background-color: #BA00BD;
}

/* POLÍTICAS */
body.politicas {
  background: linear-gradient(to bottom, #2c0e63, #a259ff);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: #333;
}

.politica-privacidad {
  max-width: 800px;
  margin: 120px auto 80px;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  line-height: 1.7;
}

.politica-privacidad:hover {
  transform: translateY(-5px);
}

.politica-privacidad h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #A259FF;
  text-align: center;
  font-weight: bold;
}

.politica-privacidad h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  color: #A259FF;
  font-weight: 600;
}

.politica-privacidad p {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  color: #444444;
}

/* FOOTER */
footer {
  width: 100%;
  background: #0f0c29;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgb(255, 255, 255);
}

footer .footer-info {
  font-size: 0.9rem;
  margin-top: 2rem;
  text-align: center;
}

/* HAMBURGUER PARA MÓVILES */
header .bocadillo {
  display: none;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: right;
  }

  header .bocadillo {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 30px;
    background-image: url('../img/hamburger.svg');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 10px;
    right: 70px;
  }

  nav {
    display: none;
    margin-top: 10px;
  }

  header.active nav {
    display: block;
    position: absolute;
    top: 50px;
    right: 15px;
    background: #0f0c29;
    padding: 1rem;
    border-radius: 5px;
  }

  nav a {
    display: block;
    margin: 10px 0;
  }
}
