/* ============================================================
   B-corp component: B Impact score band (headline, animated bar
   with tick marks, 5-area grid). Bar animation in bscore.js.

   .b-corp__title's font-size is a literal clamp(), not var(--fz-h1) —
   same trap as tri/llama/modelos/aliados/campanas.
   ============================================================ */

.b-corp {
  padding: var(--pad-y) var(--pad-x);
  background: var(--paper);
}
.b-corp__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.b-corp__head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-bottom: 4rem;
}
@media (max-width: 900px) {
  .b-corp__head {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
.b-corp__label {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.b-corp__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.b-corp__title em {
  font-style: italic;
  color: var(--blue);
}
.b-corp__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}
.b-corp__logo {
  display: block;
  height: 7.5rem;
  width: auto;
  filter: invert(1);
}
@media (max-width: 900px) {
  .b-corp__logo {
    height: 6.25rem;
  }
}
.b-corp__lead {
  font-family: var(--font-serif);
  font-size: var(--fz-lead);
  line-height: 1.4;
  color: #2a2a2a;
  max-width: 40ch;
}

.bscore {
  border: 1px solid var(--black);
  padding: 2rem 2rem 1.75rem;
  margin-bottom: 2.5rem;
  background: var(--bg-alt);
}
.bscore__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.bscore__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.75rem;
  color: var(--black);
}
.bscore__n {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 8vw, 6.75rem);
  line-height: 1;
  color: var(--blue);
  letter-spacing: -0.03em;
}
.bscore__n small {
  font-size: 0.35em;
  color: #555;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.bscore__bar {
  position: relative;
  height: 0.75rem;
  background: var(--white);
  margin-top: 1rem;
}
.bscore__fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--blue);
  transition: width 1.6s var(--ease);
}
.bscore__ticks {
  position: relative;
  height: 1.125rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: #555;
  letter-spacing: 0.01em;
}
.bscore__ticks b {
  color: var(--black);
  font-weight: 700;
}
.bscore__tick {
  position: absolute;
  top: 0;
  white-space: nowrap;
  transform: translateX(-50%);
}
.bscore__tick--start {
  transform: translateX(0);
}
.bscore__tick--end {
  transform: translateX(-100%);
}
@media (max-width: 640px) {
  /* Scale reads as an ascending legend: 0 · Min 80 · Reimpulso 113.6 · 200 */
  .bscore__ticks {
    position: static;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem 0.625rem;
    font-size: 0.6875rem;
  }
  .bscore__tick,
  .bscore__tick--start,
  .bscore__tick--end {
    position: static;
    transform: none;
  }
  .bscore {
    border-color: rgba(20, 20, 20, 0.14);
  }
}

.b-corp__areas {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(20, 20, 20, 0.22);
}
@media (max-width: 1100px) {
  .b-corp__areas {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .b-corp__areas {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .b-corp__areas {
    gap: 1.25rem;
  }
}
.area {
  padding: 1.375rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.area__lbl {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  color: #555;
}
.area__n {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.area__n span {
  font-size: 0.875rem;
  color: #555;
  font-style: normal;
  letter-spacing: 0.02em;
  display: block;
  margin-top: 0.125rem;
}

.b-corp__note {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: #666;
  max-width: 72ch;
}
