/* ============================================================
   base.css — estilos compartidos (reset, header, nav, footer)
   Cargado ANTES del CSS por pagina. Generado al deduplicar.
   ============================================================ */

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

html { scroll-behavior: smooth; }

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

.menu-btn {
      display: flex;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: var(--space-2);
      min-width: 44px;
      min-height: 44px;
      align-items: center;
      justify-content: center;
    }

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

.logo-title-img {
      height: 10px;
      width: auto;
      display: block;
      flex-shrink: 0;
    }

.footer-brand { display: flex; flex-direction: column; gap: var(--space-3); }

.footer-langs { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.footer-right { display: flex; flex-direction: column; gap: var(--space-4); }

.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-6); }

/* ── SITE HEADER (dark, unchanged) ── */
    .site-header {
      position: sticky; top: 0; z-index: 200;
      background: rgba(37,37,36,0.95);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--site-border);
    }

.site-header-inner {
      max-width: 1200px; margin-inline: auto;
      padding-inline: clamp(1rem,5vw,2rem);
      display: flex; align-items: center;
      justify-content: space-between;
      gap: var(--space-6); height: 68px;
    }

.logo {
      display: flex; align-items: center; gap: var(--space-3);
      font-family: var(--font-heading); font-size: 0.9rem;
      font-weight: 700; letter-spacing: 0.05em; flex-shrink: 0;
    }

.logo-img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; }

.logo-title-img { height: 10px; width: auto; display: block; }

.site-nav { display: none; align-items: center; gap: var(--space-8); }

.site-nav a { font-size: var(--text-sm); font-weight: 500; color: var(--site-text-muted); transition: color 0.2s; }

.site-nav a:hover, .site-nav a.active { color: var(--site-gold); }

.site-header-right { display: flex; align-items: center; gap: var(--space-3); }

.btn-site-cta {
      display: inline-flex; align-items: center;
      padding: 7px 20px; background: var(--site-gold); color: #1a1a18;
      font-weight: 700; font-size: var(--text-xs); border-radius: var(--radius-full);
      border: none; cursor: pointer; transition: transform 0.2s; min-height: 34px;
    }

.btn-site-cta:hover { transform: translateY(-1px); }

.menu-btn span { display: block; width: 22px; height: 2px; background: #f6f6f6; border-radius: 2px; }

.mobile-nav { display: none; flex-direction: column; background: rgba(37,37,36,0.99); border-top: 1px solid rgba(255,255,255,0.07); }

.mobile-nav a {
      padding: var(--space-4) clamp(1rem,5vw,2rem);
      font-size: var(--text-base); font-weight: 500; color: var(--site-text-muted);
      border-bottom: 1px solid rgba(255,255,255,0.06); transition: color 0.2s;
    }

.mobile-nav a:hover, .mobile-nav a.active { color: var(--site-gold); }

.app-header-inner {
      max-width: 1200px; margin-inline: auto;
      display: flex; align-items: center; gap: var(--space-4);
    }

.app-back:hover { background: rgba(0,0,0,0.2); }

.app-back svg { width: 20px; height: 20px; }

.app-title {
      font-family: var(--font-body); font-size: 1.75rem; font-weight: 700;
      color: #1a1a18; letter-spacing: -0.01em;
    }

/* ── SITE FOOTER ── */
    .site-footer {
      background: #252524;
      border-top: 1px solid rgba(255,255,255,0.07);
      padding-block: var(--space-12);
    }

.site-footer-inner {
      max-width: 1200px; margin-inline: auto;
      padding-inline: clamp(1rem,5vw,2rem);
      display: grid; grid-template-columns: 1fr; gap: var(--space-8);
    }

.footer-tagline { font-size: var(--text-sm); color: var(--site-text-muted); max-width: 280px; }

.footer-lang { font-size: var(--text-xs); color: var(--site-text-muted); padding: 2px 8px; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-full); cursor: pointer; user-select: none; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.footer-lang:hover { color: var(--site-text, #fff); border-color: var(--site-gold); }
.footer-lang.active { color: #1a1a18; background: var(--site-gold); border-color: var(--site-gold); font-weight: 700; }
.footer-lang:focus-visible { outline: 2px solid var(--site-gold); outline-offset: 2px; }

.footer-links a { font-size: var(--text-sm); color: var(--site-text-muted); transition: color 0.2s; }

.footer-links a:hover { color: var(--site-gold); }

.footer-copy { font-size: var(--text-xs); color: var(--site-text-muted); }

:root {
  /* Site nav (dark) */
  --site-bg:         #252524;
  --site-border:     rgba(219,191,109,0.2);
  --site-text-muted: #b2b1ac;
  --site-gold:       #dbbf6d;
  --site-gold-dark:  #c4a44e;

  /* Marketplace (light) */
  --mp-gold:         #dbbf6d;
  --mp-gold-dark:    #c4a44e;
  --mp-bg:           #f5f4f0;
  --mp-card-bg:      #ffffff;
  --mp-card-border:  #e8e7e3;
  --mp-text:         #1a1a18;
  --mp-text-mid:     #555553;
  --mp-text-muted:   #9b9a96;
  --mp-chip-bg:      #ffffff;
  --mp-chip-border:  #d8d7d3;
  --mp-field-bg:     #faf9f6;
  --mp-success:      #2f9e6b;

  --font-heading: 'Orbitron', 'Courier New', monospace;
  --font-body:    'Roboto', system-ui, -apple-system, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-2xl:  1.5rem;

  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-full: 9999px;
}

body { font-family: var(--font-body); background: var(--mp-bg); color: var(--mp-text); line-height: 1.5; overflow-x: hidden; min-height: 100svh; }

@media (max-width: 900px) { .logo-title-img { display: none; } }
@media (min-width: 768px) { .site-nav { display: flex; } }
@media (min-width: 768px) { .menu-btn { display: none; } }
@media (min-width: 768px) { .site-footer-inner { grid-template-columns: 1fr 1fr; align-items: center; } }
@media (min-width: 768px) { .footer-right { align-items: flex-end; } }
