* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Fredoka', sans-serif;
  background: linear-gradient(135deg, #353346ff 0%, #2a2a3e 50%, #1e1e2e 100%) fixed;
  color: #fff;
  min-height: 100vh;
  padding-bottom: 40px;
}

/* ===== BARRA SUPERIOR ===== */
.top-bar {
  width: 100%;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
  background-size: 200% 200%;
  padding: 22px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1100;
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.3);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideDown 0.8s ease-out, topBarMove 6s ease-in-out infinite;
}

@keyframes slideDown {
  0% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes topBarMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.top-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-left img {
  height: 50px;
  transition: transform 0.3s ease;
}

.top-left img:hover {
  transform: scale(1.1) rotate(5deg);
}

.top-left h2 {
  font-size: 28px;
  color: #ff8c42;
  font-family: 'Fredoka', sans-serif;
  text-shadow: 0 2px 10px rgba(255, 140, 66, 0.5);
  animation: glowTitle 3s ease-in-out infinite alternate;
  margin: 0;
}

@keyframes glowTitle {
  0% { 
    color: #ff8c42;
    text-shadow: 0 2px 10px rgba(255, 140, 66, 0.5);
  }
  100% { 
    color: #ffab70;
    text-shadow: 0 2px 15px rgba(255, 171, 112, 0.8);
  }
}

.top-icons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.icon-container {
  position: relative;
  cursor: pointer;
}

.icon {
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.icon:hover {
  transform: scale(1.15) translateY(-3px);
  filter: drop-shadow(0 4px 8px rgba(255, 140, 66, 0.6));
}

.tooltip {
  position: absolute;
  top: 55px;
  right: 0;
  background: rgba(30, 51, 78, 0.95);
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  z-index: 1200;
}

.icon-container:hover .tooltip {
  opacity: 1;
  transform: translateY(-5px);
}

/* ===== BOTÓN VOLVER ===== */
.volver-btn {
  display: inline-block;
  margin: 25px 0 0 30px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
  transition: all 0.3s ease;
}

.volver-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.6);
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.recompensas-container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.recompensas-container h2 {
  text-align: center;
  font-size: 32px;
  color: #ff8c42;
  margin-bottom: 25px;
  text-shadow: 0 2px 10px rgba(255, 140, 66, 0.5);
}

/* ===== MIS PUNTOS ===== */
.mis-puntos {
  background: linear-gradient(135deg, #f0c64b 0%, #d85e39 100%);
  color: #1e334e;
  text-align: center;
  padding: 20px;
  border-radius: 22px;
  font-weight: bold;
  font-size: 24px;
  margin: 18px 0 30px;
  box-shadow: 0 6px 20px rgba(240, 198, 75, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* ===== BLOQUE MISIONES ===== */
.bloque-retos {
  margin-top: 35px;
}

.bloque-retos h2 {
  font-size: 26px;
  margin-bottom: 20px;
  color: #60a5fa;
}

/* ===== MISIÓN INDIVIDUAL ===== */
.mision {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-radius: 22px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.mision:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 140, 66, 0.5);
}

.mision img {
  width: 85px;
  height: 85px;
  filter: drop-shadow(0 4px 8px rgba(255, 140, 66, 0.3));
  transition: transform 0.3s ease;
}

.mision:hover img {
  transform: rotate(5deg) scale(1.1);
}

.mision-info {
  flex: 1;
  text-align: left;
}

.mision-info h3 {
  color: #ff8c42;
  font-size: 20px;
  margin-bottom: 10px;
}

/* ===== BARRA DE PROGRESO ===== */
.barra {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  height: 20px;
  overflow: hidden;
  margin: 10px 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progreso {
  background: linear-gradient(90deg, #f0c64b 0%, #d85e39 100%);
  height: 100%;
  transition: width 1s ease-out;
  box-shadow: 0 0 10px rgba(240, 198, 75, 0.6);
  position: relative;
}

.progreso::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.meta {
  font-weight: bold;
  color: #fff;
  font-size: 16px;
  margin-top: 5px;
}

/* ===== INSIGNIAS ===== */
.insignia-completo {
  display: inline-block;
  background: linear-gradient(135deg, #4cd137 0%, #44bd32 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  box-shadow: 0 3px 10px rgba(76, 209, 55, 0.4);
}

.insignia-pendiente {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: #ddd;
  padding: 6px 14px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
}

/* ===== MISIÓN COMPLETADA ===== */
.completo {
  border: 3px solid #4cd137;
  animation: brillo 1.5s infinite alternate;
  background: linear-gradient(135deg, rgba(76, 209, 55, 0.2) 0%, rgba(68, 189, 50, 0.1) 100%);
}

@keyframes brillo {
  from { box-shadow: 0 0 15px rgba(76, 209, 55, 0.6), 0 8px 20px rgba(0, 0, 0, 0.3); }
  to { box-shadow: 0 0 30px rgba(76, 209, 55, 0.9), 0 12px 30px rgba(0, 0, 0, 0.4); }
}

/* ===== PREMIOS CULTURALES ===== */
.premios {
  margin-top: 40px;
  background: linear-gradient(135deg, #1e334e 0%, #2a3f5f 100%);
  color: #fcf2c0;
  padding: 30px;
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 140, 66, 0.3);
  text-align: center;
}

.premios h2 {
  color: #ff8c42;
  margin-bottom: 15px;
}

.prox {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.6;
  color: #fcf2c0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .top-bar {
    padding: 18px 20px;
  }

  .top-left h2 {
    font-size: 22px;
  }

  .top-left img {
    height: 40px;
  }

  .recompensas-container {
    margin: 20px;
    padding: 20px;
  }

  .recompensas-container h2 {
    font-size: 26px;
  }

  .mis-puntos {
    font-size: 20px;
    padding: 16px;
  }

  .mision {
    flex-direction: column;
    text-align: center;
    padding: 18px;
  }

  .mision-info {
    text-align: center;
  }

  .mision img {
    width: 70px;
    height: 70px;
  }

  .volver-btn {
    margin: 20px;
    padding: 10px 22px;
    font-size: 14px;
  }

  .premios {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .recompensas-container {
    margin: 15px;
    padding: 18px;
  }

  .bloque-retos h2 {
    font-size: 22px;
  }

  .mision-info h3 {
    font-size: 18px;
  }

  .meta {
    font-size: 14px;
  }
}
