/* ==========================================================================
   Páginas legales de la demo de pedidos por WhatsApp (rmoia.com)

   Tipografía : Funnel Display 600 (títulos) · Inter 400 / 600 (texto)
   Espaciado  : 4 / 8 / 16 / 24 / 48 / 96, sin valores intermedios
   Radio      : 8px único
   Acento     : amarillo del logo, solo en foco, hover de enlaces y el punto del logo
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/funnel-display-latin.woff2') format('woff2');
}

:root {
  --bg: #0A0A0B;
  --panel: #1B1D20;
  --border: #292B2F;
  --line: #3C3F45;
  --text: #F4F2EE;
  --text-muted: #A0A0A0;
  --accent: #F5C518;
  --accent-hover: #FFD84A;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 48px;
  --sp-6: 96px;

  --radius: 8px;
  --measure: 68ch;

  --font-display: 'Funnel Display', 'Inter', sans-serif;
  --font-text: 'Inter', sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- cabecera ---------- */


.site-header__inner {
  max-width: calc(var(--measure) + 2 * var(--sp-3));
  margin: 0 auto;
  padding: var(--sp-2) var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius);
}

.wordmark::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-left: var(--sp-1);
  margin-top: var(--sp-2);
  border-radius: 50%;
  background: var(--accent);
}

.site-nav {
  display: flex;
  gap: var(--sp-1);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--sp-2);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius);
}

.site-nav a:hover {
  color: var(--text);
}

/* Página actual: color y subrayado, no solo color */
.site-nav a[aria-current='page'] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* Motivo: nodos unidos por una línea fina */
.motif {
  display: block;
  width: 100%;
  height: 24px;
  color: var(--line);
}

/* ---------- contenido ---------- */

main {
  max-width: calc(var(--measure) + 2 * var(--sp-3));
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-3) var(--sp-6);
}

.eyebrow {
  margin: 0 0 var(--sp-2);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

h1 {
  font-size: 40px;
}

h2 {
  font-size: 24px;
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-3);
}

p,
ul,
ol {
  margin: 0 0 var(--sp-3);
}

ul,
ol {
  padding-left: var(--sp-4);
}

li + li {
  margin-top: var(--sp-2);
}

li > ul {
  margin: var(--sp-2) 0 0;
}

strong {
  font-weight: 600;
}

.lead {
  margin-top: var(--sp-4);
  font-size: 18px;
  color: var(--text);
}

.meta {
  color: var(--text-muted);
  font-size: 14px;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--text-muted);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Cuadros de datos */
.facts {
  margin: 0 0 var(--sp-3);
  padding: var(--sp-3);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.facts dt {
  font-weight: 600;
}

.facts dd {
  margin: 0 0 var(--sp-3);
  color: var(--text-muted);
}

.facts dd:last-child {
  margin-bottom: 0;
}

/* Datos que faltan: bien visibles para que nada se publique sin rellenar */
.pendiente {
  display: inline;
  padding: 0 var(--sp-1);
  border: 1px dashed var(--text-muted);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.pendiente::before {
  content: 'PENDIENTE · ';
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.borrador {
  margin: 0 0 var(--sp-5);
  padding: var(--sp-3);
  border: 1px dashed var(--text-muted);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
}

.borrador strong {
  color: var(--text);
}

/* ---------- pie ---------- */

.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  max-width: calc(var(--measure) + 2 * var(--sp-3));
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-3);
}

/* El tamaño va en el párrafo: en la caja cambiaría el ancho en ch y el pie no alinearía con el texto */
.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- 768 px ---------- */

@media (min-width: 768px) {
  .site-header__inner,
  main,
  .site-footer__inner {
    max-width: calc(var(--measure) + 2 * var(--sp-4));
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
  }

  main {
    padding-top: var(--sp-6);
  }
}

/* ---------- 1440 px ---------- */

@media (min-width: 1440px) {
  body {
    font-size: 18px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 32px;
  }

  .lead {
    font-size: 20px;
  }
}
