.hcm-modules {
  --hcm-night: #101932;
  --hcm-teal: #075b63;
  --hcm-violet: #503280;
}
.hcm-modules .py-hero { padding-block: clamp(1.5rem, 4vw, 3.5rem); }
.hcm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3.5rem);
  align-items: center;
}
.hcm-kicker { color: #dfd3ff; letter-spacing: .09em; font-size: .875rem; font-weight: 800; }
.hcm-hero-visual {
  padding: clamp(.6rem, 2vw, 1.5rem);
  border: 1px solid #777f9b;
  border-radius: 1.4rem;
  background: linear-gradient(145deg, #241440f0, #06383ee8), url('/assets/payroll-pilar-hero.webp') center/cover;
}
.hcm-orbit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  text-align: center;
}
.hcm-orbit strong {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 7.2rem;
  aspect-ratio: 1;
  border: 2px solid #c1f3f0;
  border-radius: 50%;
  background: #102745;
  color: white;
}
.hcm-orbit a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: .45rem;
  border-radius: .65rem;
  color: #fff;
  background: #2c3859;
  overflow-wrap: anywhere;
}
.hcm-orbit a:last-child { grid-column: 1 / -1; }
.hcm-modules .py-hero .py-cta, .hcm-modules .py-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: #ad162b;
  color: white;
}
.hcm-modules .py-cta:hover { background: #870c1d; }
.hcm-modules :focus-visible { outline: 3px solid #9558e8; outline-offset: 3px; }
.hcm-modules .py-hero :focus-visible { outline-color: #f9dc87; }
.hcm-filter { display: block; max-width: 26rem; margin-block: 1rem; font-weight: 750; }
.hcm-modules [hidden] { display: none !important; }
.hcm-cards, .hcm-questions, .hcm-faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}
.hcm-family { margin-block: 1.5rem; }
.hcm-cards article, .hcm-faq details {
  min-width: 0;
  padding: 1rem;
  border: 1px solid #dce0ed;
  border-top: 4px solid var(--hcm-violet);
  border-radius: .8rem;
  background: #fff;
  color: #172137;
  overflow-wrap: anywhere;
}
.hcm-cards article:nth-child(3n+2) { border-top-color: var(--hcm-teal); }
.hcm-cards article:nth-child(3n+3) { border-top-color: #146544; }
.hcm-cards h4 { margin: .4rem 0; font-size: 1.12rem; }
.hcm-modules dt { font-weight: 750; }
.hcm-modules dd { margin: 0 0 .45rem; }
.hcm-label { color: var(--hcm-violet); font-weight: 750; }
.hcm-modules select, .hcm-modules #hcm-quiz button {
  min-height: 44px;
  padding: .55rem;
  border: 1px solid #66768d;
  border-radius: .45rem;
  font: inherit;
}
.hcm-modules select { display: block; width: 100%; margin-block: .35rem .8rem; color: #172137; background: white; }
.hcm-modules #hcm-quiz button { background: var(--hcm-teal); color: #fff; cursor: pointer; }
.hcm-questions { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.hcm-questions label { min-width: 0; font-weight: 700; }
#hcm-recomendacion { display: block; margin-block: .8rem; font-weight: 750; }
.hcm-modules .py-table { max-width: 100%; overflow-x: auto; }
.hcm-modules .py-table table { width: 100%; }
.hcm-modules .py-table th, .hcm-modules .py-table td { min-width: 6rem; overflow-wrap: anywhere; }
.hcm-flow {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  list-style: none;
  padding: 0;
}
.hcm-flow li { padding: .65rem .8rem; border-radius: .5rem; background: var(--hcm-teal); color: white; }
.hcm-flow li:nth-child(even) { background: var(--hcm-violet); }
.hcm-timeline { border-inline-start: 3px solid #b6dadd; margin-inline-start: .75rem; padding-inline-start: 1.6rem; }
.hcm-timeline li { padding: .25rem 0; }
.hcm-faq summary { font-weight: 750; cursor: pointer; }
.hcm-last { background: var(--hcm-night); color: white; border-radius: 1rem; }
.hcm-last h2 { color: white; }
.hcm-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .9rem;
  margin-block: 1.5rem;
}
.hcm-panels a {
  display: grid;
  align-content: start;
  gap: .4rem;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--hcm-violet);
  color: white;
  text-decoration: none;
}
.hcm-panels a:hover strong { text-decoration: underline; }
.hcm-panels a:nth-child(2) { background: var(--hcm-teal); }
.hcm-panels a:nth-child(3) { background: #185a40; }
.hcm-panels a:nth-child(4) { background: #85451a; }
.hcm-panels span { font-size: .875rem; }
.hcm-panels small { font-size: .92rem; }
.hcm-family[data-family="administracion"] { --family-bg: #f2eaff; --family-ink: #503280; }
.hcm-family[data-family="tiempo-nomina"] { --family-bg: #e0f4f3; --family-ink: #075b63; }
.hcm-family[data-family="talento"] { --family-bg: #fff0dc; --family-ink: #85451a; }
.hcm-family[data-family="experiencia"] { --family-bg: #e6f3e9; --family-ink: #185a40; }
.hcm-family { padding: clamp(.75rem, 2.5vw, 1.35rem); border-radius: 1rem; background: var(--family-bg); }
.hcm-family > h3, .hcm-family .hcm-label { color: var(--family-ink); }
.hcm-family .hcm-cards article { border-top-color: var(--family-ink); }
.hcm-editorial {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  align-items: center;
  gap: 1.25rem;
  background: #edf3ff;
  border-radius: 1rem;
}
.hcm-editorial figure { margin: 0; min-width: 0; }
.hcm-editorial img { display: block; width: 100%; height: auto; border-radius: .85rem; }
.hcm-case-controls { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.hcm-case-controls button {
  padding: .5rem .9rem;
  min-height: 44px;
  border: 1px solid var(--hcm-teal);
  border-radius: .55rem;
  background: white;
  color: var(--hcm-teal);
  font: inherit;
  cursor: pointer;
}
.hcm-case-controls button[aria-disabled="true"] { cursor: default; background: #e5e9ee; }
.hcm-timeline.is-interactive { border: 0; padding: 0; margin-inline: 0; }
.hcm-timeline.is-interactive li {
  list-style: none;
  background: #e0f4f3;
  padding: 1rem;
  border-left: 5px solid var(--hcm-teal);
  border-radius: .65rem;
}
@media (max-width: 760px) {
  .hcm-hero-grid { grid-template-columns: minmax(0, 1fr); }
}
