/* Sitio de lanzamiento de NUDAS: lo común a la portada y a /bosco. */
/* Fuentes alojadas aquí (/fonts, desde public/fonts y src/styles/fonts.css): no se pide nada a Google. */
@import url('/fonts/fonts.css');

:root {
  color-scheme: light;
  --wall: #f3f0ea;
  --paper: #ffffff;
  --paper-warm: #fafaf7;
  --ink: #0a0a0a;
  --ink-soft: #3a3836;
  --muted: #6b6762;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.22);
  --field: #ffffff;
  --gold: #c9a227;
  --gold-deep: #8a6d14;
  --on-gold: #1d1606;
  --danger: #b3261e;
  --font-display: 'Marcellus', 'Times New Roman', ui-serif, Georgia, serif;
  --font-read: 'Newsreader', Charter, Georgia, ui-serif, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --wall: #0d0c0b;
  --paper: #121110;
  --paper-warm: #1c1a17;
  --ink: #f2efe9;
  --ink-soft: #d6d1c8;
  --muted: #9b958b;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.26);
  --field: #1c1a17;
  --gold: #d4af37;
  --gold-deep: #dcbb55;
  --danger: #ff8a80;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--wall); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

/* Un idioma a la vez (lo pone el script del <head>). */
html[lang='es'] .en, html[lang='en'] .es { display: none !important; }

/* Selector ES | EN */
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lang button { padding: 0.3rem 0.6rem; border: 0; border-radius: 999px; background: none; color: rgba(255, 255, 255, 0.75); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; cursor: pointer; }
html[lang='es'] .lang [data-lang='es'], html[lang='en'] .lang [data-lang='en'] { background: #fff; color: #0a0a0a; }

/* Redes */
.socials { display: flex; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.socials a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background 0.2s, color 0.2s; }
.socials a:hover { background: #fff; color: #0a0a0a; }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

/* Diálogos (créditos, privacidad) */
.dlg { width: min(34rem, calc(100vw - 2rem)); max-height: min(80svh, 44rem); margin: auto; padding: 0; border: 0; border-radius: 16px; background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6); }
.dlg::backdrop { background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(3px); }
.dlg-in { display: grid; gap: 0.8rem; padding: 1.4rem 1.5rem 1.5rem; font-size: 0.88rem; line-height: 1.55; color: var(--ink-soft); }
.dlg h2 { margin: 0; font: 400 1.5rem/1.15 var(--font-display); color: var(--ink); }
.dlg h3 { margin: 0.4rem 0 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dlg p, .dlg ul { margin: 0; }
.dlg ul { padding-left: 1.1rem; }
.dlg-x { position: sticky; top: 0; float: right; margin: 0.6rem 0.6rem 0 0; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--paper-warm); color: var(--ink);
  font-size: 1.2rem; line-height: 1; cursor: pointer; }
.dlg a { color: var(--gold-deep); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Claro / oscuro: cambian el fondo del muro, la tarjeta y la barra (las obras, nunca). */
.theme-btn { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background 0.2s, color 0.2s; }
.theme-btn:hover { background: #fff; color: #0a0a0a; }
.theme-btn svg { width: 16px; height: 16px; }
:root[data-theme='dark'] .theme-btn .i-moon, :root:not([data-theme='dark']) .theme-btn .i-sun { display: none; }
