/* MileStamp · estilos de la web (W0). Colores y fuentes de la marca: docs/uso-de-marca.md */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1F2A33;
  --orange: #D9541E;
  --orange-button: #C2441A;
  --paper: #F8F4EA;
  --sand: #EADFC8;
  --muted: #5B6670;
  --white: #FFFFFF;
  --font-text: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-title: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--orange-button); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.1;
}

/* Cabecera y pie */
.site-header {
  border-bottom: 2px solid var(--sand);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-header img { display: block; width: 150px; height: auto; }
.site-header nav a {
  margin-left: 18px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--orange-button); }

.site-footer {
  margin-top: auto;
  border-top: 2px solid var(--sand);
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { padding-top: 20px; padding-bottom: 28px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--orange-button); }
.site-footer nav a { margin-right: 18px; }

.wrap { max-width: 760px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

main { padding-top: 28px; padding-bottom: 48px; }

/* Páginas de texto (privacidad, baja) */
.doc h1 { font-size: 40px; margin: 0 0 4px; }
.doc h2 { font-size: 26px; margin: 36px 0 10px; padding-top: 12px; border-top: 2px solid var(--sand); }
.doc .updated { color: var(--muted); margin: 0 0 24px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--sand); }
.doc th { background: var(--sand); }
.doc td { background: var(--white); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .box { background: var(--white); border: 2px solid var(--sand); border-radius: 8px; padding: 4px 20px; margin: 16px 0; }
.doc .warning { border-left: 6px solid var(--orange); }

/* Datos que faltan antes de publicar: se ven en amarillo para no olvidarlos */
.fill { background: #FFE58A; padding: 0 4px; border-radius: 3px; }

/* Portada provisional */
.hero { text-align: center; padding-top: 48px; padding-bottom: 32px; }
.hero img { width: min(420px, 90%); height: auto; }
.hero h1 { font-size: 56px; margin: 24px 0 8px; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: 19px; max-width: 560px; margin: 0 auto 16px; }
.badge {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--orange-button);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--ink); color: var(--white); }

@media (max-width: 560px) {
  .doc h1 { font-size: 32px; }
  .doc table { font-size: 14px; }
  .doc th, .doc td { padding: 8px; }
  .hero h1 { font-size: 42px; }
  .site-header img { width: 120px; }
  .site-header nav a { margin-left: 12px; font-size: 15px; }
}
