/* --- 0. TIPOGRAFÍAS AUTOALOJADAS (GDPR / CERO FUGA DE IP A GOOGLE FONTS) --- */
/* Chakra Petch 400 (latin-ext) */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('Assets/fonts/chakra-petch-400-latin-ext-1.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Chakra Petch 400 (latin) */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('Assets/fonts/chakra-petch-400-latin-2.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Chakra Petch 600 (latin-ext) */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('Assets/fonts/chakra-petch-600-latin-ext-3.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Chakra Petch 600 (latin) */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('Assets/fonts/chakra-petch-600-latin-4.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Chakra Petch 700 (latin-ext) */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('Assets/fonts/chakra-petch-700-latin-ext-5.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Chakra Petch 700 (latin) */
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('Assets/fonts/chakra-petch-700-latin-6.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Orbitron 500 (latin) */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('Assets/fonts/orbitron-500-latin-7.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Orbitron 700 (latin) */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('Assets/fonts/orbitron-700-latin-8.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Orbitron 800 (latin) */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('Assets/fonts/orbitron-800-latin-9.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Orbitron 900 (latin) */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('Assets/fonts/orbitron-900-latin-10.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Rajdhani 400 (latin-ext) */
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('Assets/fonts/rajdhani-400-latin-ext-11.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Rajdhani 400 (latin) */
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('Assets/fonts/rajdhani-400-latin-12.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Rajdhani 500 (latin-ext) */
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('Assets/fonts/rajdhani-500-latin-ext-13.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Rajdhani 500 (latin) */
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('Assets/fonts/rajdhani-500-latin-14.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Rajdhani 600 (latin-ext) */
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('Assets/fonts/rajdhani-600-latin-ext-15.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Rajdhani 600 (latin) */
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('Assets/fonts/rajdhani-600-latin-16.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Rajdhani 700 (latin-ext) */
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('Assets/fonts/rajdhani-700-latin-ext-17.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Rajdhani 700 (latin) */
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('Assets/fonts/rajdhani-700-latin-18.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   SECTOR SIEGER - OFICIAL DESIGN SYSTEM & STYLESHEET
   Estética: Sci-Fi Táctico Espacial, Deep Space Dark Mode & Glassmorphism HUD
   ========================================================================== */

/* --- 1. FUENTES LOCALES & VARIABLES GLOBALES --- */
@font-face {
  font-family: 'Dissolve';
  src: url('/Assets/fonts/Dissolve.ttf') format('truetype'),
       url('Assets/fonts/Dissolve.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Fondos espaciales */
  --bg-deep: #080b12;
  --bg-secondary: #0e1424;
  --bg-card: rgba(14, 20, 36, 0.85);
  
  /* Glassmorphism Oficial */
  --glass-bg: rgba(18, 26, 47, 0.75);
  --glass-border: rgba(0, 240, 255, 0.22);
  --glass-border-hover: rgba(0, 240, 255, 0.65);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.55);

  /* Acentos Neón */
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.45);
  --neon-magenta: #ff0055;
  --neon-magenta-glow: rgba(255, 0, 85, 0.45);
  --neon-amber: #ffaa00;
  --neon-amber-glow: rgba(255, 170, 0, 0.45);

  /* Facciones Canon Oficial Sector Sieger */
  --fac-alba: #00ff88;       /* Viajeros del alba = Verde */
  --fac-burjahk: #a855f7;    /* Bur' Jahk = Violeta */
  --fac-legion: #ffd000;     /* Legión VII = Amarillo */
  --fac-luna: #ff1e42;       /* Luna Sangrienta = Rojo */
  --fac-malkav: #0088ff;     /* Zalavianos = Azul */

  /* Tipografías */
  --font-logo: 'Dissolve', 'Orbitron', sans-serif;
  --font-display: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hud: 'Chakra Petch', 'Rajdhani', sans-serif;
  --font-body: 'Rajdhani', -apple-system, sans-serif;

  /* Textos */
  --text-main: #f0f4fc;
  --text-muted: #8b9bb4;
  --text-dim: #54647f;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 76px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 14px;
  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 2. RESET Y ESTILOS BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.6;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(255, 0, 85, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(0, 255, 136, 0.05) 0%, transparent 50%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

h1, h2, h3, h4, h5, h6, p, a, span {
  overflow-wrap: break-word;
}

/* Cuadrícula Táctica de Fondo */
.space-ambient-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(0, 240, 255, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.12) 1px, transparent 1px);
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}
.glow-cyan {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  background: var(--neon-cyan);
}
.glow-magenta {
  width: 450px;
  height: 450px;
  bottom: 10%;
  left: -150px;
  background: var(--neon-magenta);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; outline: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

/* Espaciado superior universal: La primera sección de CADA página NUNCA queda tapada por el navbar fijo */
main > section:first-of-type,
main > .section:first-child,
.hero-section,
.dedicated-faction-section,
.factions-portal-section {
  padding-top: calc(var(--nav-height) + 2.5rem) !important;
}

/* Paneles Glassmorphism */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius-md);
  position: relative;
  transition: var(--transition-smooth);
}

/* Colores Neón Text */
.neon-text-cyan { color: var(--neon-cyan); text-shadow: 0 0 12px var(--neon-cyan-glow); }
.neon-text-green { color: var(--fac-alba); text-shadow: 0 0 12px rgba(0, 255, 136, 0.45); }
.neon-text-amber { color: var(--neon-amber); text-shadow: 0 0 12px var(--neon-amber-glow); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  font-family: var(--font-hud);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--neon-cyan);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.section-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   3. BARRA DE NAVEGACIÓN
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(8, 11, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}
.site-header.scrolled {
  background: rgba(6, 9, 15, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

/* Header Usuario y Autenticación Centralizada (Botones con altura y escala unificada) */
.header-user-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.header-commander-name-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f0f4fc;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 42px;
  padding: 0 1.15rem;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  box-sizing: border-box;
  transition: var(--transition-smooth);
}
.header-commander-name-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
}
.header-avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}
.header-avatar-circle svg,
.header-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.header-commander-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  white-space: nowrap;
}
.header-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hud);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  height: 42px;
  padding: 0 1.15rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  box-sizing: border-box;
  transition: var(--transition-smooth);
}
.header-logout-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}
.btn-neutral-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hud);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 42px;
  padding: 0 1.15rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  box-sizing: border-box;
  transition: var(--transition-smooth);
}
.btn-neutral-nav:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 3px;
}
.brand-logo .logo-glitch {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 1.45rem;
  color: #ffffff;
  line-height: 1;
}
.brand-logo .logo-accent {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 1.45rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan-glow);
  letter-spacing: 4px;
}
.logo-subtag {
  font-family: var(--font-hud);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--neon-magenta);
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.nav-link {
  font-family: var(--font-hud);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--neon-cyan);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-hud);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--border-radius-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}
.btn-primary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f0f4fc;
}
.btn-primary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  z-index: 1001;
}
.nav-toggle .bar {
  height: 2.5px;
  width: 100%;
  background-color: var(--neon-cyan);
  border-radius: 2px;
  transition: var(--transition-smooth);
}
.nav-toggle.open .bar:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ==========================================================================
   4. SECCIÓN INICIO / HERO CINEMÁTICO
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--nav-height) + 2.2rem);
  padding-bottom: 1.5rem;
  text-align: center;
}
.hero-center-content {
  max-width: 860px;
  margin: 0 auto;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.9rem;
  background: var(--theme-glow, rgba(0, 240, 255, 0.1));
  border: 1px solid var(--theme-border, rgba(0, 240, 255, 0.35));
  border-radius: 50px;
  margin-bottom: 1.2rem;
}
.badge-green-glow {
  background: rgba(0, 255, 136, 0.12);
  border-color: rgba(0, 255, 136, 0.4);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--theme-accent, var(--neon-cyan));
  box-shadow: 0 0 8px var(--theme-glow, var(--neon-cyan));
}
.blink { animation: pulseBlink 1.8s infinite ease-in-out; }
.blink-green {
  background-color: var(--fac-alba);
  box-shadow: 0 0 8px var(--fac-alba);
  animation: pulseBlink 1.8s infinite ease-in-out;
}
@keyframes pulseBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}
.status-text {
  font-family: var(--font-hud);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--theme-accent, var(--neon-cyan));
}
.badge-green-glow .status-text { color: var(--fac-alba); }

.hero-main-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.hero-lead-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.arrow-down-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}
.pulse-btn:hover .arrow-down-icon {
  transform: translateY(4px);
}

/* ==========================================================================
   5. SECCIÓN PORTAL DE LAS 5 FACCIONES (DEBAJO DEL INICIO)
   ========================================================================== */
.factions-portal-section {
  padding-top: 2rem;
  padding-bottom: 6rem;
}
.factions-portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.faction-portal-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 2.2rem 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  user-select: none;
}
.card-glow-edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

/* Estilos de colores por facción */
.card-alba { border-color: rgba(0, 255, 136, 0.3); --theme-glow: rgba(0, 255, 136, 0.45); }
.card-alba .card-glow-edge { background: var(--fac-alba); }
.card-alba:hover {
  transform: translateY(-8px);
  border-color: var(--fac-alba);
  box-shadow: 0 12px 35px rgba(0, 255, 136, 0.3);
}

.card-burjahk { --theme-glow: rgba(168, 85, 247, 0.45); }
.card-burjahk .card-glow-edge { background: var(--fac-burjahk); }
.card-burjahk:hover { border-color: var(--fac-burjahk); box-shadow: 0 12px 35px rgba(168, 85, 247, 0.25); }

.card-legion { --theme-glow: rgba(255, 208, 0, 0.45); }
.card-legion .card-glow-edge { background: var(--fac-legion); }
.card-legion:hover { border-color: var(--fac-legion); box-shadow: 0 12px 35px rgba(255, 208, 0, 0.25); }

.card-luna { --theme-glow: rgba(255, 30, 66, 0.45); }
.card-luna .card-glow-edge { background: var(--fac-luna); }
.card-luna:hover { border-color: var(--fac-luna); box-shadow: 0 12px 35px rgba(255, 30, 66, 0.25); }

.card-malkav { --theme-glow: rgba(0, 136, 255, 0.45); }
.card-malkav .card-glow-edge { background: var(--fac-malkav); }
.card-malkav:hover { border-color: var(--fac-malkav); box-shadow: 0 12px 35px rgba(0, 136, 255, 0.25); }

/* Badges de estado en el portal */
.portal-badge-status {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.badge-unlocked {
  background: rgba(0, 255, 136, 0.15);
  color: var(--fac-alba);
  border: 1px solid rgba(0, 255, 136, 0.4);
}
.badge-locked {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo en grande centrado */
.portal-logo-container {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 1.4rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portal-logo-frame {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.portal-logo-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.7));
}
.icon-alba { color: var(--fac-alba); }
.icon-burjahk { color: var(--fac-burjahk); }
.icon-legion { color: var(--fac-legion); }
.icon-luna { color: var(--fac-luna); }
.icon-malkav { color: var(--fac-malkav); }

.portal-faction-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}
.portal-slogan {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1.6rem;
  flex-grow: 1;
}

.portal-action-hint {
  font-family: var(--font-hud);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hint-unlocked { color: var(--fac-alba); }
.hint-unlocked svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.card-alba:hover .hint-unlocked svg { transform: translateX(4px); }
.hint-locked { color: var(--text-dim); }

/* --- EFECTO GLITCH & CARTEL "MUY PRONTO" --- */
.glitch-overlay-msg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(255, 0, 85, 0.92);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.8);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  transition: all 0.25s ease;
}

/* Clase activada al hacer click en facción bloqueada */
.faction-portal-card.is-glitching .portal-logo-frame {
  animation: logoGlitchShake 0.4s infinite alternate;
}
.faction-portal-card.is-glitching .glitch-overlay-msg {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: glitchCartelPulse 0.4s infinite alternate;
}

@keyframes logoGlitchShake {
  0% { transform: translate(0, 0) skew(0deg); filter: drop-shadow(3px 0 var(--neon-magenta)); }
  25% { transform: translate(-4px, 2px) skew(-4deg); filter: drop-shadow(-3px 0 var(--neon-cyan)); }
  50% { transform: translate(3px, -2px) skew(3deg); filter: drop-shadow(2px -2px #ffff00); }
  75% { transform: translate(-2px, -3px) skew(-2deg); filter: drop-shadow(-2px 2px var(--neon-magenta)); }
  100% { transform: translate(2px, 2px) skew(0deg); filter: drop-shadow(2px 0 var(--neon-cyan)); }
}

@keyframes glitchCartelPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.08) skew(-2deg); opacity: 0.85; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ==========================================================================
   6. SECCIÓN DEDICADA: VIAJEROS DEL ALBA
   ========================================================================== */
.dedicated-faction-section {
  padding-top: 4rem;
  padding-bottom: 5rem;
  border-top: 1px solid rgba(0, 255, 136, 0.2);
}

/* 6.1 Panel de Introducción y Reseña */
.faction-intro-panel {
  padding: 2.2rem 2rem;
  margin-bottom: 3.5rem;
  border-left: 4px solid var(--fac-alba);
}
.faction-identity-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.faction-mini-emblem {
  width: 65px;
  height: 65px;
  flex-shrink: 0;
}
.dedicated-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.dedicated-slogan {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--fac-alba);
}

.dedicated-bio {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.2rem;
}
.bio-heading {
  font-family: var(--font-hud);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  margin-bottom: 0.4rem;
}
.dedicated-bio p {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 6.2 Bloque Lanzamiento de Novela: Portada + Sinopsis al lado + Compra */
.book-launch-block {
  margin-bottom: 5rem;
}
.book-launch-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  padding: 3rem 2.5rem;
  align-items: center;
}

.book-visual-col {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  padding: 1.5rem 0;
}
.book-3d-wrapper {
  position: relative;
  width: min(320px, 85vw);
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}
.book-3d-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1696 / 2528; /* Proporción matemática exacta de la imagen oficial (1696x2528 px) */
  border-radius: 4px;
  transform-style: preserve-3d;
  transform: rotateY(-16deg) rotateX(6deg);
  box-shadow: -18px 22px 42px rgba(0, 0, 0, 0.85), 0 0 25px var(--theme-glow, rgba(0, 255, 136, 0.16));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
  background: #0d1424;
}
.book-3d-wrapper:hover .book-3d-card {
  transform: rotateY(-6deg) rotateX(3deg) translateY(-8px);
  box-shadow: -22px 32px 52px rgba(0, 0, 0, 0.9), 0 0 40px var(--theme-glow, rgba(0, 255, 136, 0.35));
}
.book-spine {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 100%;
  transform: translateX(-20px) rotateY(-90deg);
  transform-origin: right center;
  background: linear-gradient(to right, #05080f, #12211e);
  border-left: 1px solid var(--theme-border, rgba(0, 255, 136, 0.3));
  border-radius: 3px 0 0 3px;
}
.book-cover {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--theme-border, rgba(0, 255, 136, 0.4));
}
.book-cover-inner {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
}
.book-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fallback Portada */
.book-fallback {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.04) 0%, rgba(7, 11, 20, 0.96) 85%);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}
.book-fallback.hidden { display: none !important; }
.fallback-tag { font-family: var(--font-hud); font-size: 0.72rem; letter-spacing: 2px; color: var(--theme-accent, var(--fac-alba)); }
.fallback-title { font-family: var(--font-display); font-size: 2.1rem; font-weight: 900; line-height: 1.05; color: #fff; }
.fallback-ship-sigil { width: 100px; height: 100px; margin: 1rem auto; }
.sigil-vector { width: 100%; height: 100%; filter: drop-shadow(0 0 8px var(--theme-accent, var(--fac-alba))); }
.fallback-desc { font-family: var(--font-hud); font-size: 0.88rem; letter-spacing: 2px; color: var(--neon-cyan); }
.fallback-author { font-family: var(--font-hud); font-size: 0.82rem; letter-spacing: 2px; color: var(--text-muted); }
.book-sheen {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 55%);
  pointer-events: none;
}
.book-badge-floating {
  position: absolute;
  bottom: -10px;
  right: -10px;
  transform: translateZ(32px);
  z-index: 10;
  background: var(--theme-accent, var(--fac-alba));
  color: var(--bg-deep);
  font-family: var(--font-hud);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  box-shadow: 0 4px 18px var(--theme-glow, rgba(0, 255, 136, 0.45));
  pointer-events: none;
  white-space: nowrap;
}

.book-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}
.book-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: #c7d5ea;
  border-left: 3px solid var(--fac-alba);
  padding-left: 1.2rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.book-synopsis-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.book-synopsis-text p {
  margin-bottom: 0.8rem;
}

.book-purchase-area .cta-label {
  font-family: var(--font-hud);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--neon-amber);
  margin-bottom: 0.8rem;
}
.retailers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.btn-retailer {
  background: rgba(8, 11, 18, 0.8);
  border: 1px solid var(--theme-border, rgba(255, 255, 255, 0.25));
  color: #ffffff;
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s ease;
}
.btn-retailer:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--theme-accent, rgba(255, 255, 255, 0.5));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--theme-glow, rgba(0, 0, 0, 0.4));
}
.retailer-icon {
  width: 18px;
  height: 18px;
  color: var(--theme-accent, var(--fac-alba));
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn-retailer:hover .retailer-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px var(--theme-accent, var(--fac-alba)));
}

/* 6.3 Hangar 3D Exclusivo de Viajeros del Alba */
.hangar-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2rem;
}
.viewer-wrapper {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 1rem;
}
.viewer-decorations {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 5;
}
.decor-corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--theme-accent, var(--fac-alba));
}
.top-left { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.top-right { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.bottom-right { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.hud-telemetry-badge {
  position: absolute;
  top: 16px; right: 20px;
  font-family: var(--font-hud);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--theme-accent, var(--fac-alba));
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.rec-green, .rec-icon {
  width: 8px; height: 8px;
  background-color: var(--theme-accent, var(--fac-alba));
  border-radius: 50%;
  animation: pulseBlink 1.5s infinite;
}

model-viewer {
  width: 100%;
  flex: 1 1 auto;
  min-height: 320px;
  height: 100%;
  --poster-color: transparent;
  background: radial-gradient(circle at center, rgba(14, 38, 30, 0.6) 0%, rgba(8, 11, 18, 0.95) 75%);
  border-radius: var(--border-radius-sm);
  outline: none;
  touch-action: pan-y;
  cursor: grab;
}
model-viewer:active {
  cursor: grabbing;
}
.model-loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1.2rem;
  pointer-events: none;
}
.circle-green {
  border: 3px solid rgba(0, 255, 136, 0.2);
  border-top-color: var(--fac-alba);
}
.scanner-circle {
  width: 55px; height: 55px;
  border-radius: 50%;
  animation: spinLoader 1s linear infinite;
}
@keyframes spinLoader { to { transform: rotate(360deg); } }
.model-loader-text {
  font-family: var(--font-hud);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--fac-alba);
}

.model-fallback-alert {
  position: absolute;
  bottom: 15px; left: 20px; right: 20px;
  background: rgba(14, 20, 36, 0.85);
  border: 1px solid rgba(0, 255, 136, 0.35);
  padding: 0.6rem 1rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.model-fallback-alert .alert-icon { color: var(--neon-amber); }

.viewer-controls-hint {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-family: var(--font-hud);
  font-size: 0.74rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding-top: 0.5rem;
  margin-top: 0.2rem;
  border-top: 1px solid rgba(0, 255, 136, 0.15);
}

/* Panel Táctico HUD */
.hud-panel {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hud-alba-theme {
  border-left: 3px solid var(--fac-alba);
}
.hud-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.2rem;
  margin-bottom: 1.4rem;
}
.hud-sub {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--fac-alba);
}
.hud-ship-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
  margin: 0.2rem 0 0.5rem 0;
  text-transform: uppercase;
}
.hud-classification {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.badge-green {
  background: rgba(0, 255, 136, 0.15);
  color: var(--fac-alba);
  border: 1px solid rgba(0, 255, 136, 0.35);
}
.hud-badge {
  font-family: var(--font-hud);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  letter-spacing: 1.5px;
}
.hud-faction {
  font-family: var(--font-hud);
  font-size: 0.75rem;
  color: var(--neon-cyan);
  padding: 0.2rem 0.6rem;
  letter-spacing: 1.5px;
}

.hud-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
}
.stat-card {
  background: rgba(8, 11, 18, 0.65);
  border: 1px solid rgba(0, 255, 136, 0.22);
  padding: 0.65rem 1.1rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.25s ease;
}
.stat-card:hover {
  border-color: var(--theme-accent, rgba(0, 255, 136, 0.45));
  background: rgba(8, 11, 18, 0.85);
  box-shadow: 0 0 15px var(--theme-glow, rgba(0, 255, 136, 0.08));
}
.stat-icon-wrapper {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon-wrapper svg { width: 44px; height: 44px; }
.dice-icon { 
  background: transparent; 
  border: none; 
  color: var(--neon-amber); 
  filter: drop-shadow(0 0 8px rgba(255, 170, 0, 0.5)); 
}
.credits-icon { 
  background: transparent; 
  border: none; 
  color: var(--theme-accent, var(--fac-alba)); 
  filter: drop-shadow(0 0 8px var(--theme-glow, rgba(0, 255, 136, 0.5))); 
}
.stat-details {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}
.stat-label { 
  font-family: var(--font-hud); 
  font-size: 0.74rem; 
  color: var(--text-dim); 
  letter-spacing: 1.2px; 
  font-weight: 600;
  white-space: nowrap;
}
.stat-val { 
  font-family: var(--font-display); 
  font-size: 1.05rem; 
  font-weight: 800; 
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.highlight-amber { color: var(--neon-amber); text-shadow: 0 0 10px rgba(255, 170, 0, 0.35); }
.highlight-green, .highlight-credits { color: var(--theme-accent, var(--fac-alba)); text-shadow: 0 0 10px var(--theme-glow, rgba(0, 255, 136, 0.35)); }

.hud-tactical-block {
  background: rgba(8, 11, 18, 0.4);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.4rem;
}
.block-title {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--theme-accent, var(--fac-alba));
  margin-bottom: 0.3rem;
}
.block-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }
.highlight-role { color: #fff; font-weight: 600; }

.hud-meters { display: flex; flex-direction: column; gap: 0.8rem; }
.meter-header {
  display: flex; justify-content: space-between;
  font-family: var(--font-hud); font-size: 0.7rem; letter-spacing: 1.5px;
  color: var(--text-muted); margin-bottom: 0.25rem;
}
.meter-bar { height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 3px; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.fill-green { background: var(--fac-alba); box-shadow: 0 0 8px var(--fac-alba); }
.fill-cyan { background: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); }

/* Selector de Naves */
.ship-selector-bar {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
}
.selector-heading {
  font-family: var(--font-hud);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--fac-alba);
  margin-bottom: 0.9rem;
}
.selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}
.ship-btn {
  background: rgba(14, 20, 36, 0.7);
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 0.85rem 1rem;
  border-radius: var(--border-radius-sm);
  text-align: left;
  transition: var(--transition-smooth);
}
.ship-btn:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--fac-alba);
  transform: translateY(-2px);
}
.ship-btn.active {
  background: rgba(0, 255, 136, 0.2);
  border-color: var(--fac-alba);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}
.ship-btn-tag {
  font-family: var(--font-hud);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--fac-alba);
  display: block;
}
.ship-btn-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0.2rem 0;
}
.ship-btn-dice {
  font-family: var(--font-hud);
  font-size: 0.75rem;
  color: var(--neon-amber);
}

/* Píldoras integradas dentro del visor holográfico */
.viewer-pills-container {
  margin-top: 0.45rem;
  padding-top: 0;
  position: relative;
  z-index: 6;
  width: 100%;
}
.pills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  width: 100%;
}
@media (max-width: 650px) {
  .pills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.viewer-pills-container .ship-btn {
  padding: 0.65rem 0.8rem;
  background: rgba(12, 18, 32, 0.75);
  border: 1px solid var(--theme-border, rgba(0, 255, 136, 0.22));
  border-radius: var(--border-radius-sm);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 0;
}
.viewer-pills-container .ship-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--theme-accent, var(--fac-alba));
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--theme-glow, rgba(0, 255, 136, 0.25));
}
.viewer-pills-container .ship-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--theme-accent, var(--fac-alba));
  box-shadow: 0 0 16px var(--theme-glow, rgba(0, 255, 136, 0.45));
}
.viewer-pills-container .ship-btn-tag {
  font-family: var(--font-hud);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--theme-accent, var(--fac-alba));
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.viewer-pills-container .ship-btn-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* ==========================================================================
   7. SECCIÓN EL JUEGO DE CARTAS
   ========================================================================== */
.game-showcase {
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
  border: 1px solid rgba(255, 170, 0, 0.35);
  box-shadow: 0 0 35px rgba(255, 170, 0, 0.12);
}
.game-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.game-desc { font-size: 1.15rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; }
.game-features-list { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2.5rem; }
.feature-item { display: flex; align-items: flex-start; gap: 1.2rem; }
.feature-badge {
  background: rgba(255, 170, 0, 0.15);
  border: 1px solid var(--neon-amber);
  color: var(--neon-amber);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}
.feature-item strong { font-family: var(--font-hud); font-size: 1.05rem; letter-spacing: 1px; color: #fff; display: block; margin-bottom: 0.2rem; }
.feature-item p { font-size: 0.95rem; color: var(--text-muted); }

/* Especificaciones Oficiales del Sellsheet (Conflicto Espacial) */
.sellsheet-specs-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}
.sellsheet-spec-pill {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.15rem;
  background: rgba(8, 11, 18, 0.75);
  border: 1px solid rgba(255, 170, 0, 0.35);
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  transition: var(--transition-fast);
}
.sellsheet-spec-pill:hover {
  border-color: var(--neon-amber);
  background: rgba(14, 20, 36, 0.95);
  box-shadow: 0 0 18px rgba(255, 170, 0, 0.25);
  transform: translateY(-2px);
}
.sellsheet-icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}
.sellsheet-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.sellsheet-text-wrap {
  display: flex;
  flex-direction: column;
}
.sellsheet-label {
  font-family: var(--font-hud);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.sellsheet-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

.game-actions { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.btn-youtube { background: #c4302b; color: #fff; padding: 0.85rem 1.6rem; }
.btn-youtube:hover { background: #ff0000; box-shadow: 0 0 25px rgba(255, 0, 0, 0.6); transform: translateY(-2px); }
.btn-editorial { background: var(--glass-bg); border: 1px solid var(--neon-amber); color: var(--neon-amber); padding: 0.85rem 1.6rem; }
.btn-editorial:hover { background: var(--neon-amber); color: var(--bg-deep); box-shadow: 0 0 25px rgba(255, 170, 0, 0.6); transform: translateY(-2px); }
.btn-icon { width: 20px; height: 20px; }

.game-visual-cards {
  position: relative;
  height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}
.card-mockup {
  position: absolute;
  width: 210px;
  height: 295px;
  background: #0d1527;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.75);
  padding: 0;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  user-select: none;
  cursor: pointer;
}
.card-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* 1. Nave Legendaria: Borde fino digital verde */
.card-legendary {
  transform: rotate(-10deg) translateX(-95px) translateY(8px);
  z-index: 1;
  border: 1.5px solid var(--fac-alba);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.35), 0 14px 30px rgba(0, 0, 0, 0.75);
}

/* 2. Planeta: En el medio de las 3 con borde fino digital violeta */
.card-planet {
  transform: rotate(0deg) translateX(0) translateY(-10px);
  z-index: 3;
  border: 1.5px solid var(--fac-burjahk);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.4), 0 16px 36px rgba(0, 0, 0, 0.85);
}

/* 3. Evento: Borde fino digital naranja */
.card-event {
  transform: rotate(10deg) translateX(95px) translateY(8px);
  z-index: 2;
  border: 1.5px solid var(--neon-amber);
  box-shadow: 0 0 16px rgba(255, 170, 0, 0.35), 0 14px 30px rgba(0, 0, 0, 0.75);
}

/* Interacción Hover: Despliegue en abanico táctico */
.game-visual-cards:hover .card-legendary {
  transform: rotate(-16deg) translateX(-125px) translateY(-6px) scale(1.03);
  box-shadow: 0 0 22px rgba(0, 255, 136, 0.55), 0 18px 40px rgba(0, 0, 0, 0.85);
}
.game-visual-cards:hover .card-planet {
  transform: rotate(0deg) translateX(0) translateY(-24px) scale(1.06);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.6), 0 20px 45px rgba(0, 0, 0, 0.9);
  z-index: 4;
}
.game-visual-cards:hover .card-event {
  transform: rotate(16deg) translateX(125px) translateY(-6px) scale(1.03);
  box-shadow: 0 0 22px rgba(255, 170, 0, 0.55), 0 18px 40px rgba(0, 0, 0, 0.85);
}

/* Indicador y Badge de Zoom Táctico */
.card-zoom-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(10, 16, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 5;
}
.card-zoom-badge svg {
  width: 14px;
  height: 14px;
}
.card-mockup:hover .card-zoom-badge {
  opacity: 1;
  transform: scale(1);
}
.cards-hint-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.2rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.cards-hint-pill svg {
  width: 14px;
  height: 14px;
  color: var(--neon-cyan);
}

/* Modal Lightbox Táctico para Inspección de Cartas en Alta Definición */
.card-lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3500;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card-lightbox-modal.active {
  display: flex;
  opacity: 1;
}
.card-lightbox-dialog {
  position: relative;
  max-width: 860px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cardLightboxIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes cardLightboxIn {
  from { opacity: 0; transform: scale(0.92) translateY(18px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.card-lightbox-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.2rem;
  align-items: center;
  background: rgba(13, 21, 39, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.9);
  max-width: 840px;
  width: 100%;
}
.card-lightbox-img-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-lightbox-img-frame {
  position: relative;
  width: 285px;
  max-width: 75vw;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.card-lightbox-img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}
.card-lightbox-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.card-lightbox-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid currentColor;
}
.card-lightbox-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
.card-lightbox-body {
  background: rgba(7, 12, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 1.3rem;
  color: var(--text-main);
  font-size: 0.98rem;
  line-height: 1.65;
}
.card-lightbox-body strong {
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}
.card-lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.card-lightbox-nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.card-lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  transform: translateY(-1px);
}
.card-lightbox-counter {
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.card-lightbox-close {
  position: absolute;
  top: -2.8rem;
  right: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono, monospace);
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: color 0.2s ease;
}
.card-lightbox-close:hover {
  color: #fff;
}
@media (max-width: 768px) {
  .card-lightbox-content {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 1.5rem 1.2rem;
    max-height: 86vh;
    overflow-y: auto;
  }
  .card-lightbox-img-frame {
    width: 215px;
  }
  .card-lightbox-title {
    font-size: 1.45rem;
  }
  .card-lightbox-close {
    top: 0.5rem;
    right: 0.6rem;
    background: rgba(10, 16, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
}

/* ==========================================================================
   8. SECCIÓN DE CAPTACIÓN (LEAD MAGNET)
   ========================================================================== */
.lead-section { padding-bottom: 7rem; }
.lead-box {
  padding: 4rem 2rem;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}
.lead-badge {
  display: inline-block;
  font-family: var(--font-hud); font-size: 0.8rem; font-weight: 700; letter-spacing: 2px;
  color: #cbd5e1; padding: 0.3rem 0.9rem; border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px; margin-bottom: 1.2rem;
}
.lead-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: 2px; margin-bottom: 1rem; }
.lead-text { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2.2rem auto; line-height: 1.6; }
.lead-form { max-width: 560px; margin: 0 auto; }
.form-group { display: flex; gap: 0.8rem; }
.form-input {
  flex: 1; background: rgba(8, 11, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.9rem 1.4rem; color: #fff;
  font-family: var(--font-body); font-size: 1rem;
  border-radius: var(--border-radius-sm); outline: none;
  transition: var(--transition-smooth);
}
.form-input:focus { border-color: rgba(255, 255, 255, 0.45); box-shadow: 0 0 15px rgba(255, 255, 255, 0.1); }
.btn-submit { white-space: nowrap; }
.arrow-icon { width: 18px; height: 18px; }
.form-feedback { margin-top: 1rem; font-family: var(--font-hud); font-size: 0.95rem; letter-spacing: 1px; min-height: 24px; }
.form-feedback.success { color: var(--fac-alba); text-shadow: 0 0 10px rgba(0, 255, 136, 0.4); }
.form-feedback.error { color: var(--neon-magenta); }
.lead-privacy { margin-top: 1.4rem; font-size: 0.85rem; color: var(--text-dim); }

/* ==========================================================================
   9. PIE DE PÁGINA GLOBAL COMPACTO DE ANCHO COMPLETO (SOCIAL IZQ + LEGAL DER)
   ========================================================================== */
.site-footer {
  background: #040508;
  margin-top: auto;
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0;
}

.mtg-social-list {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: nowrap;
}
.mtg-social-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #252831;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.mtg-social-circle svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.mtg-social-circle:hover {
  background: #383c49;
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
  transform: translateY(-2px);
}

/* En el panel del Inicio los círculos mantienen 44px */
.home-social-panel .mtg-social-circle {
  width: 44px;
  height: 44px;
}
.home-social-panel .mtg-social-circle svg {
  width: 20px;
  height: 20px;
}

/* Franja principal única de extremo a extremo */
.footer-legal-strip {
  background: #1a1c23;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.85rem 0;
  width: 100%;
}
.footer-fullwidth-inner {
  width: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-sizing: border-box;
}
.footer-social-inline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.footer-social-inline-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #ffffff;
  text-transform: uppercase;
}
.footer-right-cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  flex: 1;
}
.footer-legal-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.45rem;
  flex-wrap: wrap;
}
.footer-legal-item {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #d8dee9;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  line-height: 1.25;
  max-width: 185px;
  transition: color 0.2s ease;
}
.footer-legal-item:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Selector de idioma a la derecha */
.footer-lang-wrap {
  position: relative;
  flex-shrink: 0;
}
.footer-lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #12141a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  height: 38px;
  min-width: 140px;
  padding: 0 2.1rem 0 0.85rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.footer-lang-select:hover,
.footer-lang-select:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: #1c1f28;
}
.footer-lang-select option {
  background: #12141a;
  color: #ffffff;
}

/* Franja inferior de Copyright compacta */
.footer-copyright-strip {
  background: #040508;
  padding: 0.7rem 1rem;
  text-align: center;
}
.copyright-text {
  margin: 0;
  font-size: 0.76rem;
  color: #8b93a7;
  letter-spacing: 0.3px;
}

/* Panel de Redes Sociales en Inicio (index.html) */
.home-social-panel {
  padding: 2rem 2.2rem;
  border-top: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}
.home-social-text h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
}
.home-social-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}
.home-social-buttons {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  flex-wrap: wrap;
}
.social-minimal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 44px;
  padding: 0 1.25rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f4fc;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.social-minimal-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.social-minimal-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Centro Legal y Opciones de Privacidad (legal.html & Modal Global) */
.legal-index-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.legal-tab-pill {
  padding: 0.45rem 0.9rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-family: var(--font-hud);
  font-size: 0.78rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.legal-tab-pill:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
}
.legal-doc-card {
  padding: 2.2rem 2.2rem;
  margin-bottom: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  scroll-margin-top: 96px;
}
.legal-doc-tag {
  font-family: var(--font-hud);
  font-size: 0.74rem;
  letter-spacing: 1.5px;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}
.legal-doc-card h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #ffffff;
  margin-bottom: 1rem;
}
.legal-doc-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #e2e8f0;
  margin: 1.35rem 0 0.55rem 0;
}
.legal-doc-card p,
.legal-doc-card li {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.legal-doc-card ul {
  padding-left: 1.3rem;
  margin-bottom: 0.8rem;
}
.privacy-inline-box,
.privacy-option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius-sm);
  margin-top: 0.85rem;
}
.privacy-always-on {
  font-family: var(--font-hud);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  white-space: nowrap;
}
.privacy-checkbox {
  width: 20px;
  height: 20px;
  accent-color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
}

/* ==========================================================================
   11. MENÚ LATERAL DESPLEGABLE (SIDE DRAWER // SECTOR SIEGER NAV)
   ========================================================================== */
.nav-container-minimal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.menu-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.16);
  height: 42px;
  padding: 0 1.15rem;
  border-radius: var(--border-radius-sm);
  box-sizing: border-box;
  transition: var(--transition-smooth);
  cursor: pointer;
}
.menu-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
}

.trigger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.trigger-icon .bar {
  display: block;
  height: 2px;
  background: #cbd5e1;
  border-radius: 2px;
  transition: var(--transition-smooth);
}
.trigger-icon .bar-1 { width: 100%; }
.trigger-icon .bar-2 { width: 75%; }
.trigger-icon .bar-3 { width: 90%; }
.menu-trigger-btn:hover .trigger-icon .bar {
  background: #fff;
  width: 100%;
}

.brand-logo-text {
  font-family: var(--font-logo);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.brand-logo-text .logo-glitch { color: #fff; }
.brand-logo-text .logo-accent { 
  color: #e2e8f0; 
  letter-spacing: 2.5px;
  text-shadow: none; 
}

.menu-hint-tag {
  display: none !important;
}

/* Telón de fondo del Drawer */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 14, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Panel Lateral */
.side-drawer {
  position: fixed;
  top: 0;
  left: -380px;
  width: 360px;
  max-width: 88vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(10, 15, 28, 0.98);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 10px 0 45px rgba(0, 0, 0, 0.7);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.side-drawer.open {
  left: 0;
}

.drawer-header {
  padding: max(1.6rem, env(safe-area-inset-top, 1.6rem)) 1.6rem 1.2rem 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 15, 28, 0.98);
  position: sticky;
  top: 0;
  z-index: 5;
}
.drawer-brand {
  display: flex;
  flex-direction: column;
}
.drawer-title {
  font-family: var(--font-logo);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
}
.drawer-sub {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.drawer-close-btn {
  background: transparent;
  color: var(--text-muted);
  font-size: 1.8rem;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: var(--transition-smooth);
}
.drawer-close-btn:hover {
  color: #fff;
  transform: rotate(90deg);
}

.drawer-content {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.drawer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.drawer-group-label {
  font-family: var(--font-hud);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  padding-left: 0.5rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}
.drawer-link:hover, .drawer-link.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  transform: translateX(4px);
  box-shadow: none;
}
.drawer-link-icon {
  font-size: 1.1rem;
  display: inline-flex;
}

/* Subsecciones colapsadas/anidadas en Drawer */
.drawer-subnav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 1.2rem;
  margin-top: 0.3rem;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
}
.drawer-sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-hud);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  transition: var(--transition-smooth);
}
.sublink-lock {
  margin-left: auto;
  font-size: 0.85rem;
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.drawer-sublink.is-locked:hover .sublink-lock {
  opacity: 1;
  transform: scale(1.15);
}
.drawer-sublink:hover, .drawer-sublink.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  padding-left: 1.1rem;
}
.drawer-sublink.sub-alba:hover, .drawer-sublink.sub-alba.active { color: var(--fac-alba); }
.drawer-sublink.sub-malkav:hover, .drawer-sublink.sub-malkav.active { color: var(--fac-malkav); }
.drawer-sublink.sub-luna:hover, .drawer-sublink.sub-luna.active { color: var(--fac-luna); }
.drawer-sublink.sub-legion:hover, .drawer-sublink.sub-legion.active { color: var(--fac-legion); }
.drawer-sublink.sub-burjahk:hover, .drawer-sublink.sub-burjahk.active { color: var(--fac-burjahk); }

.drawer-footer {
  padding: 1.4rem 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ==========================================================================
   12. TEMAS Y PALETAS DE FACCIONES ESPECÍFICAS
   ========================================================================== */
.theme-alba {
  --theme-accent: var(--fac-alba);
  --theme-glow: rgba(0, 255, 136, 0.45);
  --theme-border: rgba(0, 255, 136, 0.4);
}
.theme-malkav {
  --theme-accent: var(--fac-malkav);
  --theme-glow: rgba(0, 136, 255, 0.45);
  --theme-border: rgba(0, 136, 255, 0.4);
}
.theme-luna {
  --theme-accent: var(--fac-luna);
  --theme-glow: rgba(255, 30, 66, 0.45);
  --theme-border: rgba(255, 30, 66, 0.4);
}
.theme-legion {
  --theme-accent: var(--fac-legion);
  --theme-glow: rgba(255, 208, 0, 0.45);
  --theme-border: rgba(255, 208, 0, 0.4);
}
.theme-burjahk {
  --theme-accent: var(--fac-burjahk);
  --theme-glow: rgba(168, 85, 247, 0.45);
  --theme-border: rgba(168, 85, 247, 0.4);
}

.theme-card-panel {
  border: 1px solid var(--theme-border) !important;
  box-shadow: 0 10px 35px 0 var(--theme-glow) !important;
}
.theme-accent-text {
  color: var(--theme-accent) !important;
  text-shadow: 0 0 15px var(--theme-glow);
}
.theme-accent-btn {
  border-color: var(--theme-accent) !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.04);
}
.theme-accent-btn:hover {
  background: var(--theme-accent) !important;
  color: #000 !important;
  box-shadow: 0 0 25px var(--theme-glow) !important;
}

/* Escudos Grandes de Facciones */
.grand-shield-container {
  width: min(220px, 55vw);
  height: min(220px, 55vw);
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.grand-shield-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 16px var(--theme-glow));
  transition: transform 0.35s ease;
}
.grand-shield-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.tint-alba { filter: url(#shield-tint-alba); }
.tint-malkav { filter: url(#shield-tint-malkav); }
.tint-luna { filter: url(#shield-tint-luna); }
.tint-legion { filter: url(#shield-tint-legion); }
.tint-burjahk { filter: url(#shield-tint-burjahk); }

.grand-shield-container:hover .grand-shield-svg {
  transform: scale(1.08);
}

/* Ajuste panorámico para el emblema alado de Viajeros del Alba */
.alba-hero-header {
  display: inline-block;
  max-width: 100%;
  margin: 0 auto 0.6rem auto;
}
.alba-title-shield {
  contain: inline-size;
  width: 100%;
  height: auto;
  aspect-ratio: 792 / 240;
  margin: 0 auto 1.1rem auto;
}
.alba-title-shield .grand-shield-img {
  object-fit: cover;
  object-position: center;
}

/* ==========================================================================
   13. COMPONENTES DE "EL JUEGO": FAQ, FORO & CALCULADOR DE DAICOS
   ========================================================================== */

/* --- A. FAQ --- */
.faq-search-box {
  position: relative;
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
}
.faq-search-input {
  width: 100%;
  padding: 1.1rem 1.4rem 1.1rem 3.2rem;
  background: rgba(14, 20, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  outline: none;
  transition: var(--transition-smooth);
}
.faq-search-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.1);
}
.faq-search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #cbd5e1;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 850px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius-md);
  background: var(--glass-bg);
  overflow: hidden;
  transition: var(--transition-smooth);
}
.faq-item.active {
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.45);
}
.faq-question-btn {
  width: 100%;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: transparent;
}
.faq-question-btn:hover {
  color: #e2e8f0;
}
.faq-category-tag {
  display: inline-block;
  font-family: var(--font-hud);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  margin-bottom: 0.4rem;
}
.faq-toggle-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: #cbd5e1;
}
.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}
.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 1.5rem 1.4rem 1.5rem;
}

/* --- B. FORO --- */
.forum-user-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 1.2rem 1.6rem;
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--border-radius-md);
  margin-bottom: 2rem;
}
.forum-user-info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.forum-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  flex-shrink: 0;
}
.forum-avatar svg,
.forum-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.forum-thread-wrapper {
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}
.forum-thread-wrapper:hover,
.forum-thread-wrapper.expanded {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(16, 23, 40, 0.92);
}
.forum-thread-card {
  padding: 1.4rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
}
.thread-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-family: var(--font-hud);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
}
.thread-lang-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  font-family: var(--font-hud);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.thread-lang-badge.lang-es {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fcd34d;
}
.thread-lang-badge.lang-en {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.45);
  color: #67e8f9;
}
.forum-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-dim);
  font-family: var(--font-hud);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.4rem 0.85rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.forum-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.forum-filter-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--color-cyan, #00f0ff);
  color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}
.forum-replies-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 22, 0.65);
  padding: 1.3rem 1.6rem 1.5rem 1.6rem;
}
.forum-thread-wrapper.expanded .forum-replies-panel {
  display: block;
}
.forum-reply-item {
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-sm);
  margin-bottom: 0.75rem;
}
.forum-reply-form {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.forum-reply-form input {
  flex: 1;
  min-width: 220px;
}

/* --- C. CALCULADOR DE DAICOS --- */
.calculator-hud-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
@media (max-width: 900px) {
  .calculator-hud-grid { grid-template-columns: 1fr; }
}

.daicos-master-display {
  padding: 2rem;
  text-align: center;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.12) 0%, rgba(8, 11, 18, 0.9) 70%);
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.25);
  border-radius: var(--border-radius-lg);
  position: relative;
  overflow: hidden;
}

/* Display Maestro Compacto para el Calculador */
.daicos-master-display.compact-hud {
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  background: radial-gradient(circle at 30% center, rgba(0, 240, 255, 0.08) 0%, rgba(8, 11, 18, 0.95) 80%);
  border: 1.5px solid var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.18);
  border-radius: var(--border-radius-md);
  margin-bottom: 1.2rem;
}
.daicos-master-display.compact-hud .daicos-number {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  margin: 0;
  line-height: 1;
}

/* Suite de Filtros Dobles (Sistemas y Planetas) */
.calculator-filters-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 240, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: var(--border-radius-sm);
}
.filter-row-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.filter-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.filter-label-title {
  font-family: var(--font-hud);
  font-size: 0.76rem;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.filter-search-box {
  flex: 1;
  min-width: 170px;
  position: relative;
}
.filter-search-input {
  width: 100%;
  padding: 0.35rem 0.65rem 0.35rem 1.8rem;
  background: rgba(8, 11, 18, 0.92);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  outline: none;
  transition: var(--transition-fast);
}
.filter-search-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}
.filter-search-icon {
  position: absolute;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--text-dim);
  pointer-events: none;
}

/* ==========================================================================
   COCKPIT DASHBOARD: CALCULADOR TÁCTICO INTEGRADO EN 1 PANTALLA
   ========================================================================== */
.cockpit-command-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.8rem;
  padding: 0.45rem 1rem;
  background: rgba(8, 11, 18, 0.95);
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--border-radius-md);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.12);
  margin-bottom: 0.9rem;
}
@media (max-width: 900px) {
  .cockpit-command-bar {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
}
.cockpit-left-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cockpit-status-dot-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cockpit-center-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 1;
}
.cockpit-param-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.cockpit-select {
  padding: 0.25rem 0.5rem !important;
  font-size: 0.78rem !important;
  background: rgba(14, 20, 36, 0.95) !important;
  border-color: rgba(136, 146, 176, 0.4) !important;
  color: #fff !important;
  border-radius: 4px;
  max-width: 175px !important;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.cockpit-daicos-visor {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.25rem 0.8rem;
  background: radial-gradient(circle at center, rgba(255, 170, 0, 0.12) 0%, rgba(8, 11, 18, 0.95) 85%);
  border: 1.5px solid var(--neon-amber);
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(255, 170, 0, 0.25);
  flex-shrink: 0;
}
.cockpit-daicos-number {
  font-size: 2rem !important;
  margin: 0 !important;
  line-height: 1 !important;
  color: var(--neon-amber) !important;
  font-family: var(--font-display) !important;
  font-weight: 900 !important;
  min-width: 55px;
  text-align: right;
}
.cockpit-grid-layout {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: 1.1rem;
  margin-top: 0;
}
@media (max-width: 900px) {
  .cockpit-grid-layout {
    grid-template-columns: 1fr;
  }
}
.cockpit-module-panel {
  padding: 0.9rem 1.1rem !important;
  display: flex;
  flex-direction: column;
}
.cockpit-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}
.cockpit-filter-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  background: rgba(0, 240, 255, 0.02);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 4px;
  margin-bottom: 0.45rem;
}
.cockpit-scroll-viewport {
  height: 220px !important;
  max-height: 220px !important;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.3rem;
  margin-top: 0.3rem;
  scroll-behavior: smooth;
}
.cockpit-fleet-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cockpit-ship-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  transition: var(--transition-fast);
}
.cockpit-ship-row:hover {
  border-color: rgba(0, 240, 255, 0.25);
  background: rgba(0, 240, 255, 0.02);
}
.planets-scroll-viewport {
  height: 220px;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.4rem;
  margin-top: 0.4rem;
  scroll-behavior: smooth;
}
@media (max-width: 640px) {
  .planets-scroll-viewport {
    height: 320px;
    max-height: 320px;
  }
}

/* Scrollbar Futurista Personalizada */
.planets-scroll-viewport::-webkit-scrollbar {
  width: 6px;
}
.planets-scroll-viewport::-webkit-scrollbar-track {
  background: rgba(8, 11, 18, 0.8);
  border-radius: 3px;
}
.planets-scroll-viewport::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.35);
  border-radius: 3px;
}
.planets-scroll-viewport::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

/* Grid de Planetas de 2 Columnas */
.planets-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 0.4rem;
}
@media (max-width: 640px) {
  .planets-cards-grid {
    grid-template-columns: 1fr;
  }
}

.sticky-fleet-column {
  position: sticky;
  top: 85px;
}
.daicos-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 900;
  color: var(--neon-amber);
  text-shadow: 0 0 25px var(--neon-amber-glow);
  line-height: 1.1;
  margin: 0.5rem 0;
}
.daicos-unit {
  font-family: var(--font-hud);
  font-size: 1.1rem;
  letter-spacing: 3px;
  color: var(--neon-cyan);
}

.planet-card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 0;
  transition: var(--transition-fast);
}
.planet-card-item.controlled {
  border-color: var(--fac-alba);
  background: rgba(0, 255, 136, 0.08);
}
.planet-btn-action {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 4px;
  font-family: var(--font-hud);
  font-weight: 700;
  cursor: pointer;
}

/* Banner de Producción del Turno con Multiplicadores */
.turn-income-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.08);
}
@media (max-width: 580px) {
  .turn-income-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .turn-income-banner .btn {
    width: 100%;
  }
}

/* Pestañas de Filtro por Sistema */
.system-filter-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.system-filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--text-dim);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-family: var(--font-hud);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.system-filter-btn:hover {
  border-color: var(--neon-cyan);
  color: #fff;
  background: rgba(0, 240, 255, 0.08);
}
.system-filter-btn.active {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--neon-cyan);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

/* Encabezado de Grupo de Sistema en Lista */
.system-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.2rem 0 0.6rem 0;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  flex-wrap: wrap;
  gap: 0.4rem;
}
.system-group-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--neon-cyan);
  letter-spacing: 1px;
}
.system-multiplier-badge {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.system-multiplier-badge.active-multiplier {
  background: rgba(0, 255, 136, 0.15);
  border-color: var(--fac-alba);
  color: var(--fac-alba);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.2);
  font-weight: 700;
}


/* ==========================================================================
   14. EFECTO GLITCH MEJORADO (LOGO DESAPARECE -> 'MUY PRONTO' -> VUELVE ESCUDO)
   ========================================================================== */
.faction-portal-card.is-locked {
  cursor: pointer;
  position: relative;
}
.faction-portal-card.is-locked:hover {
  border-color: rgba(255, 0, 85, 0.4);
}

.faction-portal-card.is-glitching {
  border-color: var(--neon-magenta) !important;
  box-shadow: 0 0 35px rgba(255, 0, 85, 0.45) !important;
}

.faction-portal-card.is-glitching .portal-logo-svg,
.faction-portal-card.is-glitching .grand-shield-svg {
  animation: shieldGlitchOut 2.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.faction-portal-card.is-glitching .glitch-overlay-msg {
  animation: textGlitchInOut 2.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes shieldGlitchOut {
  0% {
    opacity: 1;
    transform: scale(1) translate(0, 0);
    filter: drop-shadow(0 0 10px rgba(255, 0, 85, 0.8));
  }
  10% {
    transform: translate(-6px, 3px) skew(-6deg);
    filter: drop-shadow(5px 0 var(--neon-cyan));
  }
  20% {
    transform: translate(6px, -3px) skew(6deg);
    filter: drop-shadow(-5px 0 var(--neon-magenta));
  }
  28% {
    transform: translate(-3px, 2px) skew(3deg);
    opacity: 0.8;
  }
  32% {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
  }
  74% {
    opacity: 0;
    transform: scale(0.5);
  }
  78% {
    opacity: 0.5;
    transform: translate(4px, -3px) skew(-4deg);
    filter: drop-shadow(4px 0 var(--neon-cyan));
  }
  88% {
    transform: translate(-3px, 2px) skew(3deg);
    filter: drop-shadow(-4px 0 var(--neon-magenta));
    opacity: 0.9;
  }
  100% {
    opacity: 1;
    transform: scale(1) translate(0, 0);
    filter: drop-shadow(0 0 16px var(--theme-glow));
  }
}

@keyframes textGlitchInOut {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  28% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  33% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15) skew(-4deg);
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.9);
  }
  45% {
    transform: translate(-50%, -50%) scale(1) skew(0deg);
    opacity: 1;
  }
  68% {
    transform: translate(-50%, -50%) scale(1.05) skew(3deg);
    opacity: 1;
  }
  74% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.85) skew(-6deg);
    filter: drop-shadow(4px 0 var(--neon-cyan));
  }
  79% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
}

.drawer-sublink.is-locked {
  cursor: not-allowed;
  opacity: 0.65;
}
.drawer-sublink.is-locked:hover {
  background: rgba(255, 0, 85, 0.08) !important;
  color: var(--neon-magenta) !important;
  padding-left: 0.8rem !important;
}


/* ==========================================================================
   15. ESTILOS DE REGISTRO DE USUARIO (INICIO // CAPÍTULO 1 GRATIS)
   ========================================================================== */
.register-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  max-width: 680px;
  margin: 0 auto 1.5rem auto;
  text-align: left;
}
@media (max-width: 650px) {
  .register-form-grid {
    grid-template-columns: 1fr;
  }
}
.register-input-group label {
  display: block;
  font-family: var(--font-hud);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.register-input-group .form-input {
  width: 100%;
}
.commander-active-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 2.2rem;
  border: 1px solid var(--fac-alba);
  box-shadow: 0 0 35px rgba(0, 255, 136, 0.2);
  border-radius: var(--border-radius-md);
  text-align: center;
}

.forum-form-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 0.8fr;
  gap: 1.2rem;
}

.calc-params-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* Modos de Mesa Multijugador Realtime */
.mode-switch-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--text-dim);
  transition: var(--transition-fast);
  cursor: pointer;
}
.mode-switch-btn.active {
  background: rgba(0, 240, 255, 0.2) !important;
  border-color: var(--neon-cyan) !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
  font-weight: 700;
}
.player-mesa-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}
.player-mesa-pill.is-me {
  background: rgba(0, 255, 136, 0.08);
  border-color: var(--fac-alba);
}

/* ==========================================================================
   15.1 PERFIL DE COMANDANTE, AVATARES Y LOGROS
   ========================================================================== */
.profile-current-avatar-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 240, 255, 0.25), rgba(8, 11, 18, 0.95));
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.profile-current-avatar-circle svg {
  width: 75%;
  height: 75%;
  object-fit: contain;
}
.profile-current-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.profile-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--text-dim);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-family: var(--font-hud);
  font-size: 0.9rem;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.profile-tab-btn:hover {
  color: #fff;
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
}
.profile-tab-btn.active {
  color: #fff;
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
  font-weight: 700;
}

/* Selector de Avatares */
.avatar-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 1.2rem;
}
.avatar-choice-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  padding: 1.2rem 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.avatar-choice-card:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.2);
}
.avatar-choice-card.selected {
  border-color: var(--fac-alba) !important;
  background: rgba(0, 255, 136, 0.12) !important;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3) !important;
}
.avatar-choice-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.avatar-choice-circle svg {
  width: 70%;
  height: 70%;
  object-fit: contain;
}
.avatar-choice-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.avatar-choice-name {
  font-family: var(--font-hud);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  color: #fff;
  font-weight: 600;
}
.avatar-choice-role {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Sala de Logros */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.achievement-card {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.4rem;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.65;
  transition: var(--transition-smooth);
}
.achievement-card.unlocked {
  opacity: 1;
  background: rgba(0, 255, 136, 0.04);
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.06);
}
.achievement-icon {
  font-size: 2rem;
  line-height: 1;
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.achievement-card.unlocked .achievement-icon {
  border-color: var(--fac-alba);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.25);
}
.achievement-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.3rem;
}
.achievement-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}
.achievement-status {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--text-dim);
}
.achievement-card.unlocked .achievement-status {
  color: var(--fac-alba);
  font-weight: 700;
}

/* ==========================================================================
   16. SISTEMA RESPONSIVE MAESTRO (DISPOSITIVOS MÓVILES & PANTALLAS ANGOSTAS)
   ========================================================================== */

/* --- TABLETS Y PANTALLAS MEDIANAS (<= 992px) --- */
@media (max-width: 992px) {
  .book-launch-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .book-quote {
    border-left: none;
    border-bottom: 2px solid var(--fac-alba);
    padding-left: 0;
    padding-bottom: 0.8rem;
  }
  .retailers-grid { justify-content: center; }
  .hangar-layout { grid-template-columns: 1fr; }
  .game-showcase { grid-template-columns: 1fr; padding: 2.5rem 1.8rem; text-align: center; }
  .feature-item { text-align: left; }
  .game-actions { justify-content: center; }
  .game-visual-cards { margin-top: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   BANNER DE CONSENTIMIENTO DE COOKIES & TELEMETRÍA (GDPR / PRIVACIDAD)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(8, 11, 18, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.85);
  z-index: 2500;
  animation: cookieBannerSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-banner-hiding {
  opacity: 0;
  transform: translateY(100%);
}
@keyframes cookieBannerSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.95rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  box-sizing: border-box;
}
.cookie-banner-content {
  flex: 1;
  min-width: 0;
}
.cookie-banner-tag {
  font-family: var(--font-hud);
  font-size: 0.74rem;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #f0f4fc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.cookie-banner-icon {
  width: 16px;
  height: 16px;
  color: #cbd5e1;
  flex-shrink: 0;
}
.cookie-banner-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}
.cookie-banner-link {
  color: #ffffff;
  text-decoration: underline;
  margin-left: 0.4rem;
  font-weight: 600;
  white-space: nowrap;
}
.cookie-banner-link:hover {
  color: #cbd5e1;
}
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.btn-cookie-accept {
  background: #ffffff;
  color: #080b12;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.55rem 1.15rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid #ffffff;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
  transition: var(--transition-fast);
}
.btn-cookie-accept:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.45);
}
.btn-cookie-reject {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.55rem 1rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}
.btn-cookie-reject:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* --- CELULARES Y TABLETS EN VERTICAL (<= 768px) --- */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  /* 1. Header, Contenedor & Botones Superiores */
  .container {
    padding: 0 0.85rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  .site-header {
    height: var(--nav-height);
  }
  .site-header .container {
    padding: 0 0.85rem;
  }
  .nav-container-minimal {
    gap: 0.4rem;
    justify-content: space-between;
  }
  .menu-trigger-btn {
    height: 36px;
    padding: 0 0.65rem;
    gap: 0.5rem;
    min-width: 0;
    flex-shrink: 1;
    box-sizing: border-box;
  }
  .brand-logo-text {
    font-size: 0.98rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }
  .menu-hint-tag {
    display: none !important;
  }
  .header-right-action {
    flex-shrink: 0;
  }
  .header-user-badge {
    gap: 0.35rem;
    flex-shrink: 0;
  }
  .header-commander-name-link {
    height: 36px;
    padding: 0 0.65rem;
    font-size: 0.78rem;
    gap: 0.45rem;
    box-sizing: border-box;
    max-width: 125px;
  }
  .header-commander-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-avatar-circle {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
  .header-logout-btn {
    height: 36px;
    padding: 0 0.65rem;
    font-size: 0.72rem;
    box-sizing: border-box;
  }
  .btn-neutral-nav {
    height: 36px;
    padding: 0 0.65rem;
    font-size: 0.72rem;
    box-sizing: border-box;
  }

  /* 2. Espaciado Superior contra Tapado del Header */
  main > section:first-of-type,
  main > .section:first-child,
  .hero-section,
  .dedicated-faction-section,
  .factions-portal-section {
    padding-top: calc(var(--nav-height) + 1.8rem) !important;
  }

  /* 3. Portada 3D del Libro */
  .book-launch-block { margin-bottom: 2.5rem; }
  .book-launch-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.8rem 1rem;
    text-align: center;
  }
  .book-visual-col {
    padding: 0.8rem 0;
    perspective: 700px;
  }
  .book-3d-wrapper {
    width: min(220px, 68vw);
    margin: 0 auto;
  }
  .book-3d-card {
    transform: rotateY(-6deg) rotateX(3deg);
    box-shadow: -10px 14px 28px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 255, 136, 0.2);
  }
  .book-spine {
    width: 14px;
    transform: translateX(-14px) rotateY(-90deg);
  }
  .book-title {
    font-size: 1.6rem;
    word-break: break-word;
  }
  .book-synopsis-text {
    font-size: 0.96rem;
    line-height: 1.6;
    text-align: left;
  }
  .book-quote {
    font-size: 0.98rem;
    text-align: left;
  }
  .retailers-grid {
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
  }
  .btn-retailer {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  /* 4. Cartas del Juego (Mockup Cards que desbordaban la pantalla) */
  .game-showcase {
    padding: 2rem 1.2rem;
  }
  .sellsheet-specs-row {
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.8rem;
  }
  .sellsheet-spec-pill {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 130px;
    padding: 0.55rem 0.75rem;
    gap: 0.6rem;
  }
  .sellsheet-icon-wrap {
    width: 36px;
    height: 36px;
  }
  .sellsheet-val {
    font-size: 1.15rem;
  }
  .game-actions {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
  }
  .game-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .game-visual-cards {
    height: 250px;
    margin: 1.8rem auto 0 auto;
    overflow: visible;
    width: 100%;
    max-width: 300px;
  }
  .card-mockup {
    width: 120px;
    height: 170px;
    padding: 0;
  }
  .card-legendary {
    transform: rotate(-8deg) translateX(-50px) translateY(4px);
  }
  .card-planet {
    transform: rotate(0deg) translateX(0) translateY(-6px);
  }
  .card-event {
    transform: rotate(8deg) translateX(50px) translateY(4px);
  }
  .game-visual-cards:hover .card-legendary {
    transform: rotate(-12deg) translateX(-64px) translateY(-2px);
  }
  .game-visual-cards:hover .card-planet {
    transform: rotate(0deg) translateX(0) translateY(-14px);
  }
  .game-visual-cards:hover .card-event {
    transform: rotate(12deg) translateX(64px) translateY(-2px);
  }

  /* 5. Cuadrículas Principales & Formularios */
  .main-sections-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .main-sections-grid .glass-panel {
    padding: 1.8rem 1.2rem !important;
  }
  .faq-form-row,
  .forum-form-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .calc-params-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Cockpit Command Bar & Calculador Táctico */
  .cockpit-command-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0.85rem;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }
  .cockpit-left-group {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
  }
  .cockpit-status-dot-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
  }
  .cockpit-mode-actions,
  .cockpit-left-group > div:last-child {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
  }
  .cockpit-center-group {
    width: 100%;
  }
  .cockpit-param-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }
  .cockpit-select {
    flex: 1;
    max-width: 100% !important;
  }
  .cockpit-daicos-visor {
    width: 100%;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 0.45rem 0.85rem;
  }
  .cockpit-daicos-number {
    font-size: 1.7rem !important;
  }
  .system-filter-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    padding-bottom: 2px;
  }
  .system-filter-tabs::-webkit-scrollbar {
    display: none;
  }
  .system-filter-btn {
    flex-shrink: 0;
  }
  #newQuestionForm button,
  #newThreadForm button {
    width: 100%;
    justify-content: center;
  }
  #newThreadSection {
    padding: 1.5rem 1rem !important;
  }
  .forum-thread-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1.2rem 1rem !important;
  }
  .forum-thread-card > div:last-child {
    align-self: flex-end;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
  }
  .game-title {
    font-size: clamp(1.3rem, 5.5vw, 1.75rem) !important;
    letter-spacing: 1px !important;
    word-break: break-word;
  }
  .lead-box {
    padding: 2.2rem 1.2rem !important;
  }
  .lead-box .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.2rem !important;
  }

  /* 6. Hangar 3D y Facciones */
  .dedicated-title {
    font-size: clamp(1.5rem, 6.5vw, 2.1rem);
  }
  .dedicated-bio {
    padding: 1.2rem 1rem !important;
  }
  .dedicated-bio p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .dedicated-hangar-block {
    margin-top: 2.2rem !important;
    width: 100%;
    box-sizing: border-box;
  }
  .hangar-layout {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    width: 100%;
    box-sizing: border-box;
  }
  .viewer-wrapper {
    min-height: 400px;
    height: auto;
    padding: 0.75rem;
    box-sizing: border-box;
    width: 100%;
  }
  model-viewer {
    height: 320px;
    width: 100%;
  }
  .hud-panel {
    padding: 1.2rem 1rem !important;
    width: 100%;
    box-sizing: border-box;
  }
  .hud-header {
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
  }
  .hud-ship-name {
    font-size: 1.4rem;
    letter-spacing: 1px;
    word-break: break-word;
  }
  .hud-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  .stat-card {
    padding: 0.65rem 0.85rem;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }
  .stat-details {
    min-width: 0;
    flex: 1;
  }
  .stat-label {
    letter-spacing: 1px;
    font-size: 0.65rem;
    white-space: nowrap;
  }
  .stat-val {
    font-size: 1.15rem;
  }
  .hud-tactical-block {
    padding: 0.85rem;
    margin-bottom: 1rem;
  }
  .ship-selector-bar {
    padding: 0.85rem;
    box-sizing: border-box;
    width: 100%;
  }
  .selector-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  /* 7. Barra Inferior Unificada & Panel de Redes en Celulares */
  .footer-fullwidth-inner {
    flex-direction: column;
    padding: 0.35rem 1rem;
    gap: 1rem;
  }
  .footer-social-inline {
    justify-content: center;
  }
  .footer-right-cluster {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.95rem;
  }
  .footer-legal-nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
  }
  .footer-legal-item {
    max-width: 100%;
  }
  .footer-lang-wrap,
  .footer-lang-select {
    width: 100%;
    max-width: 220px;
  }
  .legal-doc-card {
    padding: 1.5rem 1.2rem;
  }
  .privacy-inline-box,
  .privacy-option-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .home-social-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.6rem 1.2rem;
    gap: 1.2rem;
  }
  .home-social-buttons {
    width: 100%;
    justify-content: flex-start;
  }

  /* Banner de Cookies en Celulares */
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
  }
  .cookie-banner-actions {
    width: 100%;
    display: flex;
    gap: 0.5rem;
  }
  .btn-cookie-accept,
  .btn-cookie-reject {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    font-size: 0.72rem;
  }
}

/* --- TABLETS CHICAS Y CELULARES HORIZONTALES (481px a 768px) --- */
@media (min-width: 481px) and (max-width: 768px) {
  .cockpit-left-group {
    flex-direction: row;
  }
}

/* --- CELULARES ESTÁNDAR (<= 480px) --- */
@media (max-width: 480px) {
  .cockpit-left-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .cockpit-mode-actions,
  .cockpit-left-group > div:last-child {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
  }
  .cockpit-mode-actions .mode-switch-btn {
    flex: 1;
    text-align: center;
  }
  #calcLogoutBtn {
    flex-shrink: 0;
  }
  .sellsheet-spec-pill {
    flex: 1 1 100%;
  }
}

/* --- CELULARES MUY ANGOSTOS (<= 380px) --- */
@media (max-width: 380px) {
  .container {
    padding: 0 0.55rem;
  }
  .site-header .container {
    padding: 0 0.5rem;
  }
  .menu-trigger-btn {
    padding: 0.32rem 0.45rem;
    gap: 0.35rem;
  }
  .brand-logo-text {
    font-size: 0.86rem;
  }
  .header-commander-name-link {
    max-width: 95px;
    padding: 0 0.45rem;
  }
  .header-right-action .btn {
    padding: 0.32rem 0.45rem;
    font-size: 0.66rem;
  }
  .hud-panel {
    padding: 1rem 0.75rem !important;
  }
  .game-visual-cards {
    height: 220px;
    max-width: 250px;
  }
  .card-mockup {
    width: 100px;
    height: 142px;
  }
  .card-legendary {
    transform: rotate(-8deg) translateX(-40px);
  }
  .card-planet {
    transform: rotate(0deg) translateX(0) translateY(-4px);
  }
  .card-event {
    transform: rotate(8deg) translateX(40px);
  }
}
