/* ==========================================================================
   ESTILOS COMPARTIDOS NIHONFREE (Header, Modales, Misiones y Premios)
   ========================================================================== */

/* Variables del Sistema de Diseño */
:root {
  --bg-dark: #08090f;
  --bg-deep: #030408;
  --panel-bg: rgba(18, 20, 32, 0.65);
  --panel-border: rgba(255, 255, 255, 0.08);
  
  --accent-sakura: #ff7597;
  --accent-sakura-glow: rgba(255, 117, 151, 0.3);
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.3);
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.25);
  
  --text-primary: #f8f9fc;
  --text-secondary: #a0aec0;
  --text-muted: #5e6b7e;
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --error: #ef4444;
  
  --glass-blur: blur(12px);
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   1. ESTILOS DE HEADER COMÚN & NAVEGACIÓN
   ========================================================================== */
/* Reset básico de enlaces y formularios */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23ff7597' stroke-width='1.2' stroke-opacity='0.045' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(10, 10) scale(0.8)'%3E%3Cpath d='M50,50 C40,30 43,15 50,22 C57,15 60,30 50,50'/%3E%3Cpath d='M50,50 C40,30 43,15 50,22 C57,15 60,30 50,50' transform='rotate(72,50,50)'/%3E%3Cpath d='M50,50 C40,30 43,15 50,22 C57,15 60,30 50,50' transform='rotate(144,50,50)'/%3E%3Cpath d='M50,50 C40,30 43,15 50,22 C57,15 60,30 50,50' transform='rotate(216,50,50)'/%3E%3Cpath d='M50,50 C40,30 43,15 50,22 C57,15 60,30 50,50' transform='rotate(288,50,50)'/%3E%3Ccircle cx='50' cy='50' r='3'/%3E%3C/g%3E%3Cg transform='translate(90, 80) scale(0.5) rotate(35, 50, 50)'%3E%3Cpath d='M50,50 C40,30 43,15 50,22 C57,15 60,30 50,50'/%3E%3Cpath d='M50,50 C40,30 43,15 50,22 C57,15 60,30 50,50' transform='rotate(72,50,50)'/%3E%3Cpath d='M50,50 C40,30 43,15 50,22 C57,15 60,30 50,50' transform='rotate(144,50,50)'/%3E%3Cpath d='M50,50 C40,30 43,15 50,22 C57,15 60,30 50,50' transform='rotate(216,50,50)'/%3E%3Cpath d='M50,50 C40,30 43,15 50,22 C57,15 60,30 50,50' transform='rotate(288,50,50)'/%3E%3Ccircle cx='50' cy='50' r='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  z-index: -1;
  pointer-events: none;
}

a {
  text-decoration: none;
}

select {
  background-color: rgba(18, 20, 32, 0.9);
  color: var(--text-primary);
  border: 1px solid var(--panel-border);
  padding: 8px;
  border-radius: var(--border-radius-md);
  font-family: inherit;
  font-size: 0.95rem;
}

option {
  background-color: #121420;
  color: #ffffff;
}
.main-header {
  width: 100%;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(8, 9, 15, 0.8);
  backdrop-filter: var(--glass-blur);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  background: linear-gradient(135deg, #ffffff, var(--accent-sakura));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.logo-text .highlight {
  color: var(--accent-sakura);
}

/* Menú de Navegación */
.nav-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-item {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  padding: 6px 0;
  text-decoration: none;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-primary);
}

/* Línea indicadora de pestaña activa */
.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-sakura);
  transition: var(--transition-smooth);
}

.nav-item.active::after, .nav-item:hover::after {
  width: 100%;
}

/* Menú Desplegable Práctica en Nav */
.nav-dropdown-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-content {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(18, 19, 30, 0.95);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  min-width: 180px;
  box-shadow: var(--shadow-premium);
  backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  z-index: 110;
}

.nav-dropdown-wrapper:hover .nav-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-content .dropdown-item {
  padding: 10px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown-content .dropdown-item:hover,
.nav-dropdown-content .dropdown-item.active {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

/* Área de Usuario en Header */
.user-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-header {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-login {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-login:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.02);
}

.btn-register {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-sakura));
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
  filter: brightness(1.05);
}

/* Menú Desplegable de Usuario Registrado */
.user-profile-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 40px;
  transition: var(--transition-smooth);
}

.user-profile-menu:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.user-avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--accent-sakura);
  object-fit: cover;
}

.user-name-small {
  font-weight: 700;
  font-size: 0.9rem;
}

.user-points-badge {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(0, 240, 255, 0.15);
}

/* Dropdown */
.dropdown-content {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(18, 19, 30, 0.95);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  min-width: 180px;
  box-shadow: var(--shadow-premium);
  backdrop-filter: var(--glass-blur);
  display: none;
  flex-direction: column;
  padding: 8px 0;
  z-index: 110;
}

.user-profile-menu.show-dropdown .dropdown-content {
  display: flex;
  animation: dropdownShow 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

@keyframes dropdownShow {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 6px 0;
}

.dropdown-item.logout {
  color: var(--error);
}

.dropdown-item.logout:hover {
  background: rgba(239, 68, 68, 0.05);
}

/* ==========================================================================
   2. ESTILOS DE COLORES DE NOMBRE PERSONALIZADOS (SHOP REWARDS)
   ========================================================================== */
.color-default {
  color: var(--text-primary);
}

.color-sakura {
  background: linear-gradient(135deg, #ff7597, #f43f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.color-cyan {
  background: linear-gradient(135deg, #00f0ff, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.color-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* === COLORES EXCLUSIVOS PREMIUM (no disponibles en tienda) === */
.color-premium-q {
  /* Trimestral — Violeta Élite */
  background: linear-gradient(135deg, #a78bfa, #7c3aed, #6d28d9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.4));
}

.color-premium-s {
  /* Semestral — Amatista Plateada */
  background: linear-gradient(135deg, #c4b5fd, #818cf8, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  filter: drop-shadow(0 0 6px rgba(196, 181, 253, 0.5));
}

.color-premium-a {
  /* Anual — Dorado Imperial */
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #fcd34d, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
  animation: goldenShimmer 3s ease-in-out infinite;
}

@keyframes goldenShimmer {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6)); }
  50% { filter: drop-shadow(0 0 14px rgba(251, 191, 36, 0.9)); }
}

.color-rainbow {
  background: linear-gradient(to right, #ff0055, #ff5500, #ffcc00, #33ff00, #00ffcc, #0055ff, #cc00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  background-size: 300% 100%;
  animation: rainbowAnimation 6s linear infinite;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.15));
}

@keyframes rainbowAnimation {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* === BORDES DE AVATAR PREMIUM === */
.avatar-border-silver {
  border: 3px solid transparent !important;
  background-clip: padding-box;
  box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.7), 0 0 15px rgba(196, 181, 253, 0.3) !important;
  border-radius: 50%;
}

.avatar-border-gold {
  border: 3px solid transparent !important;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.85), 0 0 20px rgba(251, 191, 36, 0.45) !important;
  border-radius: 50%;
  animation: goldBorderPulse 2.5s ease-in-out infinite;
}

@keyframes goldBorderPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.85), 0 0 20px rgba(251, 191, 36, 0.45); }
  50% { box-shadow: 0 0 0 3px rgba(251, 191, 36, 1), 0 0 30px rgba(251, 191, 36, 0.7); }
}

.avatar-border-neon {
  border: 3px solid transparent !important;
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.85), 0 0 20px rgba(0, 240, 255, 0.45) !important;
  border-radius: 50%;
  animation: neonBorderPulse 2.5s ease-in-out infinite;
}

@keyframes neonBorderPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.85), 0 0 20px rgba(0, 240, 255, 0.45); }
  50% { box-shadow: 0 0 0 3px rgba(255, 117, 151, 0.85), 0 0 30px rgba(255, 117, 151, 0.7); }
}



/* ==========================================================================
   3. ESTILOS DE MODALES DE AUTENTICACIÓN (LOGIN/REGISTER)
   ========================================================================== */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.auth-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal {
  background: rgba(18, 20, 32, 0.85);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 60px rgba(255, 117, 151, 0.05);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
  position: relative;
}

.auth-overlay.show .auth-modal {
  transform: scale(1) translateY(0);
}

.btn-close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-modal:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.auth-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff, var(--accent-sakura));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-sakura);
  box-shadow: 0 0 10px var(--accent-sakura-glow);
  background: rgba(0, 0, 0, 0.35);
}

.auth-btn-submit {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-sakura));
  color: white;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
  transition: var(--transition-smooth);
  margin-top: 10px;
}

.auth-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.45);
  filter: brightness(1.08);
}

.auth-switch-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 20px;
}

.auth-link {
  color: var(--accent-sakura);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.auth-link:hover {
  text-shadow: 0 0 8px var(--accent-sakura-glow);
}

/* ==========================================================================
   4. COMPONENTES COMUNES DE CARDS Y DISEÑO PREMIUM
   ========================================================================== */
/* Grid de Contenido */
.content-grid-page {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 50px 40px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (max-width: 768px) {
  .content-grid-page {
    padding: 30px 20px;
  }
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.6;
}

/* ==========================================================================
   5. DISEÑO DE NOTIFICACIONES EMITIDAS (TOASTS)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 300;
}

.mission-toast {
  background: rgba(16, 185, 129, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px var(--success-glow);
  backdrop-filter: blur(8px);
  color: white;
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.25);
  transition: var(--transition-smooth);
}

.mission-toast.fade-out {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(30px) scale(0.85); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Streak Milestone Toast - Golden */
.mission-toast.streak-milestone-toast {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 1rem;
}

/* Streak Broken Toast - Soft Red */
.mission-toast.streak-broken-toast {
  background: rgba(239, 68, 68, 0.88);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Points Economy Toast - Cyan and Purple Glow */
.mission-toast.points-toast {
  background: linear-gradient(135deg, rgba(10, 11, 16, 0.94) 0%, rgba(20, 21, 32, 0.94) 100%);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.35), 0 0 25px rgba(139, 92, 246, 0.2);
  color: #fff;
  font-size: 0.95rem;
}

/* Streak Badge in Header */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  animation: streakPulse 2s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes streakPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
  50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15); }
}


/* ==========================================================================
   6. PÁGINA DE MISIONES DIARIAS
   ========================================================================== */
.stats-banner {
  background: linear-gradient(135deg, rgba(255, 117, 151, 0.05), rgba(0, 240, 255, 0.05));
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-premium);
  gap: 24px;
}

.stats-user-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stats-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--accent-sakura);
  box-shadow: 0 0 15px var(--accent-sakura-glow);
}

.stats-user-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stats-username {
  font-size: 1.6rem;
  font-weight: 800;
}

.stats-user-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.stats-medal-badge {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 30px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.stats-number-box {
  display: flex;
  gap: 20px;
}

.stat-metric {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 12px 20px;
  text-align: center;
  min-width: 120px;
}

.stat-metric-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-cyan);
  display: block;
}

.stat-metric-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-top: 4px;
}

.missions-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mission-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-md);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
}

.mission-card:hover {
  border-color: rgba(255, 117, 151, 0.2);
  background: rgba(18, 20, 32, 0.8);
}

.mission-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.mission-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
}

.mission-info-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.mission-title-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mission-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mission-reward-tag {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
}

.mission-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.mission-progress-container {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 400px;
}

.mission-progress-bar-outer {
  flex: 1;
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mission-progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-sakura));
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mission-progress-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 65px;
  text-align: right;
}

.mission-action-area {
  display: flex;
  align-items: center;
}

.btn-mission-action {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  min-width: 130px;
  text-align: center;
}

.btn-mission-action.claim {
  background: linear-gradient(135deg, var(--accent-sakura), var(--accent-cyan));
  color: #000;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25);
}

.btn-mission-action.claim:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}

.btn-mission-action.incomplete {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
}

.btn-mission-action.claimed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.15);
  cursor: default;
}

/* ==========================================================================
   7. PÁGINA DE PREMIOS (TIENDA DE RECOMPENSAS)
   ========================================================================== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.shop-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-premium);
  min-height: 320px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.shop-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.2);
}

.shop-card.special-day-reward {
  border: 2px solid transparent;
  background: linear-gradient(rgba(18, 20, 32, 0.9), rgba(18, 20, 32, 0.9)) padding-box,
              linear-gradient(135deg, var(--accent-sakura), var(--accent-purple), var(--accent-cyan), var(--accent-sakura)) border-box;
  background-size: 300% 300%;
  animation: specialBorderShift 4s ease infinite alternate, specialGlow 3s infinite alternate;
}

@keyframes specialBorderShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes specialGlow {
  0% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 117, 151, 0.25);
  }
  100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.4), 0 0 15px rgba(139, 92, 246, 0.35);
  }
}

.shop-card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 30px;
}

.shop-card-badge.badge-new {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.shop-card-badge.badge-owned {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.shop-card-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.shop-card-icon {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

.shop-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.shop-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 25px;
  flex-grow: 1;
}

.shop-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-card-price {
  display: flex;
  flex-direction: column;
}

.price-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.price-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.btn-shop-buy {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-shop-buy.buy {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-sakura));
  color: white;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.btn-shop-buy.buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
}

.btn-shop-buy.owned {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: default;
}

.btn-shop-buy.insufficient {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: not-allowed;
}

/* ==========================================================================
   8. PÁGINA DE PERFIL DE USUARIO
   ========================================================================== */
.profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
}

.profile-card-left {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-premium);
}

.profile-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent-sakura);
  box-shadow: 0 0 25px var(--accent-sakura-glow);
  margin-bottom: 20px;
  object-fit: cover;
}

.profile-user-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.profile-user-badge {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 25px;
}

.profile-stats-mini {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.profile-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.profile-stat-row .lbl {
  color: var(--text-secondary);
  font-weight: 600;
}

.profile-stat-row .val {
  color: var(--text-primary);
  font-weight: 700;
}

.profile-card-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.profile-section-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-premium);
}

.profile-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
  color: var(--text-primary);
}

.avatar-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.avatar-option {
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-smooth);
  width: 66px;
  height: 66px;
  object-fit: cover;
}

.avatar-option:hover {
  transform: scale(1.08);
}

.avatar-option.selected {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
  transform: scale(1.05);
}

.badges-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 15px;
}

.inventory-badge-item {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-md);
  padding: 15px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.inventory-badge-item:hover {
  border-color: rgba(255, 117, 151, 0.15);
  background: rgba(0, 0, 0, 0.25);
}

.inventory-badge-item.active {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.05);
  box-shadow: inset 0 0 10px rgba(139, 92, 246, 0.05);
}

.badge-icon-item {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: block;
}

.badge-name-item {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.inventory-badge-item.active .badge-name-item {
  color: var(--text-primary);
}

.colors-inventory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.inventory-color-item {
  padding: 10px 20px;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.inventory-color-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.inventory-color-item.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.03);
}

.inventory-color-item.active.active-sakura {
  border-color: var(--accent-sakura);
  background: rgba(255, 117, 151, 0.03);
}

.inventory-color-item.active.active-cyan {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.03);
}

.inventory-color-item.active.active-silver {
  border-color: #c4b5fd;
  background: rgba(196, 181, 253, 0.03);
}

.inventory-color-item.active.active-gold {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.03);
}

.inventory-color-item.active.active-neon {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.03);
}

.inventory-color-item.active.active-rainbow {
  border-color: #ff0055;
  background: rgba(255, 0, 85, 0.03);
}

.profile-form-edit {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.profile-form-edit .form-input {
  flex: 1;
}

.btn-profile-save {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--border-radius-md);
  border: none;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-sakura));
  color: white;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-profile-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.3);
}

.guest-profile-placeholder {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  padding: 60px 40px;
  text-align: center;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-premium);
  max-width: 500px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.guest-placeholder-icon {
  font-size: 3.5rem;
  animation: floatOrb 4s infinite alternate ease-in-out;
}

.guest-placeholder-title {
  font-size: 1.8rem;
  font-weight: 800;
}

.guest-placeholder-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.btn-guest-action {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-sakura));
  color: white;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-guest-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

@media (max-width: 768px) {
  .stats-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }
  
  .stats-number-box {
    justify-content: space-between;
  }
  
  .mission-card {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 16px;
  }
  
  .mission-progress-container {
    max-width: 100%;
  }
  
  .btn-mission-action {
    width: 100%;
  }
  
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   9. BOTONES DE SOCIAL LOGIN (Google y Facebook)
   ========================================================================== */
.social-login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-login-divider::before,
.social-login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--panel-border);
}

.social-login-divider:not(:empty)::before {
  margin-right: .8em;
}

.social-login-divider:not(:empty)::after {
  margin-left: .8em;
}

.social-login-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 5px;
}

.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-social:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.social-icon {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   10. PUBLICIDAD FLOTANTE LATERAL (ADS SYSTEM)
   ========================================================================== */
.floating-ad-banner {
  position: fixed;
  top: 120px;
  right: 30px;
  width: 170px;
  height: auto;
  min-height: 480px;
  background: rgba(18, 20, 32, 0.7);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-premium);
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 20px 15px;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  animation: adFadeIn 0.5s ease-out;
}

@keyframes adFadeIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.ad-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent-sakura);
  letter-spacing: 1.5px;
  text-shadow: 0 0 8px var(--accent-sakura-glow);
}

.ad-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 15px 0;
}

.ad-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.ad-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.ad-graphic {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px dashed rgba(0, 240, 255, 0.3);
  padding: 25px 10px;
  border-radius: var(--border-radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--accent-cyan-glow);
  letter-spacing: 2px;
}

.ad-btn {
  display: inline-block;
  width: 100%;
  padding: 10px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 240, 255, 0.25);
  transition: var(--transition-smooth);
}

.ad-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(0, 240, 255, 0.4);
}

.ad-close-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.ad-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Ocultar en pantallas medianas y móviles para no estorbar la lectura del contenido */
@media (max-width: 1400px) {
  .floating-ad-banner {
    display: none;
  }
}

/* ==========================================================================
   11. ESTILOS ADICIONALES PARA MEDALLAS Y LOGROS
   ========================================================================== */
.recent-medal-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.3rem;
  transition: var(--transition-smooth);
  cursor: help;
}

.recent-medal-bubble:hover {
  transform: scale(1.1) translateY(-2px);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.05);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.15);
}

.medals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.medal-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.medal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.08);
}

.medal-card.locked {
  opacity: 0.6;
}

.medal-card.locked .medal-icon-circle {
  filter: grayscale(100%);
  opacity: 0.45;
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.03);
}

.medal-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.medal-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 179, 8, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: var(--transition-smooth);
}

.medal-card:hover .medal-icon-circle {
  transform: scale(1.06) rotate(5deg);
}

.medal-title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.medal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.medal-card.locked .medal-title {
  color: var(--text-secondary);
}

.medal-status-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 20px;
  width: fit-content;
}

.medal-status-badge.unlocked {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.medal-status-badge.locked-badge {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.medal-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  flex-grow: 1;
}

.medal-card.locked .medal-desc {
  color: var(--text-muted);
}

.medal-progress-wrapper {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.medal-progress-bar-outer {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.medal-progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #eab308);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.medal-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.medal-card.locked .medal-progress-info {
  color: var(--text-muted);
}

.owned-item-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 12px 18px;
  border-radius: var(--border-radius-md);
  min-width: 220px;
}

.owned-icon {
  font-size: 1.6rem;
}

.owned-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.owned-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.owned-type {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   12. MONETIZACIÓN: ADS INTERSTITIALS Y COMPRAS PREMIUM
   ========================================================================== */

/* Anuncio Intersticial a Pantalla Completa */
.interstitial-ad-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 2, 5, 0.85);
  backdrop-filter: blur(20px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.interstitial-ad-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.interstitial-ad-box {
  background: linear-gradient(135deg, rgba(20, 20, 30, 0.9), rgba(10, 10, 15, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.05);
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.interstitial-ad-overlay.show .interstitial-ad-box {
  transform: translateY(0) scale(1);
}

.interstitial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.ad-sponsor-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 12px;
}

.ad-countdown {
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.85rem;
}

.ad-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.ad-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 15px;
}

.ad-media-placeholder {
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.ad-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.5);
}

.ad-skip-btn.ready {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.ad-skip-btn.ready:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px);
}

/* Sección de Suscripciones Premium en Tienda */
.premium-subscription-section {
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 40px;
  text-align: left;
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.premium-card {
  background: linear-gradient(135deg, rgba(20, 20, 25, 0.7), rgba(10, 10, 15, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-lg);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-premium);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.premium-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

/* Estilo Destacado Dorado para el plan Anual */
.premium-card.popular {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(251, 191, 36, 0.03));
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.1);
}

.premium-card.popular:hover {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15), 0 0 25px rgba(245, 158, 11, 0.05);
}

.premium-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.premium-badge.save {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.premium-badge.best {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 900;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.4);
}

.premium-icon {
  font-size: 2.3rem;
  margin-bottom: 5px;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

.premium-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.premium-price {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.price-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.premium-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 10px;
  flex-grow: 1;
}

.btn-premium-buy {
  width: 100%;
  padding: 11px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-premium-buy:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.premium-card.popular .btn-premium-buy {
  background: linear-gradient(135deg, #f59e0b, #eab308);
  color: #000;
  border: none;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.premium-card.popular .btn-premium-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

/* Modal de Pago Simulado (Checkout) */
.checkout-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 2, 5, 0.8);
  backdrop-filter: blur(15px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.checkout-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.checkout-modal-box {
  background: linear-gradient(135deg, rgba(22, 22, 33, 0.95), rgba(12, 12, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: left;
}

.checkout-modal-overlay.show .checkout-modal-box {
  transform: scale(1);
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.checkout-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.btn-close-checkout {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-close-checkout:hover {
  color: var(--accent-sakura);
}

.checkout-plan-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.summary-details p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.summary-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.credit-card-graphic {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.credit-card-graphic::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.card-chip {
  width: 38px;
  height: 28px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 4px;
}

.card-number-display {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: 2px;
  margin: 15px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.card-bottom-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.card-holder-display {
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Estilos de inputs de checkout */
.checkout-form .form-group {
  margin-bottom: 16px;
}

.checkout-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.checkout-form .form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.checkout-form .form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.checkout-form .form-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
  background: rgba(0, 0, 0, 0.45);
}

.btn-checkout-submit {
  width: 100%;
  padding: 14px;
  border-radius: 25px;
  border: none;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #000;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.btn-checkout-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.45);
}

.btn-checkout-submit:disabled {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
  cursor: not-allowed;
}

/* Spinner animado */
.spinner-checkout {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- MASCOTA KITSUNE FLOTANTE --- */
.kitsune-assistant-container {
  position: fixed;
  bottom: 80px;
  right: 25px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  z-index: 290; /* Justo debajo del toast (300) para no solaparse */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.kitsune-assistant-container.hidden {
  transform: translateY(120px) scale(0.5);
  opacity: 0;
  pointer-events: none;
}

.kitsune-speech-bubble {
  background: rgba(15, 18, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 158, 11, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f8f9fc;
  padding: 16px 20px;
  border-radius: 18px 18px 0px 18px; /* Estilo globo apuntando al zorro */
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 250px;
  min-width: 180px;
  position: relative;
  margin-bottom: 20px;
  animation: floatBubble 4s ease-in-out infinite;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: all 0.3s ease;
  pointer-events: none;
}

.kitsune-speech-bubble.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Botón cerrar en globo */
.kitsune-close-btn {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
  z-index: 10;
}

.kitsune-close-btn:hover {
  background: #ef4444;
  transform: scale(1.1);
}

.kitsune-avatar-wrapper {
  position: relative;
  cursor: pointer;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kitsune-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 5px 15px rgba(245, 158, 11, 0.3));
}

.kitsune-avatar-wrapper:hover .kitsune-avatar-img {
  transform: scale(1.15) translateY(-5px);
  filter: drop-shadow(0 8px 25px rgba(245, 158, 11, 0.5));
}

/* Pestaña de Recuperación (Minimizado) */
.kitsune-reopen-tab {
  position: fixed;
  bottom: 0;
  right: 25px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 -4px 15px rgba(245, 158, 11, 0.4);
  border-radius: 12px 12px 0 0;
  padding: 8px 16px 10px;
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 280;
  transform: translateY(100%);
}

.kitsune-reopen-tab.show {
  transform: translateY(0);
}

.kitsune-reopen-tab:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* Animaciones */
@keyframes floatBubble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Estilo Mascota en Modales de Victoria */
.victory-mascot-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 15px 0 25px;
  padding: 10px;
  width: 100%;
}

.victory-mascot-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(245, 158, 11, 0.3));
  animation: victoryFoxFloat 3s ease-in-out infinite;
  flex-shrink: 0;
}

.mascot-speech-bubble {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px 16px;
  color: #f8f9fc;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
  max-width: 260px;
  text-align: left;
}

.mascot-speech-bubble::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(13, 14, 25, 0.98); /* Para tapar borde */
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 2;
}

@keyframes victoryFoxFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
}

/* Estilos de la mascota en resultados de examen */
.exam-results-mascot-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px auto;
  max-width: 480px;
}

.exam-results-mascot-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 6px 15px rgba(245, 158, 11, 0.35));
  flex-shrink: 0;
  animation: victoryFoxFloat 3s ease-in-out infinite;
}

.exam-results-bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 14px 18px;
  color: #f8f9fc;
  font-size: 0.95rem;
  line-height: 1.45;
  position: relative;
  flex: 1;
  text-align: left;
}

.exam-results-bubble::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(10, 10, 26, 0.99); /* Color de fondo aproximado */
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

/* Ajustes Responsive */
@media (max-width: 600px) {
  .kitsune-speech-bubble {
    max-width: 180px;
    font-size: 0.8rem;
    padding: 10px 12px;
  }
  .kitsune-avatar-wrapper {
    width: 60px;
    height: 60px;
  }
  .victory-mascot-container, .exam-results-mascot-container {
    flex-direction: column;
    text-align: center;
  }
  .mascot-speech-bubble::after, .exam-results-bubble::before {
    display: none; /* Quitar flecha en vertical */
  }
}
/* ==========================================================================
   ESTILOS DE NIVEL 0 (INTRODUCCIN)
   ========================================================================== */
.intro-story-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  min-height: 400px;
}
.intro-story-layout {
  display: flex;
  align-items: flex-end;
  gap: 30px;
  max-width: 800px;
  width: 100%;
  animation: fadeIn 0.5s ease-out;
}
.intro-mascot-area {
  flex-shrink: 0;
  width: 200px;
}
.intro-mascot-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4));
  animation: floatSubtle 4s infinite alternate ease-in-out;
}
.intro-dialog-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}
.dialog-bubble {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px 20px 20px 0;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(139, 92, 246, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  width: 100%;
}
.dialog-bubble::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -20px;
  border-width: 0 20px 20px 0;
  border-style: solid;
  border-color: transparent rgba(30, 41, 59, 0.95) transparent transparent;
  filter: drop-shadow(-1px 1px 0px rgba(255, 255, 255, 0.15));
}
.dialog-bubble p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
}
.dialog-bubble.fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}
.btn-next-dialog {
  align-self: flex-end;
  font-size: 1.1rem;
  padding: 12px 25px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--accent-cyan), #00b0ff);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
  transition: all 0.3s ease;
}
.btn-next-dialog:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 240, 255, 0.5);
}
@media (max-width: 768px) {
  .intro-story-layout {
    flex-direction: column;
    align-items: center;
  }
  .intro-mascot-area {
    width: 150px;
    margin-bottom: -15px;
  }
  .dialog-bubble {
    border-radius: 20px;
  }
  .dialog-bubble::before {
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;
    border-width: 0 15px 15px 15px;
    border-color: transparent transparent rgba(30, 41, 59, 0.95) transparent;
  }
}


/* ==========================================================================
   MENÚ HAMBURGUESA RESPONSIVO (NihonFree)
   ========================================================================== */

/* Ocultar por defecto en escritorio */
.hamburger-menu {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.hamburger-menu:hover {
  color: var(--accent-sakura);
}

.hamburger-menu:active {
  transform: scale(0.9);
}

@media (max-width: 900px) {
  /* Mostrar botón en móvil */
  .hamburger-menu {
    display: block;
  }

  .header-container {
    flex-wrap: wrap;
    padding: 15px 20px !important;
  }

  /* Ocultar menús por defecto */
  .nav-links, .user-area {
    display: none !important;
    width: 100%;
  }

  /* Mostrar menús al abrir */
  .main-header.menu-open .nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--panel-border);
  }

  .main-header.menu-open .user-area {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid var(--panel-border);
  }

  .main-header.menu-open {
    height: auto !important;
    max-height: 100vh;
    overflow-y: auto;
  }

  /* Ajustes en los enlaces de navegación */
  .nav-item {
    width: 100%;
    padding: 8px 0;
    font-size: 1.05rem;
  }

  .nav-item::after {
    display: none; /* Desactivar línea inferior en móvil */
  }

  /* Desplegable de práctica adaptado a móvil */
  .nav-dropdown-wrapper {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .nav-dropdown-content {
    position: static;
    transform: none !important;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    width: 100%;
    margin-top: 8px;
    padding: 6px 12px;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .nav-dropdown-wrapper:hover .nav-dropdown-content {
    display: flex;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav-dropdown-content .dropdown-item {
    color: var(--text-primary) !important;
    padding: 8px 12px;
  }

  /* Menú de perfil de usuario desplegable adaptado a móvil */
  .user-profile-menu {
    width: 100%;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .dropdown-content {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    width: 100%;
    margin-top: 8px;
    padding: 4px 0;
    opacity: 1;
    z-index: 10;
  }
}

/* ==========================================================================
   PIE DE PÁGINA GLOBAL (FOOTER)
   ========================================================================== */
.main-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 20px 30px !important;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--panel-border);
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .main-footer {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 20px 15px !important;
    text-align: center !important;
  }
  .main-footer p {
    font-size: 0.75rem !important;
    text-align: center !important;
    margin: 0 !important;
    line-height: 1.4;
  }
  .main-footer div:last-child {
    display: none !important;
  }
}
