/* ==========================================================================
   ANI DIMENSION - ESTILOS GLOBALES
   ========================================================================== */

:root {
  --bg-primary: #0a0b10;
  --bg-secondary: #12141f;
  --bg-card: rgba(22, 26, 42, 0.75);
  --bg-card-hover: rgba(30, 36, 60, 0.9);
  --border-color: rgba(0, 240, 255, 0.2);
  --border-glow: rgba(0, 240, 255, 0.5);
  --primary: #00f0ff;
  --primary-glow: 0 0 20px rgba(0, 240, 255, 0.6);
  --secondary: #9d4edd;
  --secondary-glow: 0 0 20px rgba(157, 78, 221, 0.6);
  --accent: #ffd700;
  --accent-glow: 0 0 15px rgba(255, 215, 0, 0.6);
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #64748b;
  --success: #10b981;
  --font-main: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 13px;
  /* Escala tipográfica compacta y elegante para toda la web */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(157, 78, 221, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(0, 240, 255, 0.1) 0%, transparent 45%),
    linear-gradient(180deg, rgba(10, 11, 16, 0.95) 0%, rgba(18, 20, 31, 0.98) 100%);
  background-attachment: fixed;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #252a40;
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Header & Barra de Navegación */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.header-container {
  width: 95%;
  max-width: 95%;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo {
  height: 38px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.4));
  transition: var(--transition-fast);
}

.brand-link:hover .brand-logo {
  transform: scale(1.05);
  filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.7));
}

.brand-text {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  background: rgba(0, 240, 255, 0.15);
  color: var(--primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  box-shadow: var(--primary-glow);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, #00f0ff 0%, #0077ff 100%);
  color: #000 !important;
  font-weight: 800;
  padding: 0.55rem 1.35rem;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.7);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Footer Global */
.site-footer {
  background: #07080c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  width: 95%;
  max-width: 95%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 380px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  width: 95%;
  max-width: 95%;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--success);
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

/* Responsividad */
@media (max-width: 868px) {
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.55rem;
    line-height: 1;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1002;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
  }

  .menu-toggle:hover,
  .menu-toggle:active,
  .menu-toggle[aria-expanded="true"] {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--primary);
    color: var(--primary);
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 11, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    display: none !important;
    z-index: 1001;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.92);
  }

  .main-nav.open {
    display: flex !important;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 1200px) {
  html {
    font-size: 12.5px;
  }
}

/* Colores oficiales de monedas: StarShips (Amarillo) y Cristales Dimensionales (Azul) */
.currency-ss {
  color: #fbbf24 !important;
  font-weight: 800;
}

.currency-cd {
  color: #38bdf8 !important;
  font-weight: 800;
}

@media (max-width: 768px) {
  html {
    font-size: 11.8px;
  }

  .header-container {
    padding: 0.65rem 1rem;
  }

  .brand-logo {
    height: 30px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
  }

  .brand-text {
    font-size: 1.08rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 11px;
  }
}