/* === Reset y fondo general === */
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-image: url('../assets/fondo.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  cursor: url('../assets/cursorl2.cur') 19 19, auto;
}

/* === Encabezado === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: rgba(0, 0, 0, 0.6);
}

.logo {
  width: 320px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  animation: fadeIn 1.2s ease-out;
  font-family: 'Audiowide', cursive;
  font-size: 32px;
  letter-spacing: 2px;
}

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

/* === Menú superior === */
.top-access {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 20px;
  z-index: 10;
}

.top-access button,
.btn {
  padding: 12px 24px;
  background-image: linear-gradient(to right, #3b2f1c, #5a4225, #7a5a2e);
  color: #ffcc00;
  font-weight: bold;
  border: 2px groove #ffd700;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(122, 90, 46, 0.4);
  transition: background-position 0.4s ease, transform 0.2s ease;
  background-size: 200% auto;
  background-position: left center;
  margin: 5px;
  font-family: 'Orbitron', sans-serif;
}

.btn:hover,
.top-access button:hover {
  background-position: right center;
  transform: scale(1.05);
}

.btn.big {
  font-size: 20px;
  padding: 15px 40px;
}

.top-access select {
  background-color: #222;
  color: #fff;
  border: 1px solid #555;
  padding: 8px 12px;
  border-radius: 5px;
  font-weight: bold;
  font-family: 'Rajdhani', sans-serif;
}

/* === Hero principal === */
.hero {
  text-align: center;
  margin-top: 120px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero p {
  font-size: 24px;
  margin-bottom: 30px;
  color: #ddd;
}

/* === Contenido general === */
.content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 100px 20px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* === Footer === */
footer {
  text-align: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  font-size: 14px;
  color: #ccc;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-content p {
  margin-bottom: 10px;
}

/* === Modales === */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.6);
}

/* === Panel login/registro === */
.login-panel {
  position: relative;
  max-width: 420px;
  margin: 10% auto;
  padding: 30px;
  background-image: linear-gradient(to bottom, #1a1208, #2c1e0f, #3b2a17);
  border: 2px groove #ffd700;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 30px rgba(255, 204, 0, 0.3);
}

.login-panel h2 {
  margin-bottom: 20px;
  font-size: 26px;
  text-transform: uppercase;
  color: #ffcc00;
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.4);
  font-family: 'Cinzel', serif;
}

.login-panel form input {
  width: 85%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #5a4225;
  border-radius: 6px;
  background-color: #2a1d10;
  color: #ffcc99;
  font-family: 'Unica One', sans-serif;
  box-shadow: inset 0 0 6px rgba(255, 204, 0, 0.2);
}

.login-panel form button,
.login-panel button {
  width: 90%;
  padding: 12px;
  background-image: linear-gradient(to right, #a67c00, #ffcc00, #a67c00);
  color: #000;
  font-weight: bold;
  border: 2px solid #ffd700;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 15px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  transition: background-position 0.4s ease, transform 0.2s ease;
  background-size: 200% auto;
  background-position: left center;
  font-family: 'Orbitron', sans-serif;
}

.login-panel form button:hover,
.login-panel button:hover {
  background-position: right center;
  transform: scale(1.05);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #ffcc00;
  cursor: pointer;
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.5);
}

#reg-mensaje {
  margin-top: 10px;
  font-size: 14px;
  color: #ffcc99;
  font-family: 'Rajdhani', sans-serif;
}

/* === Contador flotante === */
.contador-flotante {
  position: static;
  font-size: 28px;
  color: #00ffff;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 10px #00ffff;
  z-index: 500;
  animation: pulso 2s infinite;
  pointer-events: none;
  background: none;
  border: none;
}

@keyframes pulso {
  0% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.8; transform: scale(1); }
}

/* === Menú de descargas === */
.menu {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.menu a {
  text-decoration: none;
  color: #000;
  background-image: linear-gradient(to right, #ffd700, #ffcc00, #ffb700);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  transition: background-position 0.4s ease, transform 0.2s ease;
  background-size: 200% auto;
  background-position: left center;
  width: 280px;
  text-align: center;
}

.menu a:hover {
  background-position: right center;
  transform: scale(1.05);
}

/* Redes sociales */
.social-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social-links img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-links a:hover img {
  transform: scale(1.2);
  filter: brightness(1.2);
}

/* Logout */
.logout-form {
  margin-top: 30px;
  text-align: center;
}

.logout-form button {
  padding: 12px 24px;
  background-image: linear-gradient(to right, #a67c00, #ffcc00, #a67c00);
  color: #000;
  font-weight: bold;
  border: 2px solid #ffd700;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  transition: background-position 0.4s ease, transform 0.2s ease;
  background-size: 200% auto;
  background-position: left center;
  font-family: 'Orbitron', sans-serif;
}

.logout-form button:hover {
  background-position: right center;
  transform: scale(1.05);
}

/* Panel container */
.panel-container {
  flex-direction: column;
}

/* Responsive ajustes */
@media (max-width: 768px) {
  body {
    background-position: center top;
    background-size: cover;
    overflow-x: hidden;
  }

  header {
    flex-direction: column;
    padding: 15px 20px;
    text-align: center;
  }

  .logo {
    width: 80%;
    margin-bottom: 15px;
  }

  nav,
  .top-access {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    text-align: center;
}

  .top-access button,
  .btn {
    display: block;
    width: 90%;
    max-width: 220px;
    font-size: 15px;
    padding: 10px 14px;
    margin: 4px 0;
}

  .btn.jugar-btn {
    display: block;
    margin: 0 auto;
    width: 90%;
    max-width: 220px;
    font-size: 15px;
    padding: 10px 16px;
    text-align: center;
}

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }

  .content {
    padding: 60px 15px;
  }

  .login-panel {
    width: 90%;
    margin: 60px auto;
    padding: 20px;
  }

  .login-panel h2 {
    font-size: 22px;
  }

  .login-panel form input,
  .login-panel form button,
  .login-panel button {
    width: 100%;
  }

  .menu a {
    width: 90%;
    font-size: 16px;
    padding: 10px 16px;
  }

  .social-links img {
    width: 28px;
    height: 28px;
  }

  .contador-flotante {
    font-size: 22px;
    top: 10px;
    right: 10px;
  }

  footer {
    font-size: 12px;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 16px;
  }

  .menu a {
    font-size: 14px;
    padding: 8px 12px;
  }

  .login-panel h2 {
    font-size: 20px;
  }

  .login-panel {
    padding: 15px;
  }

  .logout-form button {
    font-size: 14px;
    padding: 10px 20px;
  }

  .contador-flotante {
    font-size: 18px;
  }

  .social-links img {
    width: 24px;
    height: 24px;
  }
}

