:root {
  --bg: #0a0805;
  --bg-deep: #060403;
  --surface: rgba(20, 15, 10, 0.55);
  --surface-strong: rgba(24, 18, 12, 0.78);
  --surface-soft: rgba(30, 22, 14, 0.4);

  --cream: #f4ead5;
  --cream-mute: rgba(244, 234, 213, 0.72);
  --cream-dim: rgba(244, 234, 213, 0.5);
  --cream-faint: rgba(244, 234, 213, 0.16);

  --gold: #c9a24e;
  --gold-soft: #d8be7e;
  --gold-deep: #7a6442;
  --gold-glow: rgba(177, 147, 101, 0.35);
  --gold-line: rgba(177, 147, 101, 0.22);
  --gold-line-soft: rgba(177, 147, 101, 0.12);

  /* Acento dorado GLOW — solo en momentos clave (logo "Glow", CTAs, hovers).
     El resto del sitio se mantiene sobrio. (Docs Paty, sección 09) */
  --glow: #c9963f;
  --glow-light: #dbb05f;
  --glow-bright: #fad89f;
  --glow-line: rgba(201, 150, 63, 0.3);

  --warm-brown: rgba(74, 55, 33, 0.55);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 30px 80px rgba(0, 0, 0, 0.5);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.9, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0.05, 0.2, 1);

  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 6px;

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  width: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 800px at 20% -10%, rgba(74, 55, 33, 0.25), transparent 60%),
    radial-gradient(1000px 700px at 110% 10%, rgba(177, 147, 101, 0.08), transparent 60%),
    linear-gradient(180deg, #0a0805 0%, #070503 60%, #050302 100%);
  background-attachment: fixed;
  min-height: 100vh;
  /* clip (no hidden): evita el scroll horizontal SIN romper position: sticky del menú */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--cream);
}

h1 em,
h2 em,
h3 em {
  font-style: normal;
  font-weight: 800;
  color: var(--gold-soft);
}

p {
  margin: 0;
}

::selection {
  background: var(--gold);
  color: var(--bg-deep);
}

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
