/* v0.53 — Galería de íconos en Inversión y hover institucional estable */

.investment-svg-badge,
.investment-icon-choice-visual {
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
  transform: none !important;
}

.investment-svg-badge svg,
.investment-icon-choice-visual svg {
  width: 1.18rem;
  height: 1.18rem;
  display: block;
}

.investment-svg-badge svg path,
.investment-icon-choice-visual svg path {
  fill: currentColor;
}

.investment-svg-badge svg .tone-bg,
.investment-icon-choice-visual svg .tone-bg {
  fill: currentColor;
  opacity: .16;
}

.page-investment .investment-svg-badge {
  color: #55439d;
  background: radial-gradient(circle at 24% 22%, rgba(255,255,255,.84), transparent 32%), linear-gradient(135deg, #f4efff, #eaf8ff);
  box-shadow: 0 12px 26px rgba(56, 49, 112, .1);
}

.page-investment .investment-route-card:hover .investment-svg-badge,
.page-investment .investment-route-card:focus-within .investment-svg-badge {
  color: #fff;
  background: linear-gradient(135deg, #514498, #1f7ea8);
  box-shadow: 0 18px 34px rgba(56, 49, 112, .18);
}

.page-investment .investment-route-card:hover .investment-svg-badge svg .tone-bg,
.page-investment .investment-route-card:focus-within .investment-svg-badge svg .tone-bg {
  opacity: .24;
}

.admin-investment-item .investment-admin-controls {
  grid-template-columns: minmax(120px, .4fr) minmax(220px, .6fr);
  align-items: end;
  margin-bottom: .85rem;
}

.investment-icon-picker {
  margin: .75rem 0 1rem;
  padding: .9rem;
  border: 1px solid #dfe6f3;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #f8f6ff);
}

.investment-icon-picker legend {
  padding: 0 .35rem;
  color: var(--navy);
  font-weight: 900;
}

.investment-icon-picker p {
  margin: .15rem 0 .75rem;
  color: #60708c;
  font-size: .88rem;
}

.investment-icon-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: .55rem;
  max-height: 330px;
  overflow: auto;
  padding: .15rem .25rem .2rem 0;
}

.investment-icon-choice {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: .55rem;
  align-items: center;
  min-height: 54px;
  padding: .52rem .58rem;
  border: 1px solid #dfe6f3;
  border-radius: 13px;
  background: rgba(255,255,255,.88);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.investment-icon-choice input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.investment-icon-choice-visual {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #55439d;
  background: linear-gradient(135deg, #f1edff, #eaf8ff);
}

.investment-icon-choice small {
  color: #1d2d55;
  font-size: .75rem;
  font-weight: 850;
  line-height: 1.15;
}

.investment-icon-choice:hover,
.investment-icon-choice:focus-within {
  border-color: rgba(82, 68, 151, .38);
  background: #fff;
  box-shadow: 0 12px 24px rgba(45, 55, 112, .1);
}

.investment-icon-choice:hover .investment-icon-choice-visual,
.investment-icon-choice:focus-within .investment-icon-choice-visual {
  color: #fff;
  background: linear-gradient(135deg, #514498, #1f7ea8);
  box-shadow: 0 14px 28px rgba(56, 49, 112, .16);
}

.investment-icon-choice input:checked + .investment-icon-choice-visual {
  color: #fff;
  background: linear-gradient(135deg, #514498, #1f7ea8);
  box-shadow: 0 14px 28px rgba(56, 49, 112, .2);
}

.investment-icon-choice:has(input:checked) {
  border-color: rgba(82, 68, 151, .58);
  background: linear-gradient(135deg, #fff, #f4f1ff);
}

@supports not selector(:has(*)) {
  .investment-icon-choice input:checked + .investment-icon-choice-visual + small {
    color: #514498;
  }
}

.admin-icon-preview-card {
  display: none !important;
}

@media (max-width: 980px) {
  .admin-investment-item .investment-admin-controls {
    grid-template-columns: 1fr;
  }
  .investment-icon-gallery {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    max-height: 290px;
  }
}
