/* PegaFicha: la web pequeña. Los colores y la letra son los de la app (apps/mobile/src/theme/tokens.ts). */

@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url('fuentes/Manrope_500Medium.ttf') format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('fuentes/Manrope_700Bold.ttf') format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url('fuentes/Manrope_800ExtraBold.ttf') format('truetype'); }

:root {
  --bg: #15120F;
  --surface: #211C18;
  --border: #3A332C;
  --text: #F5EFE6;
  --muted: #B5AA9C;
  --accent: #F0A93B;
  --on-accent: #1A1206;
  --danger: #FF7A6B;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.5 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 16px; }

header.top { border-bottom: 1px solid var(--border); }
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 14px; padding-bottom: 14px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; }
.brand svg { flex: none; }

nav.menu { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
nav.menu a { color: var(--muted); text-decoration: none; padding: 6px 0; }
nav.menu a:hover, nav.menu a[aria-current='page'] { color: var(--text); }

main { padding: 32px 0 48px; }

h1 { font-size: 28px; line-height: 34px; font-weight: 800; margin: 0 0 12px; }
h2 { font-size: 20px; line-height: 28px; font-weight: 700; margin: 36px 0 8px; }
h3 { font-size: 16px; font-weight: 700; margin: 20px 0 4px; }
p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: 6px; }
strong { font-weight: 700; }

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.lead { font-size: 18px; color: var(--text); }
.muted { color: var(--muted); }
.updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin: 16px 0; }
.card > :last-child { margin-bottom: 0; }

.hero { padding: 16px 0 8px; }
.hero h1 { font-size: 40px; line-height: 44px; }
@media (max-width: 400px) { .hero h1 { font-size: 32px; line-height: 38px; } }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 12px; margin: 20px 0; }
.grid .card { margin: 0; }
.grid h3 { margin-top: 0; }

/* Lo que falta por decidir: que se vea al revisar y que no se publique sin cambiarlo. */
.pending { background: rgba(240, 169, 59, 0.14); color: var(--accent); font-weight: 700; padding: 0 4px; border-radius: 4px; }

table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 700; font-size: 14px; }
.table-scroll { overflow-x: auto; }

ol.steps li { margin-bottom: 10px; }
.danger { color: var(--danger); }

footer.bottom { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
footer.bottom .wrap { padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }
footer.bottom a { color: var(--muted); }
