/* ==========================================================================
   75TH RANGERS LATAM — NEXT-GEN TACTICAL UI (CROSSPLAY: PC · XBOX · PS5)
   Paleta Institucional Oficial:
   - BLACK:       #000000
   - SCARLET RED: #D00027
   - WHITE:       #FFFFFF
   ========================================================================== */

:root {
  --black: #000000;
  --bg-base: #040508;
  --bg-alt: rgba(10, 12, 18, 0.78);
  --bg-card: rgba(18, 20, 28, 0.82);
  --bg-card-solid: #11131b;
  --bg-console: rgba(9, 10, 16, 0.78);

  --scarlet: #D00027;
  --scarlet-bright: #ff1744;
  --scarlet-glow: rgba(208, 0, 39, 0.45);
  --scarlet-dark: #880019;
  --white: #FFFFFF;

  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-highlight: rgba(255, 255, 255, 0.22);
  --border-scarlet: rgba(208, 0, 39, 0.65);

  --green-online: #22c55e;
  --discord: #5865f2;
  --discord-hover: #4752c4;

  --text-main: #FFFFFF;
  --text-muted: #b5bcc9;
  --text-dim: #798295;

  --font-display: 'Barlow Condensed', Impact, sans-serif;
  --font-sans: 'Barlow', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.85);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(78px + var(--ex-demo-bar-h, 0px));
}

/* EngineX Studio Demo Top Bar */
#enginex-demo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  background: rgba(10, 9, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.28);
  z-index: 99999;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 10px;
}
#enginex-demo-bar .ex-bar-back {
  color: #e2e8f0;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  white-space: nowrap;
}
#enginex-demo-bar .ex-bar-back:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.75);
}
#enginex-demo-bar .ex-bar-title {
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
#enginex-demo-bar .ex-bar-cta {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(6, 182, 212, 0.24));
  border: 1px solid rgba(168, 85, 247, 0.55);
  color: #f8fafc;
  padding: 3px 11px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}
#enginex-demo-bar .ex-bar-cta:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(6, 182, 212, 0.42));
  border-color: rgba(6, 182, 212, 0.7);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
  color: #ffffff;
}
@media (max-width: 640px) {
  #enginex-demo-bar .ex-bar-title {
    display: none;
  }
}

body {
  background-color: var(--bg-base);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 28px 28px, 112px 112px, 112px 112px;
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body.modal-open {
  overflow: hidden;
}

/* Luces ambientales volumétricas fijas en el fondo para eliminar el vacío negro plano */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.55;
}

.ambient-orb-1 {
  width: 620px;
  height: 620px;
  top: 18%;
  left: -180px;
  background: radial-gradient(circle, rgba(208, 0, 39, 0.16) 0%, transparent 70%);
}

.ambient-orb-2 {
  width: 700px;
  height: 700px;
  top: 52%;
  right: -220px;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.12) 0%, transparent 70%);
}

.ambient-orb-3 {
  width: 680px;
  height: 680px;
  bottom: -180px;
  left: 22%;
  background: radial-gradient(circle, rgba(208, 0, 39, 0.13) 0%, transparent 70%);
}

main,
footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.mono {
  font-family: var(--font-mono);
}

.hidden {
  display: none !important;
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Scroll Reveal suave */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   EFECTO SPOTLIGHT REACTIVO AL CURSOR EN TARJETAS MODERNAS
   ========================================================================== */
.spotlight-card {
  position: relative;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    520px circle at var(--mx, 50%) var(--my, 0%),
    rgba(208, 0, 39, 0.13),
    transparent 42%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.spotlight-card:hover::after {
  opacity: 1;
}

.spotlight-card > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast {
  position: fixed;
  top: calc(88px + var(--ex-demo-bar-h, 0px));
  right: 24px;
  z-index: 2200;
  max-width: 430px;
  background: rgba(12, 13, 20, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-scarlet);
  border-left: 4px solid var(--scarlet-bright);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: 13px 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.45;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.85), 0 0 24px rgba(208, 0, 39, 0.25);
  transform: translateX(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   NAVBAR GLASSMORPHIC MODERNA
   ========================================================================== */
.navbar {
  position: fixed;
  top: var(--ex-demo-bar-h, 0px);
  left: 0;
  right: 0;
  z-index: 950;
  height: 76px;
  background: rgba(4, 5, 9, 0.78);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.navbar::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--scarlet) 22%, var(--scarlet-bright) 50%, var(--scarlet) 78%, transparent 100%);
  opacity: 0.9;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-emblem {
  width: 52px;
  height: 36px;
  filter: drop-shadow(0 4px 12px rgba(208, 0, 39, 0.35));
  transition: transform 0.2s ease;
}

.brand:hover .brand-emblem {
  transform: scale(1.05);
}

.brand-divider {
  width: 1.5px;
  height: 32px;
  background: linear-gradient(180deg, transparent, var(--scarlet), transparent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.34rem;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
}

.brand-sub {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  color: var(--scarlet-bright);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 5px 8px;
  border-radius: 999px;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 13px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--scarlet) 0%, #9e001e 100%);
  box-shadow: 0 4px 14px rgba(208, 0, 39, 0.45);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 17, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-status-pill:hover {
  border-color: var(--scarlet-bright);
  box-shadow: 0 0 16px rgba(208, 0, 39, 0.3);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  background: #64748b;
  flex-shrink: 0;
}

.status-dot.online {
  background: var(--green-online);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
  animation: pulseDot 2s infinite;
}

.status-dot.offline {
  background: var(--scarlet);
  box-shadow: 0 0 8px rgba(208, 0, 39, 0.7);
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.26); opacity: 0.7; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.02rem;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #e3002b 0%, #b30021 100%);
  color: var(--white);
  border-color: rgba(255, 130, 150, 0.38);
  box-shadow: 0 8px 26px rgba(208, 0, 39, 0.42);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff123d 0%, #cc0026 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(208, 0, 39, 0.62);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-outline:hover {
  border-color: var(--scarlet-bright);
  background: rgba(208, 0, 39, 0.16);
  transform: translateY(-1px);
}

.btn-discord-sm {
  background: linear-gradient(135deg, #5865f2 0%, #404eed 100%);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  border-color: rgba(164, 176, 255, 0.4);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
}

.btn-discord-sm:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--white);
}

/* ==========================================================================
   HERO 3D CLEAN-PLATE ESTÁTICO + RAYMARCHING DE ACTORES EN PROFUNDIDAD
   ========================================================================== */
.hero {
  --cam-x: 0;
  --cam-y: 0;
  position: relative;
  min-height: 96vh;
  padding: calc(108px + var(--ex-demo-bar-h, 0px)) 0 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(208, 0, 39, 0.55);
}

.hero-3d-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  background: #040508;
}

/* Respaldo instantáneo previo a hidratación */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 45%;
  filter: contrast(1.04) saturate(1.05);
  transform: none;
}

/* Lienzo GPU: Clean-Plate 100% fijo + actores extraídos con profundidad 3D suave y sin bordes recortados */
.hero-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  opacity: 0;
  filter: contrast(1.04) saturate(1.05);
  transition: opacity 0.45s ease;
}

.hero-3d-canvas.ready {
  opacity: 1;
}

/* Clima dinámico sincronizado con cada escenario de Everon (briznas de viento, nieve, pavesas, lluvia) */
.hero-particles {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  z-index: 3;
  transform: translate3d(calc(var(--cam-x, 0) * -12px), calc(var(--cam-y, 0) * -6px), 0);
  will-change: transform;
  opacity: 0.9;
}

/* Halo quirúrgico central: garantiza lectura nítida en día/atardecer/noche sin tapar los laterales 3D */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    radial-gradient(ellipse 43% 44% at 50% 36%, rgba(4, 6, 12, 0.72) 0%, rgba(4, 6, 12, 0.36) 58%, transparent 100%),
    linear-gradient(180deg, rgba(4, 5, 9, 0.64) 0%, rgba(4, 5, 9, 0.12) 24%, rgba(4, 5, 9, 0.1) 70%, rgba(4, 5, 8, 0.88) 93%, #040508 100%);
}

.hud-corner {
  position: absolute;
  top: calc(90px + var(--ex-demo-bar-h, 0px));
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.84);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 7, 13, 0.74);
  backdrop-filter: blur(10px);
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hud-tl { left: 28px; border-left: 2px solid var(--scarlet-bright); }
.hud-tr { right: 28px; border-right: 2px solid var(--scarlet-bright); }

.hud-live-blink {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--scarlet-bright);
  box-shadow: 0 0 10px var(--scarlet-bright);
  animation: pulseDot 1.6s infinite;
}

.hero-content {
  position: relative;
  z-index: 6;
  text-align: center;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo Institucional 100% ESTÁTICO */
.hero-logo-wrap {
  margin-bottom: 8px;
  transform: none;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.92)) drop-shadow(0 0 28px rgba(208, 0, 39, 0.32));
}

.hero-ranger-tab {
  width: clamp(255px, 38vw, 360px);
  height: auto;
  display: block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 6.5vw, 4.85rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 35%, #d6dce8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.95));
}

.th-sup {
  font-size: 0.54em;
  vertical-align: super;
  margin-right: 2px;
}

.hero-motto-bar {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.motto-line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--scarlet-bright));
  display: inline-block;
}

.motto-line:last-child {
  background: linear-gradient(90deg, var(--scarlet-bright), transparent);
}

.hero-motto {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.26em;
  color: var(--white);
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(208, 0, 39, 0.5);
}

.hero-pillars {
  margin-top: 13px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #e2e7f0;
  background: rgba(8, 9, 15, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--scarlet-bright);
  border-right: 3px solid var(--scarlet-bright);
  border-radius: var(--radius-sm);
  padding: 6px 18px;
}

.pillar-dot {
  width: 4px;
  height: 4px;
  background: var(--scarlet-bright);
  box-shadow: 0 0 6px var(--scarlet-bright);
  border-radius: 50%;
  display: inline-block;
}

.hero-description {
  margin-top: 14px;
  max-width: 710px;
  color: #dbe0ea;
  font-size: 1.02rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   CONSOLA CENTRAL GLASSMORPHIC DE CONEXIÓN + DISCORD A LA PAR
   ========================================================================== */
.connect-console-wrap {
  margin-top: 24px;
  width: 100%;
  max-width: 880px;
}

.connect-console {
  width: 100%;
  background: linear-gradient(165deg, rgba(16, 18, 28, 0.84) 0%, rgba(7, 8, 13, 0.92) 100%);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 2px solid var(--scarlet-bright);
  border-radius: var(--radius-lg);
  padding: 24px 26px 18px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 28px 68px rgba(0, 0, 0, 0.88),
    0 0 44px rgba(208, 0, 39, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.console-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  z-index: 2;
}

.cc-tl { top: 8px; left: 8px; border-top: 2px solid var(--scarlet-bright); border-left: 2px solid var(--scarlet-bright); }
.cc-tr { top: 8px; right: 8px; border-top: 2px solid var(--scarlet-bright); border-right: 2px solid var(--scarlet-bright); }
.cc-bl { bottom: 8px; left: 8px; border-bottom: 2px solid rgba(255, 255, 255, 0.35); border-left: 2px solid rgba(255, 255, 255, 0.35); }
.cc-br { bottom: 8px; right: 8px; border-bottom: 2px solid rgba(255, 255, 255, 0.35); border-right: 2px solid rgba(255, 255, 255, 0.35); }

.console-telemetry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.telemetry-wide {
  flex: 1;
}

.telemetry-label {
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  color: var(--text-muted);
}

.telemetry-value {
  font-size: 0.96rem;
  color: var(--white);
}

.status-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-badge {
  font-size: 0.62rem;
  background: rgba(208, 0, 39, 0.22);
  color: #ffb0be;
  border: 1px solid var(--border-scarlet);
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.demo-badge:hover {
  background: var(--scarlet);
  color: var(--white);
}

.telemetry-divider {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.capacity-bar {
  margin-top: 14px;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.capacity-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--scarlet-dark), var(--scarlet), var(--scarlet-bright));
  box-shadow: 0 0 14px rgba(255, 23, 68, 0.8);
  transition: width 0.5s ease;
}

/* DOBLE BOTÓN PROTAGONISTA A LA PAR */
.dual-cta-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 14px;
}

.hero-cta-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 20px;
  border-radius: var(--radius-md);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, filter 0.22s ease;
}

.hero-cta-card::before,
.hero-cta-card::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  pointer-events: none;
  opacity: 0.85;
}

.hero-cta-card::before {
  top: 8px;
  left: 8px;
  border-top: 2px solid rgba(255, 255, 255, 0.9);
  border-left: 2px solid rgba(255, 255, 255, 0.9);
}

.hero-cta-card::after {
  bottom: 8px;
  right: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  border-right: 2px solid rgba(255, 255, 255, 0.9);
}

.cta-card-connect {
  background: linear-gradient(135deg, #f0002f 0%, #c00024 52%, #7d0017 100%);
  border: 1.5px solid rgba(255, 130, 148, 0.72);
  box-shadow: 0 12px 34px rgba(208, 0, 39, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cta-card-connect:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 18px 44px rgba(208, 0, 39, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cta-card-discord {
  background: linear-gradient(135deg, #4b59eb 0%, #3a46c4 52%, #293396 100%);
  border: 1.5px solid rgba(164, 176, 255, 0.76);
  box-shadow: 0 12px 34px rgba(88, 101, 242, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.cta-card-discord:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 18px 44px rgba(99, 112, 245, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.hero-cta-card:active {
  transform: translateY(0);
}

.btn-connect-glow {
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: skewX(-24deg);
  animation: sheenSweep 4.5s infinite;
  pointer-events: none;
}

@keyframes sheenSweep {
  0% { left: -120%; }
  32%, 100% { left: 160%; }
}

.cta-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.cta-icon-discord {
  background: rgba(12, 15, 38, 0.58);
  border-color: rgba(185, 195, 255, 0.34);
}

.cta-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.cta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.cta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-online);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.95);
  flex-shrink: 0;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(1.42rem, 2.4vw, 1.84rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}

.cta-sub {
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.84);
  margin-top: 5px;
  text-transform: uppercase;
}

.cta-arrow {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cta-card-connect:hover .cta-arrow {
  transform: translateX(4px);
}

.cta-card-discord:hover .cta-arrow {
  transform: translate(3px, -3px);
}

.quick-pills {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.73rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.quick-pill strong {
  color: var(--white);
}

.quick-pill .pill-action {
  color: #ff4d6d;
  font-weight: 700;
}

.quick-pill:hover {
  border-color: var(--scarlet-bright);
  background: rgba(208, 0, 39, 0.16);
  transform: translateY(-1px);
}

.pc-spec-strip {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  color: var(--text-dim);
}

/* Selector Táctico de Escenarios 3D en Rotación Automática */
.hero-scene-switcher {
  margin-top: 16px;
  width: 100%;
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.hero-scene-switcher.hidden {
  display: none;
}

.scene-pill {
  --scene-progress: 0%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 9px 12px 11px;
  background: rgba(8, 10, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease, color 0.22s ease;
}

.scene-pill:hover {
  background: rgba(18, 21, 33, 0.86);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
  transform: translateY(-1px);
}

.scene-pill.active {
  background: linear-gradient(160deg, rgba(32, 9, 16, 0.88) 0%, rgba(10, 12, 19, 0.92) 100%);
  border-color: rgba(255, 34, 68, 0.72);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 18px rgba(208, 0, 39, 0.22);
}

.scene-pill-top {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.scene-pill-code {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: #ff4d6d;
  letter-spacing: 0.08em;
}

.scene-pill-label {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.scene-pill-loc {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(214, 220, 232, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.scene-pill-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2.5px;
  width: var(--scene-progress);
  background: linear-gradient(90deg, var(--scarlet) 0%, #ff4d6d 100%);
  box-shadow: 0 0 8px rgba(255, 42, 75, 0.8);
  opacity: 0;
}

.scene-pill.active .scene-pill-progress {
  opacity: 1;
}

/* ==========================================================================
   BANNER DE PRÓXIMA OPERACIÓN + CUENTA ATRÁS DIGITAL
   ========================================================================== */
.next-op-bar {
  position: relative;
  background: linear-gradient(90deg, #090a10 0%, #12060a 50%, #090a10 100%);
  border-bottom: 1px solid rgba(208, 0, 39, 0.35);
  padding: 26px 0;
  overflow: hidden;
}

.banner-slashes {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 68px;
  pointer-events: none;
  opacity: 0.9;
}

.banner-slashes-left {
  left: -18px;
  background: linear-gradient(
    90deg,
    var(--scarlet) 0 28px,
    transparent 28px 36px,
    var(--scarlet) 36px 46px,
    transparent 46px
  );
  transform: skewX(-20deg);
}

.banner-slashes-right {
  right: -18px;
  background: linear-gradient(
    -90deg,
    var(--scarlet) 0 28px,
    transparent 28px 36px,
    var(--scarlet) 36px 46px,
    transparent 46px
  );
  transform: skewX(20deg);
}

.next-op-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.next-op-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.op-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--scarlet) 0%, #9b001d 100%);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(208, 0, 39, 0.45);
}

.op-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  animation: pulseDot 1.4s infinite;
}

.op-sep {
  color: var(--scarlet-bright);
  font-weight: 700;
}

.next-op-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
}

.next-op-summary {
  font-size: 0.93rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-top: 2px;
}

.next-op-countdown-wrap {
  flex-shrink: 0;
  text-align: right;
}

.countdown-caption {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: #ff4d6d;
  margin-bottom: 6px;
  font-weight: 700;
}

.countdown-boxes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 7, 12, 0.92);
  border: 1px solid rgba(208, 0, 39, 0.65);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7), 0 0 22px rgba(208, 0, 39, 0.18);
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  padding: 4px 6px;
}

.cd-unit strong {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--white);
  text-shadow: 0 0 14px rgba(208, 0, 39, 0.45);
}

.cd-unit span {
  font-size: 0.56rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.cd-colon {
  color: var(--scarlet-bright);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.countdown-target-label {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ==========================================================================
   SECCIONES GENERALES CON MARCA DE AGUA TÁCTICA GIGANTE (01..07)
   ========================================================================== */
.section {
  padding: 96px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(11, 13, 20, 0.86) 0%, rgba(7, 8, 13, 0.9) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.section-header {
  position: relative;
  max-width: 780px;
  margin-bottom: 48px;
  padding-top: 6px;
}

.section-header[data-watermark]::before {
  content: attr(data-watermark);
  position: absolute;
  top: -34px;
  left: -8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.6rem, 8vw, 7rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.section-header > * {
  position: relative;
  z-index: 1;
}

.compact-header {
  margin-bottom: 28px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: #ff4d6d;
  background: rgba(208, 0, 39, 0.12);
  border: 1px solid rgba(208, 0, 39, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
}

.section-lead {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 1.03rem;
}

/* ==========================================================================
   MISIONES Y BANNER TÁCTICO MODERNO
   ========================================================================== */
.missions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.mission-card {
  background: linear-gradient(165deg, rgba(22, 25, 36, 0.88) 0%, rgba(11, 12, 18, 0.95) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--scarlet);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.mission-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.24);
  border-top-color: var(--scarlet-bright);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.78), 0 0 30px rgba(208, 0, 39, 0.16);
}

.mission-card-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mission-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(208, 0, 39, 0.14);
  border: 1px solid rgba(208, 0, 39, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4d6d;
  box-shadow: 0 0 18px rgba(208, 0, 39, 0.2);
}

.mission-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.06em;
}

.mission-tag {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  color: #ff4d6d;
  font-weight: 700;
}

.mission-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.56rem;
  text-transform: uppercase;
  margin-top: 6px;
  line-height: 1.1;
}

.mission-sub {
  font-size: 0.86rem;
  color: var(--white);
  font-weight: 600;
  margin-top: 5px;
  opacity: 0.9;
}

.mission-desc {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.mission-highlights {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mission-highlights li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mission-highlights li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--scarlet-bright);
  box-shadow: 0 0 8px var(--scarlet-bright);
  flex-shrink: 0;
}

.feature-banner {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1.08fr 1.18fr;
  background: linear-gradient(135deg, rgba(16, 18, 26, 0.95) 0%, rgba(8, 9, 14, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--scarlet-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.feature-banner-media {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}

.feature-banner-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.feature-banner:hover .feature-banner-img {
  transform: scale(1.05);
}

.feature-banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(11, 12, 18, 0.95) 100%);
  pointer-events: none;
}

.feature-platform-chips {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-platform-chips span {
  background: rgba(5, 6, 10, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.67rem;
  color: var(--white);
}

.feature-banner-body {
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-banner-body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.95rem;
  text-transform: uppercase;
  line-height: 1.08;
  margin-bottom: 12px;
}

.feature-banner-body p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.feature-checks {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.feature-checks li {
  font-size: 0.93rem;
  color: var(--white);
  padding-left: 24px;
  position: relative;
}

.feature-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ff4d6d;
  font-weight: 700;
}

.feature-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   SECCIÓN 8 DEL MANUAL: DISTINTIVOS POR UNIDADES (CON RELIEVE Y PROFUNIDAD)
   ========================================================================== */
.units-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.unit-card {
  background: linear-gradient(170deg, rgba(22, 24, 35, 0.9) 0%, rgba(10, 11, 16, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.unit-card:hover {
  transform: translateY(-6px);
  border-color: var(--scarlet-bright);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.82), 0 0 28px rgba(208, 0, 39, 0.2);
}

/* Parche bordado táctico 3D (Negro #000000 + Marco Scarlet Red #D00027 + Blanco) */
.unit-patch-badge {
  background:
    repeating-linear-gradient(-45deg, #050507 0 3px, #0c0c10 3px 6px);
  border: 3px solid var(--scarlet);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    0 10px 24px rgba(0, 0, 0, 0.78),
    0 0 18px rgba(208, 0, 39, 0.22);
  padding: 12px 14px;
  text-align: center;
  margin-bottom: 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.unit-card:hover .unit-patch-badge {
  transform: scale(1.03);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.22),
    0 12px 28px rgba(0, 0, 0, 0.88),
    0 0 26px rgba(208, 0, 39, 0.42);
}

.unit-patch-badge span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.48rem;
  letter-spacing: 0.09em;
  color: var(--white);
  text-transform: uppercase;
  display: block;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.unit-role-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: #ff4d6d;
  margin-bottom: 6px;
}

.unit-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--white);
}

.unit-card p {
  font-size: 0.91rem;
  color: var(--text-muted);
}

/* ==========================================================================
   GALERÍA BENTO ASIMÉTRICA CON VISOR DE CÁMARA TÁCTICA (DRONE / NVG HUD)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.gallery-card {
  grid-column: span 6;
  position: relative;
  min-height: 310px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: var(--black);
  cursor: pointer;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Distribución Bento moderna: 7+5 arriba y 5+7 abajo */
.gallery-card:nth-child(4n + 1),
.gallery-card:nth-child(4n + 4) {
  grid-column: span 7;
}

.gallery-card:nth-child(4n + 2),
.gallery-card:nth-child(4n + 3) {
  grid-column: span 5;
}

.gallery-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.06) contrast(1.06);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--scarlet-bright);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.85), 0 0 28px rgba(208, 0, 39, 0.24);
}

.gallery-card:hover img {
  transform: scale(1.07);
  filter: brightness(1.16) contrast(1.08);
}

.gallery-hud-top {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.gallery-cam-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(5, 6, 10, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #e2e8f0;
}

.gallery-cam-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--scarlet-bright);
  box-shadow: 0 0 8px var(--scarlet-bright);
}

.gallery-zoom-pill {
  background: rgba(208, 0, 39, 0.85);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.gallery-card:hover .gallery-zoom-pill {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 28%, rgba(4, 5, 10, 0.94) 100%);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-cat {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: #ff4d6d;
  font-weight: 700;
  margin-bottom: 4px;
}

.gallery-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.46rem;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.08;
}

.gallery-card p {
  font-size: 0.86rem;
  color: #d1d5db;
  margin-top: 4px;
}

/* ==========================================================================
   HORARIOS MULTI-PAÍS LATAM (SELECTOR MODERNO + FILAS GLASS)
   ========================================================================== */
.tz-selector {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  background: rgba(14, 16, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 7px;
  border-radius: var(--radius-lg);
}

.tz-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 9px 15px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tz-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.tz-btn.active {
  background: linear-gradient(135deg, var(--scarlet) 0%, #9b001d 100%);
  border-color: rgba(255, 130, 150, 0.4);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(208, 0, 39, 0.38);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schedule-row {
  background: linear-gradient(165deg, rgba(22, 24, 35, 0.85) 0%, rgba(12, 13, 20, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 4px solid var(--scarlet-bright);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 190px 1fr auto auto;
  align-items: center;
  gap: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.schedule-row:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.22);
  border-left-color: var(--scarlet-bright);
}

.sched-days {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.24rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sched-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
}

.sched-duration {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sched-time-box {
  text-align: right;
  background: rgba(5, 6, 10, 0.9);
  border: 1px solid rgba(208, 0, 39, 0.38);
  border-radius: var(--radius-sm);
  padding: 8px 15px;
  min-width: 164px;
}

.sched-time {
  font-family: var(--font-mono);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}

.sched-dayshift {
  font-size: 0.7rem;
  color: #ff8fa3;
  margin-left: 4px;
}

.sched-tz-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
}

.sched-badge {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(208, 0, 39, 0.16);
  border: 1px solid var(--border-scarlet);
  color: var(--white);
}

kbd {
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 2px solid var(--scarlet);
  border-radius: 3px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  display: inline-block;
}

/* ==========================================================================
   MODS & WORKSHOP (CON ICONOS TÁCTICOS Y CHIPS DE VERIFICACIÓN)
   ========================================================================== */
.workshop-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.ws-stat {
  background: linear-gradient(165deg, rgba(20, 22, 32, 0.9) 0%, rgba(10, 11, 16, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--scarlet-bright);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.ws-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(208, 0, 39, 0.14);
  border: 1px solid rgba(208, 0, 39, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4d6d;
  flex-shrink: 0;
}

.ws-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.ws-stat strong {
  font-size: 0.96rem;
  color: var(--white);
}

.mods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.mod-card {
  background: linear-gradient(165deg, rgba(22, 24, 35, 0.88) 0%, rgba(11, 12, 18, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.mod-card:hover {
  transform: translateY(-4px);
  border-color: rgba(208, 0, 39, 0.55);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.75), 0 0 24px rgba(208, 0, 39, 0.16);
}

.mod-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mod-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(208, 0, 39, 0.14);
  border: 1px solid rgba(208, 0, 39, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4d6d;
}

.mod-sync-pill {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 3px 9px;
  border-radius: 999px;
}

.mod-cat {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  color: #ff4d6d;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mod-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.36rem;
  text-transform: uppercase;
  margin: 5px 0 8px;
}

.mod-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   DUAL ACCORDIONS ANIMADOS: ROE + FAQ
   ========================================================================== */
.dual-accordions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.rules-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-item {
  background: linear-gradient(165deg, rgba(20, 22, 32, 0.88) 0%, rgba(11, 12, 18, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.rule-item.open {
  border-color: var(--border-scarlet);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(208, 0, 39, 0.14);
}

.rule-trigger {
  width: 100%;
  padding: 17px 20px;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.rule-trigger:hover {
  color: #ffb0be;
}

.rule-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(208, 0, 39, 0.14);
  border: 1px solid rgba(208, 0, 39, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  color: #ff4d6d;
  font-size: 1.05rem;
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.rule-item.open .rule-chevron {
  transform: rotate(45deg);
  background: var(--scarlet);
  color: var(--white);
}

.rule-body {
  display: none;
  padding: 14px 20px 18px;
  color: var(--text-muted);
  font-size: 0.93rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rule-item.open .rule-body {
  display: block;
}

/* ==========================================================================
   ALISTAMIENTO + PANEL DISCORD OFICIAL + FORMULARIO CROSSPLAY
   ========================================================================== */
.enlist-layout {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 44px;
  align-items: start;
}

.enlist-shield-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 6px;
}

.enlist-shield {
  width: 70px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 24px rgba(208, 0, 39, 0.28));
}

.enlist-intro-copy {
  color: var(--text-muted);
  margin-top: 12px;
  margin-bottom: 22px;
}

/* PANEL CENTRAL DE COMUNICACIONES DISCORD (DISEÑO EXACTO SELECCIONADO POR GUD) */
.discord-command-panel {
  background: linear-gradient(180deg, #0f142b 0%, #090c1a 100%);
  border: 1px solid rgba(105, 118, 245, 0.42);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
  margin-bottom: 26px;
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.8),
    0 0 36px rgba(88, 101, 242, 0.16),
    inset 0 1px 0 rgba(164, 176, 255, 0.15);
}

.dcp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: #b7c2ff;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.dcp-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 2.4vw, 1.72rem);
  line-height: 1.08;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.dcp-desc {
  color: #b4bccd;
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0 0 20px;
}

.discord-hud-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #4b59eb 0%, #3b47c6 52%, #2b359e 100%);
  border: 1.5px solid rgba(168, 180, 255, 0.78);
  box-shadow: 0 0 30px rgba(88, 101, 242, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  color: var(--white);
  transition: transform 0.2s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.discord-hud-cta::before,
.discord-hud-cta::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.discord-hud-cta::before {
  top: 7px;
  left: 7px;
  border-top: 2px solid rgba(255, 255, 255, 0.92);
  border-left: 2px solid rgba(255, 255, 255, 0.92);
}

.discord-hud-cta::after {
  bottom: 7px;
  right: 7px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.92);
  border-right: 2px solid rgba(255, 255, 255, 0.92);
}

.discord-hud-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 0 42px rgba(99, 112, 245, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.discord-hud-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(12, 15, 38, 0.58);
  border: 1px solid rgba(190, 200, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.discord-hud-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.discord-hud-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(230, 234, 255, 0.9);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.discord-hud-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.38rem, 2.2vw, 1.68rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--white);
}

.discord-hud-sub {
  font-size: 0.65rem;
  letter-spacing: 0.09em;
  color: rgba(230, 234, 255, 0.85);
  text-transform: uppercase;
  margin-top: 4px;
}

.discord-hud-arrow {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.discord-hud-cta:hover .discord-hud-arrow {
  transform: translate(3px, -3px);
}

.enlist-perks {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 12px;
}

.perk-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.perk-num {
  padding: 6px 10px;
  background: rgba(208, 0, 39, 0.14);
  border: 1px solid var(--border-scarlet);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
}

.perk-item h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.perk-item p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--text-muted);
}

.enlist-card {
  background: linear-gradient(165deg, rgba(22, 24, 35, 0.92) 0%, rgba(10, 11, 16, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 4px solid var(--scarlet-bright);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-lg);
}

.enlist-card-header span {
  font-size: 0.68rem;
  color: #ff4d6d;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.enlist-card-header h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  text-transform: uppercase;
  margin-top: 4px;
  margin-bottom: 20px;
}

.enlist-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-row-3 {
  grid-template-columns: 1.55fr 0.72fr 0.72fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(5, 6, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 0.91rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--scarlet-bright);
  box-shadow: 0 0 0 3px rgba(208, 0, 39, 0.2);
}

.form-footnote {
  font-size: 0.71rem;
  color: var(--text-dim);
  text-align: center;
}

/* ==========================================================================
   BARRA FLOTANTE STICKY DE CONEXIÓN RÁPIDA
   ========================================================================== */
.sticky-connect-bar {
  position: fixed;
  bottom: 20px;
  right: 24px;
  z-index: 900;
  background: rgba(8, 9, 15, 0.9);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(208, 0, 39, 0.65);
  border-radius: 999px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.88), 0 0 24px rgba(208, 0, 39, 0.22);
  padding: 9px 14px 9px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.sticky-connect-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--white);
}

.sticky-sep {
  color: var(--scarlet-bright);
}

.sticky-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sticky-actions .btn {
  border-radius: 999px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 44px 0 96px;
  background: rgba(4, 5, 8, 0.96);
  border-top: 2px solid var(--scarlet);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 660px;
}

.footer-emblem {
  width: 56px;
  height: auto;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1.12rem;
  text-transform: uppercase;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 3px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--white);
}

.btn-template-help {
  background: rgba(208, 0, 39, 0.14);
  border: 1px solid var(--border-scarlet);
  color: var(--white);
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-template-help:hover {
  background: var(--scarlet);
  box-shadow: 0 0 20px rgba(208, 0, 39, 0.45);
}

/* ==========================================================================
   MODALS & LIGHTBOX
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: rgba(2, 3, 7, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: calc(20px + var(--ex-demo-bar-h, 0px)) 20px 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 620px;
  background: #0d0f17;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 4px solid var(--scarlet-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-dialog-wide {
  max-width: 680px;
}

.modal-dialog-xl {
  max-width: 830px;
}

.modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.modal-tab {
  flex: 1;
  min-width: 165px;
  background: #141722;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s ease;
}

.modal-tab:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
}

.modal-tab.active {
  background: linear-gradient(135deg, var(--scarlet) 0%, #9b001d 100%);
  border-color: rgba(255, 130, 150, 0.45);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(208, 0, 39, 0.35);
}

.connect-tab-pane,
.admin-tab-pane {
  display: none;
}

.connect-tab-pane.active,
.admin-tab-pane.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.console-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 4px 0 10px;
}

.console-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #131621;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--scarlet-bright);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.console-step-num {
  padding: 4px 9px;
  background: var(--black);
  border: 1px solid var(--scarlet);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.console-step strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 3px;
}

.console-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-header {
  padding: 22px 26px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  text-transform: uppercase;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--white);
}

.modal-body {
  padding: 24px 26px 28px;
}

.copy-banner {
  background: #07080d;
  border: 1px solid var(--border-scarlet);
  border-radius: var(--radius-md);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.copy-banner-label {
  display: block;
  font-size: 0.67rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.copy-banner-value {
  font-size: 1.12rem;
  color: var(--white);
}

.steam-launch-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0;
}

.launch-option-card {
  display: block;
  background: #131622;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s ease;
}

.launch-option-card:hover {
  border-color: var(--white);
  background: #191d2c;
  transform: translateY(-2px);
}

.launch-option-card.primary-launch {
  background: linear-gradient(135deg, rgba(208, 0, 39, 0.2), rgba(19, 22, 34, 0.96));
  border-color: var(--scarlet-bright);
}

.launch-tag {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: #ff8fa3;
  font-weight: 700;
  margin-bottom: 4px;
}

.launch-option-card strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.24rem;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}

.launch-option-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.launch-option-card code,
.shortcut-helper code,
.admin-intro code,
.admin-hosting-tip code {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.shortcut-helper {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.shortcut-title {
  display: block;
  font-size: 0.88rem;
  color: var(--white);
}

.shortcut-helper p {
  font-size: 0.79rem;
  color: var(--text-muted);
}

.modal-server-name {
  font-size: 0.73rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 8px;
}

.modal-server-name span {
  color: var(--text-muted);
}

/* Lightbox */
.lightbox-backdrop {
  background: rgba(2, 3, 6, 0.94);
}

.lightbox-dialog {
  position: relative;
  width: 100%;
  max-width: 1060px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-figure {
  width: 100%;
  background: #080a10;
  border: 1px solid var(--scarlet-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.9);
}

.lightbox-figure img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  display: block;
  background: var(--black);
}

.lightbox-caption {
  padding: 16px 22px;
  border-top: 1px solid var(--border-subtle);
}

.lightbox-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #ff4d6d;
  font-weight: 700;
  margin-bottom: 4px;
}

.lightbox-caption h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.38rem;
  text-transform: uppercase;
}

.lightbox-caption p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  background: rgba(6, 7, 12, 0.88);
  border: 1px solid var(--scarlet-bright);
  border-radius: 50%;
  color: var(--white);
  width: 46px;
  height: 46px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

.lightbox-nav:hover {
  background: var(--scarlet);
  transform: translateY(-50%) scale(1.06);
}

/* Admin Configurator */
.admin-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.inline-input-btn {
  display: flex;
  gap: 8px;
}

.inline-input-btn input {
  flex: 1;
  min-width: 0;
}

.bm-test-result {
  font-size: 0.76rem;
  min-height: 18px;
  color: #ff8fa3;
}

.admin-box-highlight {
  background: rgba(208, 0, 39, 0.06);
  border: 1px solid rgba(208, 0, 39, 0.35);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-sub-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #ff4d6d;
  font-weight: 700;
}

.admin-sub-note {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.admin-sub-note code {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.file-upload-btn {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  white-space: nowrap;
}

.hidden-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-gallery-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}

.admin-gal-item {
  background: #131622;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-gal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-gal-header span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #ff4d6d;
  font-weight: 700;
}

.admin-gal-thumb {
  width: 58px;
  height: 34px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  background: var(--black);
}

.admin-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.admin-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-hosting-tip {
  margin-top: 18px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--scarlet-bright);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1120px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    background: rgba(7, 8, 14, 0.96);
    backdrop-filter: blur(20px);
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(208, 0, 39, 0.45);
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .hud-corner,
  .banner-slashes {
    display: none;
  }

  .hero-scene-switcher {
    grid-template-columns: repeat(2, 1fr);
  }

  .next-op-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .next-op-countdown-wrap {
    text-align: left;
  }

  .units-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .missions-grid,
  .dual-accordions,
  .enlist-layout {
    grid-template-columns: 1fr;
  }

  .feature-banner {
    grid-template-columns: 1fr;
  }

  .feature-banner-media {
    min-height: 240px;
  }

  .schedule-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sched-time-box {
    text-align: left;
    width: fit-content;
  }

  .sched-badge {
    width: fit-content;
  }
}

@media (max-width: 860px) {
  .dual-cta-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card,
  .gallery-card:nth-child(4n + 1),
  .gallery-card:nth-child(4n + 2),
  .gallery-card:nth-child(4n + 3),
  .gallery-card:nth-child(4n + 4) {
    grid-column: span 12;
  }

  .workshop-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .console-telemetry {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .telemetry-divider {
    display: none;
  }

  .units-grid,
  .mods-grid,
  .form-row,
  .form-row-3,
  .admin-gallery-editor {
    grid-template-columns: 1fr;
  }

  .hero-cta-card,
  .discord-hud-cta {
    padding: 16px;
    gap: 12px;
  }

  .discord-command-panel {
    padding: 20px 18px;
  }

  .cta-card-icon,
  .discord-hud-icon {
    width: 44px;
    height: 44px;
  }

  .shortcut-helper {
    flex-direction: column;
    align-items: flex-start;
  }

  .sticky-connect-bar {
    left: 14px;
    right: 14px;
    bottom: 14px;
    border-radius: var(--radius-lg);
    justify-content: space-between;
  }

  #sticky-ip {
    display: none;
  }
}
