/* SiS Soluciones Informáticas — chrome y componentes compartidos del sistema Blueprint (Hallmark).
   Se enlaza DESPUÉS de blueprint-tokens.css y blueprint-base.css en cada página del sitio y de la tienda.
   Ver design.md en la raíz para las reglas del sistema (qué cambia por página, qué no). */

/* ---- nav: una placa clara ("title block"), el único lugar donde el logo negro se lee sobre esta hoja ---- */
.bp-nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-ink); border-bottom: var(--rule-hair) solid color-mix(in oklab, var(--color-paper) 15%, transparent); }
.bp-nav__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); height: 76px; }
.bp-nav__brand { display: flex; align-items: center; gap: var(--space-sm); color: var(--color-paper); text-decoration: none; flex-shrink: 0; }
.bp-nav__brand img { height: 56px; width: auto; }
.bp-nav__links { display: flex; align-items: center; gap: var(--space-lg); }
.bp-nav__links a { color: var(--color-paper); font-weight: 500; font-size: var(--text-sm); text-decoration: none; border-bottom: var(--rule-hair) solid transparent; padding-bottom: var(--space-3xs); white-space: nowrap; }
.bp-nav__links a:hover, .bp-nav__links a[aria-current] { border-bottom-color: var(--color-paper); }
.bp-nav__actions { display: flex; align-items: center; gap: var(--space-md); flex-shrink: 0; }
.bp-nav :focus-visible { outline-color: var(--color-paper); }
@media (max-width: 68rem) { .bp-nav__links { display: none; } .bp-nav__actions > .btn { display: none; } }
.bp-nav__toggle { display: none; border: var(--rule-hair) solid var(--color-paper); background: transparent; color: var(--color-paper); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 68rem) { .bp-nav__toggle { display: inline-flex; } }

/* mobile dropdown: same dark sheet as the page, a hairline below the light nav */
.bp-mobile { display: none; background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.bp-mobile.is-open { display: block; }
.bp-mobile__list { display: flex; flex-direction: column; padding: var(--space-lg) var(--gutter) var(--space-xl); gap: var(--space-md); }
.bp-mobile__list a { color: var(--color-ink); font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); text-decoration: none; }
.bp-mobile__list a[aria-current] { color: var(--color-muted); }

/* ---- hero: Stage posture (text beside a photo, bleeding off the outer edge) ---- */
.hero { overflow: visible; }
.hero .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl); align-items: stretch; min-height: calc(100dvh - 76px); max-height: 900px; padding-block: var(--space-lg); }
.hero__text { display: flex; flex-direction: column; justify-content: center; }
.hero__text h1 { font-size: var(--text-display-s); text-transform: uppercase; }
.hero__text .lead { margin-top: var(--space-sm); color: var(--color-ink-2); }
.hero__actions { display: flex; gap: var(--space-md); margin-top: var(--space-lg); flex-wrap: wrap; }
.hero__visual { position: relative; margin-right: calc(var(--gutter) * -1); }
@media (max-width: 75rem) { .hero__visual { margin-right: 0; } }
@media (max-width: 60rem) {
  .hero .container { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); min-height: 0; max-height: none; padding-block: var(--space-xl) 0; }
  .hero__visual { height: 320px; margin-right: 0; order: -1; }
}

/* ---- hero: Banner posture (a short head, the first section starts by 640px) ---- */
.hero--banner .container { display: block; min-height: 0; max-height: none; padding-block: var(--space-xl) var(--space-lg); }
.hero--banner .hero__text { max-width: 70ch; }
.hero--banner h1 { font-size: var(--text-display-s); }

/* ---- hero: Corridor posture (one centred column, no visual) ---- */
.hero--corridor .container { display: block; min-height: 0; max-height: none; max-width: 44ch; margin-inline: auto; text-align: center; padding-block: var(--space-3xl) var(--space-xl); }
.hero--corridor h1 { font-size: var(--text-display-s); }
.hero--corridor .hero__actions { justify-content: center; }

/* ---- buttons: ink fill / outline, square, per the theme's Controls ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); height: 48px; padding-inline: var(--space-lg); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: transparent; color: var(--color-ink); font-family: var(--font-body); font-weight: 500; font-size: var(--text-sm); text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { background: color-mix(in oklab, var(--color-ink) 10%, transparent); }
.btn:active { background: color-mix(in oklab, var(--color-ink) 18%, transparent); }
.btn--primary { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-accent-ink); }
.btn--primary:hover { background: color-mix(in oklab, var(--color-ink) 85%, var(--color-paper)); }
.btn--primary:active { background: color-mix(in oklab, var(--color-ink) 70%, var(--color-paper)); }
.btn--onlight { color: var(--color-paper); border-color: var(--color-paper); }
.btn--onlight:hover { background: color-mix(in oklab, var(--color-paper) 10%, transparent); }
.btn--onlight:active { background: color-mix(in oklab, var(--color-paper) 18%, transparent); }
.btn--onlight.btn--primary { background: var(--color-paper); border-color: var(--color-paper); color: var(--color-ink); }
.btn--onlight.btn--primary:hover { background: color-mix(in oklab, var(--color-paper) 85%, var(--color-ink)); }
.btn--onlight.btn--primary:active { background: color-mix(in oklab, var(--color-paper) 70%, var(--color-ink)); }

/* ---- figures / photographs: double keyline, per the theme's Surfaces ---- */
.fig { position: relative; border: var(--rule-hair) solid var(--color-rule); }
.fig::after { content: ""; position: absolute; inset: 5px; z-index: 2; border: var(--rule-hair) solid var(--color-rule-2); pointer-events: none; }

/* ---- dimension string ---- */
.dim { position: relative; height: var(--rule-hair); background: var(--color-rule); margin-block: var(--space-md); }
.dim::before, .dim::after { content: ""; position: absolute; top: calc(var(--tick) / -2); width: var(--rule-hair); height: var(--tick); background: var(--color-rule); transform: rotate(45deg); }
.dim::before { left: 0; } .dim::after { right: 0; }
.dim--draw { transform-origin: left; animation: bp-dim-draw var(--dur-long) var(--ease-out) both; }
@keyframes bp-dim-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---- sections ---- */
.bp-section { padding-block: var(--section-gap); }
.bp-section--s { padding-block: var(--section-gap-s); }
.bp-head { max-width: 62ch; }

/* ---- register (a drawing register / service list / price list) ---- */
.register { width: 100%; border-collapse: collapse; margin-top: var(--space-2xl); }
.register th { text-align: left; font-family: var(--font-outlier); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); padding-block: var(--space-sm); border-bottom: var(--rule-heavy) solid var(--color-rule); }
.register td { padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule-2); vertical-align: top; }
.register td.n { font-family: var(--font-outlier); color: var(--color-muted); width: 3ch; }
.register td.name { font-weight: 600; width: 26ch; padding-right: var(--space-lg); }
.register td.desc { color: var(--color-ink-2); }
@media (max-width: 45rem) { .register, .register tbody, .register tr, .register td { display: block; width: auto; } .register thead { display: none; } .register tr { padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule-2); } .register td { border: 0; padding: 0; } .register td.name { margin-top: var(--space-2xs); } }

/* ---- elevations (a real <ol>, two or three stages, a generated counter) ---- */
.elevations { display: grid; margin: 0; margin-top: var(--space-2xl); padding-block: 0; list-style: none; counter-reset: stage; border-top: var(--rule-heavy) solid var(--color-rule); }
.elevations--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.elevations--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.elevation { counter-increment: stage; padding: var(--space-xl) var(--space-xl) var(--space-xl) 0; border-right: var(--rule-hair) solid var(--color-rule-2); }
.elevation:last-child { border-right: 0; padding-left: var(--space-xl); padding-right: 0; }
.elevation::before { content: counter(stage, decimal-leading-zero); display: block; font-family: var(--font-outlier); color: var(--color-muted); font-size: var(--text-sm); }
.elevation h3 { margin-top: var(--space-sm); text-transform: uppercase; }
.elevation p { margin-top: var(--space-md); color: var(--color-ink-2); max-width: 44ch; }
@media (max-width: 45rem) { .elevations--2, .elevations--3 { grid-template-columns: minmax(0, 1fr); } .elevation, .elevation:last-child { border-right: 0; padding-inline: 0; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule-2); } }

/* ---- figures as dimensions (real, user-supplied numbers only) ---- */
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl); margin-top: var(--space-3xl); }
.proof--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.proof__item .fig-num { font-family: var(--font-display); font-weight: 600; font-size: var(--text-display-s); font-variant-numeric: tabular-nums; }
.proof__item .fig-label { margin-top: var(--space-md); font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-muted); }
.proof__item p { margin-top: var(--space-sm); color: var(--color-ink-2); max-width: 36ch; }
@media (max-width: 55rem) { .proof, .proof--2 { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); } }

/* ---- showcase visual ---- */
.showcase__visual { margin-top: var(--space-2xl); aspect-ratio: 21 / 9; }
@media (max-width: 45rem) { .showcase__visual { aspect-ratio: 4 / 5; } }

/* ---- band (a change of paper, one step darker) ---- */
.bp-band { background: var(--color-paper-2); color: var(--color-ink); padding-block: var(--section-gap-s); }
.bp-band__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); flex-wrap: wrap; }
.bp-band h2 { font-size: var(--text-section); }
.bp-band p { margin-top: var(--space-xs); color: var(--color-ink-2); max-width: 44ch; }

/* ---- title block (a contact / facts close) ---- */
.titleblock { background: var(--color-paper-3); color: var(--color-ink); }
.titleblock__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: var(--rule-hair) solid var(--color-rule); }
.titleblock__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.titleblock__cell { padding: var(--space-xl); border-right: var(--rule-hair) solid var(--color-rule-2); margin: 0; }
.titleblock__cell:last-child { border-right: 0; }
.titleblock__cell dt { font-family: var(--font-outlier); font-size: var(--text-sm); font-weight: 500; margin-bottom: var(--space-xs); }
.titleblock__cell dd { margin: 0; font-weight: 600; }
.titleblock__cell dd a { color: var(--color-ink); text-decoration: underline; text-underline-offset: 0.16em; }
.titleblock__actions { grid-column: 1 / -1; padding: var(--space-xl); display: flex; gap: var(--space-md); flex-wrap: wrap; border-top: var(--rule-hair) solid var(--color-rule-2); }
@media (max-width: 55rem) { .titleblock__grid, .titleblock__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .titleblock__cell:nth-child(2) { border-right: 0; } }
@media (max-width: 35rem) { .titleblock__grid, .titleblock__grid--3 { grid-template-columns: minmax(0, 1fr); } .titleblock__cell { border-right: 0; border-bottom: var(--rule-hair) solid var(--color-rule-2); } }

/* ---- card (keylined, chips, inputs — generic keyline surfaces) ---- */
.bp-card { border: var(--rule-hair) solid var(--color-rule-2); padding: var(--space-xl); background: var(--color-paper-2); }
.bp-chip { display: inline-block; padding: var(--space-3xs) var(--space-sm); border: var(--rule-hair) solid var(--color-rule-2); font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-muted); }

/* ---- footer: statement ---- */
.bp-footer { padding-block: var(--space-3xl) var(--space-xl); }
.bp-footer__statement { font-family: var(--font-display); font-weight: 600; font-size: var(--text-section); max-width: 22ch; text-transform: uppercase; }
.bp-footer__links { margin-top: var(--space-2xl); display: flex; gap: var(--space-xl); flex-wrap: wrap; }
.bp-footer__links a { color: var(--color-ink-2); font-size: var(--text-sm); text-decoration: none; border-bottom: var(--rule-hair) solid transparent; }
.bp-footer__links a:hover { border-bottom-color: var(--color-ink-2); }
.bp-footer__row { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); display: flex; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap; font-size: var(--text-sm); color: var(--color-muted); }
.bp-footer__row a { color: var(--color-muted); }

/* ---- forms (contact form, account forms): keylined cells, title-block voice ---- */
.bp-field { display: flex; flex-direction: column; gap: var(--space-xs); }
.bp-field label { font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-muted); }
.bp-field input, .bp-field textarea, .bp-field select { height: 48px; padding-inline: var(--space-md); border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); }
.bp-field textarea { height: auto; min-height: 140px; padding-block: var(--space-md); }
.bp-field input:focus-visible, .bp-field textarea:focus-visible, .bp-field select:focus-visible { outline-offset: 0; }

/* ---- strong/b: same weight as the display face, never the browser default 700 (keeps the page at 3 weights) ---- */
strong, b { font-weight: 600; }

/* ---- utility: visually hidden (kept from base, named here for pages that need it directly) ---- */
.bp-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- site-footer (src/footer.js): a statement footer on the darkest ground ---- */
.bp-footer--site { background: var(--color-paper-3); }
.bp-footer--site .bp-footer__statement { color: var(--color-ink); }
.bp-footer--site .bp-footer__intro { margin-top: var(--space-md); max-width: 52ch; color: var(--color-ink-2); }
.bp-footer--site .titleblock__grid { margin-top: var(--space-2xl); background: transparent; border-color: var(--color-rule-2); }
.bp-footer--site .titleblock__cell { border-color: var(--color-rule-2); }
.bp-footer--site .titleblock__cell dd { font-weight: 400; }
.bp-footer__linklist { display: flex; flex-direction: column; gap: var(--space-xs); margin-top: 0; }
.bp-footer__linklist a { color: var(--color-ink-2); font-size: var(--text-sm); text-decoration: none; border-bottom: var(--rule-hair) solid transparent; }
.bp-footer__linklist a:hover { border-bottom-color: var(--color-ink-2); }
.bp-icon-row { display: flex; gap: var(--space-sm); margin-top: var(--space-lg); }
.bp-icon-btn { width: 44px; height: 44px; padding: 0; }
.bp-icon-btn .material-symbols-outlined { color: inherit; }
.bp-footer__monitor { display: flex; align-items: flex-start; gap: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); }
.bp-footer__monitor .material-symbols-outlined { color: var(--color-ink); }
.bp-footer__newsletter-row { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.bp-footer__newsletter-row dt { font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-muted); }
.bp-footer__newsletter-row p { margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.bp-footer__newsletter-form { display: flex; gap: var(--space-sm); width: 100%; max-width: 420px; }
.bp-footer__newsletter-form input { flex: 1; height: 48px; padding-inline: var(--space-md); border: var(--rule-hair) solid var(--color-rule); background: transparent; color: var(--color-ink); font: inherit; }
.bp-footer--site .bp-footer__row { border-color: var(--color-rule-2); }
