/* holabi.io: shared tokens, header, footer, contact bubbles, page blocks and interface glue.
   Tokens come from ds/holabi/tokens.json: Kintsugi (light) and Sumi (dark). */
[hidden] { display: none !important; }
a:not([class]) { color: var(--clay); }
a:not([class]):hover { color: var(--clay-hover); }

:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 24px; --radius-full: 9999px;
  --content-max: 1120px; --content-narrow: 720px; --sidebar-width: 248px; --topbar-height: 60px;
  --duration-fast: 150ms; --duration-base: 240ms; --duration-brush: 1250ms; --duration-think: 1600ms; --duration-speak: 900ms; --duration-breath: 3200ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); --ease-brush: cubic-bezier(0.55, 0.05, 0.3, 1);
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}
:root, .is-kintsugi { --bg: #f4efe6; --surface: #fbf8f3; --surface-alt: #ece5d8; --ink: #1f1b17; --ink-muted: #5c5349; --ink-subtle: #6e6458; --line: #e1d8c9; --line-strong: #8c7f6e; --clay: #a84f2c; --clay-hover: #8f3f1f; --on-clay: #fbf8f3; --clay-soft: #f7e8df; --gold: #c29a45; --gold-mark: #a9812f; --focus-ring: #a84f2c; --on-danger: #fbf8f3; --scrim: #1f1b1766; --success: #2c6b6e; --success-soft: #dcebe9; --warning: #86581a; --warning-soft: #f4e6cc; --danger: #a3271f; --danger-soft: #f6dcd6; --info: #2f5b8c; --info-soft: #dee7f2; --shadow-float: 0 1px 2px #1f1b170f, 0 12px 32px -8px #1f1b172e; color-scheme: light; }
.hx-sumi, .is-sumi { --bg: #111214; --surface: #1c1d20; --surface-alt: #26272b; --ink: #ece6da; --ink-muted: #b3ab9d; --ink-subtle: #9c9486; --line: #2c2d31; --line-strong: #6f695f; --clay: #d9774f; --clay-hover: #e58c67; --on-clay: #111214; --clay-soft: #3b2219; --gold: #d2a64f; --gold-mark: #d2a64f; --focus-ring: #d9774f; --on-danger: #111214; --scrim: #000000a3; --success: #6db5ae; --success-soft: #16302f; --warning: #e2b252; --warning-soft: #382c14; --danger: #f08275; --danger-soft: #3d1b18; --info: #8db1e3; --info-soft: #1a2a3f; --shadow-float: 0 1px 2px #00000066, 0 12px 32px -8px #000000b3; color-scheme: dark; }
/* The closing band always uses the other theme */
.pg-cta { --bg: #111214; --surface: #1c1d20; --surface-alt: #26272b; --ink: #ece6da; --ink-muted: #b3ab9d; --ink-subtle: #9c9486; --line: #2c2d31; --line-strong: #6f695f; --clay: #d9774f; --clay-hover: #e58c67; --on-clay: #111214; --clay-soft: #3b2219; --gold: #d2a64f; --gold-mark: #d2a64f; --focus-ring: #d9774f; --on-danger: #111214; --scrim: #000000a3; --success: #6db5ae; --success-soft: #16302f; --warning: #e2b252; --warning-soft: #382c14; --danger: #f08275; --danger-soft: #3d1b18; --info: #8db1e3; --info-soft: #1a2a3f; --shadow-float: 0 1px 2px #00000066, 0 12px 32px -8px #000000b3; color-scheme: dark; }
.is-sumi .pg-cta { --bg: #f4efe6; --surface: #fbf8f3; --surface-alt: #ece5d8; --ink: #1f1b17; --ink-muted: #5c5349; --ink-subtle: #6e6458; --line: #e1d8c9; --line-strong: #8c7f6e; --clay: #a84f2c; --clay-hover: #8f3f1f; --on-clay: #fbf8f3; --clay-soft: #f7e8df; --gold: #c29a45; --gold-mark: #a9812f; --focus-ring: #a84f2c; --on-danger: #fbf8f3; --scrim: #1f1b1766; --success: #2c6b6e; --success-soft: #dcebe9; --warning: #86581a; --warning-soft: #f4e6cc; --danger: #a3271f; --danger-soft: #f6dcd6; --info: #2f5b8c; --info-soft: #dee7f2; --shadow-float: 0 1px 2px #1f1b170f, 0 12px 32px -8px #1f1b172e; color-scheme: light; }

/* Flecha de los desplegables, con el color de ink-muted de cada tema */
:root, .is-kintsugi { --select-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c5349' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.hx-sumi, .is-sumi, .pg-cta { --select-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3ab9d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.is-sumi .pg-cta { --select-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c5349' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }

body { margin: 0; }
.site-page {
  position: relative; overflow-x: clip; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased;
  transition: background-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}
.site-page a:focus-visible, .site-page button:focus-visible, .site-page summary:focus-visible,
.site-top a:focus-visible, .site-top button:focus-visible, .site-fab a:focus-visible, .site-fab button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.site-wrap { box-sizing: border-box; width: 100%; max-width: 85rem; margin-inline: auto; padding-inline: var(--gutter); }
.site-main { padding-top: 84px; }
.site-short { display: none; }

/* ---------- Header (Header.dc.html) ---------- */
.site-top { box-sizing: border-box; position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px var(--gutter); pointer-events: none; font-family: var(--font-sans); color: var(--ink); }
.site-top > * { pointer-events: auto; }
.site-pill { box-sizing: border-box; display: flex; align-items: center; gap: 2px; min-height: 52px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-float); }
.site-brand { flex: none; padding-inline: 16px; text-decoration: none; }
.site-top .site-brand { position: relative; overflow: hidden; }
.site-logo-write { position: absolute; pointer-events: none; }
.site-logo-write .hb-write__svg { width: 100%; height: auto; }
.site-brand.is-writing img.site-logo { visibility: hidden; }
.site-brand .hb-logo { height: 22px; }
.site-link { box-sizing: border-box; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px; border: 0; border-radius: var(--radius-md); background: none; font: 500 14px/20px var(--font-sans); color: var(--ink-muted); text-decoration: none; white-space: nowrap; cursor: pointer; }
.site-link:hover { background: var(--surface-alt); color: var(--ink); }
.site-link[aria-current="page"], .site-link.is-current { background: var(--surface-alt); color: var(--ink); }
.site-link .hb-icon { width: 16px; height: 16px; transition: transform var(--duration-fast) var(--ease-out); }
/* Demo en vivo: enlace de primer nivel con un punto «en vivo» en arcilla */
.site-link--demo { gap: 8px; color: var(--ink); }
.site-live { position: relative; flex: none; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--clay); }
.site-live::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 1.5px solid var(--clay); opacity: 0; animation: site-live 2.4s var(--ease-out) infinite; }
@keyframes site-live { 0% { transform: scale(.5); opacity: .7; } 70%, 100% { transform: scale(1.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .site-live::after { animation: none; } }
.site-link[aria-expanded="true"] .hb-icon { transform: rotate(180deg); }
.site-sub { position: relative; display: flex; }
.site-panel { box-sizing: border-box; position: absolute; top: calc(100% + 12px); left: 0; z-index: 2; width: 340px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-float); }
.site-panel__h { margin: 6px 12px 6px; font: 600 12px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-subtle); }
.site-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: var(--radius-md); color: var(--ink); text-decoration: none; }
.site-item:hover, .site-item[aria-current="page"] { background: var(--surface-alt); }
.site-item__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--surface-alt); color: var(--ink); }
.site-item:hover .site-item__icon, .site-item[aria-current="page"] .site-item__icon { background: var(--surface); }
.site-item b { display: block; font: 500 14px/20px var(--font-sans); }
.site-item small { display: block; margin-top: 2px; font: 400 12px/16px var(--font-sans); color: var(--ink-muted); }
.site-actions { gap: 6px; }
.site-theme svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.site-theme[aria-pressed="true"] { background: var(--surface-alt); }
.site-menu { display: none; }
.site-drawer { box-sizing: border-box; position: absolute; top: calc(100% - 8px); left: var(--gutter); right: var(--gutter); display: grid; gap: 2px; max-height: calc(100svh - 96px); overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-float); }
.site-drawer .site-link { height: 44px; font-size: 16px; line-height: 24px; }
.site-drawer .site-panel__h { margin-top: 12px; }
.site-drawer .hb-switch { margin: 8px 12px 4px; padding-top: 12px; border-top: 1px solid var(--line); }
/* La barra completa solo cuando cabe sin apretar el logo; por debajo, el menú. */
@media (max-width: 96rem) {
  .site-actions .site-long { display: none; }
  .site-actions .site-short { display: inline; }
}
@media (max-width: 88.5rem) {
  .site-nav { display: none; }
  .site-menu { display: inline-flex; }
}
@media (min-width: 88.51rem) { .site-drawer { display: none; } }
@media (max-width: 40rem) {
  .site-long, .site-theme { display: none; }
  .site-short { display: inline; }
  .site-brand { padding-inline: 12px; }
  .site-top { gap: 8px; }
}

/* ---------- Contact bubbles (Contacto.dc.html) ---------- */
.site-fab { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; font-family: var(--font-sans); color: var(--ink); }
.site-fab > * { pointer-events: auto; }
.site-fab__btns { display: flex; flex-direction: column; gap: 12px; }
.site-fab__btn { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-full); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float); cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
.site-fab__btn:hover { background: var(--surface-alt); }
.site-fab__btn .hb-icon { width: 24px; height: 24px; }
.site-fab__btn[aria-expanded="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.site-fab__panel { box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; width: min(340px, calc(100vw - 40px)); max-height: calc(100svh - 200px); overflow-y: auto; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); box-shadow: var(--shadow-float); }
.site-fab__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.site-fab__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-variation-settings: "opsz" 12; font-size: 18px; line-height: 24px; letter-spacing: -0.02em; }
.site-fab__panel > .hb-btn, .site-fab__panel > .hb-field, .site-fab__panel > .hb-alert { align-self: stretch; }
.site-fab__panel .hb-field { max-width: none; }
.site-fab__panel .hb-seg { align-self: flex-start; }
.site-fab__panel .hb-check { align-items: flex-start; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.site-fab__panel .hb-check > input { margin-top: 1px; }
.site-fab__panel p { margin: 0; }
@media (max-width: 40rem) {
  .site-fab { right: 12px; bottom: 12px; }
  .site-fab__btn { width: 48px; height: 48px; }
  .site-fab__panel { width: calc(100vw - 24px); }
}

/* ---------- Footer (Footer.dc.html) ---------- */
.site-foot { box-sizing: border-box; display: flex; flex-direction: column; border-top: 1px solid var(--line); background: var(--bg); color: var(--ink); font-family: var(--font-sans); }
.site-foot__top { flex: 1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; padding-block: 64px 48px; }
.site-foot__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 22rem; }
/* Un solo logo en el pie, en tinta: negro en Kintsugi y washi en Sumi (la máscara toma el color del tema). */
.site-foot__logo { display: inline-flex; border-radius: var(--radius-sm); }
.site-foot__mark { display: block; width: 117px; height: 24px; background: var(--ink); -webkit-mask: url("/brand/holabi-logo-tinta.svg") left center / contain no-repeat; mask: url("/brand/holabi-logo-tinta.svg") left center / contain no-repeat; }
@media (forced-colors: active) { .site-foot__mark { forced-color-adjust: none; background: CanvasText; } }
.site-foot__brand p { margin: 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.site-foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.site-foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 20px; }
.site-foot__h { margin: 0 0 4px; font: 600 12px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-subtle); }
.site-foot__col a { color: var(--ink); text-decoration: none; }
.site-foot__col a:hover { color: var(--clay); }
.site-foot__col span { color: var(--ink-muted); }
.site-foot__tech { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 20px; border-top: 1px solid var(--line); }
.site-foot__tech .site-foot__h { margin: 0; }
.site-foot__stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-foot__stack li { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--radius-full); font: 500 13px/18px var(--font-sans); color: var(--ink); }
.site-foot__stack small { font: 400 12px/16px var(--font-sans); color: var(--ink-subtle); }
.site-foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid var(--line); font: 500 13px/18px var(--font-sans); color: var(--ink-subtle); }
.site-foot__bar p { margin: 0; }
@media (min-width: 68.75rem) { .site-foot { min-height: 440px; } }

/* ---------- Page blocks ---------- */
.pg-hero { box-sizing: border-box; display: flex; align-items: center; padding-block: 80px; }
.pg-hero > .site-wrap, .pg-sec > .site-wrap, .pg-cta > .site-wrap { flex: 1; }
.pg-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 64px; }
.pg-hero__grid--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.pg-eyebrow { margin: 0; display: inline-flex; align-items: center; gap: 10px; font: 500 14px/20px var(--font-sans); color: var(--ink-muted); }
.pg-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.pg-h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-variation-settings: "opsz" 12; font-size: clamp(2.5rem, 1.4rem + 3.2vw, 4.5rem); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.pg-lead { margin: 0; max-width: 46rem; font-size: 18px; line-height: 1.6; color: var(--ink-muted); text-wrap: pretty; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pg-sec { box-sizing: border-box; display: flex; align-items: center; padding-block: 80px; }
.pg-sec--alt { background: var(--surface); border-block: 1px solid var(--line); }
.pg-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 46rem; margin-bottom: 48px; }
.pg-h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-variation-settings: "opsz" 12; font-size: clamp(1.875rem, 1.1rem + 2vw, 2.875rem); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.pg-sub { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-muted); text-wrap: pretty; }
.pg-grid { display: grid; gap: 24px; }
.pg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.pg-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 64px; }
.pg-split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-split > .pg-head { margin-bottom: 0; }
.pg-card { box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.pg-sec--alt .pg-card { background: var(--bg); }
.pg-card > .pg-ui { align-self: stretch; margin-top: 12px; }
.pg-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--surface-alt); color: var(--ink); }
.pg-icon .hb-icon { width: 20px; height: 20px; }
.pg-icon .hb-icon.hb-enso, .pg-icon svg.hb-icon[viewBox="0 0 100 100"] { color: var(--gold-mark); }
.pg-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; align-self: stretch; }
.pg-card__h { margin: 8px 0 0; font-family: var(--font-display); font-weight: 700; font-variation-settings: "opsz" 12; font-size: 20px; line-height: 26px; letter-spacing: -0.02em; text-wrap: balance; }
.pg-card__h--lg { font-size: 26px; line-height: 32px; letter-spacing: -0.03em; }
.pg-card__t { margin: 0; font-size: 15px; line-height: 24px; color: var(--ink-muted); text-wrap: pretty; }
.pg-card__t a, .pg-sub a, .pg-note a, .pg-faq__a a, .pg-cta__t a { color: var(--clay); }
.hb-alert__text a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pg-kicker { margin: 0; font: 600 12px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--clay); }
.pg-label { margin: 8px 0 0; font: 600 12px/16px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-subtle); }
.pg-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pg-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 22px; color: var(--ink); }
.pg-list .hb-icon { width: 18px; height: 18px; margin-top: 2px; color: var(--success); }
.pg-list--x .hb-icon { color: var(--ink-subtle); }
.pg-num { font: 600 13px/16px var(--font-sans); color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.pg-note { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-subtle); }
.pg-mark { justify-self: center; width: min(100%, 25rem); }
.pg-mark .hb-enso { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.pg-ui { min-width: 0; font: 400 14px/20px var(--font-sans); color: var(--ink); text-align: left; }
.pg-chipset { display: flex; flex-direction: column; gap: 12px; }
.pg-table td { white-space: normal; }
.pg-table td:first-child { font-weight: 500; }
.pg-table .hb-badge { white-space: nowrap; }
.pg-box { box-sizing: border-box; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.pg-box b { color: var(--ink); font-weight: 500; }

/* Closing band, in the other theme */
.pg-cta { box-sizing: border-box; display: flex; align-items: center; padding-block: 96px; background: var(--bg); color: var(--ink); }
.pg-cta__in { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.pg-cta .hb-enso { width: 64px; height: 64px; }
.pg-cta__h { margin: 8px 0 0; font-family: var(--font-display); font-weight: 700; font-variation-settings: "opsz" 12; font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.75rem); line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
.pg-cta__t { margin: 0; max-width: 40rem; font-size: 17px; line-height: 1.6; color: var(--ink-muted); text-wrap: pretty; }
.pg-cta .pg-actions { justify-content: center; margin-top: 16px; }

/* Desktop: each section keeps its designed height, so every frame on the canvas is exact */
@media (min-width: 68.75rem) {
  .pg-hero, .pg-sec, .pg-cta { min-height: var(--mh, 0px); }
}
@media (max-width: 68.74rem) {
  .pg-hero__grid, .pg-hero__grid--even, .pg-split, .pg-split--even { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pg-grid--3, .pg-grid--4, .pg-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot__top { grid-template-columns: minmax(0, 1fr); }
  .site-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .pg-grid--2, .pg-grid--3, .pg-grid--4, .pg-grid--5 { grid-template-columns: minmax(0, 1fr); }
  .pg-hero { padding-block: 48px 56px; }
  .pg-sec { padding-block: 56px; }
  .pg-cta { padding-block: 72px; }
  .pg-card { padding: 24px; }
}

/* ---------- Interface glue around Holabi components (hb-*) ---------- */
:where(.hx-ui, .pg-ui, .site-fab) p { margin: 0; }
.ui-stack, .ui-window { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.ui-window { padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); box-shadow: var(--shadow-float); color: var(--ink); }
.ui-stack > .hb-badge, .ui-stack > .hb-chip, .ui-stack > .hb-seg, .ui-window > .hb-badge, .ui-window > .hb-switch, .ui-window > .hb-seg { align-self: flex-start; }
.ui-label { font: 500 12px/16px var(--font-sans); letter-spacing: .01em; color: var(--ink-muted); }
.ui-note { min-height: 40px; color: var(--ink); }
.ui-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.ui-checks { display: grid; gap: var(--space-2); padding-inline: var(--space-1); }
.ui-voice { display: flex; align-items: center; gap: var(--space-2); width: 100%; max-width: 200px; min-width: 0; }
.ui-voice .hb-btn { flex: none; }
.ui-voice .hb-btn--ghost[aria-pressed="true"] { background: var(--surface-alt); }
.ui-voice .hb-btn--primary[aria-pressed="true"] { background: var(--clay-hover); }
.ui-wave { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 64px; height: 24px; overflow: hidden; color: var(--ink-muted); }
.ui-wave span { display: block; flex: 0 0 3px; height: calc(var(--h) * 100%); border-radius: 2px; background: currentColor; transform-origin: 50% 50%; }
.ui-time { flex: none; font: 500 12px/16px var(--font-sans); color: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.is-playing .ui-wave { color: var(--clay); }
.is-playing .ui-wave span { animation: ui-wave .9s var(--ease-in-out) infinite; animation-delay: calc(var(--d) * -70ms); }
@keyframes ui-wave { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.ui-flow { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-float); color: var(--ink); }
.ui-flow__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.ui-flow__title { font: 600 16px/24px var(--font-sans); }
.ui-flow__body { display: flex; flex-direction: column; gap: var(--space-2); }
.ui-flow__body > .hb-seg { align-self: flex-start; }
.ui-flow__body > .ui-label:not(:first-child) { margin-top: var(--space-1); }
.ui-flow__body > .hb-btn { margin-top: var(--space-2); }
.ui-agent-swap { display: inline-flex; }
.ui-stat { display: flex; flex-direction: column; gap: 4px; }
.ui-stat b { font-family: var(--font-display); font-weight: 700; font-variation-settings: "opsz" 12; font-size: 28px; line-height: 32px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hx-ui .hb-onode.is-done .hb-onode__icon, .pg-ui .hb-onode.is-done .hb-onode__icon { color: var(--success); }
.hx-ui .hb-call, .pg-ui .hb-call { width: 100%; box-sizing: border-box; }
/* Tablas «no / sí» (pg-vs): la fila mala lleva X en rojo (danger) en un disco suave con borde; la buena, chulo grueso
   sobre un disco lleno de success. Se distinguen por color y por forma. */
.pg-vs__a .hb-icon, .pg-vs__b .hb-icon { box-sizing: border-box; flex: none; width: 24px; height: 24px; margin-top: 0; padding: 5px; border-radius: var(--radius-full); stroke-width: 2.6; }
.pg-vs__a .hb-icon { color: var(--danger); background: var(--danger-soft); box-shadow: inset 0 0 0 1.5px var(--danger); }
.pg-vs__b .hb-icon { color: var(--bg); background: var(--success); }
/* Desplegables: flecha propia con aire (16 px del borde y 44 px de relleno para que el texto no la toque) */
.site-page select.hb-field__input { -webkit-appearance: none; appearance: none; padding-right: 44px; background-image: var(--select-chev); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px 18px; text-overflow: ellipsis; cursor: pointer; }
.site-page select.hb-field__input::-ms-expand { display: none; }
@media (forced-colors: active) { .site-page select.hb-field__input { -webkit-appearance: auto; appearance: auto; background-image: none; padding-right: 12px; } }
/* Los nodos del DS usan width: 100% con relleno: sin border-box se salían 5–14 px de su tarjeta. */
.site-page .hb-onode, .site-page .hb-ws { box-sizing: border-box; }
.hb-onode__icon b { font: 600 14px/20px var(--font-sans); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .is-playing .ui-wave span { animation: none; } .site-page { transition: none; } }

/* Videos de YouTube / Vimeo (fachada: el iframe se carga al dar play) */
.hb-video { position: relative; margin: 28px 0; aspect-ratio: 16 / 9; border-radius: var(--radius-lg, 16px); overflow: hidden; background: var(--ink, #1F1B17); border: 1px solid var(--line); }
.hb-video__play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: transparent; color: #fff; }
.hb-video__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hb-video__thumb--plain { background: #1c1d20; }
.hb-video__btn { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--clay, #A84F2C); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s var(--ease-out, ease); }
.hb-video__btn svg { margin-left: 4px; }
.hb-video__play:hover .hb-video__btn, .hb-video__play:focus-visible .hb-video__btn { transform: scale(1.08); }
.hb-video__play:focus-visible { outline: 3px solid var(--clay, #A84F2C); outline-offset: -3px; }
.hb-video__src { position: absolute; left: 14px; bottom: 12px; padding: 3px 10px; border-radius: 999px; font: 600 12px/18px var(--font-sans, sans-serif); background: rgba(17,18,20,.72); color: #fff; }
.hb-video__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (prefers-reduced-motion: reduce) { .hb-video__btn { transition: none; } }
