/*
 * TEC · Brand Asset (TEC-01). B03.
 * SVG exactos del Master Logo Package V01; caja con proporción reservada, sin recortes,
 * sin recolorear y sin recrear trazos. La proporción procede del inventario.
 */

.tec-brand {
  display: inline-block;
  flex: none;
  box-sizing: content-box;
  max-inline-size: 100%;
  inline-size: var(--tec-brand-width, 160px);
  color: inherit;
  line-height: 0;
  text-decoration: none;
  vertical-align: middle;
}

.tec-brand__img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: var(--tec-brand-ratio);
  object-fit: contain;
}

a.tec-brand {
  /* Área libre P: 12 px header, 16 px hero; el foco no pisa la firma. */
  padding: var(--tec-brand-clearance, 0);
}

a.tec-brand:focus-visible {
  outline: var(--tec-focus-width) solid var(--tec-focus-light);
  outline-offset: var(--tec-focus-offset);
}

.tec-brand--inverse:focus-visible,
.tec-footer__closure a.tec-brand:focus-visible {
  outline-color: var(--tec-focus-dark);
}

/* Contextos P (07 §3.1). Footer sigue la medida de HOME-D04/M04 (275 px D, 168 px M). */
.tec-brand--header {
  --tec-brand-width: 132px;
  --tec-brand-clearance: 12px;
}

.tec-brand--hero {
  --tec-brand-width: clamp(240px, 70vw, 300px);
  --tec-brand-clearance: 16px;
}

.tec-brand--footer {
  --tec-brand-width: clamp(168px, calc(168px + 107 * (100vw - 390px) / 1050), 275px);
}

/* Reserve the focus target while the offscreen image is deferred. */
.tec-brand--footer:not(.tec-brand--text) {
  aspect-ratio: var(--tec-brand-ratio);
}

@media screen and (min-width: 1024px) {
  .tec-brand--header {
    --tec-brand-width: 172px;
  }

  .tec-brand--hero {
    --tec-brand-width: clamp(360px, 32vw, 520px);
  }
}

/* Fallo de recurso: nombre de marca en texto, registrado como fallo QA. */
.tec-brand--text {
  inline-size: auto;
  font-family: var(--tec-font-serif);
  font-size: var(--tec-type-h3);
  line-height: 1.1;
}
