/* Hub de sectores de la página Transformación (index.html · #hub-sectores)
   9 tarjetas cortas en rejilla de 3; al pulsar, se despliega el selector de subcategorías. */

.hs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 759px) { .hs-grid { grid-template-columns: 1fr; } }

.hs-card {
  display: flex; flex-direction: column; gap: 10px; padding: 20px;
  background: rgba(15, 23, 42, .8); border: 1px solid #1e293b; border-radius: 18px;
  transition: border-color .2s ease, background .2s ease;
}
.hs-card:hover, .hs-card.open { border-color: rgba(52, 211, 153, .55); background: #0f172a; }
.hs-top { display: flex; align-items: center; gap: 12px; }
.hs-ico {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
  background: rgba(6, 78, 59, .45); border: 1px solid rgba(6, 95, 70, .6);
}
.hs-card h5 { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 900; color: #fff; }
.hs-quien { margin: 0; font-size: 13px; line-height: 1.45; color: #94a3b8; font-weight: 600; }
.hs-detalle { margin: 0; font-size: 14px; line-height: 1.5; color: #cbd5e1; }

.hs-btn {
  margin-top: auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; padding: 10px 14px; border-radius: 12px; cursor: pointer; text-decoration: none;
  font: inherit; font-size: 14px; font-weight: 800; text-align: left;
  color: #6ee7b7; background: rgba(6, 78, 59, .55); border: 1px solid rgba(4, 120, 87, .7);
  transition: background .2s ease, color .2s ease;
}
.hs-btn:hover, .hs-card.open .hs-btn { background: #059669; color: #fff; }
.hs-btn .hs-arrow { transition: transform .2s ease; font-size: 16px; }
.hs-card.open .hs-btn .hs-arrow { transform: rotate(90deg); }

.hs-menu { display: none; margin: 2px 0 0; padding: 6px; list-style: none; border-radius: 12px; background: #020617; border: 1px solid #1e293b; }
.hs-card.open .hs-menu { display: block; }
.hs-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 8px 10px;
  border-radius: 9px; color: #e2e8f0; font-size: 14px; font-weight: 700; text-decoration: none;
}
.hs-menu a:hover, .hs-menu a:focus-visible { background: rgba(16, 185, 129, .15); color: #6ee7b7; outline: none; }
.hs-menu a small { color: #64748b; font-weight: 600; }
.hs-menu li:first-child a { color: #6ee7b7; }

/* Modo claro de la presentación */
body.theme-light .hs-card { background: #fff; border-color: #e2e8f0; }
body.theme-light .hs-card:hover, body.theme-light .hs-card.open { background: #fff; border-color: #10b981; }
body.theme-light .hs-card h5 { color: #0f172a; }
body.theme-light .hs-quien { color: #475569; }
body.theme-light .hs-detalle { color: #334155; }
body.theme-light .hs-ico { background: #ecfdf5; border-color: #a7f3d0; }
body.theme-light .hs-btn { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
body.theme-light .hs-btn:hover, body.theme-light .hs-card.open .hs-btn { background: #059669; color: #fff; }
body.theme-light .hs-menu { background: #f8fafc; border-color: #e2e8f0; }
body.theme-light .hs-menu a { color: #0f172a; }
body.theme-light .hs-menu a:hover { background: #ecfdf5; color: #047857; }
