/* Fondo animado con Vanta */
#vanta-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* Fallback si animación no carga */
.fallback-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  background: linear-gradient(135deg, #FFD700, #FF0000, #000000);
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Precarga animada */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader {
  border: 6px solid #f1c40f;
  border-top: 6px solid #000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* General */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0d0d0d;
  color: white;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Accesibilidad */
.high-contrast {
  background-color: #000 !important;
  color: #fff !important;
}

.large-font * {
  font-size: 120% !important;
}

/* Botones de accesibilidad */
#accessibility-controls {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

#accessibility-controls button {
  background-color: #f1c40f;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  #accessibility-controls {
    display: none;
  }
}

/* Header */
header {
  background-color: #111;
  padding: 10px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  font-weight: bold;
  color: #f1c40f;
  font-size: 22px;
}

/* Navegación */
nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: #f1c40f;
  color: #000;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 42px;
  line-height: 1;
  padding: 6px;
  color: white;
  cursor: pointer;
}

/* Banner */
.banner-container {
  margin-top: 80px;
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.banner-container img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  transition: opacity 0.6s ease-in-out;
  display: block;
  margin: 0 auto;
}

/* Botón Wallet */
#walletBtn {
  display: block;
  margin: 30px auto 6px;
  padding: 14px 30px;
  background-color: #f1c40f;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  color: black;
  cursor: pointer;
  transition: all 0.2s ease;
}

#walletBtn:hover {
  background-color: #f39c12;
}

#walletBtn.wallet-connected {
  background-color: #2ecc71 !important;
  color: white !important;
}

/* Estado debajo del botón */
#wallet-status {
  text-align: center;
  font-size: 13px;
  color: #ccc;
  margin-bottom: 12px;
}

/* Hero */
.hero-text {
  text-align: center;
  margin: 50px auto 30px;
  max-width: 90%;
}

.hero-text h1 {
  font-size: 22px;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-text h2 {
  font-size: 18px;
  font-weight: normal;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  margin-top: 40px;
}

/* Footer */
footer {
  margin-top: 80px;
  padding: 20px;
  background-color: #111;
  text-align: center;
}

footer a {
  color: #f1c40f;
  text-decoration: none;
  margin: 0 10px;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #111;
  }

  nav.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .banner-container {
    max-height: 200px;
  }

  .banner-container img {
    max-height: 200px;
  }

  .hero-text h1 {
    font-size: 20px;
  }

  .hero-text h2 {
    font-size: 16px;
  }

  #walletBtn {
    width: 80%;
    font-size: 18px;
  }
}
