/* Talou Creator Bible — standalone (brandbook Talou) */
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/instrument-serif-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('assets/fonts/inter-var.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('assets/fonts/roboto-var.woff2') format('woff2'); }

:root {
  --page: #F7F2EA;
  --ink: #121212;
  --ink-2: #7B4545;
  --hairline: #E4D8BA;
  --accent: #66121E;
  --card: #FFFFFF;
  --note-bg: #FBF7EE;
  --warn-bg: #FBF1E8;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: 'Roboto', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }

header.file-header h1 {
  font-family: 'Inter', -apple-system, sans-serif; font-weight: 700; letter-spacing: -0.01em;
  font-size: 30px; margin: 0 0 8px;
}
header.file-header p.intro { margin: 0 0 20px; color: var(--ink-2); }

nav.file-nav { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 10px 0; background: var(--page); border-bottom: 1px solid var(--hairline); scrollbar-width: none; }
nav.file-nav::-webkit-scrollbar { display: none; }
nav.file-nav a { flex: 0 0 auto; padding: 8px 16px; border: 1px solid var(--hairline); border-radius: 999px; background: #fff; color: var(--ink-2); text-decoration: none; font-size: 14px; font-family: 'Inter', -apple-system, sans-serif; font-weight: 600; cursor: pointer; }
nav.file-nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 600px) { nav.file-nav a { display: inline-flex; align-items: center; min-height: 44px; } }

section.page { display: none; padding-top: 20px; }
section.page.active { display: block; }

.group { margin-bottom: 22px; padding: 18px; background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; }
.group > .g-label { display: block; font-family: 'Inter', -apple-system, sans-serif; font-weight: 600; font-size: 18px; margin: 0 0 8px; }
h3.sub { font-family: 'Inter', -apple-system, sans-serif; font-weight: 600; font-size: 15px; margin: 16px 0 4px; }
h3.sub small { display: block; font-weight: 400; color: var(--ink-2); font-size: 12px; }
p { margin: 8px 0; }
p.key { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 20px; line-height: 1.4; margin: 12px 0; }
.caption { display: block; font-weight: 300; font-size: 13px; color: var(--ink-2); margin-top: 8px; }

ul.bullets { margin: 8px 0; padding-left: 20px; }
ul.bullets li { margin: 4px 0; }
ol.numbered { margin: 8px 0; padding-left: 22px; }
ol.numbered li { margin: 6px 0; }

.rows { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.row { display: flex; gap: 12px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 12px; background: #fff; }
.row .num { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.row .rname { font-weight: 600; }
.row .rdetail { color: var(--ink-2); font-size: 14px; }

table.facts { width: 100%; border-collapse: collapse; margin: 8px 0; }
table.facts td { padding: 8px 10px; border: 1px solid var(--hairline); vertical-align: top; font-size: 15px; }
table.facts td:first-child { font-weight: 600; width: 42%; background: var(--note-bg); }

.callout { margin: 14px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--note-bg); }
.callout.warning { background: var(--warn-bg); border-color: #E8C9A8; }
.callout .c-title { display: block; font-family: 'Inter', -apple-system, sans-serif; font-weight: 600; margin-bottom: 4px; }
.callout p { margin: 0; font-size: 15px; }

.btn { display: inline-flex; align-items: center; gap: 8px; margin: 6px 8px 6px 0; padding: 10px 20px; border-radius: 999px; text-decoration: none; font-family: 'Inter', -apple-system, sans-serif; font-weight: 600; font-size: 15px; border: 1px solid var(--hairline); background: #fff; color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }

.talou-brand { display: flex; flex-direction: column; gap: 4px; padding: 8px 0 4px; margin-bottom: 14px; }
.talou-logo { width: 128px; height: auto; display: block; }
.talou-tagline { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #7B4545; }

.ficha { border: 1px solid var(--hairline); border-radius: 12px; background: #fff; overflow: hidden; }
.ficha + .ficha { margin-top: 8px; }
.ficha-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 10px 14px; background: none; border: 0; color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.ficha-caret { color: var(--ink-2); font-size: 18px; flex: 0 0 auto; }
.ficha-body { padding: 2px 14px 12px; border-top: 1px solid var(--hairline); display: none; }
.ficha.open .ficha-body { display: block; }

.checklist { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--hairline); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.check .box { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1.5px solid #7B4545; border-radius: 6px; flex: 0 0 auto; font-size: 14px; }
.check.done { border-color: var(--accent); }
.check.done .box { background: var(--accent); color: #fff; border-color: var(--accent); }

.field { margin: 10px 0; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.field input[type=text], .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.field textarea { min-height: 90px; resize: vertical; }

footer.closing { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--hairline); color: var(--ink-2); font-size: 14px; }

/* Nav: wrap en desktop (todos los destinos visibles), indicador de scroll en móvil */
@media (min-width: 601px) {
  nav.file-nav { flex-wrap: wrap; overflow-x: visible; }
}
@media (max-width: 600px) {
  nav.file-nav { mask-image: linear-gradient(to right, black 82%, transparent 100%); -webkit-mask-image: linear-gradient(to right, black 82%, transparent 100%); }
}
