/* style.css */

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-size: cover;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.fondoindex {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: url("/css/fondo.png") no-repeat center center fixed;
  background-size: cover;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.app {
  width: 100%;
  max-width: 400px;
  padding: 16px;
  box-sizing: border-box;
  position: relative;
  padding-bottom: 90px; /* espacio para footer */
}

.header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #222; /* Puedes cambiar a rgba(0,0,0,0.6) si quieres translúcido */
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 20px;

  /* 🔽 Añade esto: */
  position: sticky;
  top: 16px;
  z-index: 10;
  backdrop-filter: blur(8px); /* suaviza fondo si es translúcido */
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgb(255, 234, 0);
}

.user-info h2 {
  margin: 0;
  font-size: 1.1rem;
}

.user-info p {
  margin: 0;
  font-size: 0.8rem;
  color: orange;
}

.points-box {
  background: rgba(0, 0, 0, 0.636);
  padding: 16px;
  border-radius: 12px;
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}

.points-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: bold;
  color: orange;
  margin-bottom: 8px;
}

.points-icon {
  width: 28px;
}

.points {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
}

.money-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.5rem;
  color: orange;
}

.actions {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.action-btn {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  width: 45%;
  backdrop-filter: blur(4px);
}

.note {
  text-align: center;
  color: #ffa500;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  background: #111;
  border-radius: 20px;
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  border: 3px solid rgb(255, 17, 0);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.nav-btn {
  background: none;
  border: none;
  color: white;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.nav-btn.active {
  color: orange;
}

.nav-btn img {
  max-width: 24px;
  max-height: 24px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.nav-btn {
  width: 60px;
  text-align: center;
}
.nav-btn img {
  vertical-align: middle;
}


.floating-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.floating-image {
   width: 150px;
   height: 150px;
   animation: float 3s ease-in-out infinite;
   object-fit: contain;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}



.monedas-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  width: 0;
  height: 0;
}

.mini-moneda {
  position: absolute;
  width: 40px;
  height: 40px;
  animation: volar 1s ease-out forwards;
  z-index: 5;
}

@keyframes volar {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(0.5);
  }
}
.panel {
  display: none;
}

#home {
  display: block;
}


.points-box-horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.671);
  padding: 12px 16px;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.478);
}

.points-icon-left {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.points-text {
  flex: 1;
  margin: 0 12px;
}

.points-label {
  font-size: 0.85rem;
  font-weight: bold;
  color: white;
  margin: 0;
}

.points-value {
  margin: 0;
  color: orange;
  font-size: 1.5rem;
  font-weight: bold;
}

.points-icon-right {
  font-size: 1.5rem;
  color: orange;
}


.action-btn-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 12px 16px;
  width: 45%;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: transform 0.2s;
}

.action-btn-modern:hover {
  transform: scale(1.05);
}

.action-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-btn {
  text-decoration: none;
}
.nav-btn:visited,
.nav-btn:hover,
.nav-btn:active {
  text-decoration: none;
}