body[data-page="herramientas"] {
  /* Estilos propios de la página de módulos y herramientas. */
  background: var(--paper);
}

.tools-hero {
  width: 100%;
  max-width: none;
  padding-left: max(18px, calc((100% - var(--max)) / 2));
  padding-right: max(18px, calc((100% - var(--max)) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.46fr);
  gap: 26px;
  align-items: center;
  color: var(--black);
  background:
    linear-gradient(115deg, rgba(246, 196, 0, 0.1), transparent 34%),
    #ffffff;
  border-bottom: 1px solid rgba(6, 6, 6, 0.08);
}

.tools-hero p:not(.kicker) {
  max-width: 700px;
  margin-top: 14px;
  color: var(--muted-dark);
  font-size: 18px;
  line-height: 1.6;
}

.tools-hero h1 {
  max-width: 760px;
}

.tools-console {
  /* Consola visual: resume los 4 módulos sin degradados, en negro sólido. */
  min-height: 228px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  color: var(--white);
  background: #000000;
  border: 1px solid rgba(246, 196, 0, 0.32);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tools-console span {
  color: var(--yellow);
  font-weight: 950;
}

.tools-console strong {
  display: block;
  font-size: 31px;
  line-height: 1;
}

.tools-console p {
  color: var(--muted);
}

.tools-console div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tools-console b {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--yellow);
  background: rgba(246, 196, 0, 0.09);
  border: 1px solid rgba(246, 196, 0, 0.22);
  border-radius: var(--radius);
  font-size: 12px;
}

.tool-detail-grid {
  /* Fichas amplias para explicar cada módulo con más aire e información. */
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 32px;
}

.tool-detail {
  min-height: 390px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.tool-detail:nth-child(1) {
  color: var(--white);
  background: #000000;
  border-color: rgba(246, 196, 0, 0.32);
}

.tool-detail:nth-child(4) {
  color: var(--white);
  background: #000000;
  border-color: rgba(246, 196, 0, 0.32);
}

.tool-heading span {
  display: block;
  margin-bottom: 12px;
  color: var(--yellow);
  font-weight: 950;
}

.tool-detail h2 {
  font-size: clamp(28px, 3.6vw, 46px);
}

.tool-detail p {
  color: var(--muted-dark);
  line-height: 1.58;
}

.tool-detail:nth-child(1) p,
.tool-detail:nth-child(4) p {
  color: var(--muted);
}

.tool-specs {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-specs span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--black);
  background: rgba(246, 196, 0, 0.16);
  border: 1px solid rgba(246, 196, 0, 0.34);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.tool-detail:nth-child(1) .tool-specs span {
  color: var(--yellow);
  background: rgba(246, 196, 0, 0.1);
}

.tool-detail:nth-child(4) .tool-specs span {
  color: var(--yellow);
  background: rgba(246, 196, 0, 0.1);
}

.calc-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.calc-cloud span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(246, 196, 0, 0.22);
  border-radius: var(--radius);
  font-weight: 850;
}

@media (max-width: 860px) {
  .tools-hero,
  .tool-detail-grid {
    grid-template-columns: 1fr;
  }

  .tools-hero {
    gap: 22px;
  }

  .tool-detail,
  .tools-console {
    min-height: 0;
  }
}

.tools-hero > div:first-child {
  align-self: start;
}
