/* =====================================================
   PIKORA — Shared styles (navbar, footer, i18n, base)
===================================================== */

:root {
  --bg: #0a0613;
  --bg-soft: #140b1f;
  --surface: #1a1028;
  --purple: #b37bff;
  --purple-light: #c99dff;
  --purple-dark: #8b5cf6;
  --pink: #ec4899;
  --gold: #fbbf24;
  --text: #f5f5f7;
  --muted: #a8a3b5;
  --border: rgba(179, 123, 255, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/* Background orbs */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(100px);
}
body::before {
  top: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: rgba(168, 85, 247, 0.25);
}
body::after {
  bottom: -300px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: rgba(236, 72, 153, 0.18);
}

/* ═══ NAVBAR ═══ */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(10, 6, 19, 0.75);
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.nav-logo {
  height: 38px;
  width: 38px;
  border-radius: 10px;
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.4));
  transition: filter 0.2s, transform 0.2s;
}

.nav-brand:hover .nav-logo {
  filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.7));
  transform: scale(1.05);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  display: inline-flex;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 5px 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn:hover { color: var(--text); }

.lang-btn.active {
  background: linear-gradient(90deg, var(--purple-dark), var(--pink));
  color: #fff;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.3);
}

.nav-cta {
  padding: 9px 20px;
  background: linear-gradient(90deg, var(--purple-dark), var(--pink));
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(168, 85, 247, 0.55);
}

/* ═══ MAIN (para que el footer quede abajo) ═══ */
main {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ═══ FOOTER ═══ */
footer.site-footer {
  position: relative;
  z-index: 1;
  padding: 28px 20px 20px;
  border-top: 1px solid var(--border);
  background: rgba(10, 6, 19, 0.5);
  margin-top: auto;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--text);
}

.footer-brand img {
  height: 32px;
  width: auto;
  max-width: 140px;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.3));
}

.footer-contact {
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-contact a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.footer-contact a:hover { text-decoration: underline; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  justify-content: center;
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.72rem;
  text-decoration: none;
  padding: 3px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.footer-links a:hover {
  color: var(--purple-light);
  background: rgba(168, 85, 247, 0.05);
}

.footer-copy {
  font-size: 0.72rem;
  color: #6a6578;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ═══ LEGAL PAGES LAYOUT ═══ */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  position: relative;
  z-index: 1;
}

.legal-page h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, var(--purple-light) 60%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple-light);
  margin: 32px 0 12px;
}

.legal-page h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 22px 0 10px;
}

.legal-page p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-page a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.legal-page a:hover { text-decoration: underline; }

.legal-page ul, .legal-page ol {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-page li { margin-bottom: 6px; }

.legal-page strong { color: var(--text); font-weight: 600; }

.legal-page .updated {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--purple-light);
  margin-bottom: 20px;
  font-weight: 600;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 640px) {
  .navbar { padding: 10px 14px; }
  .navbar-inner { gap: 8px; }
  .nav-logo { height: 32px; width: 32px; }
  .nav-right { gap: 8px; }
  .lang-btn { padding: 4px 9px; font-size: 0.72rem; }
  .nav-cta { padding: 7px 14px; font-size: 0.78rem; }

  .legal-page { padding: 28px 16px 40px; }
  .legal-page h2 { font-size: 1.1rem; }

  footer.site-footer { padding: 22px 16px 18px; }
}

@media (max-width: 400px) {
  .navbar-inner { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .nav-brand { order: 1; }
  .nav-logo { height: 28px; width: 28px; }
  .nav-right { order: 2; width: 100%; justify-content: center; }
}

@media (min-width: 1600px) {
  .navbar-inner { max-width: 1400px; }
}
