/* brand-pages.css (HOTFIX-052)
   Shared brand layer for the explanatory pages: methodology, blog, /ejemplos/
   and the editorial team page. It gives them the landing's identity (Fraunces +
   Nunito, cream background, green top bar with the logo and a CTA into the app,
   a coherent footer) without pulling styles.min.css or Bootstrap.

   The font files come from the <link> to Google Fonts that each page carries in
   its <head> (same URL as index.html). Do not @import them here: it would
   serialise the font request behind this file.

   firebase.json serves every .css file as `immutable` for a year, so every page links
   this file with a `?v=` token. Bump the token on all pages when editing it
   (tests/index.test.js asserts they all agree). */

:root {
    --hezu-green: #4caf50;
    --hezu-green-dark: #2e7d32;
    --hezu-green-deep: #1b5e20;
    --hezu-green-light: #e8f5e9;
    --hezu-cream: #fdfbf6;
    --hezu-sand: #f5efe4;
    --ink: #1c2220;
    --ink-2: #2c342f;
    --muted: #6b7670;
    --line: #e4e1d9;
    /* Short aliases the blog templates already use inline. */
    --green: var(--hezu-green-dark);
    --green-deep: var(--hezu-green-deep);
    --green-soft: var(--hezu-green-light);
    --cream: var(--hezu-cream);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--hezu-cream);
    -webkit-font-smoothing: antialiased;
}

h1, h2 {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.875rem, 5vw, 2.5rem); line-height: 1.15; margin: 0.25em 0 0.4em; }
h2 { font-size: clamp(1.375rem, 3.5vw, 1.6875rem); line-height: 1.25; }
h3 { font-family: var(--font-body); font-weight: 700; color: var(--ink); }
a { color: var(--hezu-green-dark); }
img { max-width: 100%; }

.container { max-width: 760px; margin: 0 auto; padding: 24px 16px; }

/* ---- Top bar: logo home + Blog + CTA into the app ---------------------- */
.hezu-header-lite {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--hezu-green);
    color: #fff;
    padding: 10px 0;
}
.hezu-header-lite-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.hezu-header-lite--wide .hezu-header-lite-inner { max-width: 840px; }
.hezu-header-lite a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hezu-header-lite img { width: 28px; height: 28px; border-radius: 6px; background: #fff; padding: 2px; }
.hezu-header-lite-actions { display: flex; align-items: center; gap: 16px; }
.hezu-header-lite-blog { font-weight: 600 !important; }
.hezu-header-lite-cta {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.875rem;
    white-space: nowrap;
}
.hezu-header-lite-cta:hover { background: rgba(255, 255, 255, 0.28); }
@media (max-width: 400px) {
    .hezu-header-lite-inner { padding: 0 12px; }
    .hezu-header-lite-actions { gap: 8px; }
}

/* ---- Breadcrumbs ---------------------------------------------------------- */
.hezu-crumbs { font-size: 0.875rem; color: var(--muted); margin: 0 0 16px; }
.hezu-crumbs a { color: var(--hezu-green-dark); text-decoration: none; }
.hezu-crumbs a:hover { text-decoration: underline; }

/* ---- Primary button (same pill as the landing's .btn-primary) ------------ */
.hezu-btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 999px;
    background: var(--hezu-green-dark);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
}
.hezu-btn:hover { background: var(--hezu-green-deep); color: #fff; }

/* ---- Footer ---------------------------------------------------------------- */
.hezu-footer-lite {
    margin-top: 48px;
    border-top: 1px solid var(--line);
    padding: 24px 16px 32px;
    color: var(--muted);
    font-size: 0.875rem;
    text-align: center;
}
.hezu-footer-lite-inner { max-width: 760px; margin: 0 auto; }
.hezu-footer-lite nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 12px; }
.hezu-footer-lite a { color: var(--muted); text-decoration: none; }
.hezu-footer-lite a:hover { color: var(--hezu-green-dark); text-decoration: underline; }
.hezu-footer-lite p { margin: 0 0 8px; }
.hezu-footer-lite .hezu-footer-note { font-size: 0.8125rem; }

/* FEAT-092: keyboard users can bypass the repeated header. */
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 10001; transform: translateY(-200%); padding: .75rem 1rem; background: #fff; color: #1b5e20; border: 2px solid currentColor; border-radius: .5rem; font-size: 1rem; }
.skip-link:focus { transform: none; outline: 2px solid #1b5e20; outline-offset: 2px; }
.skip-link-en { display: none; }
html[lang^="en"] .skip-link-en { display: inline; }
html[lang^="en"] .skip-link-es { display: none; }
main[id] { scroll-margin-top: calc(var(--sticky-header-h, 4rem) + 1rem); }
