:root {
  --bg-color: #050505; /* Negro profundo */
  --card-bg: rgba(20, 20, 20, 0.9);
  --sidebar-width: 260px;
  --accent-color: #7c4dff; /* Morado del logo */
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
}

body {
  font-family: "Exo", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  margin: 0;
  overflow-x: hidden;
  /* Si usas wallpaper, descomenta esto: */
  /* background-image: url('../assets/wallpaper.jpg'); */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Capa oscura encima del wallpaper */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: -1;
}

/* --- SIDEBAR --- */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 20px;
  display: flex;
  flex-direction: column; /* Para empujar el footer abajo */
  justify-content: space-between;
  z-index: 1000; /* Z-Index alto para estar encima de todo */
}

.brand {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
}

.nav-links {
  list-style: none;
  padding: 0;
  flex-grow: 1; /* Ocupa el espacio disponible */
}
.nav-links li {
  margin-bottom: 15px;
}

.nav-btn {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}

.nav-btn i {
  margin-right: 15px;
  width: 25px;
  text-align: center;
}

.nav-btn:hover,
.nav-btn.active {
  background: linear-gradient(90deg, rgba(124, 77, 255, 0.2), transparent);
  border-left: 4px solid var(--accent-color);
  color: #fff;
  transform: translateX(5px);
}

/* Animación para la calavera de DxCheats */
.fa-skull {
  transition: transform 0.3s;
}
.nav-btn:hover .fa-skull {
  transform: rotate(20deg) scale(1.1);
}

/* Footer del Sidebar (Términos) */
.sidebar-footer-link {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}
.terms-link {
  color: #555;
  font-size: 0.8rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.3s;
}
.terms-link:hover {
  color: var(--accent-color);
}

/* --- CONTENIDO PRINCIPAL --- */
.main-content {
  margin-left: var(--sidebar-width);
  padding: 40px;
  min-height: 100vh;
}

/* --- PERFIL HEADER --- */
.profile-header {
  display: flex;
  align-items: center;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
  gap: 20px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--accent-color);
  object-fit: cover;
  box-shadow: 0 0 20px rgba(124, 77, 255, 0.4);
}

.profile-info {
  flex: 1;
}

.profile-name-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 5px;
}

.profile-name {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  margin: 0;
}

.profile-badges {
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  display: flex;
  gap: 8px;
}
.profile-sub {
  color: #aaa;
  font-size: 1.1rem;
  font-weight: 500;
}

.social-row {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  transition: 0.3s;
  cursor: pointer;
  text-decoration: none;
}
.social-btn.discord:hover {
  background: #5865f2;
  box-shadow: 0 0 15px #5865f2;
}
.social-btn.whatsapp:hover {
  background: #25d366;
  box-shadow: 0 0 15px #25d366;
}
.social-btn.telegram:hover {
  background: #0088cc;
  box-shadow: 0 0 15px #0088cc;
}
.social-btn.youtube:hover {
  background: #ff0000;
  box-shadow: 0 0 15px #ff0000;
}

/* --- HERO SECTION --- */
.hero-section {
  display: flex;
  gap: 30px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.hero-image-card {
  flex: 1;
  min-width: 300px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #333;
  position: relative;
}
.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.hero-image-card:hover img {
  transform: scale(1.05);
}

.hero-info {
  flex: 2;
  padding: 20px;
}

/* Corrección del background-clip */
.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #fff, #a0a0a0);
  -webkit-background-clip: text; /* Safari/Chrome */
  background-clip: text; /* Estándar */
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-transform: uppercase;
}

.hero-desc {
  color: #b0b0b0;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  border-left: 3px solid var(--accent-color);
  padding-left: 15px;
}
.hero-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-features-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  font-size: 1rem;
}
.hero-features-list li i {
  color: var(--accent-color);
  margin-right: 15px;
  font-size: 1.2rem;
  width: 25px;
  text-align: center;
}
.badge-highlight {
  background: rgba(124, 77, 255, 0.2);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-left: 10px;
  border: 1px solid var(--accent-color);
}

/* --- SECCIONES EXTRA --- */
.section-title {
  display: inline-block;
  padding: 10px 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  color: #fff;
  font-weight: bold;
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}
.info-card {
  background: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  transition: 0.3s;
}
.info-card:hover {
  transform: translateY(-5px);
  background: rgba(40, 40, 40, 0.8);
}

/* Why Us */
.why-us-container {
  background: #0b0c10;
  border: 1px solid #222;
  border-radius: 20px;
  padding: 40px;
  margin-top: 40px;
  margin-bottom: 50px;
}
.why-us-header {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}
.why-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
}
.icon-security {
  color: #7c4dff;
  filter: drop-shadow(0 0 10px rgba(124, 77, 255, 0.4));
}
.icon-support {
  color: #00e676;
  filter: drop-shadow(0 0 10px rgba(0, 230, 118, 0.4));
}
.icon-speed {
  color: #ffab00;
  filter: drop-shadow(0 0 10px rgba(255, 171, 0, 0.4));
}
.why-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
}
.why-desc {
  font-size: 0.95rem;
  color: #b0b0b0;
  line-height: 1.5;
  max-width: 300px;
  margin: 0 auto;
}

/* --- LOADER --- */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out;
}
.loader-logo {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  animation: glow 2s infinite alternate;
}
.progress-container {
  width: 300px;
  height: 4px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar-custom {
  height: 100%;
  width: 0%;
  background: var(--accent-color);
  transition: width 0.1s;
}
@keyframes glow {
  from {
    text-shadow: 0 0 5px #333;
  }
  to {
    text-shadow: 0 0 20px var(--accent-color);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    width: 80px;
    padding: 20px 10px;
  }
  .nav-btn span,
  .brand,
  .terms-link {
    display: none;
  } /* Ocultar textos en móvil */
  .brand {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 20px;
  }
  .nav-btn i {
    margin: 0;
    font-size: 1.5rem;
  }
  .main-content {
    margin-left: 80px;
    padding: 20px;
  }
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  .profile-name-wrapper,
  .social-row {
    justify-content: center;
  }
}
/* --- ESTILOS DEL CARRITO --- */

/* Botón Flotante del Carrito */
.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(124, 77, 255, 0.5);
    cursor: pointer;
    z-index: 1000;
    border: none;
    transition: transform 0.3s;
}

.floating-cart-btn:hover { transform: scale(1.1); }

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3333;
    color: white;
    font-size: 0.8rem;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #fff;
}

/* Modal del Carrito */
.cart-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: none; /* Oculto por defecto */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.cart-modal {
    background: #111;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    border: 1px solid #333;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp { from {transform: translateY(50px); opacity: 0;} to {transform: translateY(0); opacity: 1;} }

.cart-header {
    background: #1a1a1a;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.cart-body {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #222;
}

.cart-item-info { display: flex; flex-direction: column; color: white; }
.cart-item-info small { color: #888; }

.btn-remove {
    background: none; border: none; color: #ff3333; cursor: pointer; margin-left: 10px;
}

.cart-footer {
    padding: 20px;
    background: #1a1a1a;
    border-top: 1px solid #333;
}

.cart-total-row {
    display: flex; justify-content: space-between;
    color: white; font-size: 1.2rem; font-weight: bold; margin-bottom: 15px;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    background: #25D366; /* Color WhatsApp */
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: 0.3s;
}
.btn-checkout:hover { background: #1ebc57; }

/* Notificación Toast */
.toast-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30,30,30,0.9);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    border: 1px solid var(--accent-color);
    z-index: 3000;
    animation: fadeInOut 3s forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    10% { opacity: 1; transform: translate(-50%, 0); }
    90% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}
/* --- CORRECCIÓN IMPORTANTE: ALERTAS SIEMPRE ENCIMA --- */
div.swal2-container {
    z-index: 20000 !important;
}
.swal2-popup {
    font-family: 'Exo', sans-serif !important;
    border: 1px solid #333;
}
/* --- CURSOR PERSONALIZADO Y NIEVE --- */

/* 1. Ocultar el cursor por defecto en toda la web */
body, a, button, input {
    cursor: none !important;
}

/* 2. El Punto Principal (El que guía) */
.custom-cursor {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: white; /* Punto blanco */
    border-radius: 50%;
    pointer-events: none; /* IMPORTANTE: Para poder dar clic a través de él */
    transform: translate(-50%, -50%);
    z-index: 99999;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transition: width 0.2s, height 0.2s; /* Animación suave al hacer click */
}

/* Efecto al hacer click (se hace más pequeño) */
.custom-cursor.click {
    width: 5px;
    height: 5px;
    background-color: var(--accent-color); /* Cambia al color de tu tema */
}

/* 3. Las partículas de Nieve */
.snow-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    animation: fall 1s linear forwards; /* La magia de la caída */
}

/* Animación de la nieve cayendo y desapareciendo */
@keyframes fall {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--random-x), 50px) scale(0); /* Cae y se encoge */
        opacity: 0;
    }
}