/* Cabecero PluCap: banner + franja usuario */
.plucap-cabecero {
  width: 100%;
  max-width: 100%;
  margin: 0 0 1rem;
  box-sizing: border-box;
}
.plucap-cabecero-banner {
  width: 100%;
  max-width: 100%;
  height: var(--plucap-banner-h, 300px);
  overflow: hidden;
  border-radius: var(--plucap-radius, 10px);
  margin-bottom: 0.75rem;
  background: #e8eef2;
  box-sizing: border-box;
}
.plucap-cabecero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.plucap-cabecero-banner.plucap-banner-pos-top img {
  object-position: center top;
}
.plucap-cabecero-banner.plucap-banner-pos-center img {
  object-position: center center;
}
.plucap-cabecero-banner.plucap-banner-pos-bottom img {
  object-position: center bottom;
}
.plucap-cabecero-usuario {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  padding: 0.35rem 1rem;
  color: #fff;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}
.plucap-cabecero-usuario-text {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  flex: 1 1 220px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.plucap-cabecero-usuario-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.plucap-cabecero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  box-sizing: border-box;
}
.plucap-cabecero-btn:hover {
  background: rgba(255, 255, 255, 0.32);
  color: #fff;
}
.plucap-cabecero-btn-salir {
  background: rgba(180, 60, 90, 0.85);
}
.plucap-cabecero-btn-salir:hover {
  background: rgba(180, 60, 90, 1);
  color: #fff;
}
@media (max-width: 640px) {
  /* Alto ≈ 4 líneas de texto; recorte Superior / Centro / Inferior se mantiene */
  .plucap-cabecero-banner {
    height: min(var(--plucap-banner-h, 300px), calc(4 * 1.35rem));
  }
  .plucap-cabecero-usuario {
    padding: 0.65rem 0.85rem;
    align-items: flex-start;
    min-height: 0 !important;
  }
  .plucap-cabecero-usuario-text {
    flex: 1 1 100%;
    width: 100%;
  }
  .plucap-cabecero-usuario-actions {
    width: 100%;
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 0.75rem;
  }
  .plucap-cabecero-usuario-actions .plucap-cabecero-btn {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
  }
}
