/* =====================================================
   QRQUEST GAMING STYLES - Completo y Optimizado
   Basado en los colores del CRM y estilos gaming
   ===================================================== */

/* =====================================================
   VARIABLES Y CONFIGURACIÓN BASE
   ===================================================== */

/* Variables de colores del CRM */
:root {
  /* Colores originales del CRM */
  --primary-color: #b65f0e;      /* Naranja/marrón */
  --secondary-color: #210000;    /* Rojo oscuro */
  --light-color: #fff1ce;        /* Beige claro */
  --white: #ffffff;
  --dark-gray: #333333;
  --light-gray: #f5f5f5;
  
  /* Colores gaming adicionales */
  --accent-orange: #fca93f;      /* Naranja vibrante */
  --glow-color: #ffb84d;         /* Color para efectos de brillo */
  --shadow-dark: rgba(33, 0, 0, 0.8);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-orange));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* =====================================================
   BACKGROUND Y OVERLAYS
   ===================================================== */

/* Background gaming con overlay */
.gaming-background {
  background: linear-gradient(135deg, #210000, #b65f0e);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  min-height: 100vh;
  animation: backgroundShift 20s ease-in-out infinite;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  background: linear-gradient(
    135deg,
    rgba(33, 0, 0, 0.7) 0%,
    rgba(182, 95, 14, 0.5) 50%,
    rgba(33, 0, 0, 0.8) 100%
  );
  z-index: 1;
  pointer-events: none;
}

@keyframes backgroundShift {
  0%, 100% { filter: brightness(1) contrast(1.1) saturate(1.2); }
  50% { filter: brightness(1.1) contrast(1.2) saturate(1.3); }
}

/* =====================================================
   LAYOUT PRINCIPAL
   ===================================================== */

/* Contenedor principal */
.main-container {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeInUp 1.5s ease-out;
  margin-bottom: 100px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   SECCIÓN DEL LOGO
   ===================================================== */

.logo-section {
  text-align: center;
  margin-bottom: 50px;
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.logo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.main-logo {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 0 20px rgba(252, 169, 63, 0.8));
  transition: all 0.3s ease;
}

.main-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 30px rgba(252, 169, 63, 1));
}

/* Logo de texto de fallback */
.text-logo {
  font-size: 4rem;
  font-weight: 800;
  color: #fca93f;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.game-title {
  font-size: 4rem;
  font-weight: 800;
  color: var(--white);
  text-shadow: 
    0 0 10px var(--glow-color),
    0 0 20px var(--glow-color),
    0 0 30px var(--accent-orange),
    3px 3px 0 var(--secondary-color);
  margin-bottom: 10px;
  letter-spacing: 2px;
  animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from { text-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color), 0 0 30px var(--accent-orange), 3px 3px 0 var(--secondary-color); }
  to { text-shadow: 0 0 15px var(--glow-color), 0 0 25px var(--glow-color), 0 0 40px var(--accent-orange), 3px 3px 0 var(--secondary-color); }
}

.game-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--light-color);
  text-shadow: 2px 2px 4px var(--secondary-color);
  letter-spacing: 1px;
}

/* =====================================================
   NAVEGACIÓN PRINCIPAL
   ===================================================== */

.main-navigation {
  margin-bottom: 60px;
}

.nav-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 900px;
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 20px;
  background: var(--gradient-primary);
  border-radius: 20px;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
}

.nav-item:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.nav-item:hover:before {
  left: 100%;
}

.nav-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(252, 169, 63, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: var(--glow-color);
}

.nav-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-text {
  font-size: 1.1rem;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(252, 169, 63, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  pointer-events: none;
}

.nav-item:hover .nav-glow {
  width: 200px;
  height: 200px;
}

/* =====================================================
   SECCIÓN PRÓXIMAMENTE
   ===================================================== */

.coming-soon-section {
  text-align: center;
  margin: 60px 0 80px 0;
}

.coming-soon-title {
  font-size: 4rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 10px #ffb84d, 0 0 20px #ffb84d, 0 0 30px #fca93f, 3px 3px 0 #210000;
  margin-bottom: 40px;
  letter-spacing: 2px;
  animation: titleGlow 2s ease-in-out infinite alternate;
}

.app-stores-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 0 auto;
}

.store-logo {
  height: 60px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  cursor: pointer;
}

.store-logo:hover {
  transform: scale(1.1) translateY(-5px);
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.4));
}

.store-placeholder {
  background: rgba(255,255,255,0.2);
  padding: 15px 25px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.3);
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  min-width: 150px;
  transition: all 0.3s ease;
}

.store-placeholder:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-3px);
  border-color: #fca93f;
}

/* =====================================================
   SECCIONES DE CONTENIDO
   ===================================================== */

.content-sections {
  width: 100%;
  max-width: 1000px;
  margin-top: 60px;
}

.content-section {
  display: none;
  animation: fadeIn 0.6s ease-out;
}

.content-section.active {
  display: block;
}

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

.section-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 40px;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(252, 169, 63, 0.1);
  border: 2px solid rgba(252, 169, 63, 0.3);
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Texto descriptivo */
.section-description {
  margin-top: 35px;
  text-align: justify;
  width: 100%;
}

.section-description p {
  font-size: 0.95rem;
  line-height: 1.6;
  text-indent: 1.5em;
  margin-bottom: 15px;
  width: 100%;
  color: var(--dark-gray);
}

/* =====================================================
   GRID DE CARACTERÍSTICAS
   ===================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.feature-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--light-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-orange);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--dark-gray);
  line-height: 1.6;
}

/* =====================================================
   QUEST PREVIEW Y ESTADÍSTICAS
   ===================================================== */

.quest-preview {
  text-align: center;
}

.quest-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-item {
  background: var(--gradient-secondary);
  color: var(--white);
  border-radius: 15px;
  padding: 25px 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  text-align: center;
}

.stat-item:hover {
  transform: translateY(-3px);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
}

.cta-section {
  margin-top: 30px;
}

.cta-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  filter: brightness(1.1);
}

/* =====================================================
   FICHAS GAMING HORIZONTALES PARA QUESTS
   ===================================================== */

/* Lista de Quests Activas */
.active-quests-list h3 {
  color: var(--secondary-color) !important;
  margin-bottom: 25px !important;
  text-align: center !important;
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  position: relative !important;
  padding-bottom: 10px !important;
}

.active-quests-list h3:after {
  content: '⚡';
  position: absolute;
  right: -30px;
  top: 0;
  font-size: 1.5rem;
  color: var(--accent-orange);
  animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
}

/* Grid de Quests - Vertical Stack */
.quests-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  margin-top: 20px !important;
}

/* Ficha Quest Horizontal Gaming */
.quest-card {
  display: flex !important;
  align-items: center !important;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(255, 241, 206, 0.9) 100%) !important;
  border-radius: 15px !important;
  padding: 0 !important;
  border: 3px solid transparent !important;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  position: relative !important;
  overflow: hidden !important;
  min-height: 120px !important;
  background-size: 200% 100% !important;
  cursor: pointer !important;
  margin-bottom: 0 !important;
}

.quest-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(252, 169, 63, 0.1), 
    transparent);
  transition: left 0.6s ease;
}

.quest-card:hover:before {
  left: 100%;
}

.quest-card:hover {
  transform: translateY(-5px) scale(1.02) !important;
  border-color: var(--accent-orange) !important;
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.2),
    0 0 30px rgba(252, 169, 63, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  background-position: 100% 0 !important;
}

/* Estados de Quest */
.quest-card.quest-active {
  border-left: 6px solid #4CAF50 !important;
  background: linear-gradient(135deg, 
    rgba(76, 175, 80, 0.05) 0%, 
    rgba(255, 255, 255, 0.95) 30%, 
    rgba(255, 241, 206, 0.9) 100%) !important;
}

.quest-card.quest-pending {
  border-left: 6px solid #2196F3 !important;
  background: linear-gradient(135deg, 
    rgba(33, 150, 243, 0.05) 0%, 
    rgba(255, 255, 255, 0.95) 30%, 
    rgba(255, 241, 206, 0.9) 100%) !important;
}

.quest-card.quest-completed {
  border-left: 6px solid #666 !important;
  background: linear-gradient(135deg, 
    rgba(100, 100, 100, 0.05) 0%, 
    rgba(255, 255, 255, 0.95) 30%, 
    rgba(255, 241, 206, 0.9) 100%) !important;
  opacity: 0.8 !important;
}

/* Contenedor de Imagen/Icono de Quest */
.quest-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  margin: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: var(--gradient-primary);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Imagen real de la Quest */
.quest-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* Icono de fallback cuando no hay imagen */
.quest-fallback-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.5rem;
  color: white;
}

.quest-icon:before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0%, 100% { transform: rotate(45deg) translateX(-100%); }
  50% { transform: rotate(45deg) translateX(100%); }
}

/* Contenido Principal */
.quest-main-content {
  flex: 1;
  padding: 20px 15px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Header de Quest Card */
.quest-card-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  margin-bottom: 12px !important;
  gap: 15px !important;
}

.quest-card-header h4 {
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: var(--secondary-color) !important;
  margin: 0 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1) !important;
  flex: 1 !important;
  line-height: 1.2 !important;
  transition: all 0.3s ease !important;
}

/* Badge de Estado */
.quest-badge {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  white-space: nowrap !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.quest-badge:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.quest-card:hover .quest-badge:before {
  left: 100%;
}

.quest-active-badge {
  background: linear-gradient(135deg, #4CAF50, #45a049) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3) !important;
}

.quest-pending-badge {
  background: linear-gradient(135deg, #2196F3, #1976D2) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3) !important;
}

.quest-completed-badge {
  background: linear-gradient(135deg, #666, #555) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(100, 100, 100, 0.3) !important;
}

/* Información de Quest */
.quest-card-info {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 15px !important;
  margin-top: 8px !important;
}

.quest-detail {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 8px !important;
  background: rgba(255, 255, 255, 0.6) !important;
  border-radius: 10px !important;
  border: 1px solid rgba(252, 169, 63, 0.2) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
}

.quest-detail:hover {
  background: rgba(252, 169, 63, 0.1) !important;
  border-color: var(--accent-orange) !important;
  transform: translateY(-2px) !important;
}

.detail-label {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: var(--secondary-color) !important;
  margin-bottom: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  opacity: 0.8 !important;
}

.detail-value {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: var(--primary-color) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Indicadores Gaming */
.quest-side-indicators {
  flex-shrink: 0;
  width: 120px;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 2px solid rgba(252, 169, 63, 0.2);
  background: rgba(252, 169, 63, 0.05);
}

.quest-level {
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  background: var(--accent-orange);
  padding: 4px 8px;
  border-radius: 12px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.quest-reward {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 5px;
}

.quest-players {
  font-size: 0.9rem;
  color: var(--secondary-color);
  opacity: 0.8;
  text-align: center;
}

/* Barra de Progreso Gaming */
.quest-progress {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
  position: relative;
}

.quest-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-orange), var(--primary-color));
  border-radius: 3px;
  transition: width 0.8s ease;
  position: relative;
}

.quest-progress-bar:after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Efectos de Hover Avanzados */
.quest-card:hover .quest-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.quest-card:hover .quest-image {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.1);
}

.quest-card:hover .quest-fallback-icon {
  transform: scale(1.1);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.quest-card:hover .quest-card-header h4 {
  color: var(--accent-orange) !important;
  transform: translateX(5px) !important;
}

.quest-card:hover .quest-detail {
  transform: translateY(-3px) !important;
}

/* =====================================================
   LEADERBOARD
   ===================================================== */

.leaderboard {
  padding: 20px 0;
}

.podium {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 20px;
  margin: 40px 0;
}

.podium-item {
  text-align: center;
  background: var(--white);
  border-radius: 20px;
  padding: 25px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 3px solid;
  transition: transform 0.3s ease;
  min-width: 120px;
}

.podium-item.first {
  border-color: #FFD700;
  transform: scale(1.1);
  background: linear-gradient(135deg, #FFF8DC, #FFFACD);
}

.podium-item.second {
  border-color: #C0C0C0;
  background: linear-gradient(135deg, #F5F5F5, #E8E8E8);
}

.podium-item.third {
  border-color: #CD7F32;
  background: linear-gradient(135deg, #FFF8DC, #F4E4BC);
}

.podium-item:hover {
  transform: translateY(-5px) scale(1.02);
}

.podium-item.first:hover {
  transform: translateY(-5px) scale(1.12);
}

.podium-avatar {
  font-size: 3rem;
  margin-bottom: 10px;
}

.podium-name {
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.podium-score {
  font-weight: 800;
  color: var(--primary-color);
  font-size: 1.3rem;
}

/* =====================================================
   GRID DE AYUDA
   ===================================================== */

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.help-item {
  background: var(--white);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--accent-orange);
  transition: all 0.3s ease;
}

.help-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.help-item h3 {
  color: var(--secondary-color);
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.help-item p {
  color: var(--dark-gray);
  line-height: 1.6;
}

/* =====================================================
   PERSONAJES FLOTANTES
   ===================================================== */

.floating-characters {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.floating-char {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.char-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.char-2 {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.char-3 {
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(5deg); }
  66% { transform: translateY(10px) rotate(-3deg); }
}

/* =====================================================
   PARTÍCULAS
   ===================================================== */

.particles {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--glow-color);
  border-radius: 50%;
  opacity: 0.6;
  animation: particles 10s linear infinite;
}

.particle:nth-child(1) { left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 40%; animation-delay: 2s; }
.particle:nth-child(3) { left: 60%; animation-delay: 4s; }
.particle:nth-child(4) { left: 80%; animation-delay: 6s; }
.particle:nth-child(5) { left: 10%; animation-delay: 8s; }

@keyframes particles {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* =====================================================
   FOOTER GAMING STYLE
   ===================================================== */

.main-footer {
  position: relative;
  z-index: 20;
  width: 100%;
  background: linear-gradient(135deg, 
    rgba(33, 0, 0, 0.95) 0%, 
    rgba(182, 95, 14, 0.9) 50%, 
    rgba(33, 0, 0, 0.95) 100%);
  backdrop-filter: blur(10px);
  border-top: 3px solid var(--accent-orange);
  margin-top: auto;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

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

.dask-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.dask-logo:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 12px rgba(252, 169, 63, 0.5));
}

.dask-logo-placeholder {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.dask-logo-placeholder:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(252, 169, 63, 0.5);
}

.footer-company-info {
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-company-name {
  font-weight: 800;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-right {
  display: flex;
  gap: 25px;
  align-items: center;
}

.footer-link {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.footer-link:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(252, 169, 63, 0.2), 
    transparent);
  transition: left 0.5s ease;
}

.footer-link:hover:before {
  left: 100%;
}

.footer-link:hover {
  background: rgba(252, 169, 63, 0.2);
  border-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(252, 169, 63, 0.3);
}

/* =====================================================
   MODALES LEGALES GAMING STYLE
   ===================================================== */

.legal-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(33, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease-out;
}

.legal-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(255, 241, 206, 0.95) 100%);
  margin: 5% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(252, 169, 63, 0.3);
  border: 3px solid var(--accent-orange);
  animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  background: var(--gradient-primary);
  color: white;
  padding: 25px 30px;
  position: relative;
  overflow: hidden;
}

.modal-header:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(255, 255, 255, 0.1) 50%, 
    transparent 70%);
  animation: headerShine 3s ease-in-out infinite;
}

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

.modal-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1) rotate(90deg);
}

.modal-body {
  padding: 30px;
  max-height: 60vh;
  overflow-y: auto;
  color: var(--secondary-color);
  line-height: 1.6;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(252, 169, 63, 0.1);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--accent-orange);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.modal-body h3 {
  color: var(--primary-color);
  font-weight: 700;
  margin: 25px 0 15px 0;
  font-size: 1.2rem;
  border-left: 4px solid var(--accent-orange);
  padding-left: 15px;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  margin-bottom: 15px;
  text-align: justify;
}

.modal-body ul {
  margin: 15px 0;
  padding-left: 20px;
}

.modal-body li {
  margin-bottom: 8px;
}

.modal-body strong {
  color: var(--primary-color);
  font-weight: 700;
}

/* =====================================================
   DEBUG INFO
   ===================================================== */

.debug-info {
  position: fixed;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 10px;
  font-size: 12px;
  z-index: 9999;
  border-radius: 5px;
  max-width: 300px;
  line-height: 1.4;
}

/* =====================================================
   ANIMACIONES DE ENTRADA MEJORADAS
   ===================================================== */

@media (prefers-reduced-motion: no-preference) {
  .nav-item:nth-child(1) { animation: slideInLeft 0.8s ease-out 0.2s both; }
  .nav-item:nth-child(2) { animation: slideInLeft 0.8s ease-out 0.4s both; }
  .nav-item:nth-child(3) { animation: slideInLeft 0.8s ease-out 0.6s both; }
  .nav-item:nth-child(4) { animation: slideInLeft 0.8s ease-out 0.8s both; }
  
  .quest-card {
    animation: slideInUp 0.6s ease-out both !important;
  }
  
  .quest-card:nth-child(1) { animation-delay: 0.1s !important; }
  .quest-card:nth-child(2) { animation-delay: 0.2s !important; }
  .quest-card:nth-child(3) { animation-delay: 0.3s !important; }
  .quest-card:nth-child(4) { animation-delay: 0.4s !important; }
  .quest-card:nth-child(5) { animation-delay: 0.5s !important; }
  .quest-card:nth-child(6) { animation-delay: 0.6s !important; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(70px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estados de hover mejorados */
@media (hover: hover) {
  .nav-item:hover {
    animation: pulse 0.3s ease-in-out;
  }
}

@keyframes pulse {
  0% { transform: translateY(-8px) scale(1.02); }
  50% { transform: translateY(-10px) scale(1.03); }
  100% { transform: translateY(-8px) scale(1.02); }
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 1200px) {
  .nav-container {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .main-container {
    padding: 15px;
  }
  
  .game-title {
    font-size: 2.5rem;
  }
  
  .main-logo {
    height: 80px;
  }
  
  .nav-container {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 400px;
  }
  
  .nav-item {
    padding: 20px 15px;
  }
  
  .nav-icon {
    font-size: 2rem;
  }
  
  .nav-text {
    font-size: 1rem;
  }
  
  .main-navigation {
    margin-bottom: 40px;
  }
  
  .coming-soon-section { 
    margin: 40px 0 60px 0; 
  }
  
  .coming-soon-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
  }
  
  .content-sections {
    margin-top: 40px;
  }
  
  .section-container {
    padding: 25px 20px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .quest-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .podium {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .podium-item.first {
    order: -1;
    transform: scale(1.05);
  }
  
  .floating-char {
    width: 60px;
    height: 60px;
  }
  
  /* Responsive Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 25px 20px;
  }

  .footer-left {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
  }

  .footer-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .footer-link {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .modal-content {
    width: 95%;
    margin: 2% auto;
    max-height: 90vh;
  }

  .modal-header {
    padding: 20px;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .modal-body {
    padding: 20px;
    max-height: 70vh;
  }
  
  .section-description {
    margin-top: 35px;
  }
  
  .section-description p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  /* Responsive para Quest Cards */
  .quest-card {
    flex-direction: column !important;
    min-height: auto !important;
    text-align: center !important;
  }
  
  .quest-icon {
    width: 60px !important;
    height: 60px !important;
    font-size: 2rem !important;
    margin: 15px auto 10px auto !important;
  }
  
  .quest-image {
    width: 100% !important;
    height: 100% !important;
  }
  
  .quest-fallback-icon {
    font-size: 2rem !important;
  }
  
  .quest-main-content {
    padding: 15px 20px !important;
  }
  
  .quest-card-header h4 {
    font-size: 1.2rem !important;
    text-align: center !important;
  }
  
  .quest-card-info {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  .quest-side-indicators {
    width: 100% !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    border-left: none !important;
    border-top: 2px solid rgba(252, 169, 63, 0.2) !important;
    padding: 15px !important;
  }
  
  .quest-progress {
    margin-top: 15px !important;
  }
}

@media (max-width: 480px) {
  .game-title {
    font-size: 2rem;
    letter-spacing: 1px;
  }
  
  .game-subtitle {
    font-size: 1rem;
  }
  
  .main-logo {
    height: 60px;
  }
  
  .main-navigation {
    margin-bottom: 30px;
  }
  
  .coming-soon-section { 
    margin: 30px 0 50px 0; 
  }
  
  .coming-soon-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }
  
  .content-sections {
    margin-top: 30px;
  }
  
  .section-container {
    padding: 20px 15px;
    border-radius: 15px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .help-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-item {
    padding: 15px;
  }
  
  .cta-button {
    padding: 12px 30px;
    font-size: 1rem;
  }
  
  .floating-char {
    width: 40px;
    height: 40px;
  }
  
  .footer-content {
    padding: 20px 15px;
  }

  .footer-company-info {
    font-size: 0.8rem;
  }

  .footer-right {
    gap: 10px;
  }

  .footer-link {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  .modal-body h3 {
    font-size: 1.1rem;
  }
  
  .section-description {
    margin-top: 30px;
    text-align: justify;
    width: 100%;
  }

  .section-description p {
    font-size: 0.9rem;
    text-indent: 1.5em;
    margin-bottom: 15px;
    width: 100%;
  }
  
  .quest-card-info {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  
  .quest-detail {
    flex-direction: row !important;
    justify-content: space-between !important;
    text-align: left !important;
    padding: 8px 12px !important;
  }
  
  .detail-label {
    margin-bottom: 0 !important;
  }
  
  .quest-side-indicators {
    flex-direction: column !important;
    gap: 10px !important;
  }
}

/* =====================================================
   HALL OF FAME STYLES - QRQuest
   Complemento para gaming-styles.css
   ===================================================== */

/* Estilos para la tabla de Hall of Fame */
.hall-fame-table {
    margin-top: 40px;
}

.hall-fame-table h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.hall-fame-table h3:after {
    content: '🏆';
    position: absolute;
    right: -30px;
    top: 0;
    font-size: 1.5rem;
    color: var(--accent-orange);
    animation: trophySparkle 1.5s ease-in-out infinite;
}

@keyframes trophySparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(10deg); opacity: 0.8; }
}

.table-container {
    overflow-x: auto;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.data-table thead {
    background: var(--gradient-primary);
    color: white;
}

.data-table th {
    padding: 15px;
    text-align: center; /* Centrado de los encabezados */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    position: relative;
}

.data-table th:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center; /* Centrado de los datos */
}

.data-table tbody tr {
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: rgba(252, 169, 63, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Destacar los 3 primeros jugadores */
.player-row.top-player {
    background: rgba(252, 169, 63, 0.1);
    font-weight: 700;
}

.player-row.top-player td:first-child {
    position: relative;
}

.player-row.top-player:nth-child(1) td:first-child:before {
    content: '🥇';
    margin-right: 5px;
}

.player-row.top-player:nth-child(2) td:first-child:before {
    content: '🥈';
    margin-right: 5px;
}

.player-row.top-player:nth-child(3) td:first-child:before {
    content: '🥉';
    margin-right: 5px;
}

/* Animación para filas de la tabla */
.data-table tbody tr {
    animation: slideInUp 0.6s ease-out both;
}

.data-table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.data-table tbody tr:nth-child(2) { animation-delay: 0.2s; }
.data-table tbody tr:nth-child(3) { animation-delay: 0.3s; }
.data-table tbody tr:nth-child(4) { animation-delay: 0.4s; }
.data-table tbody tr:nth-child(5) { animation-delay: 0.5s; }
.data-table tbody tr:nth-child(6) { animation-delay: 0.6s; }
.data-table tbody tr:nth-child(7) { animation-delay: 0.7s; }
.data-table tbody tr:nth-child(8) { animation-delay: 0.8s; }
.data-table tbody tr:nth-child(9) { animation-delay: 0.9s; }
.data-table tbody tr:nth-child(10) { animation-delay: 1s; }

/* Estilo para las quests ganadas */
.data-table td:nth-child(4) {
    font-weight: 700;
    color: var(--accent-orange);
}

/* Mejoras en el podio */
.podium {
    margin-bottom: 50px;
}

.podium-item {
    position: relative;
    overflow: hidden;
}

.podium-item:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: podiumShine 3s ease-in-out infinite;
}

@keyframes podiumShine {
    0%, 100% { transform: rotate(45deg) translateX(-100%); }
    50% { transform: rotate(45deg) translateX(100%); }
}

.podium-score {
    background: var(--gradient-primary);
    margin: 10px -20px -25px;
    padding: 10px;
    border-radius: 0 0 15px 15px;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive para la tabla */
@media (max-width: 768px) {
    .hall-fame-table h3 {
        font-size: 1.5rem;
    }
    
    .data-table th, .data-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .podium {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .podium-item.first {
        order: -1;
        transform: scale(1.05);
    }
}

@media (max-width: 480px) {
    .hall-fame-table h3 {
        font-size: 1.3rem;
    }
    
    .data-table th, .data-table td {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .data-table th {
        white-space: nowrap;
    }
}