/* Ficha cards — profile view matches map popup; accordion uses legacy blocks. */
.hf-profile,
.hf-ficha,
.hf-card {
  font-family: 'Open Sans', system-ui, sans-serif;
  color: #0c498a;
}

/* Public perfil: minimal chrome */
body.hf-profile-active .envbar,
body.hf-profile-active .flowline,
body.hf-profile-active .engnav,
body.hf-profile-active .rulebar {
  display: none !important;
}
body.hf-profile-active .dl-data-badge {
  display: none !important;
}
body.hf-profile-active main {
  padding: 12px 0 88px;
  max-width: 100%;
  overflow-x: hidden;
}
body.hf-profile-active main .wrap {
  max-width: 560px;
  padding: 0 14px;
  box-sizing: border-box;
}
body.hf-profile-active footer.rule {
  position: fixed;
  display: block;
  font-size: 11px;
  line-height: 1.35;
}
body.hf-profile-active .hf-profile-foot {
  padding: 8px 0 10px;
}
body.hf-profile-active .hf-profile-foot a {
  color: #b2eefa;
}

.hf-profile__back {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
}
.hf-profile__back a {
  color: #0c498a;
  text-decoration: none;
  border-bottom: 1px solid #69b5fa;
}
.hf-profile__panel {
  background: #fff;
  border: 2px solid #b2eefa;
  border-radius: 14px;
  padding: 14px 16px 16px;
  box-shadow: 0 4px 18px rgba(12, 73, 138, 0.08);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hf-perfil-card {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.hf-profile__title,
.hf-perfil-card .hf-profile__title {
  margin: 0 0 4px;
  padding-right: 0;
  color: #0c498a;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: none;
  line-height: 1.25;
}
.hf-profile__title::after,
.hf-perfil-card .hf-profile__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: #9dc384;
  margin-top: 6px;
  border-radius: 2px;
}
.hf-perfil-sector {
  margin: 8px 0 4px;
  font-size: 11px;
  font-weight: 600;
  color: #0c498a;
  line-height: 1.35;
}
.hf-perfil-indicators {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 600;
  color: #4a6f8f;
  line-height: 1.35;
}
.hf-perfil-site {
  margin: 0 0 10px;
  font-size: 10px;
  color: #4a6f8f;
}
.hf-perfil-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  table-layout: fixed;
}
.hf-perfil-table td {
  border-top: 1px solid #b2eefa;
  padding: 6px 4px 6px 0;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.hf-perfil-table td:first-child {
  font-weight: 600;
  width: 44%;
  padding-right: 8px;
}
.hf-perfil-yr {
  color: #669348;
  font-size: 9px;
  white-space: nowrap;
}
.hf-perfil-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
  font-size: 10px;
  font-weight: 700;
}
.hf-perfil-conf-alta {
  color: #669348;
}
.hf-perfil-conf-media {
  color: #69b5fa;
}
.hf-perfil-conf-baja {
  color: #8a5a12;
}
.hf-perfil-scope-conf {
  font-weight: 700;
}
.hf-perfil-src {
  margin: 10px 0 0;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.hf-perfil-src a {
  color: #0c498a;
  word-break: break-word;
}
.hf-perfil-label {
  margin: 12px 0 6px;
  font-size: 10px;
  font-weight: 800;
  color: #0c498a;
  text-transform: none;
}
.hf-perfil-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hf-perfil-chip {
  font-size: 9px;
  font-weight: 700;
  background: #b2eefa;
  color: #0c498a;
  border-radius: 6px;
  padding: 2px 8px;
  line-height: 1.35;
}
.hf-perfil-chip-ej {
  font-size: 8px;
  background: #9dc384;
  color: #0c498a;
  padding: 1px 5px;
  border-radius: 5px;
  font-weight: 700;
}
.hf-perfil-gaplist {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 10px;
  line-height: 1.4;
}
.hf-perfil-gaplist li {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}
.hf-perfil-cta {
  margin: 14px 0 0;
  font-size: 11px;
  font-weight: 700;
}
.hf-perfil-cta a {
  color: #0c498a;
  text-decoration: none;
  border-bottom: 1px solid #69b5fa;
}
.hf-empty {
  margin: 0;
  font-size: 11px;
  color: #4a6f8f;
}

/* Legacy accordion / workshop ficha blocks */
.hf-tabs {
  display: flex;
  gap: 8px;
  margin: 8px 0 12px;
}
.hf-tab {
  font: inherit;
  font-weight: 700;
  border: 1px solid #c5d3e0;
  background: #fff;
  color: #0c498a;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.hf-tab.is-on {
  background: #0c498a;
  color: #fff;
  border-color: #0c498a;
}
.hf-ficha {
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  padding: 12px 16px;
}
.hf-ficha { margin-top: 12px; }
.hf-ficha > summary {
  cursor: pointer;
  font-weight: 800;
  color: #0c498a;
}
.hf-card__sec { margin: 0 0 14px; }
.hf-card__sec h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #0c498a;
}
.hf-card__sec p,
.hf-card__sec li {
  margin: 0 0 6px;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.hf-card__sec ul { margin: 0; padding-left: 1.2rem; }
.hf-summary { display: grid; grid-template-columns: 8rem 1fr; gap: 6px 12px; margin: 0; }
.hf-summary dt { font-weight: 700; color: #5a6b7c; }
.hf-summary dd { margin: 0; }
.hf-summary a { word-break: break-all; }

@media (max-width: 420px) {
  body.hf-profile-active main .wrap {
    padding: 0 10px;
  }
  .hf-profile__panel {
    padding: 12px 12px 14px;
  }
  .hf-perfil-table {
    font-size: 9.5px;
  }
}