/* umivale/formularios-categorias — catálogo de descargas (sidebar + acordeón) */
.umivale-formularios-categorias { max-width: 1024px; margin: 0 auto; }
.uv-fc__title { text-align: center; color: var(--uv-azul); margin: 0 0 1rem; }
.uv-fc__intro { text-align: center; color: #3C4858; margin: 0 0 2rem; }
.uv-fc__empty { text-align: center; color: #757575; }

.uv-fc__layout { display: flex; gap: 1.5rem; align-items: flex-start; }
.uv-fc__sidebar { flex: 0 0 30%; display: flex; flex-direction: column; }
.uv-fc__panels { flex: 1 1 auto; min-width: 0; }

/* sidebar categorías */
.uv-fc__cat {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid #e0e0e0;
  background: transparent; color: #3C4858; font-size: 1rem; line-height: 1.3;
  text-align: left; cursor: pointer; transition: color .15s, background .15s;
}
.uv-fc__cat:hover { color: var(--uv-azul); }
.uv-fc__cat.is-active { color: var(--uv-azul); font-weight: 700; }
.uv-fc__cat.is-active .uv-fc__cat-arrow { color: var(--uv-naranja); }
.uv-fc__cat-arrow { font-size: 18px; flex: 0 0 auto; }

/* paneles: solo el activo visible */
.uv-fc__panel { display: none; }
.uv-fc__panel.is-active { display: block; }

/* sub-grupo (acordeón) */
.uv-fc__grupo { margin-bottom: 12px; border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden; }
.uv-fc__grupo-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 14px 18px; border: 0; cursor: pointer;
  background: var(--uv-azul); color: var(--uv-blanco); font-size: 1rem; font-weight: 600; line-height: 1.3;
  text-align: left;
}
.uv-fc__grupo-arrow { font-size: 20px; flex: 0 0 auto; }
.uv-fc__grupo-body { display: none; }
.uv-fc__grupo.is-open .uv-fc__grupo-body { display: block; }

/* lista de formularios */
.uv-fc__list { list-style: none; margin: 0; padding: 0; }
.uv-fc__item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 18px; border-bottom: 1px solid #eee;
}
.uv-fc__item:last-child { border-bottom: 0; }
.uv-fc__form-title { color: #3C4858; }
.uv-fc__action {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  color: var(--uv-naranja); background: transparent; border: 0; cursor: pointer;
  text-decoration: none; font-size: .95rem; white-space: nowrap; font-family: inherit;
}
.uv-fc__action:hover { text-decoration: underline; }
.uv-fc__action .fa { font-size: 16px; }

/* dropdown idiomas */
.uv-fc__dropdown { position: relative; }
.uv-fc__dropdown-menu {
  display: none; position: absolute; right: 0; top: 100%; z-index: 20;
  min-width: 160px; background: var(--uv-blanco); border: 1px solid #e0e0e0; border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.uv-fc__dropdown.is-open .uv-fc__dropdown-menu { display: block; }
.uv-fc__dropdown-item { display: block; padding: 8px 14px; color: #3C4858; text-decoration: none; }
.uv-fc__dropdown-item:hover { background: #f4f6f8; color: var(--uv-azul); }

/* responsive: apila sidebar arriba */
@media (max-width: 767px) {
  .uv-fc__layout { flex-direction: column; }
  .uv-fc__sidebar { flex-basis: auto; width: 100%; }
  .uv-fc__item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .uv-fc__action { align-self: flex-end; }
}
