/* Paleta "Medieval Stone" del proyecto Laravel original */
:root {
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;

  --bg-dark: var(--stone-950);
  --bg-deep: var(--stone-900);
  --bg-surface: rgba(41, 37, 36, 0.5);
  --bg-surface-elevated: var(--stone-800);
  --border-subtle: var(--stone-700);
  --border-glow: rgba(248, 183, 0, 0.5);

  --gold-light: #f8b700;
  --gold-primary: #f8b700;
  --gold-dark: #d99f00;

  --life-green: #34d399;

  --text-bright: #f5f5f4;
  --text-main: #e7e5e4;
  --text-muted: #a8a29e;
  --text-dim: #78716c;
  --text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);

  --font-display: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-amber: 0 10px 35px -8px rgba(248, 183, 0, 0.3);
  --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --shadow-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --cursor-arrow: url('../img/cursor-32.png') 0 0, auto;
  --cursor-hand: url('../img/cursor-hand-32.png') 12 2, pointer;
}

html { cursor: var(--cursor-arrow); }
a, button, [role="button"], label, select, summary { cursor: var(--cursor-hand); }

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-dark);
  position: relative;
}

/* Contenedor central */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Enlaces */
a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
a:hover {
  color: #fff;
}

/* =========================================================
   CABECERA Y NAVEGACIÓN
   ========================================================= */
/* Cabecera y pie mantienen la tipografía del sitio aunque la página use otra */
.site-header,
.site-footer {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(12, 10, 9, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

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

/* Icono de Instarworld */
.brand-crest {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

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

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #d6d3d1;
  padding: 6px 0;
  transition: color 0.2s ease;
}

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

.nav-action {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-launcher-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  color: var(--stone-950);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.btn-launcher-nav:hover {
  background: var(--gold-dark);
  color: var(--stone-950);
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--gold-light);
  cursor: var(--cursor-hand);
  padding: 8px;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulseGreen 2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--stone-800);
  background: #000;
  padding: 60px 0 40px;
  position: relative;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-nav a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 30px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.server-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--life-green);
  font-size: 0.8rem;
  font-weight: 600;
}
.language-switch {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.language-switch select {
  max-width: 120px;
  padding: 8px;
  border: 1px solid var(--stone-700);
  border-radius: var(--radius-sm);
  background: var(--stone-900);
  color: var(--gold-light);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: var(--cursor-hand);
  color-scheme: dark;
}
.language-switch select:hover,
.language-switch select:focus-visible {
  color: var(--gold-light);
  border-color: var(--gold-primary);
}

@media (max-width: 1200px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--stone-900);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .nav-action {
    display: none;
  }
}

@media (max-width: 380px) {
  .brand { gap: 8px; }
  .brand-title { font-size: 1.1rem; }
  .language-switch select { max-width: 100px; padding: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
