/* Hestia — tema de Ghost a medida
   Colores y medidas del capítulo 3 del manual de rediseño. */

@font-face {
    font-family: "Source Serif 4";
    src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --hx-ink: #111111;
    --hx-ink-2: #3d3d3d;
    --hx-muted: #5c5c5c;
    --hx-line: #e3e0d9;
    --hx-bg: #ffffff;
    --hx-bg-alt: #f6f5f2;
    --hx-accent: #2d5a63;
    --hx-accent-dark: #1f434a;
    --hx-accent-soft: #e6eef0;
    --hx-error: #a3271b;
    --hx-dark: #141414;

    --hx-sans: var(--gh-font-body, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    --hx-serif: var(--gh-font-heading, "Source Serif 4", Georgia, "Times New Roman", serif);

    --hx-container: 1200px;
    --hx-prose: 720px;
    --hx-gutter: 20px;
    --hx-radius: 6px;
    --hx-header-h: 72px;
}

@media (min-width: 768px) {
    :root { --hx-gutter: 32px; }
}

/* Base */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hx-header-h) + 16px); }

body {
    margin: 0;
    background: var(--hx-bg);
    color: var(--hx-ink);
    font-family: var(--hx-sans);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
    body { font-size: 17px; }
}

@media (min-width: 1200px) {
    body { font-size: 18px; }
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--hx-accent); text-underline-offset: 0.18em; }
a:hover { color: var(--hx-accent-dark); }

:focus-visible {
    outline: 3px solid var(--hx-accent);
    outline-offset: 3px;
    border-radius: 2px;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--hx-serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--hx-ink); }

p { margin: 0; }

.hx-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
    white-space: nowrap;
}

.hx-skip {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    padding: 10px 16px; background: var(--hx-ink); color: #fff; border-radius: var(--hx-radius);
}
.hx-skip:focus { top: 12px; color: #fff; }

.hx-container {
    width: 100%;
    max-width: calc(var(--hx-container) + 2 * var(--hx-gutter));
    margin: 0 auto;
    padding: 0 var(--hx-gutter);
}

.hx-narrow { max-width: calc(var(--hx-prose) + 2 * var(--hx-gutter)); }

.hx-h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
.hx-h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.hx-h3 { font-size: 1.3rem; }

.hx-lead { margin-top: 1rem; font-size: 1.15em; color: var(--hx-ink-2); max-width: 46em; }

.hx-eyebrow {
    margin-bottom: 0.75rem;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--hx-accent);
}
.hx-eyebrow a { color: inherit; text-decoration: none; }

.hx-meta { font-size: 0.875rem; color: var(--hx-muted); }

/* Botones */

.hx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 22px;
    border: 2px solid transparent; border-radius: var(--hx-radius);
    font: 600 1rem/1.2 var(--hx-sans);
    text-decoration: none; cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.hx-btn-primary { background: var(--hx-accent); color: #fff; }
.hx-btn-primary:hover { background: var(--hx-accent-dark); color: #fff; }
.hx-btn-secondary { background: transparent; border-color: var(--hx-accent); color: var(--hx-accent); }
.hx-btn-secondary:hover { background: var(--hx-accent-soft); color: var(--hx-accent-dark); }
.hx-btn-light { background: #fff; color: var(--hx-ink); }
.hx-btn-light:hover { background: var(--hx-bg-alt); color: var(--hx-ink); }
.hx-btn[disabled], .hx-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

.hx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }

.hx-link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.hx-link-arrow::after { content: " →"; }
.hx-link-arrow:hover { text-decoration: underline; }

.hx-link-quiet { color: var(--hx-ink-2); font-size: 0.95rem; text-decoration: none; }
.hx-link-quiet:hover { color: var(--hx-accent); text-decoration: underline; }

/* Cabecera */

.hx-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--hx-line);
}

.hx-header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    min-height: var(--hx-header-h);
}

.hx-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--hx-ink); text-decoration: none; flex-shrink: 0; }
.hx-brand:hover { color: var(--hx-ink); }
.hx-brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-left: 2px solid currentColor; border-right: 2px solid currentColor;
}
.hx-brand-mark img { width: 24px; height: auto; }
.hx-brand-text { display: flex; flex-direction: column; line-height: 1; }
.hx-brand-name { font-family: var(--hx-serif); font-size: 1.45rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.hx-brand-sub { margin-top: 4px; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.hx-brand-light { color: #fff; }
.hx-brand-light:hover { color: #fff; }
.hx-brand-light .hx-brand-mark img { filter: invert(1); }

.hx-menu-toggle {
    display: none;
    min-height: 44px; padding: 8px 16px;
    border: 2px solid var(--hx-ink); border-radius: var(--hx-radius); background: #fff;
    font: 600 0.95rem var(--hx-sans); color: var(--hx-ink); cursor: pointer;
}

.hx-menu { display: flex; align-items: center; gap: 28px; }

.hx-nav-list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.hx-nav-item { position: relative; display: flex; align-items: center; }
.hx-nav-link {
    display: block; padding: 10px 12px;
    color: var(--hx-ink); font-weight: 500; text-decoration: none;
}
.hx-nav-link:hover, .hx-nav-item.is-current > .hx-nav-link { color: var(--hx-accent); }
.hx-nav-item.is-current > .hx-nav-link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

.hx-sub-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; margin-left: -6px;
    border: 0; border-radius: 4px; background: transparent; color: var(--hx-ink); cursor: pointer;
}
.hx-sub-toggle svg { transition: transform 0.15s; }
.hx-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.hx-sub {
    position: absolute; top: 100%; left: 0;
    min-width: 280px; margin: 0; padding: 8px;
    list-style: none; background: #fff;
    border: 1px solid var(--hx-line); border-radius: var(--hx-radius);
    box-shadow: 0 12px 32px rgba(17, 17, 17, 0.1);
    display: none;
}
.hx-has-sub.is-open > .hx-sub { display: block; }
.hx-sub a { display: block; padding: 10px 12px; border-radius: 4px; color: var(--hx-ink); text-decoration: none; }
.hx-sub a:hover, .hx-sub a:focus-visible { background: var(--hx-bg-alt); color: var(--hx-accent); }

.hx-header-actions { display: flex; align-items: center; gap: 20px; }

@media (max-width: 1080px) and (min-width: 961px) {
    .hx-header-actions .hx-link-quiet { display: none; }
}

@media (max-width: 960px) {
    .hx-menu-toggle { display: inline-flex; align-items: center; }
    .hx-menu {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        max-height: calc(100vh - var(--hx-header-h)); overflow-y: auto;
        padding: 8px var(--hx-gutter) 24px;
        background: #fff; border-bottom: 1px solid var(--hx-line);
        box-shadow: 0 16px 32px rgba(17, 17, 17, 0.08);
    }
    .hx-header.is-open .hx-menu { display: flex; }
    .hx-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .hx-nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--hx-line); }
    .hx-nav-link { flex: 1; padding: 14px 0; font-size: 1.05rem; }
    .hx-sub-toggle { width: 44px; height: 44px; margin: 0; }
    .hx-sub { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 8px 12px; border: 0; box-shadow: none; }
    .hx-header-actions { flex-direction: column; align-items: stretch; gap: 16px; padding-top: 20px; }
    .hx-header-actions .hx-link-quiet { text-align: center; }
}

/* Cabecera de página */

.hx-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 4vw, 56px); }

.hx-hero-grid { display: grid; gap: 32px; align-items: center; }

@media (min-width: 960px) {
    .hx-hero-media .hx-hero-grid, .hx-hero-home .hx-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
}

.hx-hero-figure { margin: 0; }
.hx-hero-figure img { width: 100%; aspect-ratio: 15 / 8; object-fit: cover; object-position: 50% 45%; border-radius: var(--hx-radius); background: var(--hx-bg-alt); }

.hx-hero-actions:empty { display: none; }
.hx-hero-actions .hx-actions { margin-top: 1.75rem; }

/* Contenido editable (Ghost) */

.gh-content {
    display: grid;
    grid-template-columns:
        [full-start] minmax(var(--hx-gutter), 1fr)
        [wide-start] minmax(0, calc((var(--hx-container) - var(--hx-prose)) / 2))
        [main-start] min(var(--hx-prose), calc(100% - 2 * var(--hx-gutter))) [main-end]
        minmax(0, calc((var(--hx-container) - var(--hx-prose)) / 2)) [wide-end]
        minmax(var(--hx-gutter), 1fr) [full-end];
    padding-bottom: clamp(40px, 6vw, 80px);
}

.gh-content > * { grid-column: main-start / main-end; }
.gh-content > .kg-width-wide, .gh-content > .hx-wide { grid-column: wide-start / wide-end; }
.gh-content > .kg-width-full, .gh-content > .hx-band { grid-column: full-start / full-end; }

.gh-content > * + * { margin-top: 1.25em; }
.gh-content > h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.gh-content > h3 { margin-top: 1.8em; font-size: 1.3rem; }
.gh-content > h2 + *, .gh-content > h3 + * { margin-top: 0.75em; }
.gh-content > :first-child { margin-top: 0; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li + li { margin-top: 0.4em; }
.gh-content blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 3px solid var(--hx-accent); font-style: italic; color: var(--hx-ink-2); }
.gh-content hr { width: 100%; border: 0; border-top: 1px solid var(--hx-line); margin: 2.5em 0; }
.gh-content figcaption { margin-top: 0.5em; font-size: 0.85rem; color: var(--hx-muted); text-align: center; }
.gh-content .kg-image { margin: 0 auto; border-radius: var(--hx-radius); }
.gh-content > .hx-band + .hx-band { margin-top: 0; }
.gh-content > .hx-band:last-child { margin-bottom: calc(-1 * clamp(40px, 6vw, 80px)); }

/* Botones de Ghost dentro del contenido */
.gh-content .kg-button-card { display: flex; }
.gh-content .kg-btn {
    display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px;
    border-radius: var(--hx-radius); background: var(--hx-accent); color: #fff;
    font: 600 1rem/1.2 var(--hx-sans); text-decoration: none;
}
.gh-content .kg-btn:hover { background: var(--hx-accent-dark); color: #fff; }

/* Preguntas (tarjeta desplegable de Ghost) */
.gh-content .kg-toggle-card {
    padding: 18px 0; border: 0; border-bottom: 1px solid var(--hx-line); border-radius: 0; background: none; box-shadow: none;
}
.gh-content .kg-toggle-card + .kg-toggle-card { margin-top: 0; }
.gh-content .kg-toggle-heading-text { font-family: var(--hx-sans); font-size: 1.05rem; font-weight: 600; }
.gh-content .kg-toggle-content p { margin-top: 0.6em; color: var(--hx-ink-2); }
.gh-content .kg-toggle-card-icon { color: var(--hx-ink); }
.gh-content .kg-toggle-card-icon svg path { stroke: currentColor; stroke-width: 2px; }

/* Bandas y bloques de maquetación */

.hx-band { padding: clamp(48px, 7vw, 96px) 0; }
.hx-band-tight { padding-top: 16px; }
.hx-band-alt { background: var(--hx-bg-alt); }
.hx-band-dark { background: var(--hx-dark); color: #f2f2f2; }
.hx-band-dark h2 { color: #fff; }

.gh-content > .hx-band { padding-left: var(--hx-gutter); padding-right: var(--hx-gutter); }
.hx-band-inner { max-width: var(--hx-container); margin: 0 auto; }
.hx-band-inner > * + * { margin-top: 1.1em; }
.hx-band-inner.hx-prose { max-width: var(--hx-prose); }

.hx-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }

.hx-cards { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 720px) { .hx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hx-card {
    position: relative; display: flex; flex-direction: column; gap: 10px;
    padding: 28px; background: #fff; border: 1px solid var(--hx-line); border-radius: var(--hx-radius);
}
.hx-card h3 { font-size: 1.3rem; }
.hx-card p { color: var(--hx-ink-2); }
.hx-card a.hx-card-link { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: none; }
.hx-card a.hx-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hx-card:hover { border-color: var(--hx-accent); }
.hx-card:focus-within { outline: 3px solid var(--hx-accent); outline-offset: 3px; }
.hx-card a.hx-card-link:focus-visible { outline: none; }

.hx-service {
    display: grid; gap: 12px;
    padding: 32px 0; border-top: 1px solid var(--hx-line);
}
.hx-service:last-child { border-bottom: 1px solid var(--hx-line); }
.hx-service h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); }
.hx-service p { color: var(--hx-ink-2); }
.hx-service .hx-actions { margin-top: 8px; }
@media (min-width: 860px) {
    .hx-service { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px 48px; align-items: start; }
    .hx-service > h2 { grid-row: span 2; }
}

.hx-steps, .gh-content .hx-steps { display: grid; gap: 20px; margin: 32px 0 0; padding: 0; list-style: none; counter-reset: hx-step; }
@media (min-width: 720px) { .hx-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hx-steps li { counter-increment: hx-step; padding: 24px; border-top: 3px solid var(--hx-accent); background: #fff; }
.hx-steps li + li { margin-top: 0; }
.hx-steps li::before { content: counter(hx-step); display: block; margin-bottom: 8px; font: 600 2rem/1 var(--hx-serif); color: var(--hx-accent); }

.hx-split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .hx-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.hx-split img { width: 100%; border-radius: var(--hx-radius); }

.hx-examples { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 860px) { .hx-examples { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Tarjetas de artículos */

.hx-post-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .hx-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .hx-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.hx-post-card {
    position: relative; display: flex; flex-direction: column; gap: 10px;
    padding: 24px; background: #fff; border: 1px solid var(--hx-line); border-radius: var(--hx-radius);
}
.hx-post-card:hover { border-color: var(--hx-accent); }
.hx-post-card .hx-eyebrow { position: relative; z-index: 1; margin: 0; }
.hx-post-card-title { font-size: 1.25rem; }
.hx-post-card-title a { color: var(--hx-ink); text-decoration: none; }
.hx-post-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hx-post-card:focus-within { outline: 3px solid var(--hx-accent); outline-offset: 3px; }
.hx-post-card-title a:focus-visible { outline: none; }
.hx-post-card-excerpt { color: var(--hx-ink-2); font-size: 0.95em; }
.hx-post-card .hx-meta { margin-top: auto; }

/* Filtro de temas y paginación */

.hx-topics ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 0 16px; list-style: none; }
.hx-chip {
    display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
    border: 1px solid var(--hx-line); border-radius: 999px; background: #fff;
    color: var(--hx-ink); font-size: 0.9rem; text-decoration: none;
}
.hx-chip:hover { border-color: var(--hx-accent); color: var(--hx-accent); }
.hx-chip.is-active { background: var(--hx-ink); border-color: var(--hx-ink); color: #fff; }

.hx-search-btn { margin-top: 1.5rem; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; }
.pagination .page-number { color: var(--hx-muted); font-size: 0.9rem; }
.pagination a { font-weight: 600; text-decoration: none; }
.pagination .older-posts { margin-left: auto; }

/* Artículo */

.hx-article-head { padding-top: clamp(40px, 6vw, 80px); }
.hx-article-head .hx-meta { margin-top: 1.25rem; }
.hx-article-image { margin: 32px auto 0; }
.hx-article-image img { width: 100%; border-radius: var(--hx-radius); }
.hx-article-image figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--hx-muted); }
.hx-article .hx-content { padding-top: 40px; padding-bottom: 24px; }
.hx-article .gh-content { font-size: 1.05em; }
.hx-article .gh-content > p, .hx-article .gh-content li { color: #1d1d1d; }
.hx-comments { padding-bottom: 48px; }

.hx-service-cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    margin: 8px 0 48px; padding: 24px; background: var(--hx-accent-soft); border-radius: var(--hx-radius);
}

/* Suscripción */

.hx-newsletter-inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .hx-newsletter-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.hx-newsletter-inner p { margin-top: 0.75rem; color: var(--hx-ink-2); }

.hx-newsletter-hero { display: grid; gap: 32px; align-items: end; }
@media (min-width: 960px) { .hx-newsletter-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; } }
.hx-newsletter-form { padding: 28px; background: var(--hx-bg-alt); border-radius: var(--hx-radius); }

.hx-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.95rem; }
.hx-input {
    width: 100%; min-height: 48px; padding: 10px 14px;
    border: 1px solid #8a8a8a; border-radius: var(--hx-radius); background: #fff;
    font: 400 1rem var(--hx-sans); color: var(--hx-ink);
}
.hx-input:focus-visible { outline: 3px solid var(--hx-accent); outline-offset: 1px; border-color: var(--hx-accent); }

.hx-signup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hx-signup-row .hx-input { flex: 1 1 220px; }
.hx-signup-row .hx-btn { flex: 0 0 auto; }
.hx-form-legal { margin-top: 10px; font-size: 0.8rem; color: var(--hx-muted); }
.hx-form-msg { display: none; margin-top: 12px; padding: 12px 14px; border-radius: var(--hx-radius); font-size: 0.95rem; }
.hx-form-success { background: var(--hx-accent-soft); color: var(--hx-accent-dark); }
.hx-form-error { background: #fbeceb; color: var(--hx-error); }
.hx-signup.success .hx-form-success, .hx-signup.error .hx-form-error { display: block; }
.hx-signup.success .hx-signup-row, .hx-signup.success .hx-label { display: none; }
.hx-signup.error .hx-input { border-color: var(--hx-error); }
.hx-btn-busy { display: none; }
.hx-signup.loading .hx-btn-busy { display: inline; }
.hx-signup.loading .hx-btn-idle { display: none; }
.hx-signup.loading button { pointer-events: none; opacity: 0.75; }
.hx-form-note { color: var(--hx-ink-2); }

/* Contacto */

.hx-contact-grid { display: grid; gap: 40px; padding-bottom: clamp(48px, 6vw, 88px); }
@media (min-width: 960px) { .hx-contact-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; } }
.hx-contact-direct { align-self: start; }
.hx-contact-list { margin: 20px 0 0; }
.hx-contact-list dt { margin-top: 16px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hx-muted); }
.hx-contact-list dd { margin: 4px 0 0; font-size: 1.05rem; }
.hx-contact-list a { font-weight: 600; word-break: break-word; }
.hx-contact-photo { margin: 28px 0 0; }
.hx-contact-photo img { border-radius: var(--hx-radius); }
.hx-contact-form { padding: 28px; background: var(--hx-bg-alt); border-radius: var(--hx-radius); }
.hx-contact-form h2 { margin-bottom: 20px; }
.hx-form-help { margin: 8px 0 16px; font-size: 0.9rem; color: var(--hx-muted); }
.hx-tally iframe { display: block; width: 100%; border: 0; }
.hx-form-fallback { margin-top: 12px; font-size: 0.9rem; color: var(--hx-muted); }
.hx-only-mobile { display: none; }
@media (max-width: 760px) { .hx-only-mobile { display: inline-flex; } }

/* Cierre */

.hx-closing-inner { max-width: 760px; text-align: center; }
.hx-closing-inner p { margin: 1rem auto 0; color: #d6d6d6; }
.hx-closing-inner .hx-btn { margin-top: 1.75rem; }

/* Pie */

.hx-footer { padding: 64px 0 32px; background: var(--hx-dark); color: #d6d6d6; font-size: 0.95rem; }
.hx-footer a { color: #fff; text-decoration: none; }
.hx-footer a:hover { text-decoration: underline; }
.hx-footer-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .hx-footer-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.hx-footer-brand p { max-width: 420px; margin-top: 20px; }
.hx-footer-address { margin-top: 16px; font-style: normal; line-height: 1.7; }
.hx-footer-title { margin-bottom: 14px; font: 600 0.8rem var(--hx-sans); letter-spacing: 0.12em; text-transform: uppercase; color: #9a9a9a; }
.hx-footer ul { margin: 0; padding: 0; list-style: none; }
.hx-footer-col li + li { margin-top: 10px; }
.hx-footer-legal {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
    margin-top: 48px; padding-top: 24px; border-top: 1px solid #2e2e2e; font-size: 0.85rem; color: #9a9a9a;
}
.hx-footer-legal ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hx-footer-legal a { color: #cfcfcf; }

/* Error */

.hx-error { min-height: 50vh; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
