/* MileStamp · web inicial (portada «muy pronto», privacidad, baja y 404)
   Marca: tinta #1F2A33, naranja #D9541E, papel #F8F4EA, arena #EADFC8, naranja de acción #C2441A.
   Fuentes propias (SIL OFL 1.1, en assets/fonts). Sin recursos externos. */

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

:root {
  --tinta: #1F2A33;
  --naranja: #D9541E;
  --papel: #F8F4EA;
  --arena: #EADFC8;
  --accion: #C2441A;
  --titulo: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 400 17px/1.55 var(--texto); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--titulo); font-weight: 800; text-transform: uppercase; line-height: .94; margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--papel); color: var(--tinta); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; }
.eyebrow { font: 600 12px/1.3 var(--texto); letter-spacing: .22em; text-transform: uppercase; color: var(--arena); margin: 0 0 14px; }
.btn { display: inline-block; background: var(--accion); color: #fff; font: 600 16px/1 var(--texto); text-decoration: none; padding: 16px 28px; border-radius: 999px; border: 2px solid var(--accion); }
.btn:hover { background: #a93a14; border-color: #a93a14; }

/* Cabecera de las páginas de texto: solo el logotipo */
.site-header { background: var(--tinta); }
.bar { display: flex; align-items: center; height: 84px; }
.brand { display: block; line-height: 0; }
.brand img { height: 56px; width: auto; }

/* Páginas de texto (privacidad, baja) */
.doc-hero { position: relative; overflow: hidden; background: var(--tinta); color: var(--papel); padding: 48px 0 56px; }
.doc-hero::before { content: ""; position: absolute; inset: 0; background: url("../img/fondo-carretera.svg") center bottom / cover no-repeat; filter: invert(1); opacity: .7; }
.doc-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--tinta) 20%, #1F2A33cc 60%, #1F2A3380 100%); }
.doc-hero .wrap, .doc .wrap { max-width: 860px; }
.doc-hero .wrap { position: relative; z-index: 1; }
.doc-hero h1 { font-size: clamp(46px, 8vw, 96px); line-height: .88; margin: 4px 0 14px; }
.doc-hero .updated { margin: 0; font-size: 15px; opacity: .85; }
.doc { padding: 52px 0 96px; }
.doc p, .doc li { font-size: 17px; }
.doc h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 48px 0 12px; padding-top: 22px; border-top: 2px solid var(--arena); }
.doc ul { list-style: disc; padding-left: 24px; margin: 0 0 1em; }
.doc li { margin: 8px 0; }
.doc a:not(.btn) { color: var(--accion); font-weight: 600; text-underline-offset: 3px; }
.doc .table-wrap { overflow-x: auto; margin: 14px 0 22px; border-radius: 12px; }
.doc table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; background: #fff; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--arena); }
.doc th { background: var(--arena); font-weight: 600; }
.doc .box { background: #fff; border: 2px solid var(--arena); border-radius: 18px; padding: 6px 26px 4px; margin: 18px 0; }
.doc .box h2 { font-size: 28px; margin: 18px 0 8px; padding-top: 0; border-top: 0; }
.doc .warning { border-left: 8px solid var(--naranja); }

/* Portada «muy pronto» y página 404 */
.soon-page { position: relative; overflow: hidden; min-height: 100vh; display: flex; flex-direction: column; background: var(--tinta); color: var(--papel); }
.soon-page::before { content: ""; position: absolute; inset: 0; background: url("../img/fondo-carretera.svg") center bottom / cover no-repeat; filter: invert(1); opacity: .9; }
.soon-page::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 46%, #1F2A33e6 0%, #1F2A33a6 55%, #1F2A3340 100%); }
.soon { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 56px 20px 32px; }
.soon__logo { display: block; width: min(560px, 86vw); height: auto; margin: 0 auto 38px; }
.soon .eyebrow { margin-bottom: 12px; }
.soon h1 { font-size: clamp(54px, 9vw, 112px); line-height: .88; margin: 0 0 12px; }
.soon h1 em { font-style: normal; color: var(--naranja); }
.soon p { margin: 0 0 28px; font-size: 18px; opacity: .9; }
.soon .btn { margin-top: 4px; }

/* Pie */
.site-footer, .soon-footer { padding: 24px 20px 30px; text-align: center; font-size: 14px; border-top: 1px solid #F8F4EA26; color: var(--papel); }
.site-footer { background: var(--tinta); }
.soon-footer { position: relative; z-index: 1; }
.site-footer nav, .soon-footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: center; margin-bottom: 10px; }
.site-footer a, .soon-footer a { color: var(--papel); opacity: .88; text-underline-offset: 3px; }
.site-footer a:hover, .soon-footer a:hover { opacity: 1; }
.site-footer p, .soon-footer p { margin: 0; opacity: .65; font-size: 14px; }

@media (max-width: 860px) {
  .bar { height: 72px; }
  .brand img { height: 48px; }
  .doc-hero { padding: 36px 0 40px; }
  .doc { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
