/* RESET Y BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #f0f8ff;
  color: #333;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 20px 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  color: #0077b6;
  font-size: 24px;
  letter-spacing: 1px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.menu a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
  font-weight: 500;
}

.menu a:hover {
  color: #0077b6;
}

/* HERO */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  padding: 120px 40px;
  background-image: url('img/hero.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  flex-wrap: wrap;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
}

.hero-contenido {
  position: relative;
  z-index: 1;
  max-width: 600px;
  text-align: center;
}

.hero-contenido h2 {
  font-size: 48px;
  color: white;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-contenido p {
  font-size: 18px;
  color: #e0f4ff;
  margin-bottom: 30px;
  line-height: 1.6;
}

.btn {
  background-color: #0077b6;
  color: white;
  padding: 14px 36px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.3s;
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
}

.btn:hover {
  background-color: #005f92;
}

.btn-secundario {
  background-color: transparent;
  color: white;
  padding: 14px 36px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 16px;
  border: 2px solid white;
  transition: all 0.3s;
  display: inline-block;
  margin-bottom: 10px;
}

.btn-secundario:hover {
  background-color: white;
  color: #0077b6;
}

/* SERVICIOS */
.servicios {
  text-align: center;
  padding: 80px 40px;
  background-color: #ffffff;
}

.servicios h2 {
  font-size: 36px;
  color: #0077b6;
  margin-bottom: 10px;
}

.subtitulo {
  color: #888;
  margin-bottom: 50px;
  font-size: 17px;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card {
  background-color: #f0f8ff;
  border-radius: 16px;
  width: 280px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-8px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  font-size: 18px;
  color: #0077b6;
  margin: 16px 16px 8px;
}

.card p {
  color: #666;
  font-size: 14px;
  padding: 0 16px 20px;
  line-height: 1.6;
}

/* JUEGO */
.juego-seccion {
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  color: white;
}

.juego-seccion h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.juego-seccion .subtitulo {
  color: #e0f4ff;
  margin-bottom: 30px;
}

.juego-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 20px;
  font-size: 18px;
}

#canvas {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 100%;
}

.btn-juego {
  margin-top: 20px;
  background-color: #ffffff;
  color: #0077b6;
  padding: 14px 40px;
  border-radius: 30px;
  border: none;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-juego:hover {
  background-color: #e0f4ff;
}

/* NOSOTROS */
.nosotros {
  padding: 80px 40px;
  background-color: #ffffff;
}

.nosotros-contenido {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.nosotros-imagen img {
  width: 400px;
  height: 350px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 119, 182, 0.2);
}

.nosotros-texto h2 {
  font-size: 36px;
  color: #0077b6;
  margin-bottom: 20px;
}

.nosotros-texto p {
  color: #666;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 450px;
}

.lista-beneficios {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lista-beneficios li {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

/* TESTIMONIOS */
.testimonios {
  text-align: center;
  padding: 80px 40px;
  background-color: #f0f8ff;
}

.testimonios h2 {
  font-size: 36px;
  color: #0077b6;
  margin-bottom: 10px;
}

.testimonio-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.testimonio-card {
  background-color: white;
  border-radius: 16px;
  padding: 30px;
  width: 280px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
  text-align: left;
}

.testimonio-card:hover {
  transform: translateY(-8px);
}

.testimonio-card p {
  color: #555;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonio-autor {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.testimonio-nombre {
  font-weight: bold;
  color: #0077b6;
  font-size: 14px;
}

/* CONTACTO */
.contacto {
  text-align: center;
  padding: 80px 40px;
  background-color: #ffffff;
}

.contacto h2 {
  font-size: 36px;
  color: #0077b6;
  margin-bottom: 10px;
}

.contacto-contenido {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  background-color: #f0f8ff;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  text-align: left;
}

.formulario {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 420px;
  background-color: #f0f8ff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #eee;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border 0.3s;
  cursor: text;
  color: #333;
  background-color: white;
}

.input:focus {
  border-color: #0077b6;
}

/* FOOTER */
.footer {
  background-color: #0077b6;
  color: white;
  text-align: center;
  padding: 24px;
  font-size: 15px;
}

/* RESPONSIVE TABLET */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .menu {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 80px 20px;
    min-height: 400px;
  }

  .hero-contenido h2 {
    font-size: 32px;
  }

  .nosotros-contenido {
    flex-direction: column;
    text-align: center;
  }

  .nosotros-imagen img {
    width: 100%;
    height: 250px;
  }

  .contacto-contenido {
    flex-direction: column;
    align-items: center;
  }

  .formulario {
    padding: 30px 20px;
  }

  .testimonio-cards {
    flex-direction: column;
    align-items: center;
  }

  .testimonio-card {
    width: 100%;
    max-width: 400px;
  }
}

/* RESPONSIVE MÓVIL */
@media (max-width: 480px) {
  .hero-contenido h2 {
    font-size: 26px;
  }

  .servicios {
    padding: 60px 20px;
  }

  .card {
    width: 100%;
  }

  .juego-seccion {
    padding: 60px 20px;
  }

  .nosotros {
    padding: 60px 20px;
  }

  .contacto {
    padding: 60px 20px;
  }

  .juego-info {
    gap: 20px;
    font-size: 16px;
  }
}