/* ==========================================================================
   THE REPUBLIC — SITIO WEB OFICIAL Y PORTAL DE DESCARGAS
   Fiel a la estética cinemática y pixel-perfect del Launcher
   ========================================================================== */

@font-face {
  font-family: 'Minecraft';
  src: url('fonts/Minecraft.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Minecraft';
  src: url('fonts/Minecraft-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

:root {
  --font-mc: 'Minecraft', 'Segoe UI', monospace;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --gold-primary: #f5b842;
  --gold-glow: rgba(245, 184, 66, 0.5);
  --gold-hover: #ffd066;
  
  --green-mc-top: #44ce36;
  --green-mc-mid: #2ea423;
  --green-mc-bot: #1e7516;
  --green-mc-border-light: #7bfb70;
  --green-mc-border-dark: #13530c;
  --green-glow: rgba(68, 206, 54, 0.45);

  --stone-top: #787878;
  --stone-mid: #555555;
  --stone-bot: #3a3a3a;
  --stone-border-light: #9c9c9c;
  --stone-border-dark: #222222;

  --wood-top: #9d6438;
  --wood-mid: #7d4e28;
  --wood-bot: #5d3819;
  --wood-border-light: #be804c;
  --wood-border-dark: #3d230d;

  --discord-blurple: #5865F2;
  --discord-hover: #4752c4;

  --dark-glass: rgba(14, 16, 22, 0.85);
  --dark-glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0b0c10;
  color: #ffffff;
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
}

/* ------------------------------------------------ Fondo Fijo Cinemático */
.web-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("assets/background.jpg") center center / cover no-repeat;
  filter: brightness(0.95);
}

.web-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 12, 16, 0.65) 0%,
    rgba(10, 12, 16, 0.25) 30%,
    rgba(10, 12, 16, 0.75) 60%,
    rgba(10, 12, 16, 0.98) 100%
  );
  pointer-events: none;
}

/* ------------------------------------------------ Barra de Navegación */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 36px;
  background: rgba(10, 12, 16, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand-img {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  background: rgba(18, 22, 30, 0.6);
  padding: 8px 26px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-links a {
  font-family: var(--font-mc);
  font-size: 14px;
  letter-spacing: 1px;
  color: #f1f5f9;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  transition: color 0.15s, text-shadow 0.15s;
}

.nav-links a:hover {
  color: var(--gold-hover);
  text-shadow: 0 0 10px var(--gold-glow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-nav-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--discord-blurple);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.45);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-nav-discord:hover {
  background: var(--discord-hover);
  transform: scale(1.08);
}

/* ------------------------------------------------ Hero Section (Estilo Launcher) */
.hero-launcher-section {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 48px 40px 48px;
  position: relative;
}

.hero-middle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  padding: 30px 0;
}

/* Columna Izquierda */
.hero-left-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
  min-height: 280px;
}

/* Botón Minecraft Madera */
.btn-wood-sign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: linear-gradient(180deg, var(--wood-top) 0%, var(--wood-mid) 50%, var(--wood-bot) 100%);
  border: 3px solid #231206;
  box-shadow:
    inset 3px 3px 0 var(--wood-border-light),
    inset -3px -3px 0 var(--wood-border-dark),
    0 8px 18px rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-family: var(--font-mc);
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 #211207;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.1s, filter 0.15s;
}

.btn-wood-sign:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.btn-discord-square {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--discord-blurple);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: white;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-discord-square:hover {
  background: var(--discord-hover);
  transform: scale(1.08);
}

/* Columna Derecha */
.hero-right-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  height: 100%;
  min-height: 280px;
  gap: 18px;
}

.server-status-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 20, 16, 0.85);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 12px;
  padding: 10px 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: border-color 0.2s;
}

.server-status-pill:hover {
  border-color: rgba(74, 222, 128, 0.7);
}

.status-icon-badge {
  width: 24px;
  height: 24px;
  background: #15803d;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.status-text {
  font-family: var(--font-mc);
  font-size: 15px;
  color: #4ade80;
  text-shadow: 0 0 6px rgba(74, 222, 128, 0.4);
}

.discord-community-card {
  background: rgba(20, 24, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
  text-decoration: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.discord-community-card:hover {
  transform: translateY(-3px);
  border-color: rgba(88, 101, 242, 0.5);
  box-shadow: 0 12px 28px rgba(88, 101, 242, 0.3);
}

.discord-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
}

.discord-card-avatars {
  display: flex;
  align-items: center;
}

.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #1e2433;
  margin-left: -8px;
  object-fit: cover;
  background: #2a3346;
}

.avatar-circle:first-child {
  margin-left: 0;
}

.btn-x-square {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(14, 16, 20, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: white;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-x-square:hover {
  background: #000;
  transform: scale(1.08);
}

/* ------------------------------------------------ Barra de Descarga Central */
.hero-bottom-action-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.action-buttons-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Botón Minecraft Piedra */
.btn-stone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 54px;
  padding: 0 26px;
  background: linear-gradient(180deg, var(--stone-top) 0%, var(--stone-mid) 50%, var(--stone-bot) 100%);
  border: 3px solid #161616;
  box-shadow:
    inset 3px 3px 0 var(--stone-border-light),
    inset -3px -3px 0 var(--stone-border-dark),
    0 8px 18px rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-family: var(--font-mc);
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 #181818;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.1s, filter 0.15s;
}

.btn-stone:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

/* Botón Minecraft Esmeralda "DESCARGAR" */
.btn-emerald-download {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 290px;
  height: 66px;
  padding: 6px 36px;
  background: linear-gradient(180deg, var(--green-mc-top) 0%, var(--green-mc-mid) 50%, var(--green-mc-bot) 100%);
  border: 3px solid #0b2e07;
  box-shadow:
    inset 3px 3px 0 var(--green-mc-border-light),
    inset -3px -3px 0 var(--green-mc-border-dark),
    0 0 25px var(--green-glow),
    0 10px 22px rgba(0, 0, 0, 0.8);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.1s, filter 0.15s, box-shadow 0.2s;
}

.btn-emerald-download:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow:
    inset 3px 3px 0 var(--green-mc-border-light),
    inset -3px -3px 0 var(--green-mc-border-dark),
    0 0 35px rgba(68, 206, 54, 0.7),
    0 12px 26px rgba(0, 0, 0, 0.85);
}

.btn-emerald-download .btn-main-label {
  font-family: var(--font-mc);
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 #0d3809;
}

.btn-emerald-download .btn-sub-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.9;
  text-shadow: 0 1px 3px #000;
}

.hero-specs-pill {
  font-family: var(--font-mc);
  font-size: 13px;
  color: #cbd5e1;
  background: rgba(14, 16, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 18px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

/* ------------------------------------------------ Secciones de Contenido */
.section-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title-box {
  text-align: center;
  margin-bottom: 48px;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-mc);
  font-size: 13px;
  color: var(--gold-primary);
  background: rgba(245, 184, 66, 0.15);
  border: 1px solid rgba(245, 184, 66, 0.3);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-mc);
  font-size: 32px;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.section-desc {
  font-size: 16px;
  color: #94a3b8;
  max-width: 680px;
  margin: 12px auto 0 auto;
  line-height: 1.6;
}

/* ------------------------------------------------ Control de Versiones */
.versions-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.version-card {
  background: rgba(18, 22, 32, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.version-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.version-tag-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.version-badge-tag {
  font-family: var(--font-mc);
  font-size: 14px;
  background: var(--gold-primary);
  color: #121008;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 6px;
}

.version-badge-stable {
  font-size: 12px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 8px;
  border-radius: 6px;
}

.version-date {
  font-size: 13px;
  color: #64748b;
}

.version-downloads {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-download-artifact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #1f2638;
  border: 1px solid #333f5c;
  color: #f1f5f9;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.15s;
}

.btn-download-artifact:hover {
  background: #2a344d;
  border-color: var(--gold-primary);
  color: var(--gold-hover);
}

.version-sha-box {
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ------------------------------------------------ Grid de Características del SMP */
.smp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: rgba(18, 22, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 26px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-glow);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(245, 184, 66, 0.12);
  border: 1px solid rgba(245, 184, 66, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--gold-primary);
}

.feature-title {
  font-family: var(--font-mc);
  font-size: 18px;
  color: var(--gold-primary);
  letter-spacing: 0.5px;
}

.feature-desc {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
}

/* ------------------------------------------------ Tarjetas de la Constitución */
.constitution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.constitution-card {
  background: rgba(24, 18, 16, 0.85);
  border: 1px solid rgba(180, 120, 60, 0.25);
  border-radius: 12px;
  padding: 22px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.constitution-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-primary);
}

.rule-number {
  font-family: var(--font-mc);
  font-size: 13px;
  color: var(--gold-primary);
  font-weight: bold;
}

.rule-title {
  font-family: var(--font-mc);
  font-size: 15px;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.rule-desc {
  font-size: 13px;
  color: #d1d5db;
  line-height: 1.5;
}

/* ------------------------------------------------ Footer */
.web-footer {
  background: rgba(8, 10, 14, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 24px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Toast flotante para copiar IP */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10b981;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
}
