/* ═══════════════════════════════════════════════════════════
   reset.css — Normalize + Custom Properties + Base tokens
   Todas las variables se definen aquí una sola vez.
   ═══════════════════════════════════════════════════════════ */

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

:root {
  /* ── Colores ── */
  --bg-deep:        #0a0805;
  --bg-surface:     #0f0c08;
  --bg-elevated:    #161009;

  --text-main:      #f4ead5;
  --text-muted:     rgba(244, 234, 213, 0.55);
  --text-subtle:    rgba(244, 234, 213, 0.30);

  --gold:           #c9a961;
  --gold-light:     #e8d098;
  --gold-dim:       rgba(201, 169, 97, 0.12);
  --gold-border:    rgba(201, 169, 97, 0.18);
  --gold-glow:      rgba(201, 169, 97, 0.10);
  --gold-glow-md:   rgba(201, 169, 97, 0.20);

  --surface-1:      rgba(20, 15, 10, 0.70);
  --surface-2:      rgba(30, 22, 14, 0.82);
  --surface-3:      rgba(40, 30, 18, 0.92);

  --danger:         rgba(180, 60, 60, 0.85);

  /* ── Tipografía ── */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:  ui-monospace, 'Cascadia Code', 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* ── Espaciado ── */
  --sp-2xs: 0.25rem;
  --sp-xs:  0.375rem;
  --sp-sm:  0.5rem;
  --sp-md:  1rem;
  --sp-lg:  1.5rem;
  --sp-xl:  2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;
  --sp-5xl: 8rem;

  /* ── Bordes ── */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --border:    1px solid var(--gold-border);

  /* ── Sombras ── */
  --shadow-sm:   0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md:   0 4px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg:   0 8px 56px rgba(0, 0, 0, 0.60);
  --shadow-gold: 0 0 28px var(--gold-glow);
  --shadow-gold-md: 0 0 48px var(--gold-glow-md);

  /* ── Transiciones ── */
  --ease-out:  cubic-bezier(0.2, 0.9, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0.0, 0.8, 0.1);
  --ease-circ: cubic-bezier(0.0, 0.0, 0.2, 1);
  --dur:       0.35s;
  --dur-fast:  0.18s;
  --dur-slow:  0.55s;

  /* ── Z-index ── */
  --z-canvas:   0;
  --z-vignette: 1;
  --z-content:  2;
  --z-nav:      100;
  --z-toast:    200;
}

/* ── Base HTML ── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Resets específicos ── */
img, video, svg, canvas {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-main);
}

em {
  font-style: italic;
  color: var(--gold);
}

strong {
  font-weight: 600;
  color: var(--gold-light);
}

blockquote {
  font-style: italic;
}

/* ── Utilidades globales ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-md);
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
