/* Guías de Faro Fiscal — shared stylesheet. Public pages (no login), printable,
   no JS. Palette mirrors the product: navy ink + green. */
:root {
  --ink: #0a2540; --text: #1f2f45; --muted: #5b6b82; --border: #e3e8ef;
  --green: #10b981; --green-dark: #0b8f66; --bg: #f7f9fc; --surface: #ffffff;
  --warn-bg: #fff7ed; --warn-border: #fdba74; --tip-bg: #ecfdf5; --tip-border: #6ee7b7;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 820px; margin: 0 auto; padding: .8rem 1.2rem; display: flex; align-items: center; gap: .6rem; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.brand span { color: var(--green); }
.topbar a.back { margin-left: auto; color: var(--muted); text-decoration: none; font-size: .9rem; }
.topbar a.back:hover { color: var(--green); }
main { max-width: 820px; margin: 0 auto; padding: 1.6rem 1.2rem 3rem; }
h1 { color: var(--ink); font-size: 1.7rem; line-height: 1.25; margin: .4rem 0 .3rem; }
.lead { color: var(--muted); font-size: 1.02rem; margin: 0 0 1.4rem; }
h2 { color: var(--ink); font-size: 1.18rem; margin: 2rem 0 .5rem; padding-top: .6rem; border-top: 1px solid var(--border); }
h3 { color: var(--ink); font-size: 1rem; margin: 1.2rem 0 .3rem; }
p { margin: .5rem 0; }
code, .kbd { background: #eef2f7; border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; color: var(--ink); }
ol.steps { counter-reset: paso; list-style: none; padding: 0; margin: .8rem 0; }
ol.steps > li { position: relative; padding: 0 0 1.1rem 2.6rem; }
ol.steps > li::before { counter-increment: paso; content: counter(paso);
  position: absolute; left: 0; top: .1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; justify-content: center; }
ol.steps > li > strong:first-child { color: var(--ink); }
.box { border-radius: 10px; padding: .75rem 1rem; margin: 1rem 0; font-size: .95rem; }
.box b:first-child { display: inline-block; margin-bottom: .15rem; }
.warn { background: var(--warn-bg); border: 1px solid var(--warn-border); }
.tip { background: var(--tip-bg); border: 1px solid var(--tip-border); }
table { width: 100%; border-collapse: collapse; margin: .8rem 0; font-size: .93rem; }
th, td { text-align: left; padding: .5rem .65rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
/* Checklist (guía go-live) */
ul.check { list-style: none; padding: 0; }
ul.check li { padding: .35rem 0 .35rem 1.9rem; position: relative; }
ul.check li::before { content: "☐"; position: absolute; left: .2rem; color: var(--green); font-size: 1.1rem; }
/* WhatsApp-style chat mockup (pure CSS, no real data) */
.chat { background: #e5ddd5; border-radius: 12px; padding: 1rem; margin: 1rem 0; }
.chat .msg { max-width: 86%; padding: .5rem .75rem; border-radius: 8px; margin: .35rem 0;
  font-size: .92rem; box-shadow: 0 1px 1px rgba(0,0,0,.08); white-space: pre-line; }
.chat .user { background: #dcf8c6; margin-left: auto; border-top-right-radius: 2px; }
.chat .bot { background: #ffffff; margin-right: auto; border-top-left-radius: 2px; }
.chat .label { font-size: .72rem; color: var(--muted); text-align: center; margin: .5rem 0 .2rem; }
/* Index cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1.2rem; }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem 1.1rem; text-decoration: none; color: var(--text); display: block;
  transition: box-shadow .15s, border-color .15s; }
.card:hover { border-color: var(--green); box-shadow: 0 8px 20px -12px rgba(10,37,64,.25); }
.card .num { color: var(--green); font-weight: 800; font-size: .8rem; letter-spacing: .06em; }
.card h3 { margin: .2rem 0 .25rem; }
.card p { color: var(--muted); font-size: .88rem; margin: 0; }
.footer-nav { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; font-size: .92rem; }
.footer-nav a { color: var(--green-dark); text-decoration: none; }
@media print {
  .topbar a.back, .footer-nav { display: none; }
  body { background: #fff; }
  .chat { background: #f3f0ec; }
}

/* ── Single-page layout with side rail (Strahl + Punkte) ── */
html { scroll-behavior: smooth; }
.layout2 { max-width: 1080px; margin: 0 auto; padding: 1.6rem 1.2rem 3rem;
  display: grid; grid-template-columns: 230px 1fr; gap: 2.2rem; align-items: start; }
.rail { position: sticky; top: 1.2rem; }
.rail .rail-title { font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  color: var(--muted); text-transform: uppercase; margin: 0 0 .7rem .1rem; }
.rail ol { list-style: none; margin: 0; padding: 0; position: relative; }
/* the ray: a vertical line through all points */
.rail ol::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px;
  width: 2px; background: var(--border); border-radius: 2px; }
.rail li { position: relative; }
.rail a { display: block; padding: .42rem 0 .42rem 1.9rem; color: var(--muted);
  text-decoration: none; font-size: .9rem; line-height: 1.35; border-radius: 8px; }
/* the point */
.rail a::before { content: ""; position: absolute; left: 4px; top: .72rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--surface); border: 2px solid var(--border);
  transition: border-color .15s, background .15s; z-index: 1; }
.rail a:hover { color: var(--ink); }
.rail a.active { color: var(--green-dark); font-weight: 600; }
.rail a.active::before { border-color: var(--green); background: var(--green); }
.guia-section { scroll-margin-top: 1rem; }
.guia-section + .guia-section { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--border); }
.guia-head .num { color: var(--green); font-weight: 800; font-size: .8rem; letter-spacing: .06em; }
.guia-head h2.guia-title { font-size: 1.55rem; margin: .15rem 0 .2rem; border: none; padding: 0; }
@media (max-width: 860px) {
  .layout2 { grid-template-columns: 1fr; }
  .rail { position: static; margin-bottom: .5rem; }
  .rail ol::before { display: none; }
  .rail ol { display: flex; flex-wrap: wrap; gap: .35rem; }
  .rail a { padding: .3rem .7rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
  .rail a::before { display: none; }
  .rail a.active { border-color: var(--green); }
  .rail .rail-title { display: none; }
}
@media print { .rail { display: none; } .layout2 { display: block; } }
