/* THE HELP | Sectores, catálogo y ajuste editorial. Complementa inicio.css y paginas.css. */
:root {
  --th-update-navy: #14365a;
  --th-update-orange: #e87326;
  --th-update-ink: #10273e;
  --th-update-muted: #526477;
  --th-update-border: #dce5eb;
}
/* Justificación de textos de lectura; no afecta títulos, etiquetas ni controles. */
body main p:not(.th-hero-kicker):not(.th-form-helper):not(.th-form-status),
body .th-footer p {
  text-align: justify !important;
  text-align-last: left;
  hyphens: auto;
  overflow-wrap: break-word;
}
/* Los textos breves de diagramas y de la cinta conservan su alineación funcional. */
body main .th-model-function p,
body main .th-model-intro {
  text-align: center !important;
  text-align-last: center;
}
/* Cinco sectores de actividad. */
.th-industry-groups {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(12px, 1.35vw, 20px);
  margin-top: 30px;
}
.th-industry-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--th-update-border);
  border-bottom: 3px solid var(--th-update-orange);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(16,39,62,.045);
  overflow: hidden;
  scroll-margin-top: 110px;
}
.th-industry-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  background: var(--th-update-navy);
  color: #fff;
  padding: 19px 17px 17px;
  min-height: 124px;
  box-sizing: border-box;
}
.th-industry-icon { display: inline-flex; color: #fff; }
.th-industry-icon svg { display: block; width: 32px; height: 32px; }
.th-industry-header h3 {
  color: inherit;
  font-family: Manrope, 'DM Sans', sans-serif;
  font-size: clamp(15px,1.3vw,19px);
  font-weight: 800;
  line-height: 1.22;
  margin: 0;
  text-align: left;
  overflow-wrap: normal;
}
.th-industry-list {
  display: grid;
  align-content: start;
  list-style: none;
  padding: 9px 16px 16px;
  margin: 0;
}
.th-industry-list li {
  position: relative;
  padding: 11px 0 11px 13px;
  border-bottom: 1px solid #eaf0f3;
  color: var(--th-update-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: break-word;
  scroll-margin-top: 110px;
}
.th-industry-list li:last-child { border-bottom: 0; }
.th-industry-list li::before {
  content: ''; position: absolute; top: 19px; left: 0;
  width: 5px; height: 5px; border-radius: 50%; background: var(--th-update-orange);
}
.th-industry-other {
  margin: 18px 0 22px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--th-update-border);
  border-bottom: 3px solid var(--th-update-orange);
  border-radius: 14px;
  scroll-margin-top: 110px;
}
.th-industry-other-icon, .th-catalog-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border-radius: 13px;
  background: #fff3e8;
  color: #b85112;
  flex: none;
}
.th-industry-other-icon svg, .th-catalog-icon svg { width: 26px; height: 26px; display: block; }
.th-industry-other h3, .th-catalog-item h3 {
  margin: 0 0 7px;
  font-family: Manrope, 'DM Sans', sans-serif;
  color: var(--th-update-ink);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}
.th-industry-other p, .th-catalog-item p {
  margin: 0;
  color: var(--th-update-muted);
  font-size: 14px;
  line-height: 1.65;
}
.th-industry-other .th-text-cta { margin: 0; white-space: nowrap; }
/* Catálogo de siete soluciones. La primera tarjeta destaca el servicio principal. */
.th-catalog-expanded { background: #f5f8fa; scroll-margin-top: 100px; }
.th-catalog-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.th-catalog-heading p { max-width: 435px; color: var(--th-update-muted); line-height: 1.7; margin: 0; }
.th-catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.th-catalog-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 15px;
  padding: clamp(18px,2vw,26px);
  min-width: 0;
  border-radius: 14px;
  border: 1px solid var(--th-update-border);
  border-bottom: 3px solid var(--th-update-orange);
  background: #fff;
  box-shadow: 0 6px 18px rgba(16,39,62,.045);
  scroll-margin-top: 110px;
}
.th-catalog-copy { min-width: 0; }
.th-catalog-featured {
  grid-column: span 2;
  background: var(--th-update-navy);
  border-color: var(--th-update-navy);
  border-bottom-color: var(--th-update-orange);
  justify-content: center;
}
.th-catalog-featured h3 { font-size: clamp(22px,2vw,30px); color: #fff; }
.th-catalog-featured p { color: #e4edf5; font-size: 15px; max-width: 42ch; }
.th-catalog-featured .th-catalog-icon { color: #fff; background: rgba(255,255,255,.12); }
.th-catalog-action { margin-top: 24px; }
@media (max-width: 1199px) {
  .th-industry-groups { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .th-industry-group { grid-column: span 2; }
  .th-industry-group:nth-child(n+4) { grid-column: span 3; }
  .th-industry-header { min-height: 0; flex-direction: row; align-items: center; gap: 10px; min-height: 72px; }
  .th-industry-header h3 { font-size: 17px; }
  .th-catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .th-industry-groups { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .th-industry-group, .th-industry-group:nth-child(n+4) { grid-column: auto; }
  .th-industry-group:last-child { grid-column: 1/-1; }
  .th-industry-header { padding: 16px 13px; flex-direction: column; align-items: flex-start; min-height: 112px; }
  .th-industry-group:last-child .th-industry-header { min-height: 0; flex-direction: row; align-items: center; }
  .th-industry-list { padding: 7px 12px 12px; }
  .th-industry-list li { font-size: 13px; }
  .th-industry-other { grid-template-columns: auto minmax(0,1fr); gap: 12px; padding: 17px; }
  .th-industry-other .th-text-cta { grid-column: 2; white-space: normal; }
  .th-catalog-heading { display: block; }
  .th-catalog-heading p { margin-top: 12px; }
  .th-catalog-grid { gap: 12px; }
  .th-catalog-item h3 { font-size: 17px; }
  .th-catalog-featured h3 { font-size: 23px; }
}
@media (max-width: 520px) {
  .th-industry-groups, .th-catalog-grid { grid-template-columns: minmax(0,1fr); }
  .th-industry-group, .th-industry-group:last-child, .th-catalog-featured { grid-column: auto; }
  .th-industry-header { min-height: 0; flex-direction: row; align-items: center; }
  .th-industry-list li { font-size: 14px; }
  .th-catalog-item { padding: 19px; }
}
