/* ==========================================================================
   Restaurante WhiteMoon · DEMO WhiteMoon — tokens y base compartida
   ========================================================================== */

:root {
  /* Superficies — negro WhiteMoon con calor de brasa en las capas altas */
  --bg: #08080d;
  --bg-2: #0d0b11;
  --surface: #141019;
  --surface-2: #1b1520;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);

  /* Acento cálido: brasa */
  --ember: #ffab2e;
  --ember-deep: #ff6f1f;
  --ember-ink: #1a1205;
  --ember-soft: rgba(255, 171, 46, .12);

  /* Estados */
  --ok: #00d4aa;
  --ok-soft: rgba(0, 212, 170, .13);
  --warn: #ffc96b;
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, .13);

  /* Texto */
  --text: #f0f0f5;
  --muted: #9a9aae;
  --muted-2: #7c7c90;

  /* Tipografía */
  --font: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Ritmo */
  --s1: .25rem;
  --s2: .5rem;
  --s3: .75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4.5rem;
  --s9: 7rem;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Capas */
  --z-sticky: 20;
  --z-nav: 30;
  --z-widget: 40;
  --z-sheet: 50;
  --z-toast: 60;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --fast: 160ms;
  --mid: 260ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

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

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--ember);
  color: var(--ember-ink);
}

/* Utilidades ------------------------------------------------------------- */

.wrap {
  width: min(100% - 2.5rem, 1120px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .7rem 1.1rem;
  background: var(--ember);
  color: var(--ember-ink);
  font-weight: 600;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

.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;
}

.tnum { font-variant-numeric: tabular-nums; }

/* Sello de demo ---------------------------------------------------------- */

.demo-tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .6rem .3rem .5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
}

.demo-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 3px var(--ember-soft);
}

/* Botones ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: none;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: background var(--fast) var(--ease-out),
              border-color var(--fast) var(--ease-out),
              color var(--fast) var(--ease-out),
              transform var(--fast) var(--ease-out);
}

.btn:active { transform: scale(.97); }

.btn--ember {
  background: var(--ember);
  color: var(--ember-ink);
}
.btn--ember:hover { background: #ffbe5c; }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--ember);
  color: var(--ember);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
