/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #0e7805;
  color: #fff;
  line-height: 1.6;
}

/* Navbar */
header {
  background: rgba(0, 0, 0, 0.85);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.logo img {
  height: 60px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav ul li a {
  font-family: 'Press Start 2P', cursive;
  text-decoration: none;
  color: #fff;
  font-weight: 400;
  position: relative;
  transition: color 0.3s ease;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #f39c12;
  transition: width 0.3s ease;
}

nav ul li a:hover,
nav ul li a:focus {
  color: #f39c12;
  outline: none;
}

nav ul li a:hover::after,
nav ul li a:focus::after {
  width: 100%;
}

/* Botón hamburguesa */
.menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1100;
}

.menu-btn span {
  width: 30px;
  height: 3px;
  background: #fff;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Animación hamburguesa a cruz */
.menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Sección Inicio */
#inicio {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
  flex-direction: column;
}

.inicio-container {
  max-width: 800px;
}

.inicio-img {
  max-width: 100%;
  height: auto;
}

/* Contador */
.countdown {
  font-family: 'Press Start 2P', cursive;
  font-size: 50px;
  margin: 20px 0;
  color: #fff;
  display: inline-block;
  animation: heartbeat 1s infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.1);
  }
}

/* Sección Juego */
#juego {
  padding: 100px 20px 60px;
  text-align: center;
  background: rgba(0,0,0,0.6);
  scroll-margin-top: 100px;
}

.juego-container {
  max-width: 800px;
  margin: 0 auto;
}

.juego-text {
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 20px;
}

.juego-foto {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 20px auto 0;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Sección Proyecto */
#proyecto {
  padding: 100px 20px 60px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  text-align: center;
  scroll-margin-top: 100px;
}

.proyecto-container {
  max-width: 900px;
  margin: 0 auto;
}

.proyecto-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 18px;
  margin-bottom: 20px;
}

.proyecto-text {
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 30px;
}

.proyecto-trailer {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.proyecto-trailer iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Sección Contacto */
#contacto {
  padding: 100px 20px 60px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  text-align: center;
  scroll-margin-top: 100px;
}

.contacto-container {
  max-width: 700px;
  margin: 0 auto;
}

.contacto-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 18px;
  margin-bottom: 20px;
}

.contacto-text {
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 30px;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.contacto-form input,
.contacto-form textarea {
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  padding: 10px;
  border: none;
  border-radius: 5px;
  outline: none;
  resize: none;
}

.contacto-form button {
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  padding: 12px;
  border: none;
  border-radius: 5px;
  background: #f39c12;
  color: #000;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contacto-form button:hover,
.contacto-form button:focus {
  background: #e08e0b;
  outline: none;
}

/* Mensaje de confirmación/error */
.form-mensaje {
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  margin-top: 10px;
  text-align: center;
  display: none;
}

.form-mensaje.exito {
  color: #f39c12;
}

.form-mensaje.error {
  color: #ff5555;
}

.contacto-redes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 15px;
}

.contacto-redes img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.contacto-redes img:hover,
.contacto-redes img:focus {
  transform: scale(1.1);
  outline: none;
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
}

.footer-container p {
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  margin-bottom: 15px;
}

.footer-redes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.footer-redes img {
  width: 35px;
  height: 35px;
  transition: transform 0.3s ease;
}

.footer-redes img:hover,
.footer-redes img:focus {
  transform: scale(1.1);
  outline: none;
}

/* Responsive Footer */
@media (max-width: 768px) {
  header {
    justify-content: center;
  }

  .menu-btn {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  nav ul {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    background: rgba(0,0,0,0.95);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    z-index: 2000;
  }

  nav ul.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  nav ul li {
    text-align: center;
  }

  .contacto-form input,
  .contacto-form textarea,
  .contacto-form button {
    font-size: 10px;
  }

  .contacto-redes img {
    width: 30px;
    height: 30px;
  }

  .juego-foto {
    max-width: 80%;
  }

  .countdown {
    font-size: 18px;
  }

  footer {
    padding: 30px 15px;
  }
}

/* Desplazamiento suave */
html {
  scroll-behavior: smooth;
}